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.001509/0.001509, allocations: 118.7 kB / 17.13 MB, free: 5.918 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.001712/0.001712, allocations: 192.2 kB / 18.06 MB, free: 5 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.355/1.355, allocations: 222.9 MB / 241.8 MB, free: 15.06 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.05834/0.05834, allocations: 12.05 MB / 304 MB, free: 3.082 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 63.91 kB / 420.8 MB, free: 17.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08476/0.086, allocations: 52.31 MB / 473.1 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPAutoBufferSize): time 0.004421/0.09046, allocations: 2.873 MB / 475.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001662/0.09215, allocations: 0.9067 MB / 476.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000187/0.09236, allocations: 11.88 kB / 476.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002916/0.09266, allocations: 83.2 kB / 476.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.09288, allocations: 51.52 kB / 477 MB, free: 8.895 MB / 350.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.0008064/0.09372, allocations: 291.2 kB / 477.3 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004498/0.09418, allocations: 399 kB / 477.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.09457, allocations: 250.9 kB / 477.9 MB, free: 7.969 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002435/0.09482, allocations: 199.3 kB / 478.1 MB, free: 7.773 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.09515, allocations: 231 kB / 478.3 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.419e-05/0.09524, allocations: 48 kB / 478.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003116/0.09556, allocations: 195.8 kB / 478.6 MB, free: 7.309 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001614/0.09573, allocations: 155.5 kB / 478.7 MB, free: 7.156 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001953/0.09593, allocations: 218.8 kB / 478.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007188/0.09666, allocations: 0.6658 MB / 479.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.09667, allocations: 4 kB / 479.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.09668, allocations: 0 / 479.6 MB, free: 6.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.674e-05/0.0967, allocations: 4 kB / 479.6 MB, free: 6.266 MB / 350.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.001696/0.09841, allocations: 1.138 MB / 480.7 MB, free: 5.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.31e-05/0.09845, allocations: 8.031 kB / 480.8 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.09857, allocations: 48.38 kB / 480.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.09896, allocations: 327.8 kB / 481.1 MB, free: 4.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.796e-05/0.09901, allocations: 33.36 kB / 481.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.732e-05/0.09907, allocations: 36.38 kB / 481.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007654/0.09985, allocations: 492 kB / 481.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.09987, allocations: 192 / 481.7 MB, free: 4.047 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.9e-05/0.09992, allocations: 15.94 kB / 481.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.09994, allocations: 12 kB / 481.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004661/0.1004, allocations: 259.8 kB / 481.9 MB, free: 3.766 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001631/0.102, allocations: 1.37 MB / 483.3 MB, free: 2.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005178/0.1026, allocations: 294.4 kB / 483.6 MB, free: 2 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002316/0.1028, allocations: 155.4 kB / 483.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.021e-05/0.1029, allocations: 4 kB / 483.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000371/0.1032, allocations: 275.2 kB / 484 MB, free: 1.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=42): time 2.084e-06/0.1033, allocations: 0 / 484 MB, free: 1.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.001054/0.1043, allocations: 0.5975 MB / 484.6 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.214e-05/0.1044, allocations: 148.5 kB / 484.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002352/0.1047, allocations: 246.8 kB / 485 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.974e-05/0.1047, allocations: 41.7 kB / 485.1 MB, free: 472 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001285/0.1048, allocations: 208.3 kB / 485.3 MB, free: 260 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.943e-05/0.1049, allocations: 102.7 kB / 485.4 MB, free: 156 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001541/0.1051, allocations: 126.2 kB / 485.5 MB, free: 24 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.1052, allocations: 350.7 kB / 485.8 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.1055, allocations: 121 kB / 485.9 MB, free: 15.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.1058, allocations: 332.1 kB / 486.3 MB, free: 15.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006108/0.1065, allocations: 0.5059 MB / 486.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.389e-05/0.1065, allocations: 4 kB / 486.8 MB, free: 14.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0008072/0.1073, allocations: 0.4971 MB / 487.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1073, allocations: 8 kB / 487.3 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/0.1074, allocations: 11.94 kB / 487.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.269e-05/0.1074, allocations: 8 kB / 487.3 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002628/0.1076, allocations: 83.83 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.633e-05/0.1077, allocations: 11.94 kB / 487.4 MB, free: 13.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001904/0.1079, allocations: 43.58 kB / 487.4 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.148e-05/0.1079, allocations: 24 kB / 487.5 MB, free: 13.84 MB / 366.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.0002615/0.1082, allocations: 249.9 kB / 487.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.953e-05/0.1083, allocations: 27.7 kB / 487.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003958/0.1087, allocations: 235.5 kB / 488 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.1087, allocations: 4 kB / 488 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1087, allocations: 4 kB / 488 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.174e-06/0.1087, allocations: 3.984 kB / 488 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001318/0.11, allocations: 1.028 MB / 489 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.569e-06/0.11, allocations: 4 kB / 489 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.751e-05/0.1101, allocations: 11.98 kB / 489 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.34e-06/0.1101, allocations: 4 kB / 489 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.884e-05/0.1101, allocations: 11.98 kB / 489 MB, free: 12.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.1102, allocations: 7.938 kB / 489 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.1102, allocations: 4 kB / 489 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008219/0.111, allocations: 0.6638 MB / 489.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.088e-05/0.1111, allocations: 104.8 kB / 489.8 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.02e-05/0.1111, allocations: 12.05 kB / 489.8 MB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.1113, allocations: 15.92 kB / 489.8 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.1113, allocations: 24.06 kB / 489.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.1114, allocations: 23.92 kB / 489.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001018/0.1115, allocations: 135 kB / 490 MB, free: 11.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1115, allocations: 0 / 490 MB, free: 11.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006044/0.1121, allocations: 159.5 kB / 490.2 MB, free: 11 MB / 366.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.0006505/0.1128, allocations: 340.6 kB / 490.5 MB, free: 10.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006553/0.1134, allocations: 373.7 kB / 490.9 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1134, allocations: 4 kB / 490.9 MB, free: 10.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002721/0.1137, allocations: 167.8 kB / 491 MB, free: 10.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005972/0.1143, allocations: 79.94 kB / 491.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.1156, allocations: 0.7016 MB / 491.8 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003996/0.116, allocations: 0.8194 MB / 492.6 MB, free: 8.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.85e-05/0.1161, allocations: 27.42 kB / 492.7 MB, free: 8.5 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1161, allocations: 3.938 kB / 492.7 MB, free: 8.496 MB / 366.1 MB Notification: Performance of Templates: time 0.009475/0.1256, allocations: 6.156 MB / 498.8 MB, free: 2.367 MB / 366.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