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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001061/0.001061, allocations: 103.9 kB / 16.98 MB, free: 6.137 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001034/0.001034, allocations: 191.5 kB / 17.91 MB, free: 5.234 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 241.6 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05842/0.05842, allocations: 12.03 MB / 303.8 MB, free: 3.199 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001402/0.001402, allocations: 63.91 kB / 367.1 MB, free: 3.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2159, allocations: 52.33 MB / 419.5 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT): time 0.003885/0.2198, allocations: 3.129 MB / 422.6 MB, free: 17.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001326/0.2212, allocations: 0.981 MB / 423.6 MB, free: 16.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.2213, allocations: 15.5 kB / 423.6 MB, free: 16.97 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.2216, allocations: 110.9 kB / 423.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.2218, allocations: 107.3 kB / 423.8 MB, free: 16.76 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1294:7-1306:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendToMQTT' contains a call to impure function 'Modelica_DeviceDrivers.Communication.MQTT_.sendTo'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1284:7-1292:19:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.readMQTT' contains a call to impure function 'Modelica_DeviceDrivers.Communication.MQTT_.read'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:74:7-84:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:41:7-50:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addRealAsFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addRealAsFloat'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:86:7-96:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getRealFromFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getRealFromFloat'. Notification: Performance of NFTyping.typeClassSections: time 0.0005437/0.2224, allocations: 283.2 kB / 424.1 MB, free: 16.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003307/0.2227, allocations: 0.4909 MB / 424.6 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002827/0.223, allocations: 239.8 kB / 424.8 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001479/0.2232, allocations: 243.1 kB / 425 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002246/0.2234, allocations: 298.7 kB / 425.3 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.723e-05/0.2235, allocations: 52 kB / 425.4 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.2237, allocations: 223.8 kB / 425.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.2239, allocations: 175.5 kB / 425.8 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001465/0.224, allocations: 262.5 kB / 426 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004968/0.2245, allocations: 0.7614 MB / 426.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2245, allocations: 0 / 426.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2245, allocations: 0 / 426.8 MB, free: 13.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.2245, allocations: 0 / 426.8 MB, free: 13.76 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: 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 getInteger.pkgIn.pkg = getFloat.pkgOut[1].pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg mqttSend.pkgIn.pkg = addInteger.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg mqttReceive.pkgOut.pkg = getReal.pkgIn.pkg packager.pkgOut.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.001232/0.2258, allocations: 1.235 MB / 428 MB, free: 12.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.097e-05/0.2258, allocations: 16.02 kB / 428 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.2259, allocations: 56.28 kB / 428.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.2262, allocations: 363.6 kB / 428.5 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.2263, allocations: 33.36 kB / 428.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.825e-05/0.2263, allocations: 40.38 kB / 428.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005854/0.2269, allocations: 488 kB / 429 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.2269, allocations: 192 / 429 MB, free: 11.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.227, allocations: 19.94 kB / 429 MB, free: 11.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.227, allocations: 12 kB / 429 MB, free: 11.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003683/0.2274, allocations: 263.7 kB / 429.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.2286, allocations: 1.406 MB / 430.7 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004264/0.229, allocations: 302.5 kB / 431 MB, free: 9.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001788/0.2292, allocations: 163.2 kB / 431.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.2293, allocations: 4 kB / 431.2 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002783/0.2296, allocations: 260.7 kB / 431.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.683e-06/0.2296, allocations: 0 / 431.4 MB, free: 8.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008592/0.2304, allocations: 0.5907 MB / 432 MB, free: 8.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.371e-05/0.2305, allocations: 156.4 kB / 432.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003842/0.2309, allocations: 413.4 kB / 432.6 MB, free: 7.648 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.2309, allocations: 41.69 kB / 432.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.231, allocations: 240.2 kB / 432.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.148e-05/0.2311, allocations: 106.7 kB / 432.9 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.2312, allocations: 118.2 kB / 433.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.2313, allocations: 354.7 kB / 433.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.2315, allocations: 129 kB / 433.5 MB, free: 6.652 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002541/0.2318, allocations: 326.4 kB / 433.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004366/0.2322, allocations: 484.4 kB / 434.3 MB, free: 5.68 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.2322, allocations: 4 kB / 434.3 MB, free: 5.676 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006713/0.2329, allocations: 0.501 MB / 434.8 MB, free: 5.168 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.2329, allocations: 8 kB / 434.8 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.2329, allocations: 4 kB / 434.8 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.233, allocations: 12 kB / 434.8 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002154/0.2332, allocations: 79.77 kB / 434.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.2332, allocations: 15.94 kB / 434.9 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001768/0.2334, allocations: 35.69 kB / 435 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.2334, allocations: 27.98 kB / 435 MB, free: 4.988 MB / 302.1 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 (addFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,mqttSend.dummy,$PRE.mqttSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addFloat.pkgOut[1].backwardTrigger,addFloat.pkgOut[1].trigger,$whenCondition2,addInteger.u[1],getFloat.dummy,$PRE.getFloat.dummy,getFloat.y[2],$PRE.getFloat.y[2],getFloat.y[1],$PRE.getFloat.y[1],getFloat.pkgOut[1].dummy,$PRE.getFloat.pkgOut[1].dummy,getInteger.dummy,$PRE.getInteger.dummy,getInteger.y[1],$PRE.getInteger.y[1],getReal.dummy,$PRE.getReal.dummy,getReal.y[3],$PRE.getReal.y[3],getReal.y[2],$PRE.getReal.y[2],getReal.y[1],$PRE.getReal.y[1],getReal.pkgOut[1].dummy,$PRE.getReal.pkgOut[1].dummy,mqttReceive.pkgOut.dummy,$PRE.mqttReceive.pkgOut.dummy,getFloat.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,mqttReceive.bufferSize,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,mqttSend.pkgIn.autoPkgBitSize,mqttSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,mqttSend.bufferSize) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001925/0.2336, allocations: 239.1 kB / 435.2 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.503e-05/0.2337, allocations: 43.52 kB / 435.3 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003299/0.234, allocations: 250.2 kB / 435.5 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.234, allocations: 4 kB / 435.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.2341, allocations: 0 / 435.5 MB, free: 4.449 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2341, allocations: 4 kB / 435.5 MB, free: 4.445 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009937/0.2351, allocations: 1.071 MB / 436.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.2351, allocations: 0 / 436.6 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.976e-05/0.2351, allocations: 15.94 kB / 436.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.2351, allocations: 4 kB / 436.6 MB, free: 3.297 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.359e-05/0.2352, allocations: 11.98 kB / 436.6 MB, free: 3.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.2352, allocations: 11.98 kB / 436.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2352, allocations: 8 kB / 436.6 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006404/0.2358, allocations: 0.6633 MB / 437.3 MB, free: 2.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.234e-05/0.2359, allocations: 116.6 kB / 437.4 MB, free: 2.449 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.2359, allocations: 8 kB / 437.4 MB, free: 2.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.2361, allocations: 11.92 kB / 437.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.46e-05/0.2362, allocations: 23.97 kB / 437.5 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.39e-05/0.2362, allocations: 19.98 kB / 437.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001821/0.2364, allocations: 231.1 kB / 437.7 MB, free: 2.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2364, allocations: 7.938 kB / 437.7 MB, free: 2.152 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005508/0.2369, allocations: 167.6 kB / 437.9 MB, free: 1.988 MB / 302.1 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,addFloat.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,mqttSend.bufferSize,mqttSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].backwardTrigger,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008569/0.2378, allocations: 423.6 kB / 438.3 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005519/0.2384, allocations: 400.8 kB / 438.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2384, allocations: 448 / 438.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002114/0.2386, allocations: 171.8 kB / 438.9 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007109/0.2393, allocations: 118.9 kB / 439 MB, free: 1.004 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001185/0.2405, allocations: 0.8463 MB / 439.8 MB, free: 116 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003851/0.2409, allocations: 0.8424 MB / 440.7 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.452e-05/0.241, allocations: 35.42 kB / 440.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of SimCode: time 3.2e-07/0.241, allocations: 0 / 440.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of Templates: time 0.009883/0.2509, allocations: 7.342 MB / 448 MB, free: 7.875 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT.makefile clang++ -std=c++17 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTFunctions.cpp:6: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:452:5: error: no matching function for call to 'strncpy' strncpy(pkg->data + pkg->pos, u, (size_t)bufferSize); ^~~~~~~ /usr/include/string.h:144:14: note: candidate function not viable: no known conversion from 'unsigned char *' to 'char *__restrict' for 1st argument extern char *strncpy (char *__restrict __dest, ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTFunctions.cpp:504:3: error: no matching function for call to 'MDD_SerialPackagerAddInteger' MDD_SerialPackagerAddInteger(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:16: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTFunctions.cpp:525:3: error: no matching function for call to 'MDD_SerialPackagerAddDouble' MDD_SerialPackagerAddDouble(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:307:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDouble(void* p_package, double * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTFunctions.cpp:546:3: error: no matching function for call to 'MDD_SerialPackagerAddDoubleAsFloat' MDD_SerialPackagerAddDoubleAsFloat(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:369:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDoubleAsFloat(void* p_package, double * u, size_t n, int endian) { ^ 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTTCalcHelperMain.o] Error 1