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.001221/0.001222, allocations: 99.89 kB / 16.44 MB, free: 6.371 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.001248/0.001249, allocations: 189.4 kB / 17.37 MB, free: 5.797 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.384/1.384, allocations: 222.9 MB / 241.1 MB, free: 15.11 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.06115/0.06115, allocations: 12.06 MB / 303.3 MB, free: 3.105 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 63.91 kB / 419.5 MB, free: 17.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1077, allocations: 52.32 MB / 471.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.004403/0.1121, allocations: 2.394 MB / 474.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008549/0.113, allocations: 426.5 kB / 474.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.283e-05/0.1131, allocations: 0 / 474.7 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002245/0.1133, allocations: 35.67 kB / 474.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001396/0.1135, allocations: 23.84 kB / 474.7 MB, free: 10.51 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.0003324/0.1138, allocations: 107.6 kB / 474.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002361/0.114, allocations: 131.7 kB / 475 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002238/0.1143, allocations: 92.39 kB / 475 MB, free: 10.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.578e-05/0.1144, allocations: 59.78 kB / 475.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.1145, allocations: 83.61 kB / 475.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.144e-05/0.1146, allocations: 16 kB / 475.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001426/0.1147, allocations: 79.89 kB / 475.3 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.474e-05/0.1148, allocations: 43.91 kB / 475.3 MB, free: 9.906 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.427e-05/0.1149, allocations: 71.53 kB / 475.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003533/0.1153, allocations: 235.1 kB / 475.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.1153, allocations: 4 kB / 475.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1153, allocations: 0 / 475.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.1153, allocations: 0 / 475.6 MB, free: 9.602 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.0009741/0.1163, allocations: 0.5493 MB / 476.2 MB, free: 8.988 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.1163, allocations: 11.97 kB / 476.2 MB, free: 8.977 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.572e-05/0.1164, allocations: 54.73 kB / 476.2 MB, free: 8.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.309e-05/0.1164, allocations: 20.84 kB / 476.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002389/0.1167, allocations: 220.1 kB / 476.5 MB, free: 8.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.051e-05/0.1167, allocations: 12.38 kB / 476.5 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.854e-05/0.1168, allocations: 16.38 kB / 476.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004367/0.1172, allocations: 187.6 kB / 476.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/0.1172, allocations: 3.938 kB / 476.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.1173, allocations: 4 kB / 476.7 MB, free: 8.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.236e-06/0.1173, allocations: 4 kB / 476.7 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.1175, allocations: 99.86 kB / 476.8 MB, free: 8.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008066/0.1183, allocations: 0.5513 MB / 477.4 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/0.1186, allocations: 125 kB / 477.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.1187, allocations: 69.75 kB / 477.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.016e-05/0.1188, allocations: 0 / 477.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.119, allocations: 132.9 kB / 477.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.119, allocations: 0 / 477.7 MB, free: 7.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005324/0.1195, allocations: 237.4 kB / 477.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.142e-05/0.1196, allocations: 89.09 kB / 478 MB, free: 6.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001513/0.1198, allocations: 140.1 kB / 478.1 MB, free: 6.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.1198, allocations: 33.64 kB / 478.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.973e-05/0.1199, allocations: 124.5 kB / 478.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.53e-05/0.1199, allocations: 35.69 kB / 478.3 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.169e-05/0.12, allocations: 49.69 kB / 478.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001852/0.1202, allocations: 330.7 kB / 478.7 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.081e-05/0.1203, allocations: 35.98 kB / 478.7 MB, free: 6.23 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001345/0.1205, allocations: 82.84 kB / 478.8 MB, free: 6.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000231/0.1207, allocations: 154.7 kB / 479 MB, free: 5.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1207, allocations: 4 kB / 479 MB, free: 5.945 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003186/0.121, allocations: 161.4 kB / 479.1 MB, free: 5.781 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/0.1211, allocations: 4 kB / 479.1 MB, free: 5.777 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.1211, allocations: 4 kB / 479.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.1211, allocations: 0 / 479.1 MB, free: 5.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.1212, allocations: 27.92 kB / 479.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.1212, allocations: 4 kB / 479.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.287e-05/0.1213, allocations: 11.89 kB / 479.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.437e-05/0.1213, allocations: 12.19 kB / 479.2 MB, free: 5.719 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.0001959/0.1215, allocations: 151.5 kB / 479.3 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.634e-05/0.1216, allocations: 7.953 kB / 479.3 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003323/0.1219, allocations: 158.7 kB / 479.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1219, allocations: 4 kB / 479.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.1219, allocations: 0 / 479.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.1219, allocations: 0 / 479.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006994/0.1226, allocations: 0.5021 MB / 480 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1227, allocations: 256 / 480 MB, free: 4.828 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.743e-05/0.1227, allocations: 12 kB / 480 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.1227, allocations: 3.984 kB / 480 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.058e-05/0.1227, allocations: 11.94 kB / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1228, allocations: 0 / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1228, allocations: 0 / 480 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004617/0.1232, allocations: 300.2 kB / 480.3 MB, free: 4.488 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.076e-05/0.1233, allocations: 85.02 kB / 480.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.592e-05/0.1233, allocations: 4 kB / 480.4 MB, free: 4.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.029e-05/0.1234, allocations: 4 kB / 480.4 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.772e-05/0.1235, allocations: 11.92 kB / 480.4 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.145e-05/0.1235, allocations: 11.98 kB / 480.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.09e-05/0.1236, allocations: 101.9 kB / 480.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1236, allocations: 0 / 480.5 MB, free: 4.258 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003558/0.124, allocations: 51.83 kB / 480.6 MB, free: 4.207 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.001294/0.1253, allocations: 0.9452 MB / 481.5 MB, free: 3.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000297/0.1256, allocations: 135.7 kB / 481.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1256, allocations: 0 / 481.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001365/0.1257, allocations: 59.91 kB / 481.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.1261, allocations: 23.92 kB / 481.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002543/0.1286, allocations: 1.834 MB / 483.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.1291, allocations: 0.7234 MB / 484.3 MB, free: 360 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.32e-05/0.1292, allocations: 28.8 kB / 484.3 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.266e-05/0.1293, allocations: 35.42 kB / 484.4 MB, free: 288 kB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1293, allocations: 4 kB / 484.4 MB, free: 284 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02747/0.1568, allocations: 3.62 MB / 488 MB, free: 12.85 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.752/7.909, allocations: 17.84 kB / 488 MB, free: 12.84 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)