Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.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.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical",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.005288/0.005288, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001213/0.001213, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.393/1.393, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.134/0.134, allocations: 2.756 MB / 293.3 MB, free: 3.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001617/0.001617, allocations: 63.89 kB / 405.4 MB, free: 1.395 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.2422, allocations: 50.23 MB / 455.7 MB, free: 20.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.04176/0.284, allocations: 50.71 MB / 0.4945 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02698/0.311, allocations: 29.11 MB / 0.5229 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001202/0.3122, allocations: 0 / 0.5229 GB, free: 5.031 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.3143, allocations: 0.6136 MB / 0.5235 GB, free: 4.414 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007646/0.3219, allocations: 2.246 MB / 0.5257 GB, free: 2.152 MB / 398.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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium1.Medium.setSat_p'. [/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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.00979/0.3318, allocations: 2.922 MB / 0.5286 GB, free: 15.21 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001414/0.3332, allocations: 0.9286 MB / 0.5295 GB, free: 14.28 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.3333, allocations: 69.67 kB / 0.5295 GB, free: 14.21 MB / 414.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.581/0.9143, allocations: 51.7 MB / 0.58 GB, free: 11.39 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000785/0.9151, allocations: 298.6 kB / 0.5803 GB, free: 11.1 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001412/0.9153, allocations: 40 kB / 0.5804 GB, free: 11.06 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.3826/1.298, allocations: 27.24 MB / 0.607 GB, free: 64.57 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002255/1.298, allocations: 113.7 kB / 0.6071 GB, free: 64.57 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007638/1.299, allocations: 336.8 kB / 0.6074 GB, free: 64.57 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009007/1.308, allocations: 1.864 MB / 0.6092 GB, free: 64.48 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/1.308, allocations: 0 / 0.6092 GB, free: 64.48 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.342e-06/1.308, allocations: 0 / 0.6092 GB, free: 64.48 MB / 462.1 MB Notification: Performance of Transformations before backend: time 4.037e-05/1.308, allocations: 0 / 0.6092 GB, free: 64.48 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.002921/1.311, allocations: 1.128 MB / 0.6103 GB, free: 63.82 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.772e-05/1.311, allocations: 10.64 kB / 0.6103 GB, free: 63.82 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002304/1.311, allocations: 117.2 kB / 0.6104 GB, free: 63.78 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002524/1.314, allocations: 0.4957 MB / 0.6109 GB, free: 63.75 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004815/1.319, allocations: 346 kB / 0.6112 GB, free: 63.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.881e-05/1.319, allocations: 43.19 kB / 0.6113 GB, free: 63.52 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001735/1.319, allocations: 58.5 kB / 0.6113 GB, free: 63.52 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/1.321, allocations: 0.8747 MB / 0.6122 GB, free: 63.35 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/1.321, allocations: 0 / 0.6122 GB, free: 63.35 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.488e-05/1.321, allocations: 25.84 kB / 0.6122 GB, free: 63.35 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.286e-05/1.321, allocations: 31.42 kB / 0.6123 GB, free: 63.35 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/1.323, allocations: 0.7066 MB / 0.6129 GB, free: 63.34 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00388/1.327, allocations: 4.966 MB / 0.6178 GB, free: 59.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008415/1.328, allocations: 345.2 kB / 0.6181 GB, free: 59.2 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003726/1.328, allocations: 227.6 kB / 0.6183 GB, free: 59.18 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001363/1.329, allocations: 1.535 MB / 0.6198 GB, free: 57.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.465e-05/1.329, allocations: 36.5 kB / 0.6199 GB, free: 57.94 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.144e-06/1.329, allocations: 5.156 kB / 0.6199 GB, free: 57.93 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.00195/1.331, allocations: 0.6305 MB / 0.6205 GB, free: 57.86 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.982e-05/1.331, allocations: 80.02 kB / 0.6206 GB, free: 57.77 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001845/1.332, allocations: 178.2 kB / 0.6207 GB, free: 57.66 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.805e-05/1.332, allocations: 28.73 kB / 0.6208 GB, free: 57.62 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000169/1.332, allocations: 285.8 kB / 0.621 GB, free: 57.41 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001785/1.332, allocations: 252.6 kB / 0.6213 GB, free: 57.24 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001458/1.332, allocations: 96.98 kB / 0.6214 GB, free: 57.22 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.393e-05/1.332, allocations: 344.6 kB / 0.6217 GB, free: 56.91 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002876/1.333, allocations: 122 kB / 0.6218 GB, free: 56.91 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003382/1.333, allocations: 284.6 kB / 0.6221 GB, free: 56.73 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006577/1.334, allocations: 474.5 kB / 0.6225 GB, free: 56.52 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/1.334, allocations: 5.344 kB / 0.6225 GB, free: 56.52 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009093/1.335, allocations: 482.8 kB / 0.623 GB, free: 56.46 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/1.335, allocations: 13.91 kB / 0.623 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.609e-05/1.335, allocations: 7.625 kB / 0.623 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/1.335, allocations: 6.5 kB / 0.623 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/1.335, allocations: 73.3 kB / 0.6231 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.562e-05/1.335, allocations: 9.875 kB / 0.6231 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003191/1.335, allocations: 58.64 kB / 0.6232 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.309e-05/1.335, allocations: 19.72 kB / 0.6232 GB, free: 56.41 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0002532/1.336, allocations: 196.1 kB / 0.6234 GB, free: 56.29 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.763e-05/1.336, allocations: 36.7 kB / 0.6234 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.411e-05/1.336, allocations: 28.33 kB / 0.6234 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/1.336, allocations: 3.25 kB / 0.6234 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.714e-06/1.336, allocations: 1.094 kB / 0.6234 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/1.336, allocations: 0 / 0.6234 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008115/1.337, allocations: 0.4951 MB / 0.6239 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/1.337, allocations: 1.75 kB / 0.6239 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001698/1.337, allocations: 39.36 kB / 0.624 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.143e-06/1.337, allocations: 5.75 kB / 0.624 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/1.337, allocations: 5.688 kB / 0.624 GB, free: 56.04 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.537e-06/1.337, allocations: 4.625 kB / 0.624 GB, free: 56.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/1.337, allocations: 1.406 kB / 0.624 GB, free: 56.03 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007582/1.338, allocations: 0.5327 MB / 0.6245 GB, free: 55.79 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001203/1.338, allocations: 114.7 kB / 0.6246 GB, free: 55.67 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.007e-05/1.338, allocations: 8.016 kB / 0.6246 GB, free: 55.67 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/1.338, allocations: 7.531 kB / 0.6246 GB, free: 55.67 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/1.338, allocations: 23.14 kB / 0.6246 GB, free: 55.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.27e-05/1.338, allocations: 14.34 kB / 0.6247 GB, free: 55.67 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.39e-05/1.338, allocations: 113.1 kB / 0.6248 GB, free: 55.59 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.338, allocations: 0 / 0.6248 GB, free: 55.59 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0009159/1.339, allocations: 201.3 kB / 0.625 GB, free: 55.55 MB / 462.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: 4 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * 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.001455/1.341, allocations: 1.271 MB / 0.6262 GB, free: 54.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001042/1.342, allocations: 0.6119 MB / 0.6268 GB, free: 54.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/1.342, allocations: 4 kB / 0.6268 GB, free: 54.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005518/1.342, allocations: 0.5041 MB / 0.6273 GB, free: 54.18 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001291/1.344, allocations: 190.3 kB / 0.6275 GB, free: 54.15 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005298/1.349, allocations: 3.633 MB / 0.631 GB, free: 52.11 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004628/1.349, allocations: 0.9419 MB / 0.6319 GB, free: 51.39 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005919/1.35, allocations: 261.7 kB / 0.6322 GB, free: 51.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003298/1.35, allocations: 275.9 kB / 0.6325 GB, free: 51.36 MB / 462.1 MB Notification: Performance of SimCode: time 1.933e-06/1.35, allocations: 0 / 0.6325 GB, free: 51.36 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.041/1.391, allocations: 18.54 MB / 0.6506 GB, free: 35.05 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.003/10.39, allocations: 23.92 kB / 0.6506 GB, free: 35.03 MB / 462.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical.pipe 2>&1)