Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008683/0.0008683, allocations: 90.67 kB / 16.71 MB, free: 6.145 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.0009311/0.0009312, allocations: 178.1 kB / 17.62 MB, free: 5.855 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.227/1.227, allocations: 223.3 MB / 241.7 MB, free: 180 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.05478/0.05478, allocations: 12.06 MB / 304.8 MB, free: 3.148 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002824/0.0002825, allocations: 8 kB / 368.9 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1679, allocations: 53.36 MB / 422.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize): time 0.002305/0.1703, allocations: 2.525 MB / 424.8 MB, free: 17.85 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.1713, allocations: 0.8766 MB / 425.7 MB, free: 16.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.346e-05/0.1714, allocations: 11.88 kB / 425.7 MB, free: 16.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001855/0.1716, allocations: 64.7 kB / 425.8 MB, free: 16.89 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001363/0.1718, allocations: 39.7 kB / 425.8 MB, free: 16.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003844/0.1722, allocations: 240.7 kB / 426 MB, free: 16.62 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002574/0.1724, allocations: 390.9 kB / 426.4 MB, free: 16.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000252/0.1727, allocations: 224.5 kB / 426.6 MB, free: 16.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.688e-05/0.1728, allocations: 143.3 kB / 426.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.173, allocations: 171 kB / 427 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.17e-05/0.173, allocations: 16 kB / 427 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.1732, allocations: 163.8 kB / 427.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.686e-05/0.1733, allocations: 111.6 kB / 427.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.1734, allocations: 208.5 kB / 427.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003232/0.1737, allocations: 484.9 kB / 427.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.085e-06/0.1737, allocations: 0 / 427.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1737, allocations: 0 / 427.9 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.1738, allocations: 0 / 427.9 MB, free: 14.75 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 uDPSend.pkgIn.pkg = addInteger.pkgOut[1].pkg addFloat.pkgOut[1].pkg = addInteger.pkgIn.pkg addReal.pkgOut[1].pkg = addFloat.pkgIn.pkg uDPReceive.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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.0009837/0.1747, allocations: 1.045 MB / 429 MB, free: 13.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.76e-05/0.1748, allocations: 8.031 kB / 429 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.321e-05/0.1749, allocations: 48.38 kB / 429 MB, free: 13.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002368/0.1751, allocations: 331.4 kB / 429.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.1751, allocations: 37.36 kB / 429.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.1752, allocations: 32.38 kB / 429.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005796/0.1758, allocations: 492 kB / 429.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.382e-05/0.1758, allocations: 4.125 kB / 429.9 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.1758, allocations: 19.94 kB / 429.9 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.1758, allocations: 12 kB / 429.9 MB, free: 12.58 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003627/0.1762, allocations: 259.8 kB / 430.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001087/0.1773, allocations: 1.374 MB / 431.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004039/0.1777, allocations: 306.2 kB / 431.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.1779, allocations: 155.4 kB / 432 MB, free: 10.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.1779, allocations: 8.062 kB / 432 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002718/0.1782, allocations: 267.2 kB / 432.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.683e-06/0.1782, allocations: 0 / 432.3 MB, free: 10.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008128/0.1791, allocations: 0.5942 MB / 432.9 MB, free: 9.484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.419e-05/0.1791, allocations: 156.4 kB / 433 MB, free: 9.301 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001546/0.1793, allocations: 238.9 kB / 433.3 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.1793, allocations: 45.7 kB / 433.3 MB, free: 9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.407e-05/0.1794, allocations: 204.2 kB / 433.5 MB, free: 8.793 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.92e-05/0.1794, allocations: 102.7 kB / 433.6 MB, free: 8.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.578e-05/0.1795, allocations: 77.67 kB / 433.7 MB, free: 8.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.559e-05/0.1796, allocations: 346.7 kB / 434 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001782/0.1798, allocations: 125 kB / 434.1 MB, free: 8.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002265/0.18, allocations: 332.1 kB / 434.5 MB, free: 7.727 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004361/0.1804, allocations: 0.4981 MB / 435 MB, free: 7.133 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1804, allocations: 3.938 kB / 435 MB, free: 7.129 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006108/0.1811, allocations: 0.4971 MB / 435.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.1811, allocations: 8 kB / 435.5 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.045e-06/0.1811, allocations: 8 kB / 435.5 MB, free: 6.609 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.1811, allocations: 12 kB / 435.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002299/0.1813, allocations: 79.83 kB / 435.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.1814, allocations: 16.33 kB / 435.6 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001668/0.1815, allocations: 39.59 kB / 435.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.715e-05/0.1816, allocations: 28.05 kB / 435.6 MB, free: 6.438 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 58 (addFloat.pkgOut[1].dummy,$PRE.addFloat.pkgOut[1].dummy,addInteger.pkgOut[1].dummy,$PRE.addInteger.pkgOut[1].dummy,uDPSend.dummy,$PRE.uDPSend.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,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvBytes,$PRE.uDPReceive.nRecvBytes,uDPReceive.pkgOut.dummy,$PRE.uDPReceive.pkgOut.dummy,getFloat.pkgOut[1].trigger,$whenCondition1,getInteger.pkgIn.userPkgBitSize,getInteger.pkgIn.backwardTrigger,getFloat.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getReal.pkgIn.autoPkgBitSize,uDPReceive.bufferSize,addFloat.pkgIn.autoPkgBitSize,addInteger.pkgIn.autoPkgBitSize,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 (66): * Single equations (assignments): 66 * 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.000178/0.1818, allocations: 246 kB / 435.9 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.751e-05/0.1818, allocations: 31.7 kB / 435.9 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003067/0.1821, allocations: 231.4 kB / 436.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1821, allocations: 7.938 kB / 436.2 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.1821, allocations: 8 kB / 436.2 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.58e-06/0.1821, allocations: 3.984 kB / 436.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009255/0.1831, allocations: 1.024 MB / 437.2 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1831, allocations: 0 / 437.2 MB, free: 4.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.971e-05/0.1831, allocations: 15.98 kB / 437.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.1832, allocations: 0 / 437.2 MB, free: 4.809 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.1832, allocations: 15.98 kB / 437.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.1832, allocations: 11.88 kB / 437.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1832, allocations: 4.078 kB / 437.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005908/0.1838, allocations: 0.6617 MB / 437.9 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.095e-05/0.1838, allocations: 104.7 kB / 438 MB, free: 3.969 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.1839, allocations: 11.98 kB / 438 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001423/0.184, allocations: 11.94 kB / 438 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.657e-05/0.1841, allocations: 23.91 kB / 438 MB, free: 3.922 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-05/0.1841, allocations: 15.98 kB / 438.1 MB, free: 3.906 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.941e-05/0.1842, allocations: 139.1 kB / 438.2 MB, free: 3.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1842, allocations: 3.938 kB / 438.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000484/0.1847, allocations: 155.6 kB / 438.4 MB, free: 3.613 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: 37 (getFloat.pkgOut[1].trigger,$whenCondition1,uDPReceive.pkgOut.dummy,uDPReceive.nRecvBytes,uDPReceive.nRecvbufOverwrites,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,uDPReceive.bufferSize,getReal.pkgIn.autoPkgBitSize,getInteger.pkgIn.autoPkgBitSize,getFloat.pkgIn.autoPkgBitSize,addFloat.pkgOut[1].trigger,$whenCondition2,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],addFloat.pkgOut[1].dummy,addFloat.pkgOut[1].backwardTrigger,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.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.0005005/0.1852, allocations: 348.9 kB / 438.7 MB, free: 3.324 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004662/0.1856, allocations: 361.5 kB / 439 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1857, allocations: 0 / 439 MB, free: 2.973 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002078/0.1859, allocations: 167.8 kB / 439.2 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005448/0.1864, allocations: 68.23 kB / 439.3 MB, free: 2.742 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001044/0.1875, allocations: 0.8924 MB / 440.2 MB, free: 1.805 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001747/0.1877, allocations: 0.8034 MB / 441 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.772e-05/0.1877, allocations: 27.42 kB / 441 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1877, allocations: 192 / 441 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of Templates: time 0.007335/0.1951, allocations: 6.1 MB / 447.1 MB, free: 10.89 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.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_UDPAutoBufferSizeCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.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_UDPAutoBufferSizeCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:493: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_UDPAutoBufferSizeCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:514: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_UDPAutoBufferSizeCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:535: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_UDPAutoBufferSizeCalcHelperMain.o] Error 1