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.007663/0.007663, allocations: 97.62 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.001312/0.001312, allocations: 201.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.464/1.464, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1546/0.1546, allocations: 2.768 MB / 293.3 MB, free: 3.531 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001907/0.001907, allocations: 59.91 kB / 405.4 MB, free: 1.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2616, allocations: 50.23 MB / 455.7 MB, free: 20.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesTranscritical): time 0.04808/0.3098, allocations: 50.72 MB / 0.4945 GB, free: 15.09 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02936/0.3392, allocations: 29.1 MB / 0.5229 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006594/0.3399, allocations: 0 / 0.5229 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001862/0.3418, allocations: 0.6175 MB / 0.5235 GB, free: 4.516 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007306/0.3491, allocations: 2.234 MB / 0.5257 GB, free: 2.266 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.01139/0.3605, allocations: 2.922 MB / 0.5286 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.002107/0.3627, allocations: 0.9209 MB / 0.5295 GB, free: 14.4 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001906/0.3629, allocations: 69.67 kB / 0.5295 GB, free: 14.32 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.72/1.083, allocations: 51.7 MB / 0.58 GB, free: 11.52 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006865/1.084, allocations: 298.7 kB / 0.5803 GB, free: 11.22 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001165/1.084, allocations: 40 kB / 0.5803 GB, free: 11.18 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4837/1.567, allocations: 27.24 MB / 0.607 GB, free: 64.72 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001839/1.568, allocations: 110.1 kB / 0.6071 GB, free: 64.72 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005033/1.568, allocations: 335.7 kB / 0.6074 GB, free: 64.72 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00692/1.575, allocations: 1.87 MB / 0.6092 GB, free: 64.62 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/1.575, allocations: 1.625 kB / 0.6092 GB, free: 64.62 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.553e-06/1.575, allocations: 0 / 0.6092 GB, free: 64.62 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.134e-05/1.575, allocations: 0 / 0.6092 GB, free: 64.62 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.00181/1.577, allocations: 1.13 MB / 0.6103 GB, free: 63.97 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/1.577, allocations: 9.344 kB / 0.6103 GB, free: 63.97 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/1.577, allocations: 114.4 kB / 0.6104 GB, free: 63.93 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002045/1.579, allocations: 0.4996 MB / 0.6109 GB, free: 63.89 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003764/1.583, allocations: 339.3 kB / 0.6112 GB, free: 63.67 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.134e-05/1.583, allocations: 43.25 kB / 0.6113 GB, free: 63.67 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.462e-05/1.583, allocations: 57.34 kB / 0.6113 GB, free: 63.66 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001755/1.585, allocations: 0.8687 MB / 0.6122 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.136e-05/1.585, allocations: 8.156 kB / 0.6122 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.798e-05/1.585, allocations: 24.88 kB / 0.6122 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.021e-05/1.585, allocations: 32.59 kB / 0.6122 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00145/1.587, allocations: 0.7031 MB / 0.6129 GB, free: 63.5 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003531/1.59, allocations: 4.965 MB / 0.6178 GB, free: 59.4 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007848/1.591, allocations: 351.6 kB / 0.6181 GB, free: 59.35 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003659/1.591, allocations: 219 kB / 0.6183 GB, free: 59.33 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001325/1.593, allocations: 1.542 MB / 0.6198 GB, free: 58.12 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.551e-05/1.593, allocations: 39.42 kB / 0.6199 GB, free: 58.09 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.484e-06/1.593, allocations: 0 / 0.6199 GB, free: 58.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001849/1.595, allocations: 0.6248 MB / 0.6205 GB, free: 58.01 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.198e-05/1.595, allocations: 88.5 kB / 0.6206 GB, free: 57.91 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/1.595, allocations: 172.7 kB / 0.6207 GB, free: 57.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.588e-05/1.595, allocations: 30.36 kB / 0.6208 GB, free: 57.77 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/1.595, allocations: 289.1 kB / 0.621 GB, free: 57.56 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001356/1.595, allocations: 251.7 kB / 0.6213 GB, free: 57.39 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001301/1.595, allocations: 96.7 kB / 0.6214 GB, free: 57.37 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.739e-05/1.595, allocations: 338.9 kB / 0.6217 GB, free: 57.06 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002561/1.596, allocations: 126.8 kB / 0.6218 GB, free: 57.05 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003158/1.596, allocations: 286.4 kB / 0.6221 GB, free: 56.88 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006086/1.596, allocations: 478.5 kB / 0.6225 GB, free: 56.67 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/1.596, allocations: 2.156 kB / 0.6225 GB, free: 56.67 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008279/1.597, allocations: 474.8 kB / 0.623 GB, free: 56.61 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/1.597, allocations: 10.97 kB / 0.623 GB, free: 56.61 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/1.597, allocations: 4.969 kB / 0.623 GB, free: 56.61 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.58e-05/1.597, allocations: 9.812 kB / 0.623 GB, free: 56.61 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000269/1.598, allocations: 70.55 kB / 0.6231 GB, free: 56.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.426e-05/1.598, allocations: 20.73 kB / 0.6231 GB, free: 56.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000272/1.598, allocations: 62.94 kB / 0.6232 GB, free: 56.56 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.771e-05/1.598, allocations: 18.66 kB / 0.6232 GB, free: 56.56 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.0002264/1.598, allocations: 194.2 kB / 0.6234 GB, free: 56.45 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.567e-05/1.598, allocations: 35.8 kB / 0.6234 GB, free: 56.42 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.623e-05/1.598, allocations: 24.66 kB / 0.6234 GB, free: 56.42 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.425e-06/1.598, allocations: 2.219 kB / 0.6234 GB, free: 56.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.444e-06/1.598, allocations: 1.375 kB / 0.6234 GB, free: 56.42 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.56e-06/1.598, allocations: 12.09 kB / 0.6234 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005911/1.599, allocations: 0.4923 MB / 0.6239 GB, free: 56.19 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/1.599, allocations: 0.75 kB / 0.6239 GB, free: 56.19 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001568/1.599, allocations: 34.19 kB / 0.624 GB, free: 56.19 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/1.599, allocations: 7.688 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.208e-05/1.599, allocations: 9.75 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/1.599, allocations: 1.688 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.599, allocations: 1.094 kB / 0.624 GB, free: 56.18 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006836/1.6, allocations: 0.526 MB / 0.6245 GB, free: 55.95 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/1.6, allocations: 114.6 kB / 0.6246 GB, free: 55.82 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.587e-05/1.6, allocations: 11.28 kB / 0.6246 GB, free: 55.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/1.6, allocations: 8.75 kB / 0.6246 GB, free: 55.82 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.424e-05/1.6, allocations: 23.02 kB / 0.6246 GB, free: 55.82 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/1.6, allocations: 17.61 kB / 0.6247 GB, free: 55.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.931e-05/1.6, allocations: 117.2 kB / 0.6248 GB, free: 55.74 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.6, allocations: 0 / 0.6248 GB, free: 55.74 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007551/1.601, allocations: 194.4 kB / 0.6249 GB, free: 55.71 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.001297/1.603, allocations: 1.264 MB / 0.6262 GB, free: 54.86 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008661/1.603, allocations: 0.6076 MB / 0.6268 GB, free: 54.67 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/1.603, allocations: 0 / 0.6268 GB, free: 54.67 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004484/1.604, allocations: 0.5129 MB / 0.6273 GB, free: 54.34 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/1.605, allocations: 196.3 kB / 0.6275 GB, free: 54.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003845/1.609, allocations: 3.618 MB / 0.631 GB, free: 52.26 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003797/1.609, allocations: 0.9573 MB / 0.6319 GB, free: 51.54 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005182/1.61, allocations: 257 kB / 0.6322 GB, free: 51.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002596/1.61, allocations: 272.2 kB / 0.6324 GB, free: 51.51 MB / 462.1 MB Notification: Performance of SimCode: time 5.51e-07/1.61, allocations: 0 / 0.6324 GB, free: 51.51 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04188/1.652, allocations: 18.54 MB / 0.6505 GB, free: 35.27 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.268/10.92, allocations: 8.516 kB / 0.6506 GB, free: 35.26 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)