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.001012/0.001012, allocations: 179.4 kB / 13.23 MB, free: 2.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.307/1.307, allocations: 221.4 MB / 235.1 MB, free: 14.39 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.0007683/0.0007684, allocations: 97 kB / 286.1 MB, free: 12.98 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.04846/0.04846, allocations: 11.91 MB / 348.9 MB, free: 14.39 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.516e-05/3.519e-05, allocations: 4 kB / 410.1 MB, free: 58.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07884/0.0789, allocations: 53.35 MB / 463.5 MB, free: 4.891 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3022/0.3811, allocations: 87.25 MB / 0.5378 GB, free: 12.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.3814, allocations: 72.56 kB / 0.5379 GB, free: 12.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02988/0.4113, allocations: 12.46 MB / 0.55 GB, free: 1.68 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.022e-06/0.4113, allocations: 3.938 kB / 0.55 GB, free: 1.676 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.4113, allocations: 12 kB / 0.5501 GB, free: 1.664 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 = 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.001399/0.4127, allocations: 1.076 MB / 0.5511 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.4128, allocations: 15.97 kB / 0.5511 GB, free: 0.5547 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001023/0.4129, allocations: 63.28 kB / 0.5512 GB, free: 0.4922 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005013/0.4134, allocations: 365.4 kB / 0.5515 GB, free: 144 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.991e-05/0.4135, allocations: 28.56 kB / 0.5516 GB, free: 128 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.345e-05/0.4135, allocations: 43.55 kB / 0.5516 GB, free: 92 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006506/0.4142, allocations: 457.3 kB / 0.552 GB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.4142, allocations: 3.938 kB / 0.552 GB, free: 15.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.711e-05/0.4142, allocations: 23.42 kB / 0.5521 GB, free: 15.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.918e-06/0.4143, allocations: 8 kB / 0.5521 GB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003697/0.4146, allocations: 253.9 kB / 0.5523 GB, free: 15.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001429/0.4161, allocations: 1.4 MB / 0.5537 GB, free: 14.28 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004396/0.4165, allocations: 295.6 kB / 0.554 GB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001868/0.4167, allocations: 157.6 kB / 0.5541 GB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.72e-05/0.4167, allocations: 4 kB / 0.5541 GB, free: 13.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003088/0.4171, allocations: 249.4 kB / 0.5544 GB, free: 13.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=40): time 1.933e-06/0.4171, allocations: 0 / 0.5544 GB, free: 13.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0007508/0.4178, allocations: 463.8 kB / 0.5548 GB, free: 13.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.798e-05/0.4179, allocations: 156.5 kB / 0.5549 GB, free: 13.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003984/0.4183, allocations: 363.3 kB / 0.5553 GB, free: 12.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.4184, allocations: 45.69 kB / 0.5553 GB, free: 12.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001511/0.4185, allocations: 248.2 kB / 0.5556 GB, free: 12.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.062e-05/0.4186, allocations: 98.73 kB / 0.5557 GB, free: 12.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.295e-05/0.4187, allocations: 12 kB / 0.5557 GB, free: 12.33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/0.4188, allocations: 354.8 kB / 0.556 GB, free: 11.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002092/0.419, allocations: 121.1 kB / 0.5561 GB, free: 11.86 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003067/0.4193, allocations: 314.4 kB / 0.5564 GB, free: 11.46 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002573/0.4196, allocations: 175.8 kB / 0.5566 GB, free: 11.29 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.4196, allocations: 0 / 0.5566 GB, free: 11.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0007282/0.4203, allocations: 0.4925 MB / 0.5571 GB, free: 10.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.767e-05/0.4204, allocations: 8 kB / 0.5571 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.4204, allocations: 8.812 kB / 0.5571 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.4204, allocations: 8 kB / 0.5571 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.4207, allocations: 79.84 kB / 0.5572 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.4207, allocations: 11.98 kB / 0.5572 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001893/0.4209, allocations: 43.55 kB / 0.5572 GB, free: 10.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.56e-05/0.4209, allocations: 27.94 kB / 0.5573 GB, free: 10.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.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 () * 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.0001423/0.4211, allocations: 182.1 kB / 0.5574 GB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.85e-05/0.4211, allocations: 39.53 kB / 0.5575 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003678/0.4215, allocations: 242.7 kB / 0.5577 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4215, allocations: 4 kB / 0.5577 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4215, allocations: 0 / 0.5577 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4216, allocations: 0 / 0.5577 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/0.4228, allocations: 1.071 MB / 0.5588 GB, free: 9.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4228, allocations: 0 / 0.5588 GB, free: 9.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.465e-05/0.4229, allocations: 15.98 kB / 0.5588 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.907e-06/0.4229, allocations: 0 / 0.5588 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.693e-05/0.4229, allocations: 11.98 kB / 0.5588 GB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4229, allocations: 7.953 kB / 0.5588 GB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4229, allocations: 0 / 0.5588 GB, free: 8.973 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007345/0.4237, allocations: 0.691 MB / 0.5595 GB, free: 8.242 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.26e-05/0.4238, allocations: 112.7 kB / 0.5596 GB, free: 8.113 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.4238, allocations: 11.98 kB / 0.5596 GB, free: 8.102 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.424, allocations: 8 kB / 0.5596 GB, free: 8.094 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.424, allocations: 19.97 kB / 0.5596 GB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.447e-05/0.4241, allocations: 19.98 kB / 0.5596 GB, free: 8.055 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002049/0.4243, allocations: 226.2 kB / 0.5598 GB, free: 7.832 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.563e-06/0.4243, allocations: 0 / 0.5598 GB, free: 7.832 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006092/0.4249, allocations: 195.4 kB / 0.56 GB, free: 7.641 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 () * 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.0008794/0.4258, allocations: 446.1 kB / 0.5605 GB, free: 7.273 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005326/0.4264, allocations: 349.9 kB / 0.5608 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4264, allocations: 0 / 0.5608 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002208/0.4266, allocations: 159.8 kB / 0.5609 GB, free: 6.777 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005943/0.4272, allocations: 117.4 kB / 0.561 GB, free: 6.664 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001154/0.4284, allocations: 0.6141 MB / 0.5616 GB, free: 6.016 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.4288, allocations: 0.8541 MB / 0.5625 GB, free: 5.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001745/0.4289, allocations: 63.22 kB / 0.5625 GB, free: 5.078 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.557e-05/0.429, allocations: 31.42 kB / 0.5626 GB, free: 5.047 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.429, allocations: 0 / 0.5626 GB, free: 5.047 MB / 378.7 MB Notification: Performance of Templates: time 0.01081/0.4399, allocations: 6.476 MB / 0.5689 GB, free: 14.59 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)