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.001253/0.001253, allocations: 102.9 kB / 16.57 MB, free: 6.262 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.00122/0.00122, allocations: 194.7 kB / 17.49 MB, free: 5.875 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.326/1.326, allocations: 222.9 MB / 241.2 MB, free: 13.61 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.05703/0.05703, allocations: 12.02 MB / 303.3 MB, free: 3.164 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 63.91 kB / 366.4 MB, free: 4.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2005/0.2017, allocations: 52.33 MB / 418.8 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_MQTT): time 0.003816/0.2055, allocations: 3.147 MB / 421.9 MB, free: 18.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.2069, allocations: 0.9714 MB / 422.9 MB, free: 17.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000139/0.2071, allocations: 7.938 kB / 422.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000312/0.2074, allocations: 95.3 kB / 423 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002196/0.2076, allocations: 86.14 kB / 423.1 MB, free: 16.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005147/0.2082, allocations: 235.6 kB / 423.3 MB, free: 16.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003157/0.2085, allocations: 478.7 kB / 423.8 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002803/0.2088, allocations: 242.3 kB / 424 MB, free: 16.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001445/0.2089, allocations: 219.1 kB / 424.2 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.2092, allocations: 282.7 kB / 424.5 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.399e-05/0.2093, allocations: 40 kB / 424.5 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002566/0.2095, allocations: 207.8 kB / 424.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001237/0.2096, allocations: 163.4 kB / 424.9 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001566/0.2098, allocations: 250.5 kB / 425.1 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004112/0.2102, allocations: 0.5789 MB / 425.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.2102, allocations: 0 / 425.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.01e-07/0.2103, allocations: 0 / 425.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.208e-05/0.2103, allocations: 4 kB / 425.7 MB, free: 14.3 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.00139/0.2117, allocations: 1.231 MB / 426.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2117, allocations: 8.031 kB / 426.9 MB, free: 12.95 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001028/0.2118, allocations: 60.19 kB / 427 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003212/0.2121, allocations: 379.6 kB / 427.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.135e-05/0.2122, allocations: 33.38 kB / 427.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.507e-05/0.2122, allocations: 40.36 kB / 427.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006111/0.2129, allocations: 483.9 kB / 427.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.2129, allocations: 192 / 427.9 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.2129, allocations: 27.92 kB / 427.9 MB, free: 11.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.818e-06/0.2129, allocations: 12 kB / 428 MB, free: 11.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003853/0.2133, allocations: 259.7 kB / 428.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001238/0.2146, allocations: 1.409 MB / 429.6 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004498/0.215, allocations: 302.3 kB / 429.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001832/0.2152, allocations: 155.4 kB / 430.1 MB, free: 9.652 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.096e-05/0.2153, allocations: 4 kB / 430.1 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002987/0.2156, allocations: 252.7 kB / 430.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 1.833e-06/0.2156, allocations: 0 / 430.3 MB, free: 9.379 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.0009031/0.2165, allocations: 0.5917 MB / 430.9 MB, free: 8.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.759e-05/0.2166, allocations: 152.5 kB / 431.1 MB, free: 8.602 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003973/0.217, allocations: 409.4 kB / 431.5 MB, free: 8.191 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.813e-05/0.217, allocations: 41.7 kB / 431.5 MB, free: 8.145 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000125/0.2171, allocations: 248.2 kB / 431.7 MB, free: 7.898 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.398e-05/0.2172, allocations: 102.7 kB / 431.8 MB, free: 7.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001457/0.2174, allocations: 122.2 kB / 432 MB, free: 7.672 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.256e-05/0.2175, allocations: 354.7 kB / 432.3 MB, free: 7.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.2177, allocations: 125 kB / 432.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002644/0.2179, allocations: 330.4 kB / 432.8 MB, free: 6.785 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004569/0.2184, allocations: 488.4 kB / 433.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.2184, allocations: 0 / 433.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006754/0.2191, allocations: 0.4933 MB / 433.7 MB, free: 5.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.2191, allocations: 11.98 kB / 433.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.039e-05/0.2192, allocations: 8.062 kB / 433.7 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.248e-05/0.2192, allocations: 12.09 kB / 433.8 MB, free: 5.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.2194, allocations: 71.78 kB / 433.8 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.2194, allocations: 19.92 kB / 433.8 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001806/0.2196, allocations: 35.59 kB / 433.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.2197, allocations: 28 kB / 433.9 MB, free: 5.535 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.0002167/0.2199, allocations: 243 kB / 434.1 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.57e-05/0.22, allocations: 39.53 kB / 434.2 MB, free: 5.25 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003439/0.2203, allocations: 242.1 kB / 434.4 MB, free: 5.008 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.309e-06/0.2203, allocations: 4 kB / 434.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.156e-06/0.2203, allocations: 8.062 kB / 434.4 MB, free: 4.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.2203, allocations: 3.984 kB / 434.4 MB, free: 4.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001062/0.2214, allocations: 1.086 MB / 435.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.2214, allocations: 0 / 435.5 MB, free: 3.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.127e-05/0.2215, allocations: 15.98 kB / 435.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2215, allocations: 0 / 435.5 MB, free: 3.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.488e-05/0.2215, allocations: 15.98 kB / 435.6 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.771e-06/0.2215, allocations: 3.938 kB / 435.6 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.2215, allocations: 11.88 kB / 435.6 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006636/0.2222, allocations: 0.6613 MB / 436.2 MB, free: 3.121 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.694e-05/0.2223, allocations: 112.6 kB / 436.3 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.018e-05/0.2223, allocations: 7.984 kB / 436.3 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000153/0.2225, allocations: 7.938 kB / 436.4 MB, free: 2.977 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.2225, allocations: 27.95 kB / 436.4 MB, free: 2.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.24e-05/0.2226, allocations: 15.98 kB / 436.4 MB, free: 2.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001857/0.2228, allocations: 239 kB / 436.6 MB, free: 2.695 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2228, allocations: 0 / 436.6 MB, free: 2.695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005894/0.2234, allocations: 167.6 kB / 436.8 MB, free: 2.531 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.0008719/0.2242, allocations: 436 kB / 437.2 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005562/0.2248, allocations: 359.7 kB / 437.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2248, allocations: 1.625 kB / 437.6 MB, free: 1.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002251/0.2251, allocations: 163.9 kB / 437.7 MB, free: 1.688 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000728/0.2258, allocations: 109 kB / 437.8 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001299/0.2271, allocations: 1.007 MB / 438.8 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.2274, allocations: 0.8387 MB / 439.7 MB, free: 15.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.373e-05/0.2275, allocations: 39.36 kB / 439.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2275, allocations: 0 / 439.7 MB, free: 15.62 MB / 318.1 MB Notification: Performance of Templates: time 0.01004/0.2376, allocations: 7.38 MB / 447.1 MB, free: 8.246 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