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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 186.9 kB / 16.68 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.507/1.507, allocations: 222.9 MB / 240.3 MB, free: 10.99 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 105.3 kB / 290.6 MB, free: 10.92 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.06422/0.06422, allocations: 12.03 MB / 352.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001081/0.001082, allocations: 58.84 kB / 415.8 MB, free: 53.84 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1072, allocations: 52.33 MB / 468.2 MB, free: 1.535 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_SharedMemory): time 0.004371/0.1116, allocations: 2.722 MB / 470.9 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.113, allocations: 0.7046 MB / 471.6 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001069/0.1131, allocations: 7.938 kB / 471.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002896/0.1134, allocations: 47.61 kB / 471.7 MB, free: 14.03 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.1136, allocations: 27.78 kB / 471.7 MB, free: 14 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004526/0.1141, allocations: 187.7 kB / 471.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.1144, allocations: 287.2 kB / 472.1 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1147, allocations: 176.9 kB / 472.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.1148, allocations: 127.5 kB / 472.4 MB, free: 13.24 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002244/0.1151, allocations: 175.1 kB / 472.6 MB, free: 13.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.777e-05/0.1151, allocations: 28 kB / 472.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.1153, allocations: 135.9 kB / 472.8 MB, free: 12.91 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001204/0.1155, allocations: 99.59 kB / 472.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001394/0.1156, allocations: 155.1 kB / 473 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004805/0.1161, allocations: 478.8 kB / 473.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1161, allocations: 0 / 473.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1161, allocations: 0 / 473.5 MB, free: 12.19 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.766e-06/0.1161, allocations: 0 / 473.5 MB, free: 12.19 MB / 314.7 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.001368/0.1175, allocations: 0.8419 MB / 474.3 MB, free: 11.27 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.1176, allocations: 16.03 kB / 474.3 MB, free: 11.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.207e-05/0.1177, allocations: 36.5 kB / 474.4 MB, free: 11.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003026/0.118, allocations: 283.7 kB / 474.7 MB, free: 10.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.213e-05/0.118, allocations: 21.03 kB / 474.7 MB, free: 10.89 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/0.1181, allocations: 40.36 kB / 474.7 MB, free: 10.85 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005554/0.1186, allocations: 368.2 kB / 475.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.1187, allocations: 192 / 475.1 MB, free: 10.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/0.1187, allocations: 15.94 kB / 475.1 MB, free: 10.45 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.1187, allocations: 8 kB / 475.1 MB, free: 10.44 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.119, allocations: 192.6 kB / 475.3 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.1204, allocations: 1.173 MB / 476.5 MB, free: 9.008 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004386/0.1208, allocations: 246.6 kB / 476.7 MB, free: 8.73 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.121, allocations: 123.4 kB / 476.8 MB, free: 8.598 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.121, allocations: 0 / 476.8 MB, free: 8.598 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.1213, allocations: 215.6 kB / 477 MB, free: 8.359 MB / 314.7 MB Notification: Performance of pre-optimization done (n=31): time 3.066e-06/0.1214, allocations: 0 / 477 MB, free: 8.359 MB / 314.7 MB Notification: Performance of matching and sorting (n=31): time 0.0008224/0.1222, allocations: 449.4 kB / 477.5 MB, free: 7.914 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.406e-05/0.1223, allocations: 156.4 kB / 477.6 MB, free: 7.73 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.1225, allocations: 218.9 kB / 477.8 MB, free: 7.504 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.1225, allocations: 37.7 kB / 477.9 MB, free: 7.461 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001147/0.1227, allocations: 176.2 kB / 478 MB, free: 7.281 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.763e-05/0.1227, allocations: 75.11 kB / 478.1 MB, free: 7.207 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.1229, allocations: 98.09 kB / 478.2 MB, free: 7.105 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001226/0.123, allocations: 339 kB / 478.5 MB, free: 6.766 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001568/0.1232, allocations: 88.83 kB / 478.6 MB, free: 6.68 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002517/0.1234, allocations: 247.1 kB / 478.9 MB, free: 6.367 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004321/0.1239, allocations: 371 kB / 479.2 MB, free: 5.938 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.1239, allocations: 3.938 kB / 479.2 MB, free: 5.934 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005915/0.1245, allocations: 385.2 kB / 479.6 MB, free: 5.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.1245, allocations: 11.94 kB / 479.6 MB, free: 5.539 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1245, allocations: 4 kB / 479.6 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.844e-05/0.1246, allocations: 8 kB / 479.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001914/0.1248, allocations: 55.84 kB / 479.7 MB, free: 5.473 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.1248, allocations: 15.88 kB / 479.7 MB, free: 5.457 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001287/0.1249, allocations: 31.73 kB / 479.7 MB, free: 5.426 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.1249, allocations: 20 kB / 479.8 MB, free: 5.406 MB / 314.7 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.0002058/0.1252, allocations: 199.2 kB / 480 MB, free: 5.203 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.639e-05/0.1252, allocations: 27.7 kB / 480 MB, free: 5.176 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003249/0.1255, allocations: 191 kB / 480.2 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.1256, allocations: 0 / 480.2 MB, free: 4.988 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.1256, allocations: 11.92 kB / 480.2 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.1256, allocations: 0 / 480.2 MB, free: 4.977 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009591/0.1265, allocations: 0.8331 MB / 481 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1266, allocations: 0 / 481 MB, free: 4.086 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.677e-05/0.1266, allocations: 15.92 kB / 481 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.1266, allocations: 0 / 481 MB, free: 4.07 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.1266, allocations: 11.98 kB / 481 MB, free: 4.059 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.1267, allocations: 4.094 kB / 481 MB, free: 4.055 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1267, allocations: 3.938 kB / 481.1 MB, free: 4.051 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.1278, allocations: 1.242 MB / 482.3 MB, free: 2.746 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.178e-05/0.1278, allocations: 100.8 kB / 482.4 MB, free: 2.629 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.233e-05/0.1279, allocations: 7.984 kB / 482.4 MB, free: 2.621 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.128, allocations: 8.125 kB / 482.4 MB, free: 2.613 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.989e-05/0.128, allocations: 27.86 kB / 482.4 MB, free: 2.586 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.253e-05/0.1281, allocations: 11.98 kB / 482.4 MB, free: 2.574 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.362e-05/0.1282, allocations: 132.1 kB / 482.6 MB, free: 2.445 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1282, allocations: 0 / 482.6 MB, free: 2.445 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005922/0.1288, allocations: 115.8 kB / 482.7 MB, free: 2.332 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 28 (getReal.pkgOut[1].trigger,$whenCondition1,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,sharedMemoryRead.pkgOut.dummy,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,sharedMemoryRead.bufferSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],sharedMemoryWrite.bufferSize,sharedMemoryWrite.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,sharedMemoryWrite.pkgIn.userPkgBitSize,sharedMemoryWrite.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 18 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006297/0.1294, allocations: 312.5 kB / 483 MB, free: 2.078 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004487/0.1299, allocations: 268.3 kB / 483.3 MB, free: 1.816 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1299, allocations: 1.188 kB / 483.3 MB, free: 1.816 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002006/0.1301, allocations: 119.9 kB / 483.4 MB, free: 1.699 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.1306, allocations: 58.33 kB / 483.4 MB, free: 1.645 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001261/0.1319, allocations: 0.8812 MB / 484.3 MB, free: 0.7148 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1797/0.3116, allocations: 0.7765 MB / 485.1 MB, free: 23.72 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.3119, allocations: 37.27 kB / 485.1 MB, free: 23.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.604e-05/0.3119, allocations: 27 kB / 485.2 MB, free: 23.71 MB / 314.7 MB Notification: Performance of SimCode: time 1.863e-06/0.3119, allocations: 0 / 485.2 MB, free: 23.71 MB / 314.7 MB Notification: Performance of Templates: time 0.009967/0.3219, allocations: 3.953 MB / 489.1 MB, free: 23.46 MB / 314.7 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)