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.001167/0.001167, allocations: 102.8 kB / 16.31 MB, free: 6.391 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.001217/0.001217, allocations: 188.5 kB / 17.24 MB, free: 5.922 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.252/1.252, allocations: 222.9 MB / 240.9 MB, free: 15.28 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/package.mo): time 0.05353/0.05353, allocations: 12.04 MB / 303.1 MB, free: 3.207 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.89 kB / 366.6 MB, free: 3.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.196, allocations: 52.33 MB / 418.9 MB, free: 21.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica_DeviceDrivers.Incubate.Examples.TestSerialPackager_UDPMinimalForOMCTest): time 0.00309/0.1991, allocations: 2.386 MB / 421.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000541/0.1997, allocations: 418.5 kB / 421.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.944e-05/0.1997, allocations: 7.938 kB / 421.7 MB, free: 18.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001654/0.1999, allocations: 31.73 kB / 421.7 MB, free: 18.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.837e-05/0.2, allocations: 21.47 kB / 421.8 MB, free: 18.23 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:130:7-137:16:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.clear' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.clear'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Packaging/SerialPackager.mo:30:7-39:18:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Packaging.SerialPackager.Internal.DummyFunctions.addReal' contains a call to impure function 'Modelica_DeviceDrivers.Packaging.SerialPackager_.addReal'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_DeviceDrivers 2.1.1-master/Blocks/Communication.mo:1183:7-1194:20:writable] Warning: Pure function 'Modelica_DeviceDrivers.Blocks.Communication.Internal.DummyFunctions.sendToUDP' contains a call to impure function 'Modelica_DeviceDrivers.Communication.UDPSocket_.sendTo'. Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.2003, allocations: 99.66 kB / 421.9 MB, free: 18.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001437/0.2005, allocations: 139.7 kB / 422 MB, free: 17.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001551/0.2006, allocations: 95.27 kB / 422.1 MB, free: 17.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.398e-05/0.2007, allocations: 63.78 kB / 422.1 MB, free: 17.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.2008, allocations: 83.55 kB / 422.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.684e-05/0.2008, allocations: 20 kB / 422.2 MB, free: 17.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001035/0.2009, allocations: 71.95 kB / 422.3 MB, free: 17.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.37e-05/0.201, allocations: 43.91 kB / 422.4 MB, free: 17.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.182e-05/0.2011, allocations: 83.47 kB / 422.4 MB, free: 17.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.2013, allocations: 219.4 kB / 422.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2013, allocations: 0 / 422.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.2013, allocations: 0 / 422.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.2013, allocations: 0 / 422.7 MB, free: 17.34 MB / 302.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.0006652/0.202, allocations: 0.5388 MB / 423.2 MB, free: 16.74 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.875e-05/0.202, allocations: 8.031 kB / 423.2 MB, free: 16.73 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.275e-05/0.202, allocations: 66.59 kB / 423.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.039e-05/0.2021, allocations: 20.75 kB / 423.3 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001252/0.2022, allocations: 212.1 kB / 423.5 MB, free: 16.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.2022, allocations: 8.375 kB / 423.5 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.168e-05/0.2023, allocations: 16.38 kB / 423.5 MB, free: 16.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000245/0.2025, allocations: 179.7 kB / 423.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.137e-06/0.2025, allocations: 3.938 kB / 423.7 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.607e-05/0.2026, allocations: 8 kB / 423.7 MB, free: 16.17 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.2026, allocations: 8 kB / 423.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.2027, allocations: 91.89 kB / 423.8 MB, free: 16.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004894/0.2032, allocations: 0.5628 MB / 424.4 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002091/0.2034, allocations: 125.1 kB / 424.5 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.773e-05/0.2035, allocations: 65.75 kB / 424.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.783e-05/0.2035, allocations: 0 / 424.5 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.2037, allocations: 125.1 kB / 424.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.2037, allocations: 0 / 424.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0003837/0.2041, allocations: 241.3 kB / 424.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.834e-05/0.2041, allocations: 85.11 kB / 425 MB, free: 14.76 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.603e-05/0.2042, allocations: 144.1 kB / 425.1 MB, free: 14.61 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.153e-05/0.2042, allocations: 29.7 kB / 425.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.754e-05/0.2043, allocations: 124.3 kB / 425.3 MB, free: 14.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.728e-05/0.2043, allocations: 39.55 kB / 425.3 MB, free: 14.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.161e-05/0.2044, allocations: 41.7 kB / 425.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.015e-05/0.2044, allocations: 331.1 kB / 425.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.398e-05/0.2045, allocations: 39.91 kB / 425.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.195e-05/0.2046, allocations: 86.84 kB / 425.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001394/0.2047, allocations: 146.7 kB / 426 MB, free: 13.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2047, allocations: 3.938 kB / 426 MB, free: 13.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002118/0.2049, allocations: 173.2 kB / 426.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/0.2049, allocations: 8 kB / 426.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.2049, allocations: 0 / 426.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.205, allocations: 7.984 kB / 426.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.608e-05/0.2051, allocations: 19.94 kB / 426.2 MB, free: 13.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-06/0.2051, allocations: 7.984 kB / 426.2 MB, free: 13.49 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.321e-05/0.2051, allocations: 8 kB / 426.2 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.2051, allocations: 4.188 kB / 426.2 MB, free: 13.48 MB / 302.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 8.476e-05/0.2052, allocations: 151.5 kB / 426.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.2053, allocations: 19.75 kB / 426.3 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002027/0.2055, allocations: 154.3 kB / 426.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2055, allocations: 0 / 426.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2055, allocations: 0 / 426.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.2055, allocations: 4 kB / 426.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003936/0.2059, allocations: 0.4943 MB / 427 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2059, allocations: 0 / 427 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.952e-05/0.2059, allocations: 4 kB / 427 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.206, allocations: 0 / 427 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.206, allocations: 11.98 kB / 427 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.206, allocations: 0 / 427 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.206, allocations: 0 / 427 MB, free: 12.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.2062, allocations: 300.1 kB / 427.3 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.901e-05/0.2063, allocations: 85.02 kB / 427.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.2063, allocations: 3.984 kB / 427.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.956e-05/0.2064, allocations: 8 kB / 427.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.074e-05/0.2064, allocations: 12.17 kB / 427.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.617e-05/0.2064, allocations: 4 kB / 427.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.746e-05/0.2065, allocations: 102.4 kB / 427.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2065, allocations: 0 / 427.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.2068, allocations: 59.77 kB / 427.6 MB, free: 11.97 MB / 302.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.0006685/0.2074, allocations: 0.9551 MB / 428.5 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002169/0.2077, allocations: 131.8 kB / 428.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.063e-06/0.2077, allocations: 0 / 428.7 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.778e-05/0.2078, allocations: 67.89 kB / 428.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000273/0.2081, allocations: 27.58 kB / 428.7 MB, free: 10.81 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001412/0.2095, allocations: 1.815 MB / 430.6 MB, free: 8.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.2096, allocations: 0.7272 MB / 431.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.7e-05/0.2097, allocations: 24.86 kB / 431.3 MB, free: 8.082 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.143e-05/0.2097, allocations: 43.42 kB / 431.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2097, allocations: 0 / 431.4 MB, free: 8.039 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01936/0.2291, allocations: 3.55 MB / 434.9 MB, free: 4.664 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.198/7.427, allocations: 15.11 kB / 434.9 MB, free: 4.652 MB / 302.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)