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.001537/0.001537, allocations: 114.3 kB / 17.13 MB, free: 6.035 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.001762/0.001762, allocations: 190.4 kB / 18.06 MB, free: 5.113 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.335/1.335, allocations: 222.9 MB / 241.8 MB, free: 15.06 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.05818/0.05818, allocations: 12.05 MB / 304 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 63.91 kB / 420.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1023, allocations: 52.31 MB / 473.1 MB, free: 12.83 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT): time 0.005/0.1073, allocations: 3.144 MB / 476.2 MB, free: 9.664 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001883/0.1092, allocations: 0.981 MB / 477.2 MB, free: 8.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002434/0.1095, allocations: 11.94 kB / 477.2 MB, free: 8.668 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003567/0.1099, allocations: 106.9 kB / 477.3 MB, free: 8.562 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.1102, allocations: 111.3 kB / 477.4 MB, free: 8.453 MB / 350.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.0008024/0.111, allocations: 287.1 kB / 477.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005991/0.1116, allocations: 498.7 kB / 478.2 MB, free: 7.684 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004296/0.1121, allocations: 255.6 kB / 478.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000307/0.1124, allocations: 247.1 kB / 478.7 MB, free: 7.184 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000392/0.1128, allocations: 294.7 kB / 479 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001086/0.1129, allocations: 56 kB / 479 MB, free: 6.84 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00039/0.1133, allocations: 223.8 kB / 479.2 MB, free: 6.621 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001917/0.1135, allocations: 167.5 kB / 479.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002413/0.1137, allocations: 262.5 kB / 479.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009077/0.1147, allocations: 0.7865 MB / 480.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1147, allocations: 0 / 480.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.1147, allocations: 0 / 480.4 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.087e-05/0.1147, allocations: 0 / 480.4 MB, free: 5.41 MB / 350.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.001864/0.1166, allocations: 1.251 MB / 481.7 MB, free: 4.062 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.1166, allocations: 12.03 kB / 481.7 MB, free: 4.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001443/0.1168, allocations: 56.28 kB / 481.8 MB, free: 3.996 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004831/0.1173, allocations: 367.6 kB / 482.1 MB, free: 3.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.898e-05/0.1173, allocations: 33.36 kB / 482.1 MB, free: 3.562 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.992e-05/0.1174, allocations: 36.38 kB / 482.2 MB, free: 3.527 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007578/0.1181, allocations: 484 kB / 482.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1182, allocations: 192 / 482.7 MB, free: 3.035 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.1182, allocations: 23.94 kB / 482.7 MB, free: 3.012 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.172e-05/0.1182, allocations: 8 kB / 482.7 MB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004735/0.1187, allocations: 267.7 kB / 482.9 MB, free: 2.742 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001746/0.1205, allocations: 1.394 MB / 484.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005261/0.121, allocations: 302.4 kB / 484.6 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.1212, allocations: 163.3 kB / 484.8 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.031e-05/0.1213, allocations: 8.062 kB / 484.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000345/0.1216, allocations: 252.7 kB / 485 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=40): time 1.843e-06/0.1216, allocations: 0 / 485 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.00103/0.1227, allocations: 0.5905 MB / 485.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.303e-05/0.1228, allocations: 156.4 kB / 485.8 MB, free: 15.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.1233, allocations: 413.3 kB / 486.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.389e-05/0.1233, allocations: 45.69 kB / 486.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/0.1235, allocations: 240.3 kB / 486.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.1236, allocations: 98.73 kB / 486.6 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001618/0.1238, allocations: 122.2 kB / 486.7 MB, free: 14.79 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1239, allocations: 358.7 kB / 487 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002408/0.1242, allocations: 125 kB / 487.2 MB, free: 14.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003572/0.1246, allocations: 326.4 kB / 487.5 MB, free: 13.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005865/0.1252, allocations: 484.3 kB / 488 MB, free: 13.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.1252, allocations: 4 kB / 488 MB, free: 13.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0008281/0.126, allocations: 0.4964 MB / 488.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.013e-05/0.126, allocations: 8.812 kB / 488.5 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.1261, allocations: 8 kB / 488.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.1261, allocations: 12 kB / 488.5 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.1263, allocations: 79.83 kB / 488.6 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.63e-05/0.1264, allocations: 11.94 kB / 488.6 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/0.1266, allocations: 39.67 kB / 488.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.1266, allocations: 24 kB / 488.6 MB, free: 12.64 MB / 366.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.0002574/0.1269, allocations: 243 kB / 488.9 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.768e-05/0.127, allocations: 43.52 kB / 488.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004049/0.1274, allocations: 250.9 kB / 489.2 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.85e-06/0.1274, allocations: 4 kB / 489.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.1274, allocations: 0 / 489.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.372e-06/0.1274, allocations: 4 kB / 489.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001371/0.1288, allocations: 1.067 MB / 490.2 MB, free: 10.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1288, allocations: 12.06 kB / 490.2 MB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.565e-05/0.1289, allocations: 11.94 kB / 490.3 MB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.484e-06/0.1289, allocations: 7.984 kB / 490.3 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.1289, allocations: 11.98 kB / 490.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.531e-06/0.1289, allocations: 7.938 kB / 490.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1289, allocations: 0 / 490.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000804/0.1297, allocations: 0.6724 MB / 491 MB, free: 10.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.184e-05/0.1298, allocations: 116.5 kB / 491.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.561e-05/0.1299, allocations: 8 kB / 491.1 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.1301, allocations: 15.92 kB / 491.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.157e-05/0.1301, allocations: 15.97 kB / 491.1 MB, free: 10.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.637e-05/0.1301, allocations: 20.08 kB / 491.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002343/0.1304, allocations: 235 kB / 491.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1304, allocations: 0 / 491.4 MB, free: 9.809 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00061/0.131, allocations: 171.5 kB / 491.5 MB, free: 9.641 MB / 366.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.0009739/0.132, allocations: 418 kB / 491.9 MB, free: 9.324 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006445/0.1326, allocations: 375.8 kB / 492.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.1327, allocations: 0 / 492.3 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002589/0.1329, allocations: 171.2 kB / 492.5 MB, free: 8.793 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007425/0.1337, allocations: 132 kB / 492.6 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.1352, allocations: 0.8266 MB / 493.4 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004208/0.1356, allocations: 0.8384 MB / 494.3 MB, free: 6.941 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.214e-05/0.1357, allocations: 35.42 kB / 494.3 MB, free: 6.906 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1357, allocations: 0 / 494.3 MB, free: 6.906 MB / 366.1 MB Notification: Performance of Templates: time 0.01122/0.1469, allocations: 7.388 MB / 0.4899 GB, free: 15.52 MB / 382.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