Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_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.006698/0.006698, allocations: 98.05 kB / 15.73 MB, free: 6.004 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.001301/0.001301, allocations: 197.2 kB / 16.67 MB, free: 5.922 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 4.141 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1523/0.1523, allocations: 2.761 MB / 293.3 MB, free: 3.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 67.88 kB / 405.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.293/0.2945, allocations: 50.23 MB / 455.7 MB, free: 20.76 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04941/0.3439, allocations: 50.71 MB / 0.4945 GB, free: 15.05 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02568/0.3696, allocations: 29.1 MB / 0.5229 GB, free: 5.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001089/0.3708, allocations: 4 kB / 0.5229 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00202/0.3729, allocations: 0.6175 MB / 0.5235 GB, free: 4.508 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007249/0.3802, allocations: 2.238 MB / 0.5257 GB, free: 2.254 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.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.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.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008498/0.3887, allocations: 2.926 MB / 0.5286 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001486/0.3902, allocations: 0.9248 MB / 0.5295 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.3904, allocations: 69.66 kB / 0.5295 GB, free: 14.31 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.3333/0.7236, allocations: 51.05 MB / 0.5794 GB, free: 12.15 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001302/0.7249, allocations: 302.6 kB / 0.5797 GB, free: 11.86 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001684/0.7251, allocations: 40 kB / 0.5797 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4223/1.147, allocations: 26.92 MB / 0.606 GB, free: 65.33 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002009/1.148, allocations: 113.5 kB / 0.6061 GB, free: 65.32 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006292/1.148, allocations: 337 kB / 0.6064 GB, free: 65.32 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007359/1.156, allocations: 1.864 MB / 0.6083 GB, free: 65.23 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/1.156, allocations: 1.516 kB / 0.6083 GB, free: 65.23 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.623e-06/1.156, allocations: 0 / 0.6083 GB, free: 65.23 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.409e-05/1.156, allocations: 0 / 0.6083 GB, free: 65.23 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.002495/1.158, allocations: 1.123 MB / 0.6094 GB, free: 64.57 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.374e-05/1.158, allocations: 14.36 kB / 0.6094 GB, free: 64.57 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001986/1.158, allocations: 121.4 kB / 0.6095 GB, free: 64.53 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002398/1.161, allocations: 0.4982 MB / 0.61 GB, free: 64.49 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/1.163, allocations: 338.4 kB / 0.6103 GB, free: 64.27 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.815e-05/1.163, allocations: 45.95 kB / 0.6103 GB, free: 64.27 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000119/1.164, allocations: 62.48 kB / 0.6104 GB, free: 64.26 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001908/1.165, allocations: 0.8727 MB / 0.6113 GB, free: 64.1 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/1.166, allocations: 0.8438 kB / 0.6113 GB, free: 64.1 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.772e-05/1.166, allocations: 27.41 kB / 0.6113 GB, free: 64.09 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-05/1.166, allocations: 33.45 kB / 0.6113 GB, free: 64.09 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/1.167, allocations: 0.7003 MB / 0.612 GB, free: 64.09 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005344/1.173, allocations: 4.96 MB / 0.6168 GB, free: 60 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008397/1.173, allocations: 351.5 kB / 0.6172 GB, free: 59.95 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003712/1.174, allocations: 222.8 kB / 0.6174 GB, free: 59.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001397/1.175, allocations: 1.547 MB / 0.6189 GB, free: 58.72 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/1.175, allocations: 32.67 kB / 0.6189 GB, free: 58.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 1.683e-06/1.175, allocations: 0.625 kB / 0.6189 GB, free: 58.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001941/1.177, allocations: 0.634 MB / 0.6195 GB, free: 58.61 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.045e-05/1.177, allocations: 79.78 kB / 0.6196 GB, free: 58.51 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/1.177, allocations: 179.5 kB / 0.6198 GB, free: 58.4 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.517e-05/1.177, allocations: 28.7 kB / 0.6198 GB, free: 58.37 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/1.178, allocations: 286.1 kB / 0.6201 GB, free: 58.16 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/1.178, allocations: 247 kB / 0.6203 GB, free: 57.99 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001435/1.178, allocations: 102.5 kB / 0.6204 GB, free: 57.97 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.253e-05/1.178, allocations: 341.3 kB / 0.6208 GB, free: 57.65 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003049/1.178, allocations: 124.2 kB / 0.6209 GB, free: 57.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003924/1.179, allocations: 281.8 kB / 0.6211 GB, free: 57.47 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000747/1.18, allocations: 483.9 kB / 0.6216 GB, free: 57.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.67e-06/1.18, allocations: 1.281 kB / 0.6216 GB, free: 57.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009919/1.181, allocations: 477.8 kB / 0.6221 GB, free: 57.21 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/1.181, allocations: 11.78 kB / 0.6221 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/1.181, allocations: 5.781 kB / 0.6221 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.115e-05/1.181, allocations: 9.969 kB / 0.6221 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002956/1.181, allocations: 71.14 kB / 0.6222 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/1.181, allocations: 10.47 kB / 0.6222 GB, free: 57.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003505/1.181, allocations: 68.27 kB / 0.6222 GB, free: 57.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.664e-05/1.181, allocations: 20.47 kB / 0.6222 GB, free: 57.16 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.0002827/1.182, allocations: 188.5 kB / 0.6224 GB, free: 57.04 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.804e-05/1.182, allocations: 35.7 kB / 0.6225 GB, free: 57.02 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.637e-05/1.182, allocations: 31.64 kB / 0.6225 GB, free: 57.02 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/1.182, allocations: 6.188 kB / 0.6225 GB, free: 57.01 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.506e-06/1.182, allocations: 1.125 kB / 0.6225 GB, free: 57.01 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/1.182, allocations: 1.344 kB / 0.6225 GB, free: 57.01 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007007/1.183, allocations: 0.4925 MB / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/1.183, allocations: 2.625 kB / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/1.183, allocations: 33.45 kB / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.735e-06/1.183, allocations: 5.406 kB / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.491e-05/1.183, allocations: 8.438 kB / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.28e-06/1.183, allocations: 4.156 kB / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.784e-06/1.183, allocations: 0 / 0.623 GB, free: 56.79 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007698/1.184, allocations: 0.5296 MB / 0.6235 GB, free: 56.54 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.438e-05/1.184, allocations: 117.8 kB / 0.6237 GB, free: 56.42 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.298e-05/1.184, allocations: 12.62 kB / 0.6237 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/1.184, allocations: 11.94 kB / 0.6237 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.976e-05/1.184, allocations: 27.25 kB / 0.6237 GB, free: 56.41 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-05/1.184, allocations: 10.72 kB / 0.6237 GB, free: 56.41 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.968e-05/1.184, allocations: 117.8 kB / 0.6238 GB, free: 56.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/1.184, allocations: 0 / 0.6238 GB, free: 56.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001124/1.185, allocations: 193.6 kB / 0.624 GB, free: 56.3 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.001521/1.187, allocations: 1.261 MB / 0.6252 GB, free: 55.45 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009547/1.188, allocations: 0.6082 MB / 0.6258 GB, free: 55.26 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/1.188, allocations: 1.25 kB / 0.6258 GB, free: 55.26 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001134/1.189, allocations: 0.5091 MB / 0.6263 GB, free: 54.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/1.19, allocations: 195.6 kB / 0.6265 GB, free: 54.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004444/1.195, allocations: 3.619 MB / 0.6301 GB, free: 52.86 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00039/1.195, allocations: 0.9499 MB / 0.631 GB, free: 52.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005285/1.196, allocations: 267.5 kB / 0.6312 GB, free: 52.11 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002687/1.196, allocations: 276.3 kB / 0.6315 GB, free: 52.1 MB / 462.1 MB Notification: Performance of SimCode: time 9.82e-07/1.196, allocations: 0 / 0.6315 GB, free: 52.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03459/1.231, allocations: 18.48 MB / 0.6496 GB, free: 36.24 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.074/10.3, allocations: 11.92 kB / 0.6496 GB, free: 36.23 MB / 462.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.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_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1)