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.0009035/0.0009035, allocations: 177.6 kB / 8.047 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.218/1.218, allocations: 221.5 MB / 230 MB, free: 7.594 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.000805/0.0008052, allocations: 89.84 kB / 280.9 MB, free: 5.336 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.04686/0.04686, allocations: 11.92 MB / 343.6 MB, free: 3.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.618e-05/1.62e-05, allocations: 2.094 kB / 403.1 MB, free: 45.39 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08181/0.08184, allocations: 53.35 MB / 456.5 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2997/0.3816, allocations: 86.58 MB / 0.5303 GB, free: 23.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001627/0.3818, allocations: 71.25 kB / 0.5304 GB, free: 23.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02687/0.4087, allocations: 12.4 MB / 0.5425 GB, free: 21.72 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4087, allocations: 0 / 0.5425 GB, free: 21.72 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.269e-05/0.4087, allocations: 19.56 kB / 0.5425 GB, free: 21.71 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.001131/0.4099, allocations: 1.067 MB / 0.5436 GB, free: 20.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.4099, allocations: 11.05 kB / 0.5436 GB, free: 20.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.817e-05/0.41, allocations: 62.45 kB / 0.5436 GB, free: 20.92 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000436/0.4105, allocations: 366.3 kB / 0.544 GB, free: 20.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.822e-05/0.4105, allocations: 20.56 kB / 0.544 GB, free: 20.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.611e-05/0.4105, allocations: 24.66 kB / 0.544 GB, free: 20.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003784/0.4109, allocations: 224.3 kB / 0.5442 GB, free: 20.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005517/0.4115, allocations: 415.5 kB / 0.5446 GB, free: 20.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.4115, allocations: 0 / 0.5446 GB, free: 20.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.536e-05/0.4116, allocations: 12.28 kB / 0.5446 GB, free: 20.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.4116, allocations: 15.67 kB / 0.5447 GB, free: 20.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001129/0.4127, allocations: 1.299 MB / 0.5459 GB, free: 19.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003275/0.413, allocations: 277.1 kB / 0.5462 GB, free: 19.7 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000154/0.4132, allocations: 140.7 kB / 0.5463 GB, free: 19.67 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.821e-05/0.4132, allocations: 8.406 kB / 0.5463 GB, free: 19.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002521/0.4135, allocations: 243.5 kB / 0.5466 GB, free: 19.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 1.633e-06/0.4135, allocations: 0 / 0.5466 GB, free: 19.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=40): time 0.0008812/0.4144, allocations: 465.9 kB / 0.547 GB, free: 19.51 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.4145, allocations: 159.6 kB / 0.5472 GB, free: 19.35 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003186/0.4148, allocations: 348.7 kB / 0.5475 GB, free: 19.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.815e-05/0.4148, allocations: 39.28 kB / 0.5475 GB, free: 19.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.4149, allocations: 244.8 kB / 0.5478 GB, free: 19.06 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.153e-05/0.415, allocations: 96.27 kB / 0.5479 GB, free: 19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.002e-05/0.415, allocations: 1.438 kB / 0.5479 GB, free: 19 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.3e-05/0.4151, allocations: 356.7 kB / 0.5482 GB, free: 18.69 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001523/0.4153, allocations: 109.8 kB / 0.5483 GB, free: 18.68 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/0.4155, allocations: 303.2 kB / 0.5486 GB, free: 18.45 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.4158, allocations: 182.9 kB / 0.5488 GB, free: 18.43 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.4158, allocations: 1.719 kB / 0.5488 GB, free: 18.43 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006575/0.4165, allocations: 454 kB / 0.5492 GB, free: 18.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.4165, allocations: 7.719 kB / 0.5492 GB, free: 18.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.4165, allocations: 7.719 kB / 0.5492 GB, free: 18.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.848e-05/0.4165, allocations: 11.69 kB / 0.5492 GB, free: 18.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002265/0.4167, allocations: 78.83 kB / 0.5493 GB, free: 18.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.017e-05/0.4168, allocations: 11.66 kB / 0.5493 GB, free: 18.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001732/0.4169, allocations: 24.12 kB / 0.5493 GB, free: 18.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.417, allocations: 34.59 kB / 0.5494 GB, free: 18.3 MB / 362.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.0001109/0.4171, allocations: 165.3 kB / 0.5495 GB, free: 18.17 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.4172, allocations: 46.53 kB / 0.5496 GB, free: 18.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000353/0.4175, allocations: 240.6 kB / 0.5498 GB, free: 18.1 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.4175, allocations: 3.938 kB / 0.5498 GB, free: 18.1 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4175, allocations: 0 / 0.5498 GB, free: 18.1 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.4176, allocations: 3.141 kB / 0.5498 GB, free: 18.1 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001452/0.419, allocations: 0.9801 MB / 0.5508 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.419, allocations: 3.906 kB / 0.5508 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.942e-05/0.4191, allocations: 10.77 kB / 0.5508 GB, free: 33.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.4191, allocations: 7.906 kB / 0.5508 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.103e-05/0.4191, allocations: 7.234 kB / 0.5508 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.4191, allocations: 7.844 kB / 0.5508 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.043e-06/0.4191, allocations: 0 / 0.5508 GB, free: 33.71 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000799/0.4199, allocations: 0.6941 MB / 0.5515 GB, free: 33.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.402e-05/0.42, allocations: 119.6 kB / 0.5516 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.4201, allocations: 7.672 kB / 0.5516 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.4202, allocations: 7.688 kB / 0.5516 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.4203, allocations: 22.3 kB / 0.5516 GB, free: 33.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.812e-05/0.4203, allocations: 22.56 kB / 0.5517 GB, free: 33.28 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001538/0.4205, allocations: 213.7 kB / 0.5519 GB, free: 33.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4205, allocations: 4 kB / 0.5519 GB, free: 33.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000561/0.421, allocations: 182.1 kB / 0.552 GB, free: 33.15 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.001246/0.4223, allocations: 441.6 kB / 0.5525 GB, free: 32.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004948/0.4228, allocations: 314.2 kB / 0.5528 GB, free: 32.88 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.4228, allocations: 0.5625 kB / 0.5528 GB, free: 32.88 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002127/0.423, allocations: 161.4 kB / 0.5529 GB, free: 32.87 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006998/0.4238, allocations: 100.6 kB / 0.553 GB, free: 32.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.4249, allocations: 0.5871 MB / 0.5536 GB, free: 32.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003867/0.4253, allocations: 0.8605 MB / 0.5544 GB, free: 31.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001829/0.4255, allocations: 65.53 kB / 0.5545 GB, free: 31.92 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.89e-05/0.4256, allocations: 34.58 kB / 0.5545 GB, free: 31.91 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.4256, allocations: 4 kB / 0.5545 GB, free: 31.91 MB / 378.7 MB Notification: Performance of Templates: time 0.009466/0.435, allocations: 6.217 MB / 0.5606 GB, free: 31.26 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)