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.0008611/0.0008611, allocations: 93.27 kB / 16.71 MB, free: 6.637 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.0007478/0.0007478, allocations: 180.4 kB / 17.62 MB, free: 6.16 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.239/1.239, allocations: 223.3 MB / 241.7 MB, free: 216 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.0549/0.0549, allocations: 12.05 MB / 304.8 MB, free: 3.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002665/0.0002666, allocations: 8 kB / 368.9 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1663/0.1666, allocations: 53.36 MB / 422.3 MB, free: 20.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT): time 0.002496/0.1692, allocations: 2.772 MB / 425.1 MB, free: 17.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.1704, allocations: 0.9552 MB / 426 MB, free: 16.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.736e-05/0.1705, allocations: 7.938 kB / 426 MB, free: 16.63 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002189/0.1707, allocations: 88.16 kB / 426.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.1709, allocations: 88.2 kB / 426.2 MB, free: 16.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.1713, allocations: 242.2 kB / 426.4 MB, free: 16.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.1716, allocations: 470.7 kB / 426.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.1719, allocations: 239.2 kB / 427.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001196/0.172, allocations: 183.1 kB / 427.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001885/0.1722, allocations: 234.7 kB / 427.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.162e-05/0.1723, allocations: 20 kB / 427.6 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002061/0.1725, allocations: 187.8 kB / 427.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.759e-05/0.1726, allocations: 131.5 kB / 427.9 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.1727, allocations: 240.1 kB / 428.1 MB, free: 14.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003698/0.1731, allocations: 0.5749 MB / 428.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.1731, allocations: 0 / 428.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1731, allocations: 0 / 428.7 MB, free: 13.97 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.069e-06/0.1731, allocations: 4 kB / 428.7 MB, free: 13.97 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.001056/0.1742, allocations: 1.134 MB / 429.8 MB, free: 12.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.667e-05/0.1742, allocations: 8.031 kB / 429.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.203e-05/0.1743, allocations: 60.19 kB / 429.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002982/0.1746, allocations: 367.7 kB / 430.2 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.1747, allocations: 33.36 kB / 430.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.732e-05/0.1747, allocations: 36.38 kB / 430.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/0.1753, allocations: 484 kB / 430.8 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.1753, allocations: 8.125 kB / 430.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.1754, allocations: 19.94 kB / 430.8 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.595e-06/0.1754, allocations: 8 kB / 430.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.1758, allocations: 267.7 kB / 431.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00115/0.1769, allocations: 1.413 MB / 432.5 MB, free: 9.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003989/0.1773, allocations: 302.3 kB / 432.8 MB, free: 9.594 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001774/0.1775, allocations: 159.4 kB / 432.9 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.321e-05/0.1775, allocations: 4 kB / 433 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.1778, allocations: 252.8 kB / 433.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.623e-06/0.1778, allocations: 4 kB / 433.2 MB, free: 9.145 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0008212/0.1787, allocations: 0.5899 MB / 433.8 MB, free: 8.551 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.1787, allocations: 156.5 kB / 433.9 MB, free: 8.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003723/0.1791, allocations: 409.4 kB / 434.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.901e-05/0.1791, allocations: 45.69 kB / 434.4 MB, free: 7.906 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.464e-05/0.1792, allocations: 240.2 kB / 434.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.711e-05/0.1793, allocations: 94.83 kB / 434.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.946e-05/0.1794, allocations: 73.67 kB / 434.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.351e-05/0.1794, allocations: 366.7 kB / 435.1 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000209/0.1796, allocations: 125 kB / 435.3 MB, free: 7.008 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000256/0.1799, allocations: 322.4 kB / 435.6 MB, free: 6.609 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.1803, allocations: 484.6 kB / 436.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1804, allocations: 0 / 436.1 MB, free: 6.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006702/0.181, allocations: 0.5044 MB / 436.6 MB, free: 5.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.1811, allocations: 11.94 kB / 436.6 MB, free: 5.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1811, allocations: 12.06 kB / 436.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.1811, allocations: 8 kB / 436.6 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.1813, allocations: 79.83 kB / 436.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.1813, allocations: 8.531 kB / 436.7 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001828/0.1815, allocations: 39.59 kB / 436.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.009e-05/0.1816, allocations: 31.98 kB / 436.8 MB, free: 5.348 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.0001914/0.1818, allocations: 238.7 kB / 437 MB, free: 5.105 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.386e-05/0.1818, allocations: 43.52 kB / 437 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003222/0.1821, allocations: 244.5 kB / 437.3 MB, free: 4.812 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1822, allocations: 4 kB / 437.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1822, allocations: 0 / 437.3 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.1822, allocations: 4.047 kB / 437.3 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.1832, allocations: 1.082 MB / 438.4 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.1832, allocations: 3.938 kB / 438.4 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.015e-05/0.1833, allocations: 8 kB / 438.4 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.1833, allocations: 8 kB / 438.4 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.156e-05/0.1833, allocations: 11.98 kB / 438.4 MB, free: 3.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.1833, allocations: 7.938 kB / 438.4 MB, free: 3.629 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.1833, allocations: 3.984 kB / 438.4 MB, free: 3.625 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006072/0.1839, allocations: 0.6646 MB / 439.1 MB, free: 2.938 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.941e-05/0.184, allocations: 124.6 kB / 439.2 MB, free: 2.797 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.332e-05/0.184, allocations: 7.984 kB / 439.2 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000161/0.1842, allocations: 11.88 kB / 439.2 MB, free: 2.777 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.587e-05/0.1842, allocations: 23.97 kB / 439.2 MB, free: 2.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.977e-05/0.1843, allocations: 15.98 kB / 439.2 MB, free: 2.738 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001802/0.1845, allocations: 231.1 kB / 439.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1845, allocations: 0 / 439.5 MB, free: 2.508 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005147/0.185, allocations: 171.5 kB / 439.6 MB, free: 2.34 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.0007268/0.1857, allocations: 422.2 kB / 440 MB, free: 2.016 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004973/0.1862, allocations: 368.7 kB / 440.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.1862, allocations: 0 / 440.4 MB, free: 1.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002107/0.1864, allocations: 171.8 kB / 440.6 MB, free: 1.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007548/0.1872, allocations: 111.5 kB / 440.7 MB, free: 1.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.1884, allocations: 1.008 MB / 441.7 MB, free: 336 kB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.1887, allocations: 0.8346 MB / 442.5 MB, free: 15.46 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.931e-05/0.1888, allocations: 39.42 kB / 442.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1888, allocations: 0 / 442.6 MB, free: 15.43 MB / 318.1 MB Notification: Performance of Templates: time 0.009362/0.1982, allocations: 7.334 MB / 449.9 MB, free: 8.098 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++14 -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