Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001802/0.001802, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001801/0.001801, allocations: 212.6 kB / 22.25 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.451/1.451, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01264/0.01264, allocations: 2.803 MB / 315.2 MB, free: 88 kB / 238.1 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 63.91 kB / 438.7 MB, free: 13.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08879/0.09083, allocations: 54.17 MB / 492.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01106/0.1019, allocations: 8.347 MB / 0.4894 GB, free: 14.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007686/0.1096, allocations: 7.42 MB / 0.4967 GB, free: 7.176 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.1097, allocations: 0 / 0.4967 GB, free: 7.176 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004805/0.1102, allocations: 131.2 kB / 0.4968 GB, free: 7.047 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003128/0.1105, allocations: 103.3 kB / 0.4969 GB, free: 6.945 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.003441/0.1139, allocations: 1.442 MB / 0.4983 GB, free: 5.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003663/0.1143, allocations: 270.7 kB / 0.4986 GB, free: 5.23 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.611e-05/0.1143, allocations: 17.69 kB / 0.4986 GB, free: 5.215 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function 'ExternalMedia.Common.CheckCoolPropOptions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFEvalConstants.evaluate: time 0.3226/0.437, allocations: 12.91 MB / 0.5112 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002978/0.4373, allocations: 82.34 kB / 0.5113 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.719e-05/0.4373, allocations: 10.44 kB / 0.5113 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001903/0.4392, allocations: 472.5 kB / 0.5117 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-05/0.4393, allocations: 27.27 kB / 0.5118 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001042/0.4394, allocations: 74.02 kB / 0.5118 GB, free: 9.332 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001288/0.4407, allocations: 0.5071 MB / 0.5123 GB, free: 9.309 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.4407, allocations: 1.672 kB / 0.5123 GB, free: 9.309 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4407, allocations: 0 / 0.5123 GB, free: 9.309 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.113e-06/0.4407, allocations: 0 / 0.5123 GB, free: 9.309 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008561/0.4415, allocations: 0.495 MB / 0.5128 GB, free: 8.949 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.8e-05/0.4416, allocations: 9 kB / 0.5128 GB, free: 8.949 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.168e-05/0.4416, allocations: 51.44 kB / 0.5129 GB, free: 8.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003557/0.442, allocations: 55.3 kB / 0.5129 GB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002173/0.4422, allocations: 147.5 kB / 0.5131 GB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.4422, allocations: 8.688 kB / 0.5131 GB, free: 8.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.528e-05/0.4423, allocations: 14.25 kB / 0.5131 GB, free: 8.766 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000524/0.4428, allocations: 300.2 kB / 0.5134 GB, free: 8.637 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.4428, allocations: 7.172 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.4428, allocations: 4.281 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.4428, allocations: 9.891 kB / 0.5134 GB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000498/0.4433, allocations: 203.3 kB / 0.5136 GB, free: 8.629 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007623/0.4441, allocations: 0.6498 MB / 0.5142 GB, free: 8.203 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005194/0.4446, allocations: 210.6 kB / 0.5144 GB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002419/0.4449, allocations: 132.3 kB / 0.5145 GB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002083/0.4451, allocations: 101.4 kB / 0.5146 GB, free: 8.168 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.4451, allocations: 33.02 kB / 0.5147 GB, free: 8.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.413e-06/0.4451, allocations: 0 / 0.5147 GB, free: 8.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004183/0.4493, allocations: 1.168 MB / 0.5158 GB, free: 7.895 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.042e-05/0.4493, allocations: 54.78 kB / 0.5159 GB, free: 7.832 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.4495, allocations: 135.6 kB / 0.516 GB, free: 7.727 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.517e-05/0.4495, allocations: 30.67 kB / 0.516 GB, free: 7.695 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.382e-05/0.4496, allocations: 110.5 kB / 0.5161 GB, free: 7.598 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.4497, allocations: 167.2 kB / 0.5163 GB, free: 7.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.4498, allocations: 58.91 kB / 0.5163 GB, free: 7.473 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.281e-05/0.4499, allocations: 329.2 kB / 0.5167 GB, free: 7.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.4502, allocations: 126.7 kB / 0.5168 GB, free: 7.16 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.4505, allocations: 194.9 kB / 0.517 GB, free: 7.098 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005657/0.451, allocations: 348.2 kB / 0.5173 GB, free: 7.027 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.637e-06/0.451, allocations: 1.281 kB / 0.5173 GB, free: 7.027 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001211/0.4522, allocations: 482.9 kB / 0.5178 GB, free: 6.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.596e-05/0.4523, allocations: 5.969 kB / 0.5178 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/0.4523, allocations: 1.875 kB / 0.5178 GB, free: 6.965 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008316/0.4531, allocations: 146.2 kB / 0.5179 GB, free: 6.953 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001845/0.4533, allocations: 37.92 kB / 0.5179 GB, free: 6.949 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007461/0.454, allocations: 0.6523 MB / 0.5186 GB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.4543, allocations: 12.47 kB / 0.5186 GB, free: 6.426 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.168e-05/0.4543, allocations: 8.375 kB / 0.5186 GB, free: 6.426 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002008/0.4545, allocations: 130.4 kB / 0.5187 GB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.216e-05/0.4546, allocations: 23.11 kB / 0.5187 GB, free: 6.301 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.4547, allocations: 29.66 kB / 0.5188 GB, free: 6.293 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-05/0.4547, allocations: 13.44 kB / 0.5188 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.842e-05/0.4547, allocations: 0.8438 kB / 0.5188 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.022e-05/0.4548, allocations: 1.5 kB / 0.5188 GB, free: 6.289 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000523/0.4553, allocations: 252.3 kB / 0.519 GB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.4553, allocations: 0 / 0.519 GB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002035/0.4555, allocations: 35.58 kB / 0.5191 GB, free: 6.133 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003777/0.4559, allocations: 69.61 kB / 0.5191 GB, free: 6.121 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.452e-05/0.4559, allocations: 11.12 kB / 0.5191 GB, free: 6.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001262/0.4572, allocations: 1.459 MB / 0.5206 GB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4572, allocations: 0 / 0.5206 GB, free: 4.777 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001203/0.4584, allocations: 0.6995 MB / 0.5213 GB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.145e-05/0.4584, allocations: 17.36 kB / 0.5213 GB, free: 4.598 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.4585, allocations: 8.094 kB / 0.5213 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001769/0.4586, allocations: 10.83 kB / 0.5213 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.73e-05/0.4587, allocations: 19.66 kB / 0.5213 GB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.4587, allocations: 10.95 kB / 0.5213 GB, free: 4.59 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.859e-05/0.4588, allocations: 101.1 kB / 0.5214 GB, free: 4.512 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4588, allocations: 1.562 kB / 0.5214 GB, free: 4.512 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004223/0.4592, allocations: 74.67 kB / 0.5215 GB, free: 4.504 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001502/0.4607, allocations: 1.268 MB / 0.5227 GB, free: 3.777 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007567/0.4615, allocations: 337.4 kB / 0.523 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4615, allocations: 0 / 0.523 GB, free: 3.766 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006496/0.4621, allocations: 297.7 kB / 0.5233 GB, free: 3.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000735/0.4629, allocations: 110.1 kB / 0.5234 GB, free: 3.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004184/0.4671, allocations: 2.943 MB / 0.5263 GB, free: 2.098 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001309/0.4672, allocations: 126.6 kB / 0.5264 GB, free: 2.012 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002905/0.4675, allocations: 110 kB / 0.5265 GB, free: 2.008 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.247e-05/0.4676, allocations: 56.94 kB / 0.5266 GB, free: 2 MB / 366.1 MB Notification: Performance of SimCode: time 7.11e-07/0.4676, allocations: 0 / 0.5266 GB, free: 2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04241/0.51, allocations: 8.661 MB / 0.535 GB, free: 14.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.55, allocations: 6.969 kB / 0.5351 GB, free: 14.98 MB / 382.1 MB " [Timeout remaining time 646] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.974121015984565] Failed to read output from testmodel.py, exit status != 0: 13.88383173989132 13.90162969 13.457386177 Calling exit ...