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.000701/0.000701, allocations: 95.78 kB / 16.71 MB, free: 6.633 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.0007497/0.0007497, allocations: 184.8 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.222/1.222, allocations: 223.3 MB / 241.7 MB, free: 212 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.05431/0.05431, allocations: 12.05 MB / 304.8 MB, free: 3.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002597/0.0002597, allocations: 15.98 kB / 368.9 MB, free: 2.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1632/0.1635, allocations: 53.36 MB / 422.3 MB, free: 20.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger): time 0.002387/0.1659, allocations: 2.584 MB / 424.9 MB, free: 17.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.1672, allocations: 1.172 MB / 426.1 MB, free: 16.61 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.637e-05/0.1673, allocations: 9 kB / 426.1 MB, free: 16.61 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.1675, allocations: 63.53 kB / 426.1 MB, free: 16.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001441/0.1676, allocations: 40.98 kB / 426.2 MB, free: 16.5 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003997/0.1681, allocations: 243.6 kB / 426.4 MB, free: 16.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.1683, allocations: 392.3 kB / 426.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002539/0.1686, allocations: 226.9 kB / 427 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1687, allocations: 143.2 kB / 427.1 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001649/0.1689, allocations: 183 kB / 427.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.28e-05/0.1689, allocations: 20 kB / 427.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.1691, allocations: 159.8 kB / 427.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.69e-05/0.1692, allocations: 123.6 kB / 427.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.1693, allocations: 208.5 kB / 427.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.1696, allocations: 492.8 kB / 428.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.1696, allocations: 0 / 428.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1697, allocations: 0 / 428.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1697, allocations: 0 / 428.3 MB, free: 14.36 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.001006/0.1707, allocations: 1.059 MB / 429.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.1707, allocations: 11.97 kB / 429.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.943e-05/0.1708, allocations: 48.38 kB / 429.4 MB, free: 13.14 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.171, allocations: 328.5 kB / 429.7 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.1711, allocations: 29.36 kB / 429.8 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.628e-05/0.1711, allocations: 40.38 kB / 429.8 MB, free: 12.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000595/0.1717, allocations: 0.49 MB / 430.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.1717, allocations: 0 / 430.3 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.48e-05/0.1718, allocations: 16 kB / 430.3 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.1718, allocations: 12 kB / 430.3 MB, free: 12.17 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003755/0.1722, allocations: 281.9 kB / 430.6 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1733, allocations: 1.452 MB / 432.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.1737, allocations: 317.3 kB / 432.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001872/0.1739, allocations: 168.5 kB / 432.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.306e-05/0.174, allocations: 8.062 kB / 432.5 MB, free: 9.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002775/0.1742, allocations: 264 kB / 432.8 MB, free: 9.535 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.1742, allocations: 3.938 kB / 432.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.0008258/0.1751, allocations: 0.6031 MB / 433.4 MB, free: 8.922 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.81e-05/0.1751, allocations: 182.2 kB / 433.6 MB, free: 8.707 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001611/0.1753, allocations: 243.9 kB / 433.8 MB, free: 8.457 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.983e-05/0.1753, allocations: 41.7 kB / 433.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.1754, allocations: 209.3 kB / 434.1 MB, free: 8.203 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.184e-05/0.1755, allocations: 106.6 kB / 434.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.786e-05/0.1756, allocations: 81.67 kB / 434.2 MB, free: 8.012 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.897e-05/0.1756, allocations: 342.8 kB / 434.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001795/0.1758, allocations: 125 kB / 434.7 MB, free: 7.547 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002314/0.176, allocations: 344.9 kB / 435 MB, free: 7.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004399/0.1765, allocations: 0.5067 MB / 435.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.1765, allocations: 4 kB / 435.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0006159/0.1771, allocations: 0.497 MB / 436.1 MB, free: 5.996 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.171e-05/0.1771, allocations: 8 kB / 436.1 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.1771, allocations: 8 kB / 436.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.1772, allocations: 11.94 kB / 436.1 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.1774, allocations: 91.7 kB / 436.2 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.1774, allocations: 11.98 kB / 436.2 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001675/0.1776, allocations: 43.59 kB / 436.2 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.1776, allocations: 24.41 kB / 436.2 MB, free: 5.801 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.0001785/0.1778, allocations: 241.8 kB / 436.5 MB, free: 5.555 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.928e-05/0.1779, allocations: 27.72 kB / 436.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004697/0.1783, allocations: 392.1 kB / 436.9 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1784, allocations: 12 kB / 436.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.1784, allocations: 4.062 kB / 436.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.1784, allocations: 0 / 436.9 MB, free: 5.121 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009101/0.1793, allocations: 0.9584 MB / 437.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1793, allocations: 0 / 437.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.094e-05/0.1794, allocations: 19.94 kB / 437.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/0.1794, allocations: 7.984 kB / 437.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.167e-05/0.1794, allocations: 7.984 kB / 437.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1794, allocations: 15.92 kB / 437.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.1794, allocations: 0 / 437.9 MB, free: 4.055 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005976/0.18, allocations: 0.5961 MB / 438.5 MB, free: 3.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.306e-05/0.1801, allocations: 112.7 kB / 438.6 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.567e-05/0.1801, allocations: 11.94 kB / 438.6 MB, free: 3.289 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.1802, allocations: 11.98 kB / 438.6 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.005e-05/0.1803, allocations: 23.97 kB / 438.7 MB, free: 3.254 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.943e-05/0.1803, allocations: 15.98 kB / 438.7 MB, free: 3.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.455e-05/0.1804, allocations: 139.2 kB / 438.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1804, allocations: 0 / 438.8 MB, free: 3.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004604/0.1809, allocations: 155.7 kB / 439 MB, free: 2.949 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.0005045/0.1814, allocations: 344.1 kB / 439.3 MB, free: 2.66 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004714/0.1818, allocations: 375.7 kB / 439.7 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1819, allocations: 0 / 439.7 MB, free: 2.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000222/0.1821, allocations: 177.3 kB / 439.8 MB, free: 2.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000504/0.1826, allocations: 61.77 kB / 439.9 MB, free: 2.062 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.1836, allocations: 0.9007 MB / 440.8 MB, free: 1.117 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001787/0.1838, allocations: 0.8193 MB / 441.6 MB, free: 280 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.956e-05/0.1839, allocations: 27.44 kB / 441.7 MB, free: 252 kB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1839, allocations: 0 / 441.7 MB, free: 252 kB / 302.1 MB Notification: Performance of Templates: time 0.008082/0.192, allocations: 6.157 MB / 447.8 MB, free: 10.12 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