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.005548/0.005548, allocations: 97.84 kB / 15.73 MB, free: 6.043 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.00132/0.00132, allocations: 197.1 kB / 16.67 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.441/1.441, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1268/0.1268, allocations: 2.759 MB / 293.3 MB, free: 3.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002148, allocations: 63.91 kB / 405.4 MB, free: 1.418 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2583, allocations: 50.23 MB / 455.7 MB, free: 20.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.05142/0.3098, allocations: 50.71 MB / 0.4945 GB, free: 15.08 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03049/0.3404, allocations: 29.1 MB / 0.5229 GB, free: 5.141 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006335/0.341, allocations: 4 kB / 0.5229 GB, free: 5.137 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.3431, allocations: 0.6136 MB / 0.5235 GB, free: 4.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006765/0.3499, allocations: 2.238 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.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.008818/0.3587, allocations: 2.933 MB / 0.5286 GB, free: 15.32 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.3603, allocations: 0.9243 MB / 0.5295 GB, free: 14.39 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001644/0.3605, 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.4673/0.8278, allocations: 51.03 MB / 0.5794 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006668/0.8285, allocations: 298.6 kB / 0.5797 GB, free: 11.87 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.8286, allocations: 43.98 kB / 0.5797 GB, free: 11.82 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4438/1.272, allocations: 26.93 MB / 0.606 GB, free: 65.11 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001843/1.273, allocations: 108.7 kB / 0.6061 GB, free: 65.11 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004908/1.273, allocations: 341 kB / 0.6064 GB, free: 65.11 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007732/1.281, allocations: 1.865 MB / 0.6083 GB, free: 65.02 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.346e-06/1.281, allocations: 0.5312 kB / 0.6083 GB, free: 65.02 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.674e-06/1.281, allocations: 0 / 0.6083 GB, free: 65.02 MB / 462.1 MB Notification: Performance of Transformations before backend: time 2.199e-05/1.281, allocations: 0.8438 kB / 0.6083 GB, free: 65.02 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.002158/1.283, allocations: 1.125 MB / 0.6094 GB, free: 64.36 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/1.283, allocations: 8.875 kB / 0.6094 GB, free: 64.36 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001328/1.283, allocations: 117.6 kB / 0.6095 GB, free: 64.32 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002185/1.285, allocations: 0.5059 MB / 0.61 GB, free: 64.28 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001774/1.287, allocations: 336.2 kB / 0.6103 GB, free: 64.06 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.294e-05/1.287, allocations: 44.31 kB / 0.6103 GB, free: 64.06 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.925e-05/1.287, allocations: 56.94 kB / 0.6104 GB, free: 64.05 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001671/1.289, allocations: 0.8689 MB / 0.6112 GB, free: 63.89 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.009e-05/1.289, allocations: 0.5 kB / 0.6112 GB, free: 63.89 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.661e-05/1.289, allocations: 30.69 kB / 0.6113 GB, free: 63.89 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.181e-05/1.289, allocations: 33.33 kB / 0.6113 GB, free: 63.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001447/1.291, allocations: 0.7082 MB / 0.612 GB, free: 63.88 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00361/1.294, allocations: 4.958 MB / 0.6168 GB, free: 59.79 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007827/1.295, allocations: 345.8 kB / 0.6172 GB, free: 59.74 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000361/1.296, allocations: 227.5 kB / 0.6174 GB, free: 59.72 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001246/1.297, allocations: 1.548 MB / 0.6189 GB, free: 58.51 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.487e-05/1.297, allocations: 32.28 kB / 0.6189 GB, free: 58.47 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 1.974e-06/1.297, allocations: 2.625 kB / 0.6189 GB, free: 58.47 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.002498/1.299, allocations: 0.6295 MB / 0.6195 GB, free: 58.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/1.299, allocations: 84.56 kB / 0.6196 GB, free: 58.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/1.3, allocations: 175.1 kB / 0.6198 GB, free: 58.19 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/1.3, allocations: 30.92 kB / 0.6198 GB, free: 58.16 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001516/1.3, allocations: 282.9 kB / 0.6201 GB, free: 57.95 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001694/1.3, allocations: 250.7 kB / 0.6203 GB, free: 57.78 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001326/1.3, allocations: 94.7 kB / 0.6204 GB, free: 57.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 7.429e-05/1.3, allocations: 342.8 kB / 0.6207 GB, free: 57.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/1.3, allocations: 129.2 kB / 0.6209 GB, free: 57.44 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000345/1.301, allocations: 286.5 kB / 0.6211 GB, free: 57.26 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006856/1.302, allocations: 478.3 kB / 0.6216 GB, free: 57.06 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/1.302, allocations: 1.156 kB / 0.6216 GB, free: 57.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008749/1.302, allocations: 480.6 kB / 0.6221 GB, free: 57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.224e-05/1.302, allocations: 11.59 kB / 0.6221 GB, free: 56.99 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/1.302, allocations: 4.938 kB / 0.6221 GB, free: 56.99 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/1.302, allocations: 10.5 kB / 0.6221 GB, free: 56.99 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002644/1.303, allocations: 72.23 kB / 0.6221 GB, free: 56.99 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.413e-05/1.303, allocations: 15.31 kB / 0.6222 GB, free: 56.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/1.303, allocations: 55.11 kB / 0.6222 GB, free: 56.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/1.303, allocations: 21.28 kB / 0.6222 GB, free: 56.95 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.0002299/1.303, allocations: 191.9 kB / 0.6224 GB, free: 56.83 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.788e-05/1.303, allocations: 35.7 kB / 0.6224 GB, free: 56.81 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.503e-05/1.304, allocations: 31.08 kB / 0.6225 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/1.304, allocations: 2.719 kB / 0.6225 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.304, allocations: 1 kB / 0.6225 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/1.304, allocations: 4.906 kB / 0.6225 GB, free: 56.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005765/1.304, allocations: 0.4979 MB / 0.623 GB, free: 56.58 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/1.304, allocations: 0 / 0.623 GB, free: 56.58 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001508/1.304, allocations: 30.5 kB / 0.623 GB, free: 56.58 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.549e-06/1.304, allocations: 4.875 kB / 0.623 GB, free: 56.57 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/1.304, allocations: 10.3 kB / 0.623 GB, free: 56.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/1.304, allocations: 5.469 kB / 0.623 GB, free: 56.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.304, allocations: 0 / 0.623 GB, free: 56.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006804/1.305, allocations: 0.5252 MB / 0.6235 GB, free: 56.34 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.726e-05/1.305, allocations: 115.3 kB / 0.6236 GB, free: 56.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.669e-05/1.305, allocations: 14.67 kB / 0.6237 GB, free: 56.21 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002254/1.305, allocations: 6.406 kB / 0.6237 GB, free: 56.21 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.958e-05/1.305, allocations: 29.16 kB / 0.6237 GB, free: 56.21 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.593e-05/1.305, allocations: 14.64 kB / 0.6237 GB, free: 56.2 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.864e-05/1.306, allocations: 118 kB / 0.6238 GB, free: 56.13 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.306, allocations: 0 / 0.6238 GB, free: 56.13 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.000773/1.306, allocations: 195 kB / 0.624 GB, free: 56.09 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.001331/1.308, allocations: 1.262 MB / 0.6252 GB, free: 55.25 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009023/1.309, allocations: 0.607 MB / 0.6258 GB, free: 55.05 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/1.309, allocations: 0.5938 kB / 0.6258 GB, free: 55.05 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004558/1.309, allocations: 0.5127 MB / 0.6263 GB, free: 54.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001175/1.31, allocations: 191 kB / 0.6265 GB, free: 54.7 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004113/1.314, allocations: 3.614 MB / 0.63 GB, free: 52.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003821/1.315, allocations: 0.954 MB / 0.631 GB, free: 51.95 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0007242/1.316, allocations: 266.4 kB / 0.6312 GB, free: 51.91 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000347/1.316, allocations: 281.7 kB / 0.6315 GB, free: 51.89 MB / 462.1 MB Notification: Performance of SimCode: time 5.11e-07/1.316, allocations: 2.844 kB / 0.6315 GB, free: 51.89 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04158/1.357, allocations: 18.48 MB / 0.6495 GB, free: 36.09 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.422/10.78, allocations: 7.953 kB / 0.6496 GB, free: 36.08 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)