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.002062/0.002062, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002471/0.002471, allocations: 199.7 kB / 16.54 MB, free: 6.664 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.379/1.379, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1524/0.1524, allocations: 2.759 MB / 293.2 MB, free: 3.566 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 68.03 kB / 354.5 MB, free: 4.332 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1513, allocations: 50.24 MB / 404.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesDynamic): time 0.01404/0.1654, allocations: 8.994 MB / 413.7 MB, free: 9.008 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007854/0.1733, allocations: 8.567 MB / 422.3 MB, free: 420 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001721/0.1735, allocations: 3.938 kB / 422.3 MB, free: 416 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006036/0.1742, allocations: 163 kB / 422.5 MB, free: 252 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000464/0.1747, allocations: 103.3 kB / 422.6 MB, free: 148 kB / 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.2062/0.3809, allocations: 1.447 MB / 424 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000508/0.3814, allocations: 273.6 kB / 424.3 MB, free: 36.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.126e-05/0.3815, allocations: 13.28 kB / 424.3 MB, free: 36.2 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.2885/0.6701, allocations: 12.9 MB / 437.2 MB, free: 31.51 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.6703, allocations: 87.56 kB / 437.3 MB, free: 31.49 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.076e-05/0.6703, allocations: 10.19 kB / 437.3 MB, free: 31.49 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001843/0.6722, allocations: 478.6 kB / 437.8 MB, free: 31.49 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.185e-05/0.6723, allocations: 30.53 kB / 437.8 MB, free: 31.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.6724, allocations: 87.69 kB / 437.9 MB, free: 31.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001429/0.6738, allocations: 0.5008 MB / 438.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.6738, allocations: 0 / 438.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.6739, allocations: 0 / 438.4 MB, free: 31.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.251e-06/0.6739, allocations: 3.594 kB / 438.4 MB, free: 31.4 MB / 350.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.0007147/0.6746, allocations: 0.5606 MB / 438.9 MB, free: 30.96 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.6746, allocations: 9.219 kB / 439 MB, free: 30.96 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.629e-05/0.6747, allocations: 51.59 kB / 439 MB, free: 30.92 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003361/0.675, allocations: 51.69 kB / 439.1 MB, free: 30.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.6752, allocations: 209.7 kB / 439.3 MB, free: 30.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.356e-05/0.6752, allocations: 10.56 kB / 439.3 MB, free: 30.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.602e-05/0.6753, allocations: 13.47 kB / 439.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004467/0.6757, allocations: 237.2 kB / 439.5 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.247e-06/0.6757, allocations: 0 / 439.5 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.6757, allocations: 13.75 kB / 439.5 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.153e-05/0.6758, allocations: 10.3 kB / 439.5 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004536/0.6762, allocations: 198 kB / 439.7 MB, free: 30.64 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006482/0.6769, allocations: 0.6974 MB / 440.4 MB, free: 30.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.6774, allocations: 220 kB / 440.6 MB, free: 30.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002162/0.6776, allocations: 153.3 kB / 440.8 MB, free: 30.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001851/0.6778, allocations: 330.2 kB / 441.1 MB, free: 29.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.835e-05/0.6778, allocations: 37.19 kB / 441.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.443e-06/0.6778, allocations: 0 / 441.2 MB, free: 29.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.002496/0.6803, allocations: 1.219 MB / 442.4 MB, free: 29.49 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.054e-05/0.6803, allocations: 54.22 kB / 442.4 MB, free: 29.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.533e-05/0.6804, allocations: 132.7 kB / 442.6 MB, free: 29.33 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.614e-05/0.6805, allocations: 33.2 kB / 442.6 MB, free: 29.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.6805, allocations: 106.9 kB / 442.7 MB, free: 29.2 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.328e-05/0.6806, allocations: 151.7 kB / 442.8 MB, free: 29.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.195e-05/0.6806, allocations: 63.09 kB / 442.9 MB, free: 29.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.402e-05/0.6807, allocations: 328.2 kB / 443.2 MB, free: 28.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.6809, allocations: 130.6 kB / 443.4 MB, free: 28.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002291/0.6811, allocations: 189.1 kB / 443.5 MB, free: 28.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004502/0.6816, allocations: 345.4 kB / 443.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.6816, allocations: 0 / 443.9 MB, free: 28.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000966/0.6826, allocations: 484.2 kB / 444.3 MB, free: 28.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.6826, allocations: 10.41 kB / 444.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.775e-06/0.6826, allocations: 6.594 kB / 444.4 MB, free: 28.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006726/0.6833, allocations: 143.8 kB / 444.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001342/0.6835, allocations: 31.25 kB / 444.5 MB, free: 28.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004658/0.6839, allocations: 0.6557 MB / 445.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.6841, allocations: 9.875 kB / 445.2 MB, free: 28.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.817e-05/0.6841, allocations: 9.75 kB / 445.2 MB, free: 28.01 MB / 350.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 9.357e-05/0.6842, allocations: 138 kB / 445.3 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.643e-05/0.6843, allocations: 17.53 kB / 445.4 MB, free: 27.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.058e-05/0.6843, allocations: 24.41 kB / 445.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.6843, allocations: 10.06 kB / 445.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.6844, allocations: 7.125 kB / 445.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.6844, allocations: 0 / 445.4 MB, free: 27.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002501/0.6846, allocations: 296.9 kB / 445.7 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.6846, allocations: 0 / 445.7 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.6848, allocations: 37.25 kB / 445.7 MB, free: 27.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003348/0.6852, allocations: 70.8 kB / 445.8 MB, free: 27.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.6852, allocations: 10.97 kB / 445.8 MB, free: 27.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009288/0.6861, allocations: 1.563 MB / 447.4 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.6861, allocations: 0 / 447.4 MB, free: 26.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009302/0.6871, allocations: 0.6998 MB / 448.1 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.023e-05/0.6871, allocations: 94.8 kB / 448.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.398e-05/0.6871, allocations: 64 / 448.2 MB, free: 25.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.6873, allocations: 17.38 kB / 448.2 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.259e-05/0.6874, allocations: 20.23 kB / 448.2 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.561e-05/0.6874, allocations: 10.44 kB / 448.2 MB, free: 25.91 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.947e-05/0.6874, allocations: 99.25 kB / 448.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.6874, allocations: 0 / 448.3 MB, free: 25.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000345/0.6878, allocations: 63.25 kB / 448.4 MB, free: 25.84 MB / 350.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.001244/0.689, allocations: 1.252 MB / 449.6 MB, free: 25.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007588/0.6898, allocations: 374.8 kB / 450 MB, free: 25.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6898, allocations: 0 / 450 MB, free: 25.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005356/0.6904, allocations: 320.3 kB / 450.3 MB, free: 24.85 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006327/0.691, allocations: 89.75 kB / 450.4 MB, free: 24.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003619/0.6946, allocations: 2.891 MB / 453.3 MB, free: 22.86 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001582/0.6948, allocations: 0.7373 MB / 454 MB, free: 22.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002218/0.6951, allocations: 119.2 kB / 454.1 MB, free: 22.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.265e-05/0.6951, allocations: 56.03 kB / 454.2 MB, free: 22.1 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.6951, allocations: 0 / 454.2 MB, free: 22.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.7212, allocations: 7.788 MB / 462 MB, free: 21.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.37, allocations: 8.922 kB / 462 MB, free: 21.08 MB / 350.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)