Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.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/ExternalMedia 4.0.0/package.mo", uses=false) 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.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(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesDynamic",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.005601/0.005601, allocations: 100.5 kB / 15.73 MB, free: 6.059 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.001192/0.001192, allocations: 196.4 kB / 16.68 MB, free: 5.969 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.0116/0.0116, allocations: 2.785 MB / 293.3 MB, free: 11.95 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 75.88 kB / 405.5 MB, free: 29.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09584/0.09706, allocations: 50.23 MB / 455.7 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic): time 0.01079/0.1079, allocations: 8.996 MB / 464.7 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007957/0.1159, allocations: 8.575 MB / 473.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1161, allocations: 0 / 473.3 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005499/0.1167, allocations: 159 kB / 473.4 MB, free: 9.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004039/0.1171, allocations: 107.3 kB / 473.5 MB, free: 9.453 MB / 350.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_Tabular.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.00384/0.1209, allocations: 1.459 MB / 475 MB, free: 7.988 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.1214, allocations: 274.6 kB / 475.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.674e-05/0.1215, allocations: 13.69 kB / 475.3 MB, free: 7.707 MB / 350.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.3302/0.4517, allocations: 13.01 MB / 488.3 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002553/0.4519, allocations: 83.61 kB / 488.3 MB, free: 11.77 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.523e-05/0.452, allocations: 8 kB / 488.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002288/0.4543, allocations: 483.9 kB / 488.8 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.132e-05/0.4544, allocations: 27.86 kB / 488.9 MB, free: 11.26 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001417/0.4545, allocations: 99.45 kB / 488.9 MB, free: 11.16 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001243/0.4557, allocations: 0.5024 MB / 489.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.531e-06/0.4558, allocations: 0 / 489.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.4558, allocations: 0 / 489.5 MB, free: 10.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.4558, allocations: 0 / 489.5 MB, free: 10.66 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.000971/0.4568, allocations: 0.5604 MB / 490 MB, free: 10.05 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.4568, allocations: 12.03 kB / 490 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.505e-05/0.4569, allocations: 46.73 kB / 490.1 MB, free: 9.984 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003485/0.4572, allocations: 64.69 kB / 490.1 MB, free: 9.922 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003156/0.4576, allocations: 204.1 kB / 490.3 MB, free: 9.684 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.967e-05/0.4576, allocations: 12.12 kB / 490.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.749e-05/0.4576, allocations: 12 kB / 490.4 MB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005289/0.4582, allocations: 243.1 kB / 490.6 MB, free: 9.41 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.4582, allocations: 3.984 kB / 490.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.4582, allocations: 8 kB / 490.6 MB, free: 9.398 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.4582, allocations: 11.98 kB / 490.6 MB, free: 9.387 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004969/0.4587, allocations: 204.2 kB / 490.8 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008629/0.4596, allocations: 0.6786 MB / 491.5 MB, free: 8.449 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/0.4602, allocations: 226.4 kB / 491.7 MB, free: 8.219 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.4604, allocations: 149.1 kB / 491.9 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003057/0.4607, allocations: 335.2 kB / 492.2 MB, free: 7.688 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.791e-05/0.4608, allocations: 34.56 kB / 492.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.543e-06/0.4608, allocations: 0 / 492.2 MB, free: 7.645 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002858/0.4637, allocations: 1.226 MB / 493.4 MB, free: 6.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.4637, allocations: 51.41 kB / 493.5 MB, free: 6.301 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001073/0.4638, allocations: 130.4 kB / 493.6 MB, free: 6.164 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.959e-05/0.4639, allocations: 33.64 kB / 493.7 MB, free: 6.125 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.871e-05/0.4639, allocations: 108.9 kB / 493.8 MB, free: 6.016 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.464, allocations: 166.5 kB / 493.9 MB, free: 5.852 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.971e-05/0.4641, allocations: 57.69 kB / 494 MB, free: 5.789 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4643, allocations: 326.8 kB / 494.3 MB, free: 5.461 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002473/0.4645, allocations: 124.5 kB / 494.4 MB, free: 5.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002842/0.4648, allocations: 197.2 kB / 494.6 MB, free: 5.129 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005375/0.4654, allocations: 340.8 kB / 495 MB, free: 4.773 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.317e-06/0.4654, allocations: 0 / 495 MB, free: 4.773 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001179/0.4666, allocations: 481.8 kB / 495.4 MB, free: 4.293 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.4666, allocations: 8 kB / 495.4 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.4666, allocations: 0 / 495.4 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007044/0.4673, allocations: 144.9 kB / 495.6 MB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/0.4675, allocations: 35.86 kB / 495.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006778/0.4681, allocations: 0.6537 MB / 496.3 MB, free: 3.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.4683, allocations: 16.03 kB / 496.3 MB, free: 3.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.4683, allocations: 8 kB / 496.3 MB, free: 3.402 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.0001469/0.4685, allocations: 138.4 kB / 496.4 MB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.36e-05/0.4686, allocations: 19.84 kB / 496.4 MB, free: 3.238 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.144e-05/0.4686, allocations: 22.27 kB / 496.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.4686, allocations: 11.94 kB / 496.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.646e-06/0.4687, allocations: 0 / 496.5 MB, free: 3.199 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.4687, allocations: 3.984 kB / 496.5 MB, free: 3.195 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003559/0.469, allocations: 302.2 kB / 496.8 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.469, allocations: 0 / 496.8 MB, free: 2.848 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001827/0.4692, allocations: 31.98 kB / 496.8 MB, free: 2.816 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003686/0.4696, allocations: 76.66 kB / 496.9 MB, free: 2.738 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.982e-05/0.4696, allocations: 8 kB / 496.9 MB, free: 2.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001339/0.471, allocations: 1.56 MB / 498.4 MB, free: 1.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.471, allocations: 3.938 kB / 498.4 MB, free: 1.008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001221/0.4722, allocations: 0.6937 MB / 499.1 MB, free: 304 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.957e-05/0.4723, allocations: 93 kB / 499.2 MB, free: 192 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/0.4723, allocations: 8 kB / 499.2 MB, free: 184 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001603/0.4725, allocations: 11.98 kB / 499.3 MB, free: 172 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.097e-05/0.4726, allocations: 23.91 kB / 499.3 MB, free: 148 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.4726, allocations: 7.938 kB / 499.3 MB, free: 140 kB / 366.1 MB Notification: Performance of sorting global known variables: time 6.606e-05/0.4727, allocations: 107.3 kB / 499.4 MB, free: 32 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4727, allocations: 0 / 499.4 MB, free: 32 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003536/0.473, allocations: 64.05 kB / 499.4 MB, free: 15.96 MB / 382.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.001537/0.4746, allocations: 1.24 MB / 0.489 GB, free: 14.7 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008295/0.4754, allocations: 378 kB / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4754, allocations: 0 / 0.4893 GB, free: 14.33 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006169/0.4761, allocations: 311 kB / 0.4896 GB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006747/0.4767, allocations: 98.52 kB / 0.4897 GB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00446/0.4812, allocations: 2.937 MB / 0.4926 GB, free: 10.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.4816, allocations: 0.7371 MB / 0.4933 GB, free: 10.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002579/0.4818, allocations: 117.3 kB / 0.4934 GB, free: 9.965 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.624e-05/0.4819, allocations: 51.42 kB / 0.4935 GB, free: 9.914 MB / 382.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4819, allocations: 0 / 0.4935 GB, free: 9.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03271/0.5147, allocations: 7.902 MB / 0.5012 GB, free: 2.082 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12/12.51, allocations: 7.922 kB / 0.5012 GB, free: 2.074 MB / 382.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic.pipe 2>&1)