Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.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.0.0-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-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_MQTT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008489/0.0008489, allocations: 171.9 kB / 16.8 MB, free: 5.027 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.229/1.229, allocations: 223.3 MB / 240.8 MB, free: 11.72 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.0007462/0.0007462, allocations: 94.61 kB / 292 MB, free: 10.78 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.0.0-master/package.mo): time 0.0554/0.0554, allocations: 12.04 MB / 355.1 MB, free: 12.04 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003423/0.0003423, allocations: 11.41 kB / 419.2 MB, free: 53.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07399/0.07435, allocations: 53.36 MB / 472.5 MB, free: 248 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2713/0.3457, allocations: 87.33 MB / 0.5467 GB, free: 10.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.3459, allocations: 71.97 kB / 0.5468 GB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03079/0.3767, allocations: 12.57 MB / 0.5591 GB, free: 13.6 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3768, allocations: 0 / 0.5591 GB, free: 13.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.137e-05/0.3768, allocations: 19.94 kB / 0.5591 GB, free: 13.58 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 = mqttSend.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addFloat.pkgIn.pkg = addReal.pkgOut[1].pkg getReal.pkgIn.pkg = mqttReceive.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.001649/0.3785, allocations: 1.119 MB / 0.5602 GB, free: 12.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.3785, allocations: 8.031 kB / 0.5602 GB, free: 12.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001351/0.3787, allocations: 56.28 kB / 0.5602 GB, free: 12.3 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005756/0.3792, allocations: 396.6 kB / 0.5606 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.127e-05/0.3793, allocations: 33.36 kB / 0.5606 GB, free: 11.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.564e-05/0.3794, allocations: 44.36 kB / 0.5607 GB, free: 11.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007293/0.3801, allocations: 480 kB / 0.5611 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.3801, allocations: 192 / 0.5611 GB, free: 11.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.3802, allocations: 23.92 kB / 0.5612 GB, free: 11.28 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3802, allocations: 12 kB / 0.5612 GB, free: 11.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004438/0.3806, allocations: 247.8 kB / 0.5614 GB, free: 11.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.3823, allocations: 1.394 MB / 0.5628 GB, free: 9.559 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005115/0.3828, allocations: 298.3 kB / 0.5631 GB, free: 9.23 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002305/0.3831, allocations: 166.5 kB / 0.5632 GB, free: 9.059 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.728e-05/0.3831, allocations: 4 kB / 0.5632 GB, free: 9.055 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003559/0.3835, allocations: 248.7 kB / 0.5635 GB, free: 8.785 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 2.424e-06/0.3835, allocations: 0 / 0.5635 GB, free: 8.785 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0009984/0.3845, allocations: 0.5875 MB / 0.564 GB, free: 8.195 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.051e-05/0.3846, allocations: 152.5 kB / 0.5642 GB, free: 8.016 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004659/0.3851, allocations: 405.4 kB / 0.5646 GB, free: 7.613 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.3851, allocations: 41.7 kB / 0.5646 GB, free: 7.566 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.3853, allocations: 244.2 kB / 0.5648 GB, free: 7.324 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.478e-05/0.3854, allocations: 90.89 kB / 0.5649 GB, free: 7.234 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.422e-05/0.3854, allocations: 19.94 kB / 0.565 GB, free: 7.215 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3855, allocations: 354.7 kB / 0.5653 GB, free: 6.859 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.3858, allocations: 125 kB / 0.5654 GB, free: 6.734 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003387/0.3861, allocations: 318.4 kB / 0.5657 GB, free: 6.34 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005629/0.3867, allocations: 484.4 kB / 0.5662 GB, free: 5.777 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.373e-06/0.3867, allocations: 4 kB / 0.5662 GB, free: 5.773 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008004/0.3875, allocations: 0.4927 MB / 0.5667 GB, free: 5.273 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.3876, allocations: 8 kB / 0.5667 GB, free: 5.266 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.246e-05/0.3876, allocations: 8 kB / 0.5667 GB, free: 5.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.906e-05/0.3876, allocations: 8 kB / 0.5667 GB, free: 5.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.3879, allocations: 79.83 kB / 0.5668 GB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.65e-05/0.3879, allocations: 16.67 kB / 0.5668 GB, free: 5.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.3881, allocations: 39.69 kB / 0.5668 GB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.072e-05/0.3881, allocations: 27.98 kB / 0.5668 GB, free: 5.09 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.mqttSend.dummy,mqttSend.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.mqttReceive.pkgOut.dummy,mqttReceive.pkgOut.dummy,$whenCondition1,getFloat.pkgOut[1].trigger,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,mqttReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,mqttSend.bufferSize,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,mqttSend.pkgIn.userPkgBitSize,mqttSend.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.0002591/0.3884, allocations: 239 kB / 0.5671 GB, free: 4.848 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.253e-05/0.3885, allocations: 39.52 kB / 0.5671 GB, free: 4.809 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003819/0.3888, allocations: 240.6 kB / 0.5673 GB, free: 4.562 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.422e-06/0.3889, allocations: 7.938 kB / 0.5673 GB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.3889, allocations: 0 / 0.5673 GB, free: 4.555 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.394e-06/0.3889, allocations: 7.922 kB / 0.5673 GB, free: 4.547 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001305/0.3902, allocations: 1.067 MB / 0.5684 GB, free: 3.422 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.3902, allocations: 3.984 kB / 0.5684 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.343e-05/0.3903, allocations: 16.06 kB / 0.5684 GB, free: 3.402 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.3903, allocations: 4 kB / 0.5684 GB, free: 3.398 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.676e-05/0.3903, allocations: 15.98 kB / 0.5684 GB, free: 3.383 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.3903, allocations: 3.938 kB / 0.5684 GB, free: 3.379 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.3903, allocations: 3.938 kB / 0.5684 GB, free: 3.375 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007381/0.3911, allocations: 0.6634 MB / 0.5691 GB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.043e-05/0.3912, allocations: 120.5 kB / 0.5692 GB, free: 2.555 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.3912, allocations: 7.984 kB / 0.5692 GB, free: 2.547 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.3914, allocations: 11.92 kB / 0.5692 GB, free: 2.535 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.152e-05/0.3914, allocations: 19.98 kB / 0.5692 GB, free: 2.516 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-05/0.3915, allocations: 15.98 kB / 0.5693 GB, free: 2.5 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000231/0.3917, allocations: 231 kB / 0.5695 GB, free: 2.273 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.463e-06/0.3917, allocations: 0 / 0.5695 GB, free: 2.273 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006202/0.3923, allocations: 187.5 kB / 0.5697 GB, free: 2.09 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,mqttReceive.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,mqttReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addInteger.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,mqttSend.bufferSize,mqttSend.dummy,addInteger.pkgOut[1].dummy,addInteger.pkgOut[1].backwardTrigger,addInteger.u[1],addFloat.pkgOut[1].dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,mqttSend.pkgIn.userPkgBitSize,mqttSend.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.0009527/0.3933, allocations: 457.9 kB / 0.5701 GB, free: 1.73 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000585/0.3939, allocations: 365 kB / 0.5704 GB, free: 1.375 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3939, allocations: 4 kB / 0.5704 GB, free: 1.371 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.3942, allocations: 163.8 kB / 0.5706 GB, free: 1.211 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007304/0.3949, allocations: 104.7 kB / 0.5707 GB, free: 1.117 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.3964, allocations: 0.9331 MB / 0.5716 GB, free: 156 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003765/0.3968, allocations: 0.8385 MB / 0.5724 GB, free: 15.29 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.397, allocations: 67.39 kB / 0.5725 GB, free: 15.22 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.699e-05/0.3971, allocations: 39.42 kB / 0.5725 GB, free: 15.18 MB / 394.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3971, allocations: 0 / 0.5725 GB, free: 15.18 MB / 394.7 MB Notification: Performance of Templates: time 0.01111/0.4082, allocations: 6.495 MB / 0.5789 GB, free: 8.707 MB / 394.7 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.makefile (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.sim & ./Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.pipe 2>&1)