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.001808/0.001808, allocations: 108.4 kB / 16.57 MB, free: 6.723 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.002137/0.002137, allocations: 193.9 kB / 17.48 MB, free: 6.027 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.293/1.293, allocations: 222.9 MB / 241.2 MB, free: 15.48 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.05683/0.05683, allocations: 12.03 MB / 303.3 MB, free: 3.438 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 67.91 kB / 366.4 MB, free: 4.301 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.2138, allocations: 52.32 MB / 418.7 MB, free: 21.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize): time 0.0034/0.2172, allocations: 2.899 MB / 421.6 MB, free: 18.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001209/0.2185, allocations: 0.8991 MB / 422.5 MB, free: 17.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001171/0.2186, allocations: 11.88 kB / 422.6 MB, free: 17.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000253/0.2189, allocations: 59.58 kB / 422.6 MB, free: 17.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001526/0.219, allocations: 39.7 kB / 422.7 MB, free: 17.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004397/0.2195, allocations: 247.6 kB / 422.9 MB, free: 17.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000253/0.2198, allocations: 379 kB / 423.3 MB, free: 16.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002646/0.22, allocations: 234.8 kB / 423.5 MB, free: 16.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.2202, allocations: 179.3 kB / 423.7 MB, free: 16.39 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001871/0.2203, allocations: 230.9 kB / 423.9 MB, free: 16.16 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.737e-05/0.2204, allocations: 32 kB / 423.9 MB, free: 16.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002004/0.2206, allocations: 179.8 kB / 424.1 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001004/0.2207, allocations: 139.5 kB / 424.2 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.2208, allocations: 210.8 kB / 424.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003212/0.2212, allocations: 489 kB / 424.9 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2212, allocations: 8 kB / 424.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2212, allocations: 0 / 424.9 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.2212, allocations: 0 / 424.9 MB, free: 15.13 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.001201/0.2224, allocations: 1.142 MB / 426.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.2225, allocations: 8.031 kB / 426.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.164e-05/0.2225, allocations: 56.25 kB / 426.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.2228, allocations: 311.6 kB / 426.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.673e-05/0.2229, allocations: 29.38 kB / 426.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.648e-05/0.2229, allocations: 52.3 kB / 426.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005902/0.2235, allocations: 480.1 kB / 427 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.2235, allocations: 192 / 427 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.2236, allocations: 23.92 kB / 427 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.508e-06/0.2236, allocations: 12 kB / 427 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003746/0.224, allocations: 271.6 kB / 427.3 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001217/0.2252, allocations: 1.38 MB / 428.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004221/0.2256, allocations: 298.4 kB / 429 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.2258, allocations: 159.5 kB / 429.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.2259, allocations: 7.984 kB / 429.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002892/0.2262, allocations: 267.3 kB / 429.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.553e-06/0.2262, allocations: 0 / 429.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008784/0.227, allocations: 0.5862 MB / 430 MB, free: 9.777 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.392e-05/0.2271, allocations: 156.4 kB / 430.1 MB, free: 9.594 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001645/0.2273, allocations: 242.8 kB / 430.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.94e-05/0.2273, allocations: 45.69 kB / 430.4 MB, free: 9.289 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.918e-05/0.2274, allocations: 200.3 kB / 430.6 MB, free: 9.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.265e-05/0.2275, allocations: 106.7 kB / 430.7 MB, free: 8.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.2276, allocations: 130.1 kB / 430.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.287e-05/0.2277, allocations: 350.7 kB / 431.2 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.2278, allocations: 121 kB / 431.3 MB, free: 8.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.2281, allocations: 332 kB / 431.6 MB, free: 7.961 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000444/0.2286, allocations: 0.4942 MB / 432.1 MB, free: 7.371 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.2286, allocations: 4 kB / 432.1 MB, free: 7.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006052/0.2292, allocations: 0.4973 MB / 432.6 MB, free: 6.863 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2292, allocations: 12.03 kB / 432.6 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/0.2292, allocations: 4 kB / 432.6 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.311e-05/0.2293, allocations: 15.94 kB / 432.6 MB, free: 6.832 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.2295, allocations: 79.83 kB / 432.7 MB, free: 6.754 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.274e-05/0.2295, allocations: 15.94 kB / 432.7 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001599/0.2297, allocations: 35.75 kB / 432.8 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.987e-05/0.2297, allocations: 31.98 kB / 432.8 MB, free: 6.672 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.0001977/0.2299, allocations: 241.8 kB / 433 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.764e-05/0.23, allocations: 27.62 kB / 433.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003247/0.2303, allocations: 239.4 kB / 433.3 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.2303, allocations: 4 kB / 433.3 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.972e-06/0.2303, allocations: 4 kB / 433.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.2303, allocations: 0 / 433.3 MB, free: 6.156 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009816/0.2313, allocations: 1.035 MB / 434.3 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.2313, allocations: 4 kB / 434.3 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.919e-05/0.2314, allocations: 11.98 kB / 434.4 MB, free: 5.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.647e-06/0.2314, allocations: 4 kB / 434.4 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.2314, allocations: 11.98 kB / 434.4 MB, free: 5.035 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.2314, allocations: 7.938 kB / 434.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2314, allocations: 7.875 kB / 434.4 MB, free: 5.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006198/0.2321, allocations: 0.6502 MB / 435 MB, free: 4.344 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.38e-05/0.2321, allocations: 116.6 kB / 435.2 MB, free: 4.211 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.991e-05/0.2322, allocations: 7.984 kB / 435.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.2323, allocations: 11.94 kB / 435.2 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.515e-05/0.2323, allocations: 27.97 kB / 435.2 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.287e-05/0.2324, allocations: 15.98 kB / 435.2 MB, free: 4.148 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.312e-05/0.2325, allocations: 139 kB / 435.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2325, allocations: 0 / 435.4 MB, free: 4.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005472/0.233, allocations: 159.6 kB / 435.5 MB, free: 3.855 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.0005729/0.2336, allocations: 341 kB / 435.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004936/0.2341, allocations: 361.8 kB / 436.2 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2341, allocations: 4.25 kB / 436.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002175/0.2343, allocations: 175.8 kB / 436.4 MB, free: 3.047 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005557/0.2349, allocations: 59.39 kB / 436.4 MB, free: 2.992 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0012/0.2361, allocations: 0.8853 MB / 437.3 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002012/0.2363, allocations: 0.8034 MB / 438.1 MB, free: 1.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.34e-05/0.2364, allocations: 35.42 kB / 438.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2364, allocations: 0 / 438.2 MB, free: 1.203 MB / 302.1 MB Notification: Performance of Templates: time 0.008268/0.2447, allocations: 6.124 MB / 444.3 MB, free: 11.11 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