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.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_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.001467/0.001467, allocations: 177.5 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.296/1.296, allocations: 223.2 MB / 239.7 MB, free: 52 kB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009077/0.0009078, allocations: 97.42 kB / 290.9 MB, free: 4.559 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.05438/0.05438, allocations: 12.05 MB / 354 MB, free: 1.297 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003347/0.0003347, allocations: 16 kB / 417.9 MB, free: 1.398 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2309, allocations: 53.34 MB / 471.2 MB, free: 65.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08966/0.3206, allocations: 87.31 MB / 0.5455 GB, free: 9.684 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.3209, allocations: 79.94 kB / 0.5455 GB, free: 9.605 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.201/0.5219, allocations: 12.52 MB / 0.5578 GB, free: 86.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5219, allocations: 1.375 kB / 0.5578 GB, free: 86.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.583e-05/0.522, allocations: 11 kB / 0.5578 GB, free: 86.7 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.001515/0.5235, allocations: 1.128 MB / 0.5589 GB, free: 85.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.5235, allocations: 13.06 kB / 0.5589 GB, free: 85.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.5236, allocations: 57.84 kB / 0.559 GB, free: 85.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005258/0.5242, allocations: 368.1 kB / 0.5593 GB, free: 85.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.132e-05/0.5242, allocations: 32.22 kB / 0.5593 GB, free: 85.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.583e-05/0.5243, allocations: 44.69 kB / 0.5594 GB, free: 85.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007107/0.525, allocations: 481.8 kB / 0.5598 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.525, allocations: 1.406 kB / 0.5598 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.792e-05/0.5251, allocations: 19.92 kB / 0.5599 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.859e-06/0.5251, allocations: 9.844 kB / 0.5599 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003948/0.5255, allocations: 252.4 kB / 0.5601 GB, free: 85.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001362/0.5269, allocations: 1.395 MB / 0.5615 GB, free: 84.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004365/0.5273, allocations: 292.5 kB / 0.5617 GB, free: 84.69 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.5273, allocations: 13.75 kB / 0.5618 GB, free: 84.69 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002984/0.5276, allocations: 247.3 kB / 0.562 GB, free: 84.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.833e-06/0.5277, allocations: 1.531 kB / 0.562 GB, free: 84.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.001003/0.5287, allocations: 0.8212 MB / 0.5628 GB, free: 84.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.762e-05/0.5287, allocations: 157 kB / 0.5629 GB, free: 84.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003803/0.5291, allocations: 368.3 kB / 0.5633 GB, free: 83.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.163e-05/0.5292, allocations: 44.58 kB / 0.5633 GB, free: 83.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001034/0.5293, allocations: 243.7 kB / 0.5636 GB, free: 83.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.397e-05/0.5293, allocations: 99.84 kB / 0.5637 GB, free: 83.58 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.079e-05/0.5294, allocations: 11.03 kB / 0.5637 GB, free: 83.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.402e-05/0.5294, allocations: 355.8 kB / 0.564 GB, free: 83.24 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002119/0.5297, allocations: 126.6 kB / 0.5641 GB, free: 83.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002613/0.5299, allocations: 316.2 kB / 0.5644 GB, free: 82.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002531/0.5302, allocations: 189.1 kB / 0.5646 GB, free: 82.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.5302, allocations: 1.781 kB / 0.5646 GB, free: 82.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.000751/0.531, allocations: 0.4935 MB / 0.5651 GB, free: 82.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.835e-05/0.531, allocations: 10.88 kB / 0.5651 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.531, allocations: 6.75 kB / 0.5651 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.132e-05/0.531, allocations: 14.84 kB / 0.5651 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002423/0.5313, allocations: 78.61 kB / 0.5652 GB, free: 82.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.53e-05/0.5313, allocations: 13.62 kB / 0.5652 GB, free: 82.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.5315, allocations: 36.81 kB / 0.5653 GB, free: 82.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.999e-05/0.5315, allocations: 29.03 kB / 0.5653 GB, free: 82.56 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.0002207/0.5318, allocations: 237.8 kB / 0.5655 GB, free: 82.39 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.5318, allocations: 42.83 kB / 0.5656 GB, free: 82.36 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004196/0.5323, allocations: 246 kB / 0.5658 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.228e-06/0.5323, allocations: 4.406 kB / 0.5658 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.5323, allocations: 1.656 kB / 0.5658 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.5323, allocations: 4.953 kB / 0.5658 GB, free: 82.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001367/0.5337, allocations: 1.063 MB / 0.5668 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.5337, allocations: 0 / 0.5668 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.324e-05/0.5337, allocations: 17.02 kB / 0.5669 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.238e-06/0.5338, allocations: 3.938 kB / 0.5669 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.387e-05/0.5338, allocations: 10.64 kB / 0.5669 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.5338, allocations: 3.312 kB / 0.5669 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5338, allocations: 0 / 0.5669 GB, free: 81.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006267/0.5344, allocations: 0.6916 MB / 0.5675 GB, free: 81.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.611e-05/0.5345, allocations: 121.1 kB / 0.5677 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.419e-05/0.5346, allocations: 8.391 kB / 0.5677 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.5347, allocations: 10.38 kB / 0.5677 GB, free: 81.09 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.528e-05/0.5348, allocations: 30.41 kB / 0.5677 GB, free: 81.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.905e-05/0.5348, allocations: 16.72 kB / 0.5677 GB, free: 81.07 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001814/0.535, allocations: 231.3 kB / 0.5679 GB, free: 80.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.535, allocations: 0 / 0.5679 GB, free: 80.94 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005978/0.5356, allocations: 188.8 kB / 0.5681 GB, free: 80.87 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.0008097/0.5364, allocations: 470.9 kB / 0.5686 GB, free: 80.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005329/0.537, allocations: 356.2 kB / 0.5689 GB, free: 80.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.537, allocations: 448 / 0.5689 GB, free: 80.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002015/0.5372, allocations: 163.9 kB / 0.5691 GB, free: 80.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005609/0.5378, allocations: 105.9 kB / 0.5692 GB, free: 80.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001159/0.5389, allocations: 0.9258 MB / 0.5701 GB, free: 79.92 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.5392, allocations: 0.8635 MB / 0.5709 GB, free: 79.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001463/0.5393, allocations: 58.39 kB / 0.571 GB, free: 79.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.905e-05/0.5394, allocations: 35.19 kB / 0.571 GB, free: 79.19 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5394, allocations: 0 / 0.571 GB, free: 79.19 MB / 378.7 MB Notification: Performance of Templates: time 0.008918/0.5483, allocations: 6.449 MB / 0.5773 GB, free: 76.52 MB / 378.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)