Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo", uses=false) Using package Modelica_DeviceDrivers with version 2.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") translateModel(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001165/0.001165, allocations: 105.9 kB / 16.98 MB, free: 6.18 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.001247/0.001247, allocations: 187.3 kB / 17.91 MB, free: 5.281 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.402/1.402, allocations: 222.9 MB / 241.6 MB, free: 15.28 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.05811/0.05811, allocations: 12.04 MB / 303.8 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001456/0.001456, allocations: 63.89 kB / 367.1 MB, free: 3.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2184/0.2198, allocations: 52.32 MB / 419.5 MB, free: 21.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize): time 0.003429/0.2233, allocations: 2.878 MB / 422.3 MB, free: 18.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001228/0.2246, allocations: 0.9028 MB / 423.2 MB, free: 17.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001089/0.2247, allocations: 15.88 kB / 423.3 MB, free: 17.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002075/0.2249, allocations: 71.28 kB / 423.3 MB, free: 17.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001499/0.2251, allocations: 63.34 kB / 423.4 MB, free: 17.19 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.0005206/0.2256, allocations: 299.2 kB / 423.7 MB, free: 16.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002701/0.2259, allocations: 395 kB / 424.1 MB, free: 16.51 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002611/0.2261, allocations: 247 kB / 424.3 MB, free: 16.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.2263, allocations: 195.3 kB / 424.5 MB, free: 16.07 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001824/0.2265, allocations: 231 kB / 424.7 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.138e-05/0.2265, allocations: 48 kB / 424.8 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002025/0.2267, allocations: 187.8 kB / 425 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001036/0.2268, allocations: 159.5 kB / 425.1 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.227, allocations: 214.8 kB / 425.3 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.2274, allocations: 0.6447 MB / 426 MB, free: 14.61 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2274, allocations: 3.938 kB / 426 MB, free: 14.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2274, allocations: 0 / 426 MB, free: 14.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.2274, allocations: 0 / 426 MB, free: 14.6 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.001136/0.2286, allocations: 1.127 MB / 427.1 MB, free: 13.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.2286, allocations: 12.03 kB / 427.1 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.954e-05/0.2287, allocations: 44.38 kB / 427.2 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002637/0.229, allocations: 327.5 kB / 427.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.626e-05/0.229, allocations: 29.36 kB / 427.5 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.2291, allocations: 40.38 kB / 427.5 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006067/0.2297, allocations: 479.9 kB / 428 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.358e-05/0.2297, allocations: 4.188 kB / 428 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.615e-05/0.2297, allocations: 31.91 kB / 428 MB, free: 12.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.2297, allocations: 8 kB / 428.1 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003703/0.2301, allocations: 267.7 kB / 428.3 MB, free: 12.1 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.2313, allocations: 1.367 MB / 429.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004339/0.2317, allocations: 298.4 kB / 430 MB, free: 10.33 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001829/0.2319, allocations: 167.3 kB / 430.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.2319, allocations: 16.05 kB / 430.2 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002786/0.2322, allocations: 259.3 kB / 430.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.764e-06/0.2322, allocations: 0 / 430.4 MB, free: 9.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.0008551/0.2331, allocations: 0.5907 MB / 431 MB, free: 9.262 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.696e-05/0.2332, allocations: 164.4 kB / 431.2 MB, free: 9.07 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001641/0.2333, allocations: 230.9 kB / 431.4 MB, free: 8.836 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.2334, allocations: 53.69 kB / 431.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8e-05/0.2335, allocations: 204.2 kB / 431.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.184e-05/0.2335, allocations: 106.7 kB / 431.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.2336, allocations: 122.2 kB / 431.9 MB, free: 8.344 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.806e-05/0.2337, allocations: 346.7 kB / 432.2 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.2339, allocations: 125 kB / 432.3 MB, free: 7.875 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002345/0.2341, allocations: 332.1 kB / 432.6 MB, free: 7.453 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004385/0.2346, allocations: 0.4942 MB / 433.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.2346, allocations: 4 kB / 433.1 MB, free: 6.859 MB / 302.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0006172/0.2352, allocations: 0.4932 MB / 433.6 MB, free: 6.359 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2352, allocations: 8 kB / 433.6 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.626e-06/0.2353, allocations: 8 kB / 433.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.2353, allocations: 8 kB / 433.7 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002404/0.2355, allocations: 87.77 kB / 433.7 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.214e-05/0.2355, allocations: 8 kB / 433.7 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000162/0.2357, allocations: 43.53 kB / 433.8 MB, free: 6.199 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.876e-05/0.2357, allocations: 31.98 kB / 433.8 MB, free: 6.168 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.0001853/0.2359, allocations: 246 kB / 434.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/0.236, allocations: 31.7 kB / 434.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000321/0.2363, allocations: 234.4 kB / 434.3 MB, free: 5.656 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.2363, allocations: 4 kB / 434.3 MB, free: 5.652 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.2363, allocations: 4 kB / 434.3 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.553e-06/0.2364, allocations: 7.984 kB / 434.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009465/0.2373, allocations: 1.024 MB / 435.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2373, allocations: 0 / 435.4 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.143e-05/0.2374, allocations: 20.05 kB / 435.4 MB, free: 4.539 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2374, allocations: 4 kB / 435.4 MB, free: 4.535 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.349e-05/0.2374, allocations: 11.98 kB / 435.4 MB, free: 4.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.2374, allocations: 7.938 kB / 435.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2374, allocations: 0 / 435.4 MB, free: 4.516 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006218/0.2381, allocations: 0.6617 MB / 436.1 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.61e-05/0.2381, allocations: 108.6 kB / 436.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.005e-05/0.2381, allocations: 11.98 kB / 436.2 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.2383, allocations: 12.03 kB / 436.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.37e-05/0.2383, allocations: 23.91 kB / 436.2 MB, free: 3.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.257e-05/0.2384, allocations: 19.98 kB / 436.2 MB, free: 3.637 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.04e-05/0.2385, allocations: 135 kB / 436.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2385, allocations: 0 / 436.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005208/0.239, allocations: 151.6 kB / 436.5 MB, free: 3.355 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.0005751/0.2396, allocations: 345.5 kB / 436.9 MB, free: 3.066 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005259/0.2401, allocations: 397.2 kB / 437.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.2401, allocations: 0 / 437.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002143/0.2403, allocations: 175.7 kB / 437.4 MB, free: 2.508 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005459/0.2409, allocations: 74.12 kB / 437.5 MB, free: 2.441 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001043/0.2419, allocations: 0.7295 MB / 438.2 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002021/0.2422, allocations: 0.8072 MB / 439 MB, free: 0.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.916e-05/0.2422, allocations: 39.36 kB / 439.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2422, allocations: 0 / 439.1 MB, free: 0.793 MB / 302.1 MB Notification: Performance of Templates: time 0.007848/0.2501, allocations: 6.138 MB / 445.2 MB, free: 10.69 MB / 318.1 MB make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.makefile make -j1 -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize.makefile clang++ -std=c++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_UDPAutoBufferSizeCalcHelperMain.o OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp:28: In file included from ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:5: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:452:5: error: no matching function for call to 'strncpy' strncpy(pkg->data + pkg->pos, u, (size_t)bufferSize); ^~~~~~~ /usr/include/string.h:144:14: note: candidate function not viable: no known conversion from 'unsigned char *' to 'char *__restrict' for 1st argument extern char *strncpy (char *__restrict __dest, ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:493:3: error: no matching function for call to 'MDD_SerialPackagerAddInteger' MDD_SerialPackagerAddInteger(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:243:16: note: candidate function not viable: 2nd argument ('const int *') would lose const qualifier DllExport void MDD_SerialPackagerAddInteger(void* p_package, int * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:514:3: error: no matching function for call to 'MDD_SerialPackagerAddDouble' MDD_SerialPackagerAddDouble(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:307:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDouble(void* p_package, double * u, size_t n, int endian) { ^ In file included from OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.cpp:28: ./OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeFunctions.cpp:535:3: error: no matching function for call to 'MDD_SerialPackagerAddDoubleAsFloat' MDD_SerialPackagerAddDoubleAsFloat(pkg__ext, ConstArray(u_).getData(), u_.getDim(1), byteOrder__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Resources/Include/MDDSerialPackager.h:369:16: note: candidate function not viable: 2nd argument ('const double *') would lose const qualifier DllExport void MDD_SerialPackagerAddDoubleAsFloat(void* p_package, double * u, size_t n, int endian) { ^ 4 errors generated. make: *** [: OMCppModelica_DeviceDrivers_Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSizeCalcHelperMain.o] Error 1