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.001113/0.001113, allocations: 107.8 kB / 16.68 MB, free: 5.871 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.001091/0.001091, allocations: 190.7 kB / 17.61 MB, free: 5.438 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.318/1.318, allocations: 222.9 MB / 241.3 MB, free: 13.69 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.05616/0.05616, allocations: 12.02 MB / 303.5 MB, free: 3.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001207, allocations: 63.91 kB / 366.6 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2192/0.2204, allocations: 52.33 MB / 418.9 MB, free: 21.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger): time 0.003552/0.224, allocations: 2.945 MB / 421.9 MB, free: 18.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.2256, allocations: 1.195 MB / 423.1 MB, free: 17.11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001498/0.2257, allocations: 12.53 kB / 423.1 MB, free: 17.1 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000273/0.226, allocations: 59.52 kB / 423.1 MB, free: 17.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.2262, allocations: 47.02 kB / 423.2 MB, free: 17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000523/0.2267, allocations: 251.6 kB / 423.4 MB, free: 16.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002879/0.227, allocations: 411 kB / 423.8 MB, free: 16.35 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002813/0.2273, allocations: 244.8 kB / 424.1 MB, free: 16.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001625/0.2275, allocations: 203.2 kB / 424.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.2277, allocations: 238.9 kB / 424.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.2278, allocations: 44 kB / 424.6 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002315/0.228, allocations: 195.8 kB / 424.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.2281, allocations: 151.6 kB / 424.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001256/0.2283, allocations: 226.7 kB / 425.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.2286, allocations: 0.4932 MB / 425.6 MB, free: 14.58 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2286, allocations: 11.98 kB / 425.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2287, allocations: 0 / 425.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.2287, allocations: 3.938 kB / 425.6 MB, free: 14.57 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.001255/0.2299, allocations: 1.139 MB / 426.8 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.189e-05/0.23, allocations: 8.031 kB / 426.8 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.504e-05/0.2301, allocations: 48.38 kB / 426.8 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002633/0.2303, allocations: 324.4 kB / 427.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.15e-05/0.2304, allocations: 33.38 kB / 427.2 MB, free: 12.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.882e-05/0.2304, allocations: 44.36 kB / 427.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006202/0.231, allocations: 497.7 kB / 427.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.594e-05/0.2311, allocations: 0 / 427.7 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.2311, allocations: 19.92 kB / 427.7 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.2311, allocations: 12 kB / 427.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003896/0.2315, allocations: 270 kB / 428 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.2327, allocations: 1.463 MB / 429.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004359/0.2332, allocations: 317.2 kB / 429.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.2334, allocations: 160.5 kB / 429.9 MB, free: 9.969 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.2334, allocations: 4 kB / 429.9 MB, free: 9.965 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003039/0.2337, allocations: 272.1 kB / 430.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of pre-optimization done (n=43): time 2.074e-06/0.2337, allocations: 0 / 430.2 MB, free: 9.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=43): time 0.0008932/0.2346, allocations: 0.5956 MB / 430.8 MB, free: 9.066 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.007e-05/0.2347, allocations: 190.4 kB / 431 MB, free: 8.844 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001643/0.2349, allocations: 251.8 kB / 431.2 MB, free: 8.582 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.126e-05/0.2349, allocations: 45.69 kB / 431.3 MB, free: 8.531 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.244e-05/0.235, allocations: 197 kB / 431.5 MB, free: 8.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.45e-05/0.235, allocations: 114.6 kB / 431.6 MB, free: 8.223 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001181/0.2352, allocations: 126.2 kB / 431.7 MB, free: 8.094 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.735e-05/0.2352, allocations: 346.8 kB / 432 MB, free: 7.746 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001709/0.2354, allocations: 125 kB / 432.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002477/0.2357, allocations: 340.9 kB / 432.5 MB, free: 7.191 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004478/0.2361, allocations: 0.5029 MB / 433 MB, free: 6.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.2361, allocations: 0 / 433 MB, free: 6.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.000625/0.2368, allocations: 0.5051 MB / 433.5 MB, free: 6.078 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.2368, allocations: 8 kB / 433.5 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.2368, allocations: 12.3 kB / 433.5 MB, free: 6.059 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.2368, allocations: 11.94 kB / 433.5 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002412/0.2371, allocations: 83.83 kB / 433.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.2371, allocations: 15.94 kB / 433.6 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001688/0.2373, allocations: 39.59 kB / 433.7 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.988e-05/0.2373, allocations: 31.97 kB / 433.7 MB, free: 5.879 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.0002187/0.2375, allocations: 241.5 kB / 433.9 MB, free: 5.633 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.31e-05/0.2376, allocations: 27.7 kB / 434 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004862/0.2381, allocations: 388.9 kB / 434.3 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2381, allocations: 4 kB / 434.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.2381, allocations: 0 / 434.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2381, allocations: 7.984 kB / 434.3 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009497/0.2391, allocations: 0.9662 MB / 435.3 MB, free: 4.184 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.2391, allocations: 4 kB / 435.3 MB, free: 4.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.243e-05/0.2392, allocations: 15.92 kB / 435.3 MB, free: 4.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.438e-06/0.2392, allocations: 4 kB / 435.3 MB, free: 4.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.374e-05/0.2392, allocations: 12.05 kB / 435.3 MB, free: 4.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.889e-06/0.2392, allocations: 11.94 kB / 435.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2392, allocations: 0 / 435.4 MB, free: 4.137 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000623/0.2398, allocations: 0.5962 MB / 436 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.2399, allocations: 108.7 kB / 436.1 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.043e-05/0.2399, allocations: 15.92 kB / 436.1 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001154/0.24, allocations: 4 kB / 436.1 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.862e-05/0.2401, allocations: 23.97 kB / 436.1 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.2401, allocations: 19.98 kB / 436.1 MB, free: 3.324 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.77e-05/0.2402, allocations: 143.2 kB / 436.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2402, allocations: 0 / 436.3 MB, free: 3.184 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005063/0.2407, allocations: 155.6 kB / 436.4 MB, free: 3.031 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.0005858/0.2413, allocations: 343.9 kB / 436.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005749/0.2419, allocations: 417 kB / 437.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.2419, allocations: 4.188 kB / 437.2 MB, free: 2.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002212/0.2422, allocations: 171.8 kB / 437.3 MB, free: 2.168 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005055/0.2427, allocations: 76.52 kB / 437.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.2439, allocations: 0.8975 MB / 438.3 MB, free: 1.156 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002001/0.2441, allocations: 0.8151 MB / 439.1 MB, free: 324 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.634e-05/0.2441, allocations: 27.44 kB / 439.1 MB, free: 296 kB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2442, allocations: 0 / 439.1 MB, free: 296 kB / 302.1 MB Notification: Performance of Templates: time 0.009418/0.2536, allocations: 6.201 MB / 445.3 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