Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.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_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 112 kB / 17.14 MB, free: 5.938 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.001015/0.001015, allocations: 198.1 kB / 18.06 MB, free: 5.023 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.287/1.287, allocations: 222.9 MB / 241.8 MB, free: 15.09 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.07164/0.07164, allocations: 12.05 MB / 304 MB, free: 3.094 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 63.91 kB / 420.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07765/0.07887, allocations: 52.32 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.003793/0.0827, allocations: 2.713 MB / 475.8 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001163/0.08388, allocations: 0.7083 MB / 476.5 MB, free: 9.406 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.589e-05/0.08398, allocations: 7.938 kB / 476.5 MB, free: 9.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002348/0.08422, allocations: 63.34 kB / 476.6 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000151/0.08438, allocations: 51.59 kB / 476.6 MB, free: 9.285 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.0005048/0.0849, allocations: 207.4 kB / 476.8 MB, free: 9.082 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.08522, allocations: 303.2 kB / 477.1 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.08551, allocations: 192.6 kB / 477.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001321/0.08565, allocations: 135.5 kB / 477.4 MB, free: 8.461 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001943/0.08585, allocations: 171.2 kB / 477.6 MB, free: 8.293 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.075e-05/0.08591, allocations: 36 kB / 477.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002027/0.08612, allocations: 147.9 kB / 477.8 MB, free: 8.113 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.08624, allocations: 107.7 kB / 477.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001319/0.08638, allocations: 163.1 kB / 478 MB, free: 7.848 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.08685, allocations: 0.4906 MB / 478.5 MB, free: 7.355 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.08686, allocations: 7.938 kB / 478.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.08687, allocations: 0 / 478.5 MB, free: 7.348 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.08688, allocations: 3.938 kB / 478.5 MB, free: 7.344 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001152/0.08804, allocations: 0.8457 MB / 479.4 MB, free: 6.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.08808, allocations: 8.031 kB / 479.4 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.07e-05/0.08817, allocations: 44.41 kB / 479.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.08846, allocations: 271.8 kB / 479.7 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.042e-05/0.08849, allocations: 29.02 kB / 479.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.55e-05/0.08855, allocations: 28.38 kB / 479.8 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005552/0.08911, allocations: 368.2 kB / 480.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.281e-05/0.08913, allocations: 192 / 480.1 MB, free: 5.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.574e-05/0.08917, allocations: 19.92 kB / 480.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.08919, allocations: 8 kB / 480.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003367/0.08953, allocations: 188.7 kB / 480.3 MB, free: 5.418 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001228/0.09076, allocations: 1.173 MB / 481.5 MB, free: 4.176 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004256/0.0912, allocations: 262.4 kB / 481.8 MB, free: 3.883 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002087/0.09142, allocations: 119.4 kB / 481.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.83e-05/0.09146, allocations: 11.98 kB / 481.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.09174, allocations: 201.5 kB / 482.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 2.004e-06/0.09175, allocations: 0 / 482.1 MB, free: 3.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008017/0.09256, allocations: 461 kB / 482.5 MB, free: 3.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.742e-05/0.09264, allocations: 148.5 kB / 482.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.09283, allocations: 211 kB / 482.9 MB, free: 2.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.209e-05/0.09287, allocations: 37.7 kB / 482.9 MB, free: 2.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001432/0.09302, allocations: 180.2 kB / 483.1 MB, free: 2.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.43e-05/0.09309, allocations: 75.08 kB / 483.2 MB, free: 2.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001191/0.09322, allocations: 94.11 kB / 483.3 MB, free: 2.273 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001175/0.09334, allocations: 338.8 kB / 483.6 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.09352, allocations: 92.81 kB / 483.7 MB, free: 1.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002794/0.0938, allocations: 247.1 kB / 483.9 MB, free: 1.531 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004396/0.09425, allocations: 370.8 kB / 484.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.09427, allocations: 7.938 kB / 484.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005845/0.09485, allocations: 376.7 kB / 484.7 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.09488, allocations: 8 kB / 484.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.0949, allocations: 8 kB / 484.7 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.717e-05/0.09492, allocations: 8.578 kB / 484.7 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.09512, allocations: 63.91 kB / 484.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.637e-05/0.09515, allocations: 15.86 kB / 484.8 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001395/0.09529, allocations: 35.69 kB / 484.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.547e-05/0.09533, allocations: 16 kB / 484.8 MB, free: 0.5664 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 42 (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.pkgOut[1].backwardTrigger,addInteger.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],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,getReal.pkgOut[1].trigger,$whenCondition1,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 (49): * Single equations (assignments): 49 * 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.00019/0.09552, allocations: 199.7 kB / 485 MB, free: 372 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.41e-05/0.09557, allocations: 19.81 kB / 485 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003214/0.0959, allocations: 195.3 kB / 485.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.09592, allocations: 0 / 485.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.09593, allocations: 0 / 485.2 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.59e-05/0.09599, allocations: 108.7 kB / 485.3 MB, free: 20 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.09603, allocations: 12 kB / 485.3 MB, free: 8 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.826e-05/0.09614, allocations: 12.03 kB / 485.4 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.48e-05/0.09619, allocations: 15.88 kB / 485.4 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006724/0.09687, allocations: 0.667 MB / 486 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006671/0.09755, allocations: 0.7554 MB / 486.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001872/0.09774, allocations: 123.9 kB / 486.9 MB, free: 14.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.645e-05/0.09784, allocations: 128.1 kB / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of Backend: time 2.1e-07/0.09785, allocations: 0 / 487 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001336/0.09919, allocations: 456 kB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of SimCode: time 0.000937/0.1001, allocations: 0.9043 MB / 488.4 MB, free: 12.94 MB / 366.1 MB Notification: Performance of Templates: time 0.00763/0.1078, allocations: 4.071 MB / 492.5 MB, free: 8.906 MB / 366.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory.pipe 2>&1)