Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.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_UDPExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001038/0.001038, allocations: 105.8 kB / 16.57 MB, free: 6.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 193.6 kB / 17.49 MB, free: 5.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 222.9 MB / 241.2 MB, free: 13.75 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.05558/0.05558, allocations: 12.03 MB / 303.3 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 55.91 kB / 366.4 MB, free: 4.078 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.2151, allocations: 52.33 MB / 418.8 MB, free: 21.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger): time 0.003898/0.219, allocations: 2.94 MB / 421.7 MB, free: 18.36 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.2206, allocations: 1.204 MB / 422.9 MB, free: 17.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.2208, allocations: 11.88 kB / 422.9 MB, free: 17.13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002943/0.2211, allocations: 56.72 kB / 423 MB, free: 17.08 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.2213, allocations: 43.3 kB / 423 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005173/0.2218, allocations: 247.6 kB / 423.2 MB, free: 16.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002745/0.2221, allocations: 394.9 kB / 423.6 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.2224, allocations: 244.9 kB / 423.9 MB, free: 16.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001307/0.2225, allocations: 179.3 kB / 424 MB, free: 16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002119/0.2227, allocations: 231 kB / 424.3 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.901e-05/0.2228, allocations: 32 kB / 424.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002322/0.223, allocations: 183.8 kB / 424.5 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001168/0.2231, allocations: 143.5 kB / 424.6 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001448/0.2233, allocations: 214.7 kB / 424.8 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003639/0.2237, allocations: 497 kB / 425.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2237, allocations: 4 kB / 425.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2237, allocations: 0 / 425.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.2237, allocations: 0 / 425.3 MB, free: 14.72 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.001346/0.225, allocations: 1.139 MB / 426.5 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.2251, allocations: 11.97 kB / 426.5 MB, free: 13.47 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.922e-05/0.2252, allocations: 56.27 kB / 426.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002912/0.2255, allocations: 328.5 kB / 426.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.015e-05/0.2255, allocations: 25.38 kB / 426.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/0.2256, allocations: 44.36 kB / 426.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006188/0.2262, allocations: 497.7 kB / 427.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.2262, allocations: 0 / 427.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/0.2263, allocations: 27.92 kB / 427.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.047e-05/0.2263, allocations: 8 kB / 427.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003799/0.2267, allocations: 270 kB / 427.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.2279, allocations: 1.463 MB / 429.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.2284, allocations: 313.2 kB / 429.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001875/0.2286, allocations: 168.4 kB / 429.6 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.497e-05/0.2286, allocations: 8.062 kB / 429.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002958/0.2289, allocations: 267.9 kB / 429.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.864e-06/0.2289, allocations: 0 / 429.9 MB, free: 9.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.0008939/0.2298, allocations: 0.6003 MB / 430.5 MB, free: 9.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.427e-05/0.2299, allocations: 182.5 kB / 430.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/0.2301, allocations: 247.8 kB / 430.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.2301, allocations: 45.69 kB / 431 MB, free: 8.684 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.495e-05/0.2302, allocations: 209 kB / 431.2 MB, free: 8.477 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.042e-05/0.2303, allocations: 102.7 kB / 431.3 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.2304, allocations: 130.1 kB / 431.4 MB, free: 8.242 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 7.757e-05/0.2305, allocations: 346.8 kB / 431.7 MB, free: 7.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001735/0.2307, allocations: 121 kB / 431.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002475/0.2309, allocations: 348.9 kB / 432.2 MB, free: 7.336 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004422/0.2314, allocations: 0.499 MB / 432.7 MB, free: 6.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.927e-06/0.2314, allocations: 4 kB / 432.7 MB, free: 6.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006159/0.232, allocations: 0.5045 MB / 433.2 MB, free: 6.223 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.232, allocations: 8.906 kB / 433.2 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.232, allocations: 8.078 kB / 433.2 MB, free: 6.207 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.12e-05/0.2321, allocations: 15.94 kB / 433.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002449/0.2323, allocations: 83.83 kB / 433.3 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.362e-05/0.2323, allocations: 15.92 kB / 433.3 MB, free: 6.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001653/0.2325, allocations: 39.59 kB / 433.4 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.991e-05/0.2326, allocations: 31.98 kB / 433.4 MB, free: 6.023 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 59 (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,uDPReceive.nRecvbufOverwrites,$PRE.uDPReceive.nRecvbufOverwrites,uDPReceive.nRecvBytes,$PRE.uDPReceive.nRecvBytes,uDPReceive.pkgOut.dummy,$PRE.uDPReceive.pkgOut.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,getFloat.pkgOut[1].trigger,addFloat.pkgOut[1].trigger,$whenCondition1,$whenCondition2,addInteger.u[1],uDPReceive.internalTrigger,uDPSend.internalTrigger,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 (67): * Single equations (assignments): 67 * 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.0001961/0.2328, allocations: 237.7 kB / 433.6 MB, free: 5.781 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.177e-05/0.2328, allocations: 31.8 kB / 433.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004802/0.2333, allocations: 396.8 kB / 434.1 MB, free: 5.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.2333, allocations: 8 kB / 434.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.2333, allocations: 0 / 434.1 MB, free: 5.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2333, allocations: 7.969 kB / 434.1 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009496/0.2343, allocations: 0.9585 MB / 435 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-06/0.2343, allocations: 0 / 435 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.048e-05/0.2344, allocations: 15.98 kB / 435 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.2344, allocations: 0 / 435 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.582e-05/0.2344, allocations: 15.98 kB / 435.1 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.2344, allocations: 11.88 kB / 435.1 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2344, allocations: 0 / 435.1 MB, free: 4.281 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006158/0.235, allocations: 0.5961 MB / 435.7 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.524e-05/0.2351, allocations: 104.8 kB / 435.8 MB, free: 3.535 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.855e-05/0.2351, allocations: 11.92 kB / 435.8 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.2352, allocations: 11.98 kB / 435.8 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.2353, allocations: 23.92 kB / 435.8 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.22e-05/0.2353, allocations: 15.98 kB / 435.8 MB, free: 3.473 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.637e-05/0.2354, allocations: 147.2 kB / 436 MB, free: 3.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2354, allocations: 0 / 436 MB, free: 3.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.2359, allocations: 151.5 kB / 436.1 MB, free: 3.18 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 38 (uDPSend.internalTrigger,uDPReceive.internalTrigger,uDPReceive.bufferSize,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,uDPSend.bufferSize,uDPSend.dummy,addInteger.pkgOut[1].dummy,addInteger.u[1],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,addFloat.pkgOut[1].dummy,getFloat.pkgOut[1].dummy,getFloat.y[1],getFloat.y[2],getFloat.dummy,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 (35): * Single equations (assignments): 12 * 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.0005912/0.2365, allocations: 340.5 kB / 436.5 MB, free: 2.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005069/0.237, allocations: 370.2 kB / 436.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2371, allocations: 4.5 kB / 436.8 MB, free: 2.527 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002294/0.2373, allocations: 179.8 kB / 437 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004964/0.2378, allocations: 79.08 kB / 437.1 MB, free: 2.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001284/0.2391, allocations: 0.8875 MB / 438 MB, free: 1.344 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002187/0.2393, allocations: 0.8115 MB / 438.8 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.15e-05/0.2394, allocations: 27.42 kB / 438.8 MB, free: 492 kB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2394, allocations: 0 / 438.8 MB, free: 492 kB / 302.1 MB Notification: Performance of Templates: time 0.009074/0.2485, allocations: 6.192 MB / 445 MB, free: 10.32 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger.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_UDPExternalTriggerCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTriggerCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTriggerCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTriggerFunctions.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_UDPExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTriggerFunctions.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_UDPExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTriggerFunctions.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_UDPExternalTriggerCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTriggerFunctions.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_UDPExternalTriggerCalcHelperMain.o] Error 1