Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.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: "" <> buildModelFMU(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest,fileNamePrefix="Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 109.7 kB / 16.46 MB, free: 6.434 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.001132/0.001132, allocations: 191 kB / 17.39 MB, free: 5.656 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.3/1.3, allocations: 222.9 MB / 241.1 MB, free: 15.05 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.05508/0.05508, allocations: 12.05 MB / 303.3 MB, free: 3.074 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 71.89 kB / 419.6 MB, free: 17.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1078, allocations: 52.31 MB / 471.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.003757/0.1115, allocations: 2.391 MB / 474.3 MB, free: 10.94 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007073/0.1123, allocations: 422.5 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.527e-05/0.1124, allocations: 4 kB / 474.7 MB, free: 10.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002262/0.1126, allocations: 39.67 kB / 474.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001237/0.1127, allocations: 15.84 kB / 474.7 MB, free: 10.47 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0002984/0.113, allocations: 107.6 kB / 474.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002008/0.1133, allocations: 131.7 kB / 475 MB, free: 10.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.1135, allocations: 96.39 kB / 475.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.639e-05/0.1135, allocations: 63.72 kB / 475.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001659/0.1137, allocations: 83.61 kB / 475.2 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.211e-05/0.1138, allocations: 16 kB / 475.2 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001526/0.1139, allocations: 79.89 kB / 475.3 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.138e-05/0.114, allocations: 47.91 kB / 475.3 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.415e-05/0.1141, allocations: 75.53 kB / 475.4 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003228/0.1144, allocations: 231.1 kB / 475.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.1144, allocations: 0 / 475.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1144, allocations: 0 / 475.6 MB, free: 9.555 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.089e-06/0.1145, allocations: 0 / 475.6 MB, free: 9.555 MB / 350.1 MB Warning: Alias equations of external objects are not Modelica compliant as in: addReal.pkgOut[1].pkg = addReal.pkgIn.pkg addReal.pkgOut[1].pkg = uDPSend.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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.0009987/0.1155, allocations: 0.5493 MB / 476.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.1155, allocations: 15.97 kB / 476.2 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.1156, allocations: 46.73 kB / 476.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.382e-05/0.1156, allocations: 16.84 kB / 476.3 MB, free: 8.855 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.1159, allocations: 228.1 kB / 476.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.792e-05/0.1159, allocations: 12.38 kB / 476.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.883e-05/0.1159, allocations: 12.38 kB / 476.5 MB, free: 8.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003459/0.1163, allocations: 187.6 kB / 476.7 MB, free: 8.375 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1163, allocations: 3.938 kB / 476.7 MB, free: 8.371 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.14e-05/0.1163, allocations: 4 kB / 476.7 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.1163, allocations: 4 kB / 476.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.1165, allocations: 95.88 kB / 476.8 MB, free: 8.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007547/0.1173, allocations: 0.5552 MB / 477.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.1176, allocations: 129 kB / 477.5 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.1177, allocations: 61.81 kB / 477.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.1178, allocations: 4 kB / 477.5 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001967/0.118, allocations: 132.9 kB / 477.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.118, allocations: 0 / 477.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004944/0.1185, allocations: 233.4 kB / 477.9 MB, free: 7.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.155e-05/0.1185, allocations: 85.09 kB / 478 MB, free: 6.961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001094/0.1186, allocations: 144 kB / 478.1 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.1187, allocations: 33.7 kB / 478.2 MB, free: 6.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.422e-05/0.1187, allocations: 124.5 kB / 478.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.602e-05/0.1188, allocations: 39.69 kB / 478.3 MB, free: 6.609 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.694e-05/0.1189, allocations: 49.62 kB / 478.4 MB, free: 6.555 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.119, allocations: 334.7 kB / 478.7 MB, free: 6.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.246e-05/0.119, allocations: 27.98 kB / 478.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.1192, allocations: 94.84 kB / 478.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001777/0.1193, allocations: 142.7 kB / 479 MB, free: 5.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1194, allocations: 0 / 479 MB, free: 5.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000257/0.1196, allocations: 165.4 kB / 479.1 MB, free: 5.742 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.1196, allocations: 7.984 kB / 479.1 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.1197, allocations: 4 kB / 479.1 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.1197, allocations: 4 kB / 479.1 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.696e-05/0.1198, allocations: 24.11 kB / 479.2 MB, free: 5.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.1198, allocations: 8 kB / 479.2 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.234e-05/0.1199, allocations: 15.89 kB / 479.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.34e-05/0.1199, allocations: 4 kB / 479.2 MB, free: 5.676 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 (uDPSend.dummy,$PRE.uDPSend.dummy,addReal.pkgOut[1].dummy,$PRE.addReal.pkgOut[1].dummy,packager.pkgOut.dummy,$PRE.packager.pkgOut.dummy,addReal.pkgOut[1].backwardTrigger,addReal.pkgOut[1].trigger,$whenCondition1,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 (19): * Single equations (assignments): 19 * 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.0001466/0.12, allocations: 147.7 kB / 479.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.971e-05/0.1201, allocations: 11.95 kB / 479.3 MB, free: 5.508 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002794/0.1204, allocations: 162.3 kB / 479.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.1204, allocations: 0 / 479.5 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.1204, allocations: 8 kB / 479.5 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.1204, allocations: 4 kB / 479.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005499/0.1209, allocations: 0.4942 MB / 480 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.121, allocations: 0 / 480 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.113e-05/0.121, allocations: 4 kB / 480 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.121, allocations: 0 / 480 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.121, allocations: 7.984 kB / 480 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.121, allocations: 3.938 kB / 480 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.121, allocations: 0 / 480 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003571/0.1214, allocations: 303.4 kB / 480.3 MB, free: 4.453 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.475e-05/0.1214, allocations: 93.19 kB / 480.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.347e-05/0.1215, allocations: 0 / 480.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.476e-05/0.1215, allocations: 11.94 kB / 480.4 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.1216, allocations: 11.92 kB / 480.4 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.918e-05/0.1216, allocations: 4 kB / 480.4 MB, free: 4.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.323e-05/0.1217, allocations: 103.2 kB / 480.5 MB, free: 4.215 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1217, allocations: 4 kB / 480.5 MB, free: 4.211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003191/0.122, allocations: 51.83 kB / 480.6 MB, free: 4.16 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 12 (addReal.pkgOut[1].trigger,$whenCondition1,packager.pkgOut.dummy,addReal.pkgOut[1].dummy,addReal.pkgOut[1].backwardTrigger,uDPSend.bufferSize,uDPSend.dummy,packager.backwardPropagatedBufferSize,packager.bufferSize,addReal.pkgIn.autoPkgBitSize,uDPSend.pkgIn.userPkgBitSize,uDPSend.pkgIn.autoPkgBitSize) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 9 * 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.0009686/0.123, allocations: 0.9477 MB / 481.5 MB, free: 3.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002531/0.1233, allocations: 123.8 kB / 481.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1233, allocations: 0 / 481.7 MB, free: 3.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.1234, allocations: 67.89 kB / 481.7 MB, free: 3.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.1237, allocations: 28.09 kB / 481.8 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.1256, allocations: 1.825 MB / 483.6 MB, free: 1.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.1259, allocations: 0.7236 MB / 484.3 MB, free: 328 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.622e-05/0.126, allocations: 32.92 kB / 484.3 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.601e-05/0.1261, allocations: 47.36 kB / 484.4 MB, free: 240 kB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1261, allocations: 0 / 484.4 MB, free: 240 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.1463, allocations: 3.613 MB / 488 MB, free: 12.81 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.641/7.787, allocations: 17.97 kB / 488 MB, free: 12.8 MB / 366.1 MB (rm -f Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe ; mkfifo Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe ; head -c 1048576 < Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe >> ../files/Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.sim & python3 -m fmpy simulate --output-file Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_DeviceDrivers_Modelica_DeviceDrivers_Incubate_Examples_TestSerialPackager_UDPMinimalForOMCTest.fmu > Modelica_DeviceDrivers_Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest.pipe 2>&1)