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.001156/0.001156, allocations: 118 kB / 17.13 MB, free: 5.926 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.00118/0.00118, allocations: 193.2 kB / 18.06 MB, free: 5.012 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.363/1.363, allocations: 222.9 MB / 241.7 MB, free: 15.2 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.05975/0.05975, allocations: 12.04 MB / 304 MB, free: 3.121 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001256/0.001257, allocations: 59.91 kB / 420.7 MB, free: 17.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09738, allocations: 52.32 MB / 473.1 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Blocks.Examples.TestSerialPackager_UDPExternalTrigger): time 0.005127/0.1026, allocations: 2.934 MB / 476 MB, free: 9.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.1049, allocations: 1.211 MB / 477.2 MB, free: 8.711 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002616/0.1052, allocations: 19.81 kB / 477.2 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003811/0.1056, allocations: 79.22 kB / 477.3 MB, free: 8.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003242/0.1059, allocations: 59.44 kB / 477.4 MB, free: 8.555 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.0009669/0.1069, allocations: 295.2 kB / 477.6 MB, free: 8.266 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006155/0.1075, allocations: 411 kB / 478 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004352/0.108, allocations: 246.9 kB / 478.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003024/0.1083, allocations: 199.2 kB / 478.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003874/0.1087, allocations: 238.9 kB / 478.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.994e-05/0.1088, allocations: 48 kB / 478.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003753/0.1092, allocations: 199.8 kB / 479 MB, free: 6.945 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001777/0.1094, allocations: 147.6 kB / 479.1 MB, free: 6.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002378/0.1096, allocations: 222.7 kB / 479.3 MB, free: 6.582 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009197/0.1105, allocations: 0.6775 MB / 480 MB, free: 5.902 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1106, allocations: 0 / 480 MB, free: 5.902 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1106, allocations: 0 / 480 MB, free: 5.902 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.592e-05/0.1106, allocations: 0 / 480 MB, free: 5.902 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: 108 * Number of variables: 108 Notification: Performance of Generate backend data structure: time 0.002013/0.1126, allocations: 1.161 MB / 481.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.1126, allocations: 8.031 kB / 481.2 MB, free: 4.641 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001355/0.1128, allocations: 52.36 kB / 481.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004594/0.1133, allocations: 320.5 kB / 481.5 MB, free: 4.234 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.781e-05/0.1134, allocations: 37.31 kB / 481.6 MB, free: 4.199 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.633e-05/0.1134, allocations: 44.3 kB / 481.6 MB, free: 4.156 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008441/0.1143, allocations: 497.8 kB / 482.1 MB, free: 3.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.1143, allocations: 3.938 kB / 482.1 MB, free: 3.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.1144, allocations: 16 kB / 482.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.1144, allocations: 12 kB / 482.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005251/0.1149, allocations: 273.9 kB / 482.4 MB, free: 3.348 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001841/0.1168, allocations: 1.44 MB / 483.8 MB, free: 1.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.1174, allocations: 317.2 kB / 484.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002666/0.1177, allocations: 170.3 kB / 484.3 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.1177, allocations: 15.98 kB / 484.3 MB, free: 1.277 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004001/0.1181, allocations: 256 kB / 484.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.335e-06/0.1181, allocations: 0 / 484.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of matching and sorting (n=43): time 0.001168/0.1193, allocations: 0.6025 MB / 485.2 MB, free: 396 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001251/0.1194, allocations: 182.2 kB / 485.4 MB, free: 176 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002796/0.1197, allocations: 243.8 kB / 485.6 MB, free: 15.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.128e-05/0.1198, allocations: 45.69 kB / 485.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.1199, allocations: 213 kB / 485.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.1201, allocations: 106.7 kB / 486 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001776/0.1203, allocations: 122.2 kB / 486.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1204, allocations: 347 kB / 486.4 MB, free: 15.08 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002396/0.1207, allocations: 121 kB / 486.5 MB, free: 14.96 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000377/0.121, allocations: 344.9 kB / 486.9 MB, free: 14.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006834/0.1217, allocations: 0.5108 MB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.1218, allocations: 4 kB / 487.4 MB, free: 13.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008925/0.1227, allocations: 0.5013 MB / 487.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.1227, allocations: 12.09 kB / 487.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.412e-05/0.1227, allocations: 7.938 kB / 487.9 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.866e-05/0.1227, allocations: 15.94 kB / 487.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003042/0.1231, allocations: 79.83 kB / 488 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.99e-05/0.1231, allocations: 15.94 kB / 488 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002114/0.1233, allocations: 43.58 kB / 488.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.705e-05/0.1234, allocations: 28 kB / 488.1 MB, free: 13.2 MB / 366.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.0002891/0.1237, allocations: 237.5 kB / 488.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.276e-05/0.1237, allocations: 35.61 kB / 488.3 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006742/0.1244, allocations: 396.3 kB / 488.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.644e-06/0.1244, allocations: 4 kB / 488.7 MB, free: 12.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.778e-06/0.1244, allocations: 8.062 kB / 488.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.1245, allocations: 0 / 488.7 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001451/0.1259, allocations: 0.9585 MB / 489.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-06/0.1259, allocations: 0 / 489.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.124e-05/0.126, allocations: 12 kB / 489.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.126, allocations: 0 / 489.7 MB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.168e-05/0.126, allocations: 15.98 kB / 489.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.307e-06/0.1261, allocations: 0 / 489.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/0.1261, allocations: 7.938 kB / 489.7 MB, free: 11.47 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00087/0.1269, allocations: 0.604 MB / 490.3 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001237/0.1271, allocations: 104.7 kB / 490.4 MB, free: 10.72 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.311e-05/0.1271, allocations: 11.98 kB / 490.5 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.1273, allocations: 7.984 kB / 490.5 MB, free: 10.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.412e-05/0.1273, allocations: 23.92 kB / 490.5 MB, free: 10.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.1274, allocations: 23.97 kB / 490.5 MB, free: 10.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001309/0.1275, allocations: 147.1 kB / 490.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.174e-06/0.1275, allocations: 0 / 490.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006556/0.1282, allocations: 163.4 kB / 490.8 MB, free: 10.35 MB / 366.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.0007381/0.1289, allocations: 337.9 kB / 491.1 MB, free: 10.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006791/0.1296, allocations: 385.1 kB / 491.5 MB, free: 9.695 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1297, allocations: 4.062 kB / 491.5 MB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003342/0.13, allocations: 168 kB / 491.7 MB, free: 9.527 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005613/0.1306, allocations: 72.8 kB / 491.8 MB, free: 9.461 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001413/0.132, allocations: 0.7257 MB / 492.5 MB, free: 8.691 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.1325, allocations: 0.819 MB / 493.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.419e-05/0.1325, allocations: 31.42 kB / 493.3 MB, free: 7.816 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1325, allocations: 0 / 493.3 MB, free: 7.816 MB / 366.1 MB Notification: Performance of Templates: time 0.01075/0.1433, allocations: 6.229 MB / 499.6 MB, free: 1.613 MB / 366.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++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_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