Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.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.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest") translateModel(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000852/0.0008521, allocations: 90.5 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.000911/0.000911, allocations: 181.6 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.201/1.201, allocations: 223.3 MB / 241.7 MB, free: 14.47 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.05372/0.05372, allocations: 12.05 MB / 304.8 MB, free: 2.906 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002639, allocations: 8 kB / 368.9 MB, free: 2.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1626, allocations: 53.35 MB / 422.3 MB, free: 20.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.001909/0.1646, allocations: 2.074 MB / 424.4 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000501/0.1651, allocations: 412 kB / 424.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.619e-05/0.1652, allocations: 0 / 424.8 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001528/0.1653, allocations: 31.8 kB / 424.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.731e-05/0.1654, allocations: 16.8 kB / 424.8 MB, free: 17.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001801/0.1656, allocations: 81.14 kB / 424.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001299/0.1657, allocations: 131.6 kB / 425 MB, free: 17.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.1659, allocations: 87.97 kB / 425.1 MB, free: 17.58 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.768e-05/0.166, allocations: 47.77 kB / 425.2 MB, free: 17.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.1661, allocations: 70.34 kB / 425.2 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.801e-05/0.1661, allocations: 8 kB / 425.2 MB, free: 17.46 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.754e-05/0.1662, allocations: 51.98 kB / 425.3 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.258e-05/0.1662, allocations: 35.89 kB / 425.3 MB, free: 17.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.977e-05/0.1663, allocations: 85.25 kB / 425.4 MB, free: 17.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000147/0.1664, allocations: 165.8 kB / 425.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.1664, allocations: 0 / 425.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1665, allocations: 2.969 kB / 425.6 MB, free: 17.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.1665, allocations: 0 / 425.6 MB, free: 17.12 MB / 302.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addReal.pkgOut[1].pkg = addReal.pkgIn.pkg addReal.pkgOut[1].pkg = uDPSend.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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0005604/0.167, allocations: 0.5116 MB / 426.1 MB, free: 16.55 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.781e-05/0.1671, allocations: 11.97 kB / 426.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.883e-05/0.1671, allocations: 16.75 kB / 426.1 MB, free: 16.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00012/0.1672, allocations: 216.1 kB / 426.3 MB, free: 16.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.1673, allocations: 16.38 kB / 426.3 MB, free: 16.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.1673, allocations: 12.38 kB / 426.3 MB, free: 16.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002607/0.1676, allocations: 183.8 kB / 426.5 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.617e-06/0.1676, allocations: 192 / 426.5 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.744e-05/0.1676, allocations: 7.938 kB / 426.5 MB, free: 16.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.1676, allocations: 4 kB / 426.5 MB, free: 16.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001519/0.1678, allocations: 91.89 kB / 426.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005045/0.1683, allocations: 0.5667 MB / 427.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002131/0.1685, allocations: 129 kB / 427.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.197e-05/0.1686, allocations: 65.75 kB / 427.4 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.682e-05/0.1686, allocations: 7.938 kB / 427.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001322/0.1688, allocations: 120.6 kB / 427.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.262e-06/0.1688, allocations: 0 / 427.5 MB, free: 14.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003802/0.1691, allocations: 241.4 kB / 427.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.1692, allocations: 85.11 kB / 427.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.744e-05/0.1693, allocations: 143.9 kB / 428 MB, free: 14.48 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.323e-05/0.1693, allocations: 33.7 kB / 428 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.55e-05/0.1693, allocations: 124.3 kB / 428.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.593e-05/0.1694, allocations: 35.48 kB / 428.2 MB, free: 14.29 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.1694, allocations: 33.7 kB / 428.2 MB, free: 14.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.363e-05/0.1694, allocations: 318.8 kB / 428.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.515e-05/0.1695, allocations: 39.98 kB / 428.5 MB, free: 13.89 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.398e-05/0.1696, allocations: 92.89 kB / 428.6 MB, free: 13.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001546/0.1697, allocations: 150.7 kB / 428.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.1698, allocations: 0 / 428.8 MB, free: 13.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002221/0.17, allocations: 173.2 kB / 428.9 MB, free: 13.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.217e-06/0.17, allocations: 4 kB / 428.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-06/0.17, allocations: 8.188 kB / 429 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.064e-05/0.17, allocations: 0 / 429 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.922e-05/0.1701, allocations: 23.98 kB / 429 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.1701, allocations: 7.938 kB / 429 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.702e-05/0.1702, allocations: 8.156 kB / 429 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.1702, allocations: 8 kB / 429 MB, free: 13.37 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 (uDPSend.dummy,$PRE.uDPSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addReal.pkgOut[1].backwardTrigger,addReal.pkgOut[1].trigger,$whenCondition1,uDPSend.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize,uDPSend.bufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 9.065e-05/0.1703, allocations: 155.4 kB / 429.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.897e-05/0.1703, allocations: 7.906 kB / 429.2 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002098/0.1705, allocations: 154.7 kB / 429.3 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.1706, allocations: 4 kB / 429.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1706, allocations: 0 / 429.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.1706, allocations: 0 / 429.3 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003814/0.171, allocations: 0.5021 MB / 429.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.171, allocations: 0 / 429.8 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.088e-05/0.171, allocations: 8 kB / 429.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.171, allocations: 0 / 429.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.202e-05/0.171, allocations: 4 kB / 429.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.171, allocations: 4 kB / 429.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.171, allocations: 0 / 429.8 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002607/0.1713, allocations: 300.1 kB / 430.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.893e-05/0.1713, allocations: 88.86 kB / 430.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.1714, allocations: 4 kB / 430.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.229e-05/0.1714, allocations: 7.984 kB / 430.2 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.78e-05/0.1715, allocations: 11.94 kB / 430.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.811e-05/0.1715, allocations: 11.98 kB / 430.3 MB, free: 12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.533e-05/0.1715, allocations: 103.2 kB / 430.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1715, allocations: 0 / 430.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002877/0.1718, allocations: 47.83 kB / 430.4 MB, free: 11.86 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 (addReal.pkgOut[1].trigger,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addReal.pkgOut[1].backwardTrigger,uDPSend.bufferSize,uDPSend.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0003503/0.1722, allocations: 227.7 kB / 430.6 MB, free: 11.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002055/0.1724, allocations: 122.6 kB / 430.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1724, allocations: 0 / 430.7 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.563e-05/0.1725, allocations: 75.92 kB / 430.8 MB, free: 11.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.1728, allocations: 17.61 kB / 430.8 MB, free: 11.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005828/0.1734, allocations: 405.1 kB / 431.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001064/0.1735, allocations: 0.7238 MB / 432 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.673e-05/0.1736, allocations: 15.44 kB / 432 MB, free: 10.25 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1736, allocations: 0 / 432 MB, free: 10.25 MB / 302.1 MB Notification: Performance of Templates: time 0.003142/0.1767, allocations: 2.36 MB / 434.3 MB, free: 7.906 MB / 302.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.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.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestFunctions.cpp:5: /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.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestFunctions.cpp:274: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) { ^ 2 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTestCalcHelperMain.o] Error 1