Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.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_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001129/0.001129, allocations: 180 kB / 15.8 MB, free: 6.34 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.278/1.278, allocations: 223.2 MB / 239.7 MB, free: 1.773 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008281/0.000828, allocations: 82.44 kB / 290.9 MB, free: 13.95 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.05355/0.05355, allocations: 12.05 MB / 354 MB, free: 15.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003295/0.0003295, allocations: 9.875 kB / 417.9 MB, free: 87.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1012, allocations: 53.36 MB / 471.2 MB, free: 37.46 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3315/0.4328, allocations: 86.22 MB / 0.5444 GB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001995/0.433, allocations: 77.78 kB / 0.5445 GB, free: 15.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02401/0.4571, allocations: 9.784 MB / 0.554 GB, free: 30.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4571, allocations: 0 / 0.554 GB, free: 30.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.123e-05/0.4571, allocations: 19.38 kB / 0.554 GB, free: 30.46 MB / 378.7 MB Warning: Alias equations of external objects are not Modelica compliant as in: getFloat.pkgOut[1].pkg = getInteger.pkgIn.pkg getFloat.pkgIn.pkg = getReal.pkgOut[1].pkg addInteger.pkgOut[1].pkg = lcmSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = lcmReceive.pkgOut.pkg addReal.pkgIn.pkg = packager.pkgOut.pkg getFloat.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addFloat.pkgIn.pkg getReal.pkgOut[1].pkg = getReal.pkgIn.pkg addInteger.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].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: 105 * Number of variables: 105 Notification: Performance of Generate backend data structure: time 0.001464/0.4586, allocations: 1.038 MB / 0.5551 GB, free: 29.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.4587, allocations: 11.95 kB / 0.5551 GB, free: 29.71 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.592e-05/0.4588, allocations: 50.58 kB / 0.5551 GB, free: 29.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004918/0.4593, allocations: 335.1 kB / 0.5554 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.143e-05/0.4593, allocations: 34.8 kB / 0.5555 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.275e-05/0.4594, allocations: 41.53 kB / 0.5555 GB, free: 29.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009263/0.4604, allocations: 470.7 kB / 0.556 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.4604, allocations: 1.531 kB / 0.556 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.64e-05/0.4605, allocations: 19.34 kB / 0.556 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.4605, allocations: 10.28 kB / 0.556 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004519/0.4609, allocations: 258.3 kB / 0.5562 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001667/0.4626, allocations: 1.359 MB / 0.5576 GB, free: 28.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000506/0.4631, allocations: 295.1 kB / 0.5578 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.348e-05/0.4632, allocations: 7.844 kB / 0.5579 GB, free: 28.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003415/0.4635, allocations: 246.8 kB / 0.5581 GB, free: 28.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.275e-06/0.4635, allocations: 0 / 0.5581 GB, free: 28.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.00111/0.4647, allocations: 0.8083 MB / 0.5589 GB, free: 28.03 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.4647, allocations: 165.3 kB / 0.559 GB, free: 27.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002125/0.4649, allocations: 237.8 kB / 0.5593 GB, free: 27.76 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.241e-05/0.465, allocations: 41.58 kB / 0.5593 GB, free: 27.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.4651, allocations: 212.4 kB / 0.5595 GB, free: 27.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.358e-05/0.4652, allocations: 101.8 kB / 0.5596 GB, free: 27.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.731e-05/0.4652, allocations: 7.562 kB / 0.5596 GB, free: 27.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.205e-05/0.4653, allocations: 348.5 kB / 0.5599 GB, free: 27.22 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.4655, allocations: 116.4 kB / 0.56 GB, free: 27.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.4657, allocations: 309.5 kB / 0.5603 GB, free: 26.98 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002688/0.466, allocations: 183.5 kB / 0.5605 GB, free: 26.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.466, allocations: 3.5 kB / 0.5605 GB, free: 26.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006487/0.4667, allocations: 479.8 kB / 0.561 GB, free: 26.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4667, allocations: 9.125 kB / 0.561 GB, free: 26.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.4667, allocations: 6.062 kB / 0.561 GB, free: 26.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.697e-05/0.4667, allocations: 14.16 kB / 0.561 GB, free: 26.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002461/0.467, allocations: 75.34 kB / 0.5611 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.789e-05/0.467, allocations: 16.61 kB / 0.5611 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001679/0.4672, allocations: 38.42 kB / 0.5611 GB, free: 26.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.4672, allocations: 26.41 kB / 0.5612 GB, free: 26.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 54 ($PRE.addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.lcmSend.dummy,lcmSend.dummy,$PRE.addReal.pkgOut[1].dummy,addReal.pkgOut[1].dummy,$PRE.packager.pkgOut.dummy,packager.pkgOut.dummy,$whenCondition2,addInteger.pkgOut[1].trigger,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],$PRE.getFloat.dummy,getFloat.dummy,$PRE.getFloat.y[2],getFloat.y[2],$PRE.getFloat.y[1],getFloat.y[1],$PRE.getFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,$PRE.getInteger.dummy,getInteger.dummy,$PRE.getInteger.y[1],getInteger.y[1],$PRE.getReal.dummy,getReal.dummy,$PRE.getReal.y[3],getReal.y[3],$PRE.getReal.y[2],getReal.y[2],$PRE.getReal.y[1],getReal.y[1],$PRE.getReal.pkgOut[1].dummy,getReal.pkgOut[1].dummy,$PRE.lcmReceive.pkgOut.dummy,lcmReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,lcmSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002322/0.4675, allocations: 233 kB / 0.5614 GB, free: 26.7 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.945e-05/0.4675, allocations: 36.41 kB / 0.5614 GB, free: 26.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003712/0.4679, allocations: 228.5 kB / 0.5616 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.4679, allocations: 8.188 kB / 0.5616 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/0.4679, allocations: 1.125 kB / 0.5616 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.4679, allocations: 1.969 kB / 0.5616 GB, free: 26.64 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.4691, allocations: 1.022 MB / 0.5626 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.806e-06/0.4691, allocations: 1.531 kB / 0.5626 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.584e-05/0.4692, allocations: 13.48 kB / 0.5627 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/0.4692, allocations: 2.781 kB / 0.5627 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.4692, allocations: 11.34 kB / 0.5627 GB, free: 26.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.488e-06/0.4693, allocations: 10.23 kB / 0.5627 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.4693, allocations: 5.156 kB / 0.5627 GB, free: 26.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008125/0.4701, allocations: 0.6819 MB / 0.5633 GB, free: 25.93 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.4702, allocations: 111.8 kB / 0.5635 GB, free: 25.81 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.133e-05/0.4702, allocations: 11.25 kB / 0.5635 GB, free: 25.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001425/0.4704, allocations: 5.641 kB / 0.5635 GB, free: 25.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.844e-05/0.4704, allocations: 26.05 kB / 0.5635 GB, free: 25.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.857e-05/0.4705, allocations: 21.73 kB / 0.5635 GB, free: 25.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001443/0.4706, allocations: 148.9 kB / 0.5637 GB, free: 25.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4706, allocations: 0 / 0.5637 GB, free: 25.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006574/0.4713, allocations: 169.8 kB / 0.5638 GB, free: 25.68 MB / 378.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: 35 (getFloat.pkgOut[1].trigger,$whenCondition1,lcmReceive.pkgOut.dummy,getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,lcmReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,lcmSend.bufferSize,lcmSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,lcmSend.pkgIn.userPkgBitSize,lcmSend.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,addFloat.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 23 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007982/0.4721, allocations: 393.7 kB / 0.5642 GB, free: 25.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005908/0.4727, allocations: 355.7 kB / 0.5645 GB, free: 25.45 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.4727, allocations: 0 / 0.5645 GB, free: 25.45 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.473, allocations: 171 kB / 0.5647 GB, free: 25.42 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004769/0.4734, allocations: 73.2 kB / 0.5648 GB, free: 25.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001333/0.4748, allocations: 0.8067 MB / 0.5656 GB, free: 24.89 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003919/0.4752, allocations: 0.8299 MB / 0.5664 GB, free: 24.13 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001433/0.4753, allocations: 48.91 kB / 0.5664 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.616e-05/0.4754, allocations: 32.95 kB / 0.5664 GB, free: 24.1 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.4754, allocations: 1.094 kB / 0.5664 GB, free: 24.1 MB / 378.7 MB Notification: Performance of Templates: time 0.008984/0.4844, allocations: 5.071 MB / 0.5714 GB, free: 21.54 MB / 378.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_LCM.pipe 2>&1)