Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.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_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 105.5 kB / 16.98 MB, free: 6.137 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.001702/0.001702, allocations: 191.4 kB / 17.91 MB, free: 5.234 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.531/1.531, allocations: 222.9 MB / 241.6 MB, free: 15.16 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.0579/0.0579, allocations: 12.05 MB / 303.8 MB, free: 3.16 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.89 kB / 367.1 MB, free: 3.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2066, allocations: 52.32 MB / 419.5 MB, free: 21.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP): time 0.003601/0.2102, allocations: 2.885 MB / 422.3 MB, free: 18.17 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001236/0.2115, allocations: 0.8989 MB / 423.2 MB, free: 17.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.2116, allocations: 11.94 kB / 423.3 MB, free: 17.26 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002396/0.2119, allocations: 79.2 kB / 423.3 MB, free: 17.18 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001636/0.212, allocations: 59.45 kB / 423.4 MB, free: 17.12 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1183:7-1194:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendToUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.sendTo'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:63:7-72:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1170:7-1181:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.readUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.read'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:74:7-84:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:107:7-117:21:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getInteger' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getInteger'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:41:7-50:25:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addRealAsFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addRealAsFloat'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:86:7-96:27:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.getRealFromFloat' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.getRealFromFloat'. Notification: Performance of NFTyping.typeClassSections: time 0.0005768/0.2126, allocations: 298.6 kB / 423.7 MB, free: 16.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000282/0.2129, allocations: 399.1 kB / 424.1 MB, free: 16.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002819/0.2132, allocations: 239 kB / 424.3 MB, free: 16.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001272/0.2133, allocations: 199.2 kB / 424.5 MB, free: 16.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.2136, allocations: 231 kB / 424.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.428e-05/0.2136, allocations: 48 kB / 424.8 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002123/0.2138, allocations: 191.8 kB / 425 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001067/0.2139, allocations: 151.6 kB / 425.1 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.2141, allocations: 218.8 kB / 425.3 MB, free: 15.19 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004483/0.2145, allocations: 0.6446 MB / 426 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.2145, allocations: 3.984 kB / 426 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2146, allocations: 0 / 426 MB, free: 14.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.184e-05/0.2146, allocations: 0 / 426 MB, free: 14.54 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.001186/0.2158, allocations: 1.127 MB / 427.1 MB, free: 13.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.2158, allocations: 8.031 kB / 427.1 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.2159, allocations: 48.38 kB / 427.2 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002638/0.2162, allocations: 323.5 kB / 427.5 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.061e-05/0.2162, allocations: 41.36 kB / 427.5 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.2163, allocations: 32.38 kB / 427.5 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005883/0.2169, allocations: 491.9 kB / 428 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.347e-05/0.2169, allocations: 192 / 428 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.2169, allocations: 19.94 kB / 428 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.2169, allocations: 8 kB / 428.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003695/0.2173, allocations: 263.8 kB / 428.3 MB, free: 12.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2185, allocations: 1.378 MB / 429.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004286/0.2189, allocations: 302.3 kB / 430 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001794/0.2191, allocations: 159.4 kB / 430.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.906e-05/0.2191, allocations: 8.062 kB / 430.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002803/0.2194, allocations: 263.3 kB / 430.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.794e-06/0.2194, allocations: 0 / 430.4 MB, free: 9.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008665/0.2203, allocations: 0.6049 MB / 431 MB, free: 9.191 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.2204, allocations: 156.4 kB / 431.2 MB, free: 9.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.2206, allocations: 238.9 kB / 431.4 MB, free: 8.766 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.933e-05/0.2206, allocations: 41.7 kB / 431.4 MB, free: 8.719 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.657e-05/0.2207, allocations: 208.2 kB / 431.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.082e-05/0.2208, allocations: 102.7 kB / 431.7 MB, free: 8.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001168/0.2209, allocations: 122.2 kB / 431.9 MB, free: 8.285 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.517e-05/0.2209, allocations: 346.7 kB / 432.2 MB, free: 7.938 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.2211, allocations: 125 kB / 432.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.2214, allocations: 332.1 kB / 432.6 MB, free: 7.395 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004462/0.2218, allocations: 0.4942 MB / 433.1 MB, free: 6.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.2218, allocations: 4 kB / 433.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.000611/0.2224, allocations: 0.4933 MB / 433.6 MB, free: 6.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.2225, allocations: 8 kB / 433.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.2225, allocations: 8 kB / 433.6 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.934e-05/0.2225, allocations: 8 kB / 433.7 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.2227, allocations: 83.83 kB / 433.7 MB, free: 6.195 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/0.2228, allocations: 12.33 kB / 433.8 MB, free: 6.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001672/0.2229, allocations: 43.53 kB / 433.8 MB, free: 6.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.223, allocations: 27.98 kB / 433.8 MB, free: 6.113 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.0001867/0.2232, allocations: 246 kB / 434.1 MB, free: 5.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.077e-05/0.2232, allocations: 27.7 kB / 434.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003229/0.2236, allocations: 242.6 kB / 434.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2236, allocations: 4 kB / 434.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.2236, allocations: 0 / 434.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.2236, allocations: 7.984 kB / 434.3 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009765/0.2246, allocations: 1.032 MB / 435.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.2246, allocations: 96 / 435.4 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.143e-05/0.2246, allocations: 19.92 kB / 435.4 MB, free: 4.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.2247, allocations: 8 kB / 435.4 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.259e-05/0.2247, allocations: 7.984 kB / 435.4 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.2247, allocations: 8.016 kB / 435.4 MB, free: 4.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.2247, allocations: 11.97 kB / 435.4 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006194/0.2253, allocations: 0.6617 MB / 436.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.164e-05/0.2254, allocations: 104.7 kB / 436.2 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.2254, allocations: 11.98 kB / 436.2 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001441/0.2256, allocations: 11.86 kB / 436.2 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/0.2256, allocations: 23.98 kB / 436.2 MB, free: 3.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.2256, allocations: 19.98 kB / 436.3 MB, free: 3.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.199e-05/0.2257, allocations: 139 kB / 436.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2257, allocations: 0 / 436.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005694/0.2263, allocations: 147.6 kB / 436.5 MB, free: 3.285 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.0005795/0.2269, allocations: 338.1 kB / 436.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005325/0.2274, allocations: 389.7 kB / 437.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.2275, allocations: 0 / 437.2 MB, free: 2.625 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002162/0.2277, allocations: 175.8 kB / 437.4 MB, free: 2.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005549/0.2282, allocations: 70.41 kB / 437.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.2293, allocations: 0.7328 MB / 438.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001924/0.2295, allocations: 0.8151 MB / 439 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.91e-05/0.2296, allocations: 31.44 kB / 439.1 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2296, allocations: 0 / 439.1 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of Templates: time 0.008296/0.2379, allocations: 6.134 MB / 445.2 MB, free: 10.62 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDP.makefile clang++ -std=c++17 -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_UDPCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPFunctions.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_UDPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPFunctions.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_UDPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPFunctions.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_UDPCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPFunctions.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_UDPCalcHelperMain.o] Error 1