Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001499/0.001499, allocations: 112.8 kB / 17.14 MB, free: 5.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001762/0.001763, allocations: 191.3 kB / 18.07 MB, free: 5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.297/1.297, allocations: 222.9 MB / 241.8 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05794/0.05794, allocations: 12.04 MB / 304 MB, free: 3.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 64.14 kB / 420.8 MB, free: 17.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07718/0.07841, allocations: 52.33 MB / 473.1 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger): time 0.004568/0.08301, allocations: 2.796 MB / 475.9 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001472/0.08451, allocations: 0.7434 MB / 476.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001663/0.08469, allocations: 7.938 kB / 476.6 MB, free: 9.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00028/0.08498, allocations: 67.34 kB / 476.7 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002172/0.08523, allocations: 51.58 kB / 476.7 MB, free: 9.133 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1206:7-1215:28:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.writeSharedMemory' contains a call to impure function 'Modelica_DeviceDrivers.Communication.SharedMemory_.write'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:74:7-84:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1196:7-1204:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.readSharedMemory' contains a call to impure function 'Modelica_DeviceDrivers.Communication.SharedMemory_.read'. Notification: Performance of NFTyping.typeClassSections: time 0.0006657/0.0859, allocations: 227.4 kB / 477 MB, free: 8.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003975/0.08631, allocations: 327.1 kB / 477.3 MB, free: 8.59 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000314/0.08663, allocations: 196.9 kB / 477.5 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000189/0.08683, allocations: 155.5 kB / 477.6 MB, free: 8.238 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000253/0.08709, allocations: 187.1 kB / 477.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.03e-05/0.08717, allocations: 36 kB / 477.8 MB, free: 8.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002414/0.08742, allocations: 147.9 kB / 478 MB, free: 7.875 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.08756, allocations: 107.7 kB / 478.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.08773, allocations: 183 kB / 478.3 MB, free: 7.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005835/0.08832, allocations: 0.5177 MB / 478.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.08833, allocations: 0 / 478.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08834, allocations: 0 / 478.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.08835, allocations: 0 / 478.8 MB, free: 7.07 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addReal.pkgIn.pkg getReal.pkgOut[1].pkg = getInteger.pkgIn.pkg sharedMemoryRead.pkgOut.pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = sharedMemoryWrite.pkgIn.pkg addReal.pkgOut[1].pkg = addInteger.pkgIn.pkg packager.pkgOut.pkg = addReal.pkgIn.pkg Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001346/0.0897, allocations: 0.8703 MB / 479.7 MB, free: 6.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.08974, allocations: 12.03 kB / 479.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.238e-05/0.08984, allocations: 36.47 kB / 479.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.09016, allocations: 291.6 kB / 480 MB, free: 5.758 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.0902, allocations: 25.03 kB / 480 MB, free: 5.734 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.92e-05/0.09028, allocations: 36.36 kB / 480.1 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.09091, allocations: 395.8 kB / 480.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.09093, allocations: 192 / 480.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.85e-05/0.09098, allocations: 19.92 kB / 480.5 MB, free: 5.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/0.091, allocations: 16 kB / 480.5 MB, free: 5.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003845/0.09139, allocations: 216.5 kB / 480.7 MB, free: 5.047 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001478/0.09288, allocations: 1.311 MB / 482 MB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004342/0.09333, allocations: 281.1 kB / 482.3 MB, free: 3.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001929/0.09353, allocations: 139.2 kB / 482.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.09356, allocations: 4 kB / 482.4 MB, free: 3.188 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003288/0.0939, allocations: 232.6 kB / 482.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 2.024e-06/0.09391, allocations: 0 / 482.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008982/0.09482, allocations: 488.9 kB / 483.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.82e-05/0.09491, allocations: 170.2 kB / 483.3 MB, free: 2.242 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002385/0.09516, allocations: 231.8 kB / 483.5 MB, free: 2.004 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.065e-05/0.09521, allocations: 45.69 kB / 483.6 MB, free: 1.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.09534, allocations: 188.4 kB / 483.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.979e-05/0.09541, allocations: 75.02 kB / 483.8 MB, free: 1.688 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.09556, allocations: 110.2 kB / 483.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.0957, allocations: 342.8 kB / 484.3 MB, free: 1.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001972/0.0959, allocations: 105.1 kB / 484.4 MB, free: 1.129 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002985/0.09621, allocations: 282 kB / 484.6 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004883/0.0967, allocations: 392.2 kB / 485 MB, free: 332 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.09672, allocations: 4 kB / 485 MB, free: 328 kB / 350.1 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006883/0.09741, allocations: 429.2 kB / 485.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.09744, allocations: 11.98 kB / 485.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.245e-06/0.09746, allocations: 8.031 kB / 485.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.804e-05/0.09748, allocations: 8 kB / 485.5 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002297/0.09772, allocations: 63.84 kB / 485.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.09774, allocations: 15.92 kB / 485.5 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001617/0.09791, allocations: 35.69 kB / 485.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.715e-05/0.09795, allocations: 23.98 kB / 485.6 MB, free: 15.73 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 50 (sharedMemoryRead.pkgOut.dummy,$PRE.sharedMemoryRead.pkgOut.dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],getReal.dummy,$PRE.getReal.dummy,getReal.y[3],$PRE.getReal.y[3],getReal.y[2],$PRE.getReal.y[2],getReal.y[1],$PRE.getReal.y[1],getReal.pkgOut[1].dummy,$PRE.getReal.pkgOut[1].dummy,sharedMemoryWrite.dummy,$PRE.sharedMemoryWrite.dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addInteger.u[1],sharedMemoryRead.internalTrigger,sharedMemoryWrite.internalTrigger,enable.y,zeroCrossing1.enable,$PRE.zeroCrossing1.enable,zeroCrossing1.disable,$PRE.zeroCrossing1.disable,zeroCrossing1.u_pos,$PRE.zeroCrossing1.u_pos,getReal.pkgOut[1].trigger,addInteger.pkgOut[1].trigger,$whenCondition1,$whenCondition2,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,sharedMemoryRead.bufferSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,sharedMemoryWrite.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002047/0.09816, allocations: 211 kB / 485.8 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.821e-05/0.09823, allocations: 23.72 kB / 485.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004858/0.09872, allocations: 294.2 kB / 486.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.09874, allocations: 7.922 kB / 486.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.09875, allocations: 4 kB / 486.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.369e-05/0.0988, allocations: 104.8 kB / 486.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.779e-05/0.09885, allocations: 8.078 kB / 486.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.775e-05/0.09894, allocations: 7.938 kB / 486.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.087e-05/0.09901, allocations: 27.97 kB / 486.3 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0007384/0.09976, allocations: 0.7595 MB / 487 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007608/0.1005, allocations: 0.8464 MB / 487.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0002047/0.1007, allocations: 127.9 kB / 488 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.1009, allocations: 123.2 kB / 488.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of Backend: time 2.2e-07/0.1009, allocations: 0 / 488.1 MB, free: 13.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001401/0.1023, allocations: 480.8 kB / 488.6 MB, free: 12.73 MB / 366.1 MB Notification: Performance of SimCode: time 0.001007/0.1033, allocations: 0.9454 MB / 489.5 MB, free: 11.74 MB / 366.1 MB Notification: Performance of Templates: time 0.008137/0.1114, allocations: 4.362 MB / 493.9 MB, free: 7.441 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemoryExternalTrigger.pipe 2>&1)