Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.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_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008545/0.0008546, allocations: 90.31 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.0009321/0.0009321, allocations: 177.7 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.237/1.237, allocations: 223.3 MB / 241.7 MB, free: 14.46 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.05459/0.05459, allocations: 12.05 MB / 304.8 MB, free: 2.898 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002639/0.000264, allocations: 8 kB / 368.9 MB, free: 2.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1722/0.1724, allocations: 53.36 MB / 422.3 MB, free: 20.24 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP): time 0.002287/0.1748, allocations: 2.432 MB / 424.7 MB, free: 17.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.1758, allocations: 0.8499 MB / 425.6 MB, free: 16.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.558e-05/0.1759, allocations: 7.938 kB / 425.6 MB, free: 16.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.1761, allocations: 59.59 kB / 425.6 MB, free: 16.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001227/0.1762, allocations: 25.12 kB / 425.7 MB, free: 16.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000393/0.1766, allocations: 239.6 kB / 425.9 MB, free: 16.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000246/0.1769, allocations: 352.2 kB / 426.2 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002389/0.1771, allocations: 217.9 kB / 426.5 MB, free: 16.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.05e-05/0.1772, allocations: 123.4 kB / 426.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.1774, allocations: 159.1 kB / 426.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.1774, allocations: 16 kB / 426.8 MB, free: 15.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000176/0.1776, allocations: 155.8 kB / 426.9 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.454e-05/0.1777, allocations: 103.6 kB / 427 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001019/0.1778, allocations: 192.6 kB / 427.2 MB, free: 15.33 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.1781, allocations: 456.9 kB / 427.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1781, allocations: 0 / 427.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.1781, allocations: 0 / 427.6 MB, free: 14.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.24e-06/0.1782, allocations: 0 / 427.6 MB, free: 14.88 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 addInteger.pkgOut[1].pkg = tcpipClient.pkgIn.pkg tcpipClient.pkgOut.pkg = getReal.pkgIn.pkg getInteger.pkgIn.pkg = getFloat.pkgOut[1].pkg getReal.pkgOut[1].pkg = getFloat.pkgIn.pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.0009823/0.1791, allocations: 0.9984 MB / 428.6 MB, free: 13.78 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.1792, allocations: 16.03 kB / 428.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.485e-05/0.1792, allocations: 48.41 kB / 428.7 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002206/0.1795, allocations: 307.5 kB / 429 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.948e-05/0.1795, allocations: 33.36 kB / 429 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.1796, allocations: 40.36 kB / 429.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005616/0.1801, allocations: 456.3 kB / 429.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.286e-05/0.1802, allocations: 192 / 429.5 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.457e-05/0.1802, allocations: 27.92 kB / 429.5 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.1802, allocations: 12 kB / 429.6 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003542/0.1806, allocations: 254 kB / 429.8 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.1816, allocations: 1.241 MB / 431 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003685/0.182, allocations: 267.8 kB / 431.3 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.1822, allocations: 146.5 kB / 431.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.47e-05/0.1822, allocations: 7.984 kB / 431.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002526/0.1825, allocations: 234 kB / 431.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.653e-06/0.1825, allocations: 0 / 431.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=37): time 0.0007578/0.1832, allocations: 0.5492 MB / 432.2 MB, free: 9.992 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.586e-05/0.1833, allocations: 130.7 kB / 432.4 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.1834, allocations: 214.1 kB / 432.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.613e-05/0.1835, allocations: 37.7 kB / 432.6 MB, free: 9.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.707e-05/0.1835, allocations: 192.4 kB / 432.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.451e-05/0.1836, allocations: 90.89 kB / 432.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-05/0.1837, allocations: 73.67 kB / 433 MB, free: 9.219 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.453e-05/0.1837, allocations: 338.8 kB / 433.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001527/0.1839, allocations: 109 kB / 433.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001949/0.1841, allocations: 293.5 kB / 433.7 MB, free: 8.398 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003877/0.1845, allocations: 455.6 kB / 434.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.1845, allocations: 0 / 434.1 MB, free: 7.867 MB / 302.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0005294/0.185, allocations: 449.1 kB / 434.6 MB, free: 7.422 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.164e-05/0.185, allocations: 8 kB / 434.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.185, allocations: 7.938 kB / 434.6 MB, free: 7.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.1851, allocations: 12 kB / 434.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.1853, allocations: 63.84 kB / 434.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.1853, allocations: 19.86 kB / 434.7 MB, free: 7.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001477/0.1854, allocations: 35.69 kB / 434.7 MB, free: 7.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.1855, allocations: 24 kB / 434.7 MB, free: 7.254 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 50 (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,addFloat.pkgOut[1].dummy,$PRE.addFloat.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,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,tcpipClient.pkgOut.dummy,$PRE.tcpipClient.pkgOut.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,getFloat.pkgOut[1].trigger,addFloat.pkgOut[1].trigger,$whenCondition1,$whenCondition2,addInteger.u[1],tcpipClient.isConnected,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,addReal.pkgIn.autoPkgBitSize,packager.bufferSize,packager.backwardPropagatedBufferSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 56 * 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.0001696/0.1857, allocations: 232 kB / 435 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.352e-05/0.1857, allocations: 27.72 kB / 435 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004435/0.1861, allocations: 368.7 kB / 435.3 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.1862, allocations: 4 kB / 435.4 MB, free: 6.621 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.1862, allocations: 4 kB / 435.4 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1862, allocations: 7.984 kB / 435.4 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008569/0.187, allocations: 0.9 MB / 436.3 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.187, allocations: 0 / 436.3 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.876e-05/0.1871, allocations: 11.94 kB / 436.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1871, allocations: 4 kB / 436.3 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.039e-05/0.1871, allocations: 11.98 kB / 436.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.144e-06/0.1871, allocations: 0 / 436.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1872, allocations: 8 kB / 436.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005423/0.1877, allocations: 0.5477 MB / 436.8 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.001e-05/0.1877, allocations: 104.7 kB / 437 MB, free: 4.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.155e-05/0.1878, allocations: 8 kB / 437 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.1879, allocations: 7.984 kB / 437 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.08e-05/0.1879, allocations: 23.92 kB / 437 MB, free: 4.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.788e-05/0.188, allocations: 15.98 kB / 437 MB, free: 4.871 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.431e-05/0.188, allocations: 128.1 kB / 437.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.188, allocations: 0 / 437.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004371/0.1885, allocations: 143.6 kB / 437.3 MB, free: 4.602 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 32 (getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,getFloat.pkgOut[1].trigger,addFloat.pkgOut[1].trigger,$whenCondition2,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,tcpipClient.pkgOut.dummy,tcpipClient.isConnected,addInteger.pkgOut[1].dummy,addInteger.u[1],getReal.pkgOut[1].dummy,getReal.y[1],getReal.y[2],getReal.y[3],getReal.dummy,getInteger.y[1],getInteger.dummy,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,tcpipClient.pkgIn.userPkgBitSize,tcpipClient.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 (31): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 21 * 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.0005364/0.189, allocations: 363.2 kB / 437.6 MB, free: 4.309 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004197/0.1895, allocations: 328.7 kB / 437.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1895, allocations: 0 / 437.9 MB, free: 3.988 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001852/0.1897, allocations: 151.9 kB / 438.1 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004729/0.1901, allocations: 67.06 kB / 438.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000883/0.191, allocations: 0.782 MB / 438.9 MB, free: 2.961 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.1912, allocations: 0.7955 MB / 439.7 MB, free: 2.141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.258e-05/0.1913, allocations: 23.44 kB / 439.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1913, allocations: 0 / 439.8 MB, free: 2.117 MB / 302.1 MB Notification: Performance of Templates: time 0.006669/0.1979, allocations: 5.557 MB / 445.3 MB, free: 12.57 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIP.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_TCPIPCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.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.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:144:5: warning: expression result unused [-Wunused-value] tmp28; ^~~~~ ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:488: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_TCPIPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:509: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_TCPIPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPFunctions.cpp:530: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) { ^ 1 warning and 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_TCPIPCalcHelperMain.o] Error 1