Model file found /opt/rtcds/userapps/release/psl/k1/models/k1psl.mdl RCG_LIB_PATH=:/opt/rtcds/userapps/release/cds/k1/models:/opt/rtcds/userapps/release/cds/k1/models/lib:/opt/rtcds/userapps/release/cds/common/models:/opt/rtcds/userapps/release/cds/common/src:/opt/rtcds/userapps/release/isc/k1/models:/opt/rtcds/userapps/release/isc/k1/models/lib:/opt/rtcds/userapps/release/isc/common/models:/opt/rtcds/userapps/release/isc/common/src:/opt/rtcds/userapps/release/vis/k1/models:/opt/rtcds/userapps/release/vis/k1/models/lib:/opt/rtcds/userapps/release/vis/common/models:/opt/rtcds/userapps/release/vis/common/src:/opt/rtcds/userapps/release/ioo/k1/models:/opt/rtcds/userapps/release/ioo/k1/models/lib:/opt/rtcds/userapps/release/ioo/common/models:/opt/rtcds/userapps/release/ioo/common/src:/opt/rtcds/userapps/release/imc/k1/models:/opt/rtcds/userapps/release/imc/k1/models/lib:/opt/rtcds/userapps/release/imc/common/models:/opt/rtcds/userapps/release/imc/common/src:/opt/rtcds/userapps/release/psl/k1/models:/opt/rtcds/userapps/release/psl/k1/models/lib:/opt/rtcds/userapps/release/psl/common/models:/opt/rtcds/userapps/release/psl/common/src:/opt/rtcds/userapps/release/asc/k1/models:/opt/rtcds/userapps/release/asc/k1/models/lib:/opt/rtcds/userapps/release/asc/common/models:/opt/rtcds/userapps/release/asc/common/src:/opt/rtcds/userapps/release/lsc/k1/models:/opt/rtcds/userapps/release/lsc/k1/models/lib:/opt/rtcds/userapps/release/lsc/common/models:/opt/rtcds/userapps/release/lsc/common/src:/opt/rtcds/rtscore/release/src/epics/simLink:/opt/rtcds/rtscore/release/src/epics/simLink/lib:/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/epics/simLink Generating Firm Real-time code for patched vanilla Linux kernel file out is k1psl Lexically parsed the model file successfully Starting node processing Found a library reference fss/FSS Library model file found /opt/rtcds/userapps/release/psl/common/models/fss.mdl RCG_LIB_PATH=:/opt/rtcds/userapps/release/cds/k1/models:/opt/rtcds/userapps/release/cds/k1/models/lib:/opt/rtcds/userapps/release/cds/common/models:/opt/rtcds/userapps/release/cds/common/src:/opt/rtcds/userapps/release/isc/k1/models:/opt/rtcds/userapps/release/isc/k1/models/lib:/opt/rtcds/userapps/release/isc/common/models:/opt/rtcds/userapps/release/isc/common/src:/opt/rtcds/userapps/release/vis/k1/models:/opt/rtcds/userapps/release/vis/k1/models/lib:/opt/rtcds/userapps/release/vis/common/models:/opt/rtcds/userapps/release/vis/common/src:/opt/rtcds/userapps/release/ioo/k1/models:/opt/rtcds/userapps/release/ioo/k1/models/lib:/opt/rtcds/userapps/release/ioo/common/models:/opt/rtcds/userapps/release/ioo/common/src:/opt/rtcds/userapps/release/imc/k1/models:/opt/rtcds/userapps/release/imc/k1/models/lib:/opt/rtcds/userapps/release/imc/common/models:/opt/rtcds/userapps/release/imc/common/src:/opt/rtcds/userapps/release/psl/k1/models:/opt/rtcds/userapps/release/psl/k1/models/lib:/opt/rtcds/userapps/release/psl/common/models:/opt/rtcds/userapps/release/psl/common/src:/opt/rtcds/userapps/release/asc/k1/models:/opt/rtcds/userapps/release/asc/k1/models/lib:/opt/rtcds/userapps/release/asc/common/models:/opt/rtcds/userapps/release/asc/common/src:/opt/rtcds/userapps/release/lsc/k1/models:/opt/rtcds/userapps/release/lsc/k1/models/lib:/opt/rtcds/userapps/release/lsc/common/models:/opt/rtcds/userapps/release/lsc/common/src:/opt/rtcds/rtscore/release/src/epics/simLink:/opt/rtcds/rtscore/release/src/epics/simLink/lib:/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/epics/simLink Found the library model /opt/rtcds/userapps/release/psl/common/models/fss.mdl Lexically parsed the model file successfully Found a library reference pmc/PMC Library model file found /opt/rtcds/userapps/release/psl/common/models/pmc.mdl RCG_LIB_PATH=:/opt/rtcds/userapps/release/cds/k1/models:/opt/rtcds/userapps/release/cds/k1/models/lib:/opt/rtcds/userapps/release/cds/common/models:/opt/rtcds/userapps/release/cds/common/src:/opt/rtcds/userapps/release/isc/k1/models:/opt/rtcds/userapps/release/isc/k1/models/lib:/opt/rtcds/userapps/release/isc/common/models:/opt/rtcds/userapps/release/isc/common/src:/opt/rtcds/userapps/release/vis/k1/models:/opt/rtcds/userapps/release/vis/k1/models/lib:/opt/rtcds/userapps/release/vis/common/models:/opt/rtcds/userapps/release/vis/common/src:/opt/rtcds/userapps/release/ioo/k1/models:/opt/rtcds/userapps/release/ioo/k1/models/lib:/opt/rtcds/userapps/release/ioo/common/models:/opt/rtcds/userapps/release/ioo/common/src:/opt/rtcds/userapps/release/imc/k1/models:/opt/rtcds/userapps/release/imc/k1/models/lib:/opt/rtcds/userapps/release/imc/common/models:/opt/rtcds/userapps/release/imc/common/src:/opt/rtcds/userapps/release/psl/k1/models:/opt/rtcds/userapps/release/psl/k1/models/lib:/opt/rtcds/userapps/release/psl/common/models:/opt/rtcds/userapps/release/psl/common/src:/opt/rtcds/userapps/release/asc/k1/models:/opt/rtcds/userapps/release/asc/k1/models/lib:/opt/rtcds/userapps/release/asc/common/models:/opt/rtcds/userapps/release/asc/common/src:/opt/rtcds/userapps/release/lsc/k1/models:/opt/rtcds/userapps/release/lsc/k1/models/lib:/opt/rtcds/userapps/release/lsc/common/models:/opt/rtcds/userapps/release/lsc/common/src:/opt/rtcds/rtscore/release/src/epics/simLink:/opt/rtcds/rtscore/release/src/epics/simLink/lib:/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/epics/simLink Found the library model /opt/rtcds/userapps/release/psl/common/models/pmc.mdl Lexically parsed the model file successfully Merged 2 references Merged 0 references Merged library referenes Target host name is set to k1ioo Site is set to K1 Rate set to 16K Dcu Id is set to 30 GDS node id is set to 30 Shared memory DAQ connection (No Myrinet) FE will run on CPU 4 FE will run as SLAVE to IOP Flattening the model Top-level subsystem FSS Processing output port #1 name=TempLoopOn Line SrcPort 3 ZOrder 9 DstBlock TempLoopOn DstPort 1 SrcBlock Demux6 Processing output port #2 name=ODC_LOOPSTATE Line SrcPort 1 ZOrder 14 DstBlock ODC_LOOPSTATE DstPort 1 SrcBlock STATE Processing output port #3 name=CGI Line SrcPort 4 ZOrder 6 DstBlock CGI DstPort 1 SrcBlock Demux6 Points [55, 0; 0, 15] Processing output port #4 name=Loop Line SrcPort 1 ZOrder 8 DstBlock Loop DstPort 1 SrcBlock Choice2 Processing output port #1 name=PztRamp Line SrcPort 1 ZOrder 4 DstBlock PztRamp DstPort 1 SrcBlock Demux2 Points [15, 0; 0, -70] Processing output port #2 name=PztRampModePos Line SrcPort 1 ZOrder 3 DstBlock PztRampModePos DstPort 1 SrcBlock RAMP_MODEPOS Processing output port #3 name=PztRampPhase Line SrcPort 4 ZOrder 1 DstBlock PztRampPhase DstPort 1 SrcBlock Demux2 Points [20, 0; 0, 80] Processing output port #1 name=NPRO_Temp Branch ZOrder 65 DstBlock NPRO_Temp DstPort 1 Processing output port #2 name=GoodTemp Line SrcPort 2 ZOrder 16 DstBlock GoodTemp DstPort 1 SrcBlock Demux3 Top-level subsystem PMC Processing output port #1 name=TempLoopOn Line SrcPort 3 ZOrder 9 DstBlock TempLoopOn DstPort 1 SrcBlock Demux6 Processing output port #2 name=ODC_LOOPSTATE Line SrcPort 1 ZOrder 14 DstBlock ODC_LOOPSTATE DstPort 1 SrcBlock STATE Processing output port #3 name=CGI Line SrcPort 4 ZOrder 6 DstBlock CGI DstPort 1 SrcBlock Demux6 Points [55, 0; 0, 15] Processing output port #4 name=Loop Line SrcPort 1 ZOrder 8 DstBlock Loop DstPort 1 SrcBlock Choice2 Processing output port #1 name=PztRamp Line SrcPort 1 ZOrder 4 DstBlock PztRamp DstPort 1 SrcBlock Demux2 Points [15, 0; 0, -70] Processing output port #2 name=PztRampModePos Line SrcPort 1 ZOrder 3 DstBlock PztRampModePos DstPort 1 SrcBlock RAMP_MODEPOS Processing output port #3 name=PztRampPhase Line SrcPort 4 ZOrder 1 DstBlock PztRampPhase DstPort 1 SrcBlock Demux2 Points [20, 0; 0, 80] Processing output port #1 name=PMC_Temp Branch ZOrder 65 DstBlock PMC_Temp DstPort 1 Processing output port #2 name=GoodTemp Line SrcPort 2 ZOrder 16 DstBlock GoodTemp DstPort 1 SrcBlock Demux3 Finished flattening the model Removed Tags Removed Busses ADC 0; type='GSC_16AI64SSA'; num=0 DAC PART TYPE description `type=GSC_16AO16,\ncard_num=0 ' DAC PART TYPE GSC_16AO16 DAC 0; type=GSC_16AO16; num=0 Found 1 ADCs 382 parts 2 subsystems Total parts to process 188 Found 2 subsystems Found 1 ADC modules part is 0 Found 1 DAC modules part is 4 Found 1 Binary modules part is 3 MAX_ADC_MODULES=12 MAX_DAC_MODULES=12 SUB 0 has 156 parts ******************* Found 63 Inputs for subsystem 0 with 91 parts********************************* ********************* Parts remaining = 0 SUB 1 has 167 parts ******************* Found 69 Inputs for subsystem 1 with 92 parts********************************* ********************* Parts remaining = 0 Subsystem 0 FSS Subsystem 1 PMC first pass done 12 2 Counted 239 parts out of total 239 Version = 3398M Length = 6 Found 1 ADC modules part is 0 Found 1 DAC modules part is 4 opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl opening file ../../../build/k1pslepics/medm/K1PSL_IPC_STATUS.adl make[1]: Entering directory `/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3' (cd src/epics/fmseq; \ cat k1psl | cpp -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 - | grep -v ^# | /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/epics/util/fmseq.pl k1psl &&\ mv k1psl.* ../../../build/k1pslepics) top_names are FEC systems are PSL- testpoints are MDAC0_TP_CH0 MDAC0_TP_CH1 MDAC0_TP_CH2 MDAC0_TP_CH3 MDAC0_TP_CH4 MDAC0_TP_CH5 MDAC0_TP_CH6 MDAC0_TP_CH7 MDAC0_TP_CH8 MDAC0_TP_CH9 MDAC0_TP_CH10 MDAC0_TP_CH11 MDAC0_TP_CH12 MDAC0_TP_CH13 MDAC0_TP_CH14 MDAC0_TP_CH15 GDS NODE 30 34 filters 0 matrices /usr/bin/gcc -x c -E -P -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 build/k1pslepics/k1psl.st > build/k1pslepics/k1psl.i /opt/rtapps/epics/modules/sncseq/bin/linux-x86_64/snc +a -c -w build/k1pslepics/k1psl.i -o build/k1pslepics/k1psl.c echo 'registrar('`basename build/k1pslepics/k1psl`'Registrar)' > build/k1pslepics/k1psl.dbd cat /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/epics/dbd/a.dbd build/k1pslepics/*.dbd > build/k1pslepics/full.dbd /opt/rtapps/epics/base/bin/linux-x86_64/registerRecordDeviceDriver.pl build/k1pslepics/full.dbd registerRecordDeviceDriver > build/k1pslepics/registerRecordDeviceDriver.cc /bin/rm -f build/k1pslepics/full.dbd cc -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 -c -o build/k1pslepics/k1psl.o build/k1pslepics/k1psl.c cc -c -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/drv/rfm.c -o build/k1pslepics/rfm.o cc -c -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/drv/param.c -o build/k1pslepics/param.o cc -c -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/drv/crc.c -o build/k1pslepics/crc.o cc -c -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/drv/fmReadCoeff.c -o build/k1pslepics/fmReadCoeff.o cc -c -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/drv/sync.c -o build/k1pslepics/sync.o cc -c -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/epics/seq/main.c -o build/k1pslepics/main.o g++ -DK1PSL_CODE -DFE_HEADER=\"k1psl.h\" -I/opt/rtapps/epics/base/include/os/Linux -I/opt/rtapps/epics/base/include -I/opt/rtapps/epics/modules/sncseq/include -I/opt/rtapps/epics/extensions/include -I/usr/lib/rmnet -I/usr/lib/rfm2g -Isrc/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include -I/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/include/drv -I/usr/lib64 -DRFM_EPICS -DNO_FM10GEN_C_CODE -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -DOSITHREAD_USE_DEFAULT_STACK -D_X86_ -DUNIX -D_BSD_SOURCE -Dlinux -D_REENTRANT -g -fPIC -DNO_RTL=1 -c -o build/k1pslepics/registerRecordDeviceDriver.o build/k1pslepics/registerRecordDeviceDriver.cc g++ -o build/k1pslepics/k1pslepics build/k1pslepics/k1psl.o build/k1pslepics/rfm.o build/k1pslepics/param.o build/k1pslepics/crc.o build/k1pslepics/fmReadCoeff.o build/k1pslepics/sync.o build/k1pslepics/main.o build/k1pslepics/registerRecordDeviceDriver.o -lezca -g -L/opt/rtapps/epics/base/lib/linux-x86_64 -L/opt/rtapps/epics/modules/sncseq/lib/linux-x86_64 -L/opt/rtapps/epics/extensions/lib/linux-x86_64 -lseq -lseqDev -lpv -lsoftDevIoc -lrecIoc -ltestDevIoc -lrecIoc -lmiscIoc -lrsrvIoc -ldbtoolsIoc -lasIoc -ldbIoc -lregistryIoc -ldbStaticIoc -lca -lCom -lpthread -lreadline -lcurses -lrt sed 's/%SYS%/PSL/g;s/%SUBSYS%//g' build/k1pslepics/k1psl.db > build/k1pslepics/k1psl1.db mkdir -p target/k1pslepics/db cp build/k1pslepics/k1pslepics target/k1pslepics /bin/rm -f target/k1pslepics/db/*/autoBurt.req /bin/rm -f target/k1pslepics/db/*/auto.ini for ifo in K1 ; do \ system=`echo k1psl | tr a-z A-Z | cut -c1-3`; \ ifo0=`echo $ifo | sed 's/[0-9]/0/g'`; \ mkdir -p target/k1pslepics/db/$ifo; \ echo "#!/bin/sh" > target/k1pslepics/startup$ifo; \ echo "if fuser -s ioc$ifo.log; then" >> target/k1pslepics/startup$ifo; \ echo "echo Another copy of Epics process running already\!" >> target/k1pslepics/startup$ifo; \ echo "exit 1" >> target/k1pslepics/startup$ifo; \ echo "fi" >> target/k1pslepics/startup$ifo; \ echo ./k1pslepics k1pslepics$ifo.cmd \> ioc$ifo.log 2\>\&1 \& >> target/k1pslepics/startup$ifo ; \ echo echo k1pslepics $ifo IOC Server started >> target/k1pslepics/startup$ifo ; \ chmod +x target/k1pslepics/startup$ifo ; \ /bin/rm -f target/k1pslepics/k1pslepics$ifo.cmd ; \ echo "dbLoadDatabase \"base.dbd\"" >> target/k1pslepics/k1pslepics$ifo.cmd; \ echo 'registerRecordDeviceDriver(pdbbase)' >> target/k1pslepics/k1pslepics$ifo.cmd ; \ echo '[default]' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'gain=1.00' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'datatype=4' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'ifoid=0' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'slope=6.1028e-05' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'acquire=1' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'offset=0' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'units=V' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'dcuid=4' >> target/k1pslepics/db/$ifo/auto.ini; \ echo 'datarate=16' >> target/k1pslepics/db/$ifo/auto.ini; \ echo '' >> target/k1pslepics/db/$ifo/auto.ini; \ for i in build/k1pslepics/k1psl1.db ; do \ cat $i | sed s/%IFO%/$ifo/g\;s/%IFO0%/$ifo0/g\;s/%SYS%/$system/g > target/k1pslepics/db/$ifo/`basename $i`; \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep 'record\(ao|record\(stringout' | sed 's/.*"\(.*\)\".*/\1/g' | awk '{ printf "RO %s\n", $0 }' >> target/k1pslepics/db/$ifo/autoBurt.req; \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep 'record\(stringin' | sed 's/.*"\(.*\)\".*/\1/g' | awk '{ printf "%s\n", $0 }' >> target/k1pslepics/db/$ifo/autoBurt.req; \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep 'record\(ao' | sed 's/.*"\(.*\)\".*/\1/g' | awk '{ printf "%s.HSV\n%s.LSV\n%s.HIGH\n%s.LOW\n", $0, $0, $0, $0 }' >> target/k1pslepics/db/$ifo/autoBurt.req; \ \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep 'record\(bo|record\(bi' | sed 's/.*"\(.*\)\".*/\1/g' >> target/k1pslepics/db/$ifo/autoBurt.req; \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep 'record\(bo|record\(bi' | sed 's/.*"\(.*\)\".*/\1/g' | awk '{ printf "%s.OSV\n%s.ZSV\n", $0, $0 }' >> target/k1pslepics/db/$ifo/autoBurt.req; \ \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep -v 'record\(ao|record\(string|record\(bi|record\(bo'| sed 's/.*"\(.*\)\".*/\1/g' >> target/k1pslepics/db/$ifo/autoBurt.req; \ grep record target/k1pslepics/db/$ifo/`basename $i` | egrep -v 'record\(ao|record\(string|record\(bi|record\(bo' | sed 's/.*"\(.*\)\".*/\1/g' | awk '{ printf "%s.HSV\n%s.LSV\n%s.HIGH\n%s.LOW\n", $0 , $0, $0, $0 }' >> target/k1pslepics/db/$ifo/autoBurt.req; \ \ grep record target/k1pslepics/db/$ifo/`basename $i` | sed 's/.*"\(.*\)\".*/\1/g' | egrep -v 'VME_Reset|SEVERITY|MAJOR_COUNT|MINOR_COUNT|SETPOINT_ID|FILTER_PARAM|GDS_MON|FESTAT|STATUS_COUNT|FILTER_ID|MTRXSTAT|MTRX_STAT_ERR|_MSG|_TIME_STRING|_STAT_ERR_CNT|BURT|LOAD_CONFIG|VME_RES|LOAD_NEW_COEFF|DIAG_RESET|SYNC_RESET|TOTAL$|Name' | awk '{ printf "[%s]\n", $0 }' >> target/k1pslepics/db/$ifo/auto.ini; \ echo "dbLoadRecords \"db/${ifo}/`basename $i`\"" >> target/k1pslepics/k1pslepics$ifo.cmd; \ echo -n 'epicsEnvSet PREFIX '>> target/k1pslepics/k1pslepics$ifo.cmd; \ grep _GRD_RB_STAT0 target/k1pslepics/db/$ifo/`basename $i` | head -1 | sed 's/[^"]*"\([^"]*\)_GRD_RB_STAT0.*/\1/g' >> target/k1pslepics/k1pslepics$ifo.cmd; \ done ; \ done for ifo in K1 ; do \ echo "iocInit" >> target/k1pslepics/k1pslepics$ifo.cmd ; \ for i in 'k1psl,("ifo=K1, site=kamioka, sys=PSL, sysnum=30, sysfile=K1PSL ")' ; do \ echo "seq &$i" | sed s/%IFO%/$ifo/g\;s/%SITE%/`if test $ifo = L1 ; then echo llo ; else echo lho ; fi`/g >> target/k1pslepics/k1pslepics$ifo.cmd; \ done ; \ done for i in ; do \ echo "seq &$i" | sed s/%IFO%/H1/g\;s/%SITE%/lho/g >> target/k1pslepics/k1pslepicsH1.cmd; \ done for i in ; do \ echo "seq &$i" | sed s/%IFO%/H2/g\;s/%SITE%/lho/g >> target/k1pslepics/k1pslepicsH2.cmd; \ done for i in ; do \ echo "seq &$i" | sed s/%IFO%/L1/g\;s/%SITE%/llo/g >> target/k1pslepics/k1pslepicsL1.cmd; \ done echo 'This is generated directory. Please make changes in CVS and reinstall from scratch.' > target/k1pslepics/README.making_changes echo 'Changes made to files in this directory will be lost.' >> target/k1pslepics/README.making_changes echo >> target/k1pslepics/README.making_changes echo 'Built on date' `date` >> target/k1pslepics/README.making_changes make[1]: Leaving directory `/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3' make[1]: Entering directory `/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/fe/k1psl' make -C /lib/modules/3.0.8/build SUBDIRS=/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/fe/k1psl modules make[2]: Entering directory `/usr/src/linux-3.0.8' CC [M] /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/fe/k1psl/k1psl.o Building modules, stage 2. MODPOST 1 modules CC /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/fe/k1psl/k1psl.mod.o LD [M] /opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/fe/k1psl/k1psl.ko make[2]: Leaving directory `/usr/src/linux-3.0.8' make[1]: Leaving directory `/opt/rtcds/rtscore/tags/advLigoRTS-2.6.3/src/fe/k1psl'