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.001428/0.001429, allocations: 181.3 kB / 13.23 MB, free: 2.086 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.299/1.299, allocations: 221.4 MB / 235.1 MB, free: 14.45 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.0009408/0.0009409, allocations: 83.59 kB / 286.1 MB, free: 13.01 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.0512/0.0512, allocations: 11.9 MB / 348.9 MB, free: 14.42 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.282e-05/2.292e-05, allocations: 4 kB / 410.1 MB, free: 58.3 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0754/0.07543, allocations: 53.35 MB / 463.5 MB, free: 4.926 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3017/0.3771, allocations: 86.16 MB / 0.5367 GB, free: 13.17 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001829/0.3774, allocations: 70.72 kB / 0.5368 GB, free: 13.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02457/0.4019, allocations: 9.734 MB / 0.5463 GB, free: 4.957 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.402, allocations: 0 / 0.5463 GB, free: 4.957 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.125e-05/0.402, allocations: 8 kB / 0.5463 GB, free: 4.949 MB / 362.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.001301/0.4033, allocations: 1.011 MB / 0.5473 GB, free: 3.922 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.4033, allocations: 15.97 kB / 0.5473 GB, free: 3.906 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.884e-05/0.4034, allocations: 55.39 kB / 0.5474 GB, free: 3.852 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004464/0.4039, allocations: 334.2 kB / 0.5477 GB, free: 3.523 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.381e-05/0.4039, allocations: 35.86 kB / 0.5477 GB, free: 3.496 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/0.404, allocations: 42.36 kB / 0.5478 GB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006548/0.4047, allocations: 466.7 kB / 0.5482 GB, free: 3.109 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.4047, allocations: 4 kB / 0.5482 GB, free: 3.105 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.578e-05/0.4047, allocations: 13.88 kB / 0.5482 GB, free: 3.102 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.4047, allocations: 15.98 kB / 0.5482 GB, free: 3.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003787/0.4051, allocations: 245.6 kB / 0.5485 GB, free: 2.922 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001468/0.4066, allocations: 1.364 MB / 0.5498 GB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004616/0.4071, allocations: 290.7 kB / 0.5501 GB, free: 1.434 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002028/0.4073, allocations: 153.6 kB / 0.5502 GB, free: 1.316 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.4073, allocations: 8.297 kB / 0.5502 GB, free: 1.309 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003312/0.4077, allocations: 250.2 kB / 0.5505 GB, free: 1.082 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 2.805e-06/0.4077, allocations: 0 / 0.5505 GB, free: 1.082 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007778/0.4085, allocations: 451.3 kB / 0.5509 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.56e-05/0.4086, allocations: 156.2 kB / 0.5511 GB, free: 0.5469 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.4088, allocations: 242.9 kB / 0.5513 GB, free: 352 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.414e-05/0.4089, allocations: 41.27 kB / 0.5513 GB, free: 312 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.409, allocations: 210.2 kB / 0.5515 GB, free: 136 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.364e-05/0.4091, allocations: 101.9 kB / 0.5516 GB, free: 52 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.83e-05/0.4091, allocations: 7.812 kB / 0.5516 GB, free: 52 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.4092, allocations: 346.2 kB / 0.552 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.4094, allocations: 115.4 kB / 0.5521 GB, free: 15.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.4097, allocations: 308.5 kB / 0.5524 GB, free: 15.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002396/0.4099, allocations: 173.7 kB / 0.5525 GB, free: 15.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.4099, allocations: 0 / 0.5525 GB, free: 15.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006465/0.4106, allocations: 480.1 kB / 0.553 GB, free: 14.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.179e-05/0.4106, allocations: 10.38 kB / 0.553 GB, free: 14.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/0.4106, allocations: 8 kB / 0.553 GB, free: 14.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.4107, allocations: 12.06 kB / 0.553 GB, free: 14.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.4109, allocations: 83.7 kB / 0.5531 GB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.741e-05/0.411, allocations: 12.19 kB / 0.5531 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00017/0.4112, allocations: 43.23 kB / 0.5532 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.57e-05/0.4112, allocations: 31.66 kB / 0.5532 GB, free: 14.61 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 () * 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.000149/0.4113, allocations: 173.8 kB / 0.5534 GB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.406e-05/0.4114, allocations: 27.7 kB / 0.5534 GB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000367/0.4118, allocations: 233.3 kB / 0.5536 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.4118, allocations: 4 kB / 0.5536 GB, free: 14.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.4118, allocations: 4 kB / 0.5536 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4118, allocations: 0 / 0.5536 GB, free: 14.23 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.413, allocations: 1.021 MB / 0.5546 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.413, allocations: 4 kB / 0.5546 GB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.355e-05/0.4131, allocations: 11.98 kB / 0.5546 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.301e-06/0.4131, allocations: 4 kB / 0.5546 GB, free: 13.28 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.4131, allocations: 15.92 kB / 0.5546 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.519e-06/0.4131, allocations: 7.953 kB / 0.5547 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.4131, allocations: 0 / 0.5547 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007252/0.4139, allocations: 0.6698 MB / 0.5553 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.034e-05/0.414, allocations: 108.8 kB / 0.5554 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.696e-05/0.414, allocations: 3.984 kB / 0.5554 GB, free: 12.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.4141, allocations: 8 kB / 0.5554 GB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.473e-05/0.4142, allocations: 31.91 kB / 0.5555 GB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.04e-05/0.4142, allocations: 15.98 kB / 0.5555 GB, free: 12.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001269/0.4144, allocations: 149.4 kB / 0.5556 GB, free: 12.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4144, allocations: 0 / 0.5556 GB, free: 12.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005498/0.4149, allocations: 167.5 kB / 0.5558 GB, free: 12.05 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 () * 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.000726/0.4157, allocations: 390.1 kB / 0.5561 GB, free: 11.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005135/0.4162, allocations: 346.6 kB / 0.5565 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.4162, allocations: 0 / 0.5565 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002593/0.4165, allocations: 163.8 kB / 0.5566 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004441/0.4169, allocations: 74.09 kB / 0.5567 GB, free: 11.16 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009881/0.4179, allocations: 0.5364 MB / 0.5572 GB, free: 10.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000347/0.4183, allocations: 0.8229 MB / 0.558 GB, free: 9.742 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001292/0.4184, allocations: 50.94 kB / 0.5581 GB, free: 9.691 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.443e-05/0.4185, allocations: 35.42 kB / 0.5581 GB, free: 9.656 MB / 378.7 MB Notification: Performance of SimCode: time 1.753e-06/0.4185, allocations: 0 / 0.5581 GB, free: 9.656 MB / 378.7 MB Notification: Performance of Templates: time 0.008635/0.4272, allocations: 5.078 MB / 0.5631 GB, free: 4.617 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)