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.001501/0.001501, allocations: 111.6 kB / 17.14 MB, free: 5.914 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.001705/0.001705, allocations: 195.3 kB / 18.08 MB, free: 4.988 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.321/1.321, allocations: 222.9 MB / 241.8 MB, free: 15.08 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.05925/0.05925, allocations: 12.05 MB / 304 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002161/0.002161, allocations: 63.91 kB / 420.8 MB, free: 17.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1099, allocations: 52.3 MB / 473.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.003738/0.1136, allocations: 2.72 MB / 475.8 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.1148, allocations: 0.7083 MB / 476.5 MB, free: 9.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.739e-05/0.1149, allocations: 7.938 kB / 476.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002175/0.1151, allocations: 63.41 kB / 476.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001445/0.1153, allocations: 47.58 kB / 476.6 MB, free: 9.395 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.0005002/0.1158, allocations: 215.4 kB / 476.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003106/0.1161, allocations: 307.2 kB / 477.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.1164, allocations: 184.7 kB / 477.3 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.1165, allocations: 147.5 kB / 477.4 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001892/0.1167, allocations: 167.2 kB / 477.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.215e-05/0.1168, allocations: 32 kB / 477.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000201/0.117, allocations: 143.9 kB / 477.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001077/0.1171, allocations: 111.6 kB / 477.9 MB, free: 8.109 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001296/0.1172, allocations: 159.1 kB / 478 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.1177, allocations: 0.5018 MB / 478.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.1177, allocations: 0 / 478.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1178, allocations: 0 / 478.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.157e-06/0.1178, allocations: 7.938 kB / 478.6 MB, free: 7.441 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.001095/0.1189, allocations: 0.8644 MB / 479.4 MB, free: 6.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.1189, allocations: 8.031 kB / 479.4 MB, free: 6.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.642e-05/0.119, allocations: 44.69 kB / 479.5 MB, free: 6.457 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002628/0.1193, allocations: 279.8 kB / 479.7 MB, free: 6.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.107e-05/0.1193, allocations: 25.03 kB / 479.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.1194, allocations: 32.36 kB / 479.8 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005597/0.1199, allocations: 364.2 kB / 480.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1199, allocations: 4.188 kB / 480.2 MB, free: 5.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.052e-05/0.12, allocations: 15.94 kB / 480.2 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.12, allocations: 4 kB / 480.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003415/0.1203, allocations: 192.7 kB / 480.4 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.1215, allocations: 1.173 MB / 481.5 MB, free: 4.25 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000433/0.122, allocations: 254.4 kB / 481.8 MB, free: 3.965 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001828/0.1222, allocations: 123.4 kB / 481.9 MB, free: 3.832 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.429e-05/0.1222, allocations: 7.984 kB / 481.9 MB, free: 3.824 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002943/0.1225, allocations: 209.6 kB / 482.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.713e-06/0.1225, allocations: 0 / 482.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.0008241/0.1234, allocations: 457.2 kB / 482.6 MB, free: 3.141 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.364e-05/0.1234, allocations: 144.5 kB / 482.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.1236, allocations: 219.1 kB / 482.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.187e-05/0.1237, allocations: 41.7 kB / 483 MB, free: 2.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.966e-05/0.1238, allocations: 176.6 kB / 483.1 MB, free: 2.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.2e-05/0.1239, allocations: 75.42 kB / 483.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.124, allocations: 98.09 kB / 483.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001077/0.1241, allocations: 342.8 kB / 483.6 MB, free: 2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001688/0.1243, allocations: 88.83 kB / 483.7 MB, free: 1.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002521/0.1245, allocations: 247.1 kB / 484 MB, free: 1.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004406/0.125, allocations: 366.8 kB / 484.3 MB, free: 1.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.125, allocations: 4 kB / 484.3 MB, free: 1.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005847/0.1256, allocations: 392.8 kB / 484.7 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.1256, allocations: 4 kB / 484.7 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.1256, allocations: 8 kB / 484.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.1256, allocations: 8 kB / 484.7 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001953/0.1258, allocations: 52.5 kB / 484.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.436e-05/0.1259, allocations: 23.86 kB / 484.8 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001346/0.126, allocations: 31.78 kB / 484.8 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.777e-05/0.126, allocations: 20 kB / 484.9 MB, free: 0.6367 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.0001846/0.1262, allocations: 199.6 kB / 485.1 MB, free: 444 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/0.1263, allocations: 27.84 kB / 485.1 MB, free: 416 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003214/0.1266, allocations: 195.3 kB / 485.3 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/0.1266, allocations: 0 / 485.3 MB, free: 212 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.998e-06/0.1266, allocations: 4 kB / 485.3 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.697e-05/0.1267, allocations: 100.8 kB / 485.4 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.399e-05/0.1267, allocations: 11.98 kB / 485.4 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.563e-05/0.1268, allocations: 8 kB / 485.4 MB, free: 68 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.1269, allocations: 23.91 kB / 485.4 MB, free: 44 kB / 350.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0006876/0.1276, allocations: 0.6586 MB / 486.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0006842/0.1283, allocations: 0.7594 MB / 486.8 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001836/0.1284, allocations: 119.9 kB / 487 MB, free: 14.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.295e-05/0.1285, allocations: 124.1 kB / 487.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of Backend: time 3.31e-07/0.1285, allocations: 4 kB / 487.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.1299, allocations: 461.3 kB / 487.5 MB, free: 13.96 MB / 366.1 MB Notification: Performance of SimCode: time 0.0008924/0.1308, allocations: 0.9086 MB / 488.4 MB, free: 13 MB / 366.1 MB Notification: Performance of Templates: time 0.007461/0.1382, allocations: 4.071 MB / 492.5 MB, free: 8.965 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)