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.007244/0.007244, allocations: 99.81 kB / 15.73 MB, free: 6.062 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.001748/0.001748, allocations: 195.2 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01182/0.01182, allocations: 2.781 MB / 293.3 MB, free: 11.96 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 405.4 MB, free: 29.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08152/0.08275, allocations: 50.23 MB / 455.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04577/0.1286, allocations: 50.71 MB / 0.4945 GB, free: 8.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2535/0.3821, allocations: 29.09 MB / 0.5229 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005374/0.3827, allocations: 2.781 kB / 0.5229 GB, free: 2.773 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001707/0.3845, allocations: 0.6173 MB / 0.5235 GB, free: 2.77 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006679/0.3912, allocations: 2.249 MB / 0.5257 GB, free: 2.703 MB / 382.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.009192/0.4004, allocations: 2.925 MB / 0.5286 GB, free: 1.824 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001357/0.4018, allocations: 0.9273 MB / 0.5295 GB, free: 1.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.4019, allocations: 63.47 kB / 0.5295 GB, free: 1.52 MB / 382.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.3373/0.7393, allocations: 51.06 MB / 0.5794 GB, free: 13.88 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008566/0.7401, allocations: 302.5 kB / 0.5797 GB, free: 13.65 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001553/0.7403, allocations: 40 kB / 0.5797 GB, free: 13.61 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1736/0.9139, allocations: 26.92 MB / 0.606 GB, free: 4.789 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002593/0.9142, allocations: 113.5 kB / 0.6061 GB, free: 4.727 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007489/0.9149, allocations: 338.4 kB / 0.6065 GB, free: 4.441 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008931/0.9239, allocations: 1.863 MB / 0.6083 GB, free: 2.859 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.9239, allocations: 0 / 0.6083 GB, free: 2.859 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.9239, allocations: 0 / 0.6083 GB, free: 2.859 MB / 446.1 MB Notification: Performance of Transformations before backend: time 3.068e-05/0.924, allocations: 0 / 0.6083 GB, free: 2.859 MB / 446.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.002324/0.9263, allocations: 1.129 MB / 0.6094 GB, free: 1.688 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.9263, allocations: 12.02 kB / 0.6094 GB, free: 1.676 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000152/0.9265, allocations: 115.1 kB / 0.6095 GB, free: 1.555 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002092/0.9286, allocations: 0.5 MB / 0.61 GB, free: 1.055 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002183/0.9308, allocations: 335.5 kB / 0.6103 GB, free: 0.6875 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.235e-05/0.9309, allocations: 49.88 kB / 0.6103 GB, free: 0.6406 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.628e-05/0.931, allocations: 63.94 kB / 0.6104 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001491/0.9325, allocations: 0.8684 MB / 0.6113 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.9325, allocations: 0 / 0.6113 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.606e-05/0.9326, allocations: 24 kB / 0.6113 GB, free: 15.64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.512e-05/0.9326, allocations: 31.98 kB / 0.6113 GB, free: 15.61 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001312/0.9339, allocations: 0.7039 MB / 0.612 GB, free: 14.91 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004253/0.9382, allocations: 4.963 MB / 0.6168 GB, free: 9.359 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007763/0.939, allocations: 341.1 kB / 0.6172 GB, free: 9.008 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003532/0.9393, allocations: 225.7 kB / 0.6174 GB, free: 8.781 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001424/0.9408, allocations: 1.544 MB / 0.6189 GB, free: 7.066 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.9408, allocations: 38.5 kB / 0.6189 GB, free: 7.02 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 2.084e-06/0.9408, allocations: 0 / 0.6189 GB, free: 7.02 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001766/0.9426, allocations: 0.6278 MB / 0.6195 GB, free: 6.387 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/0.9427, allocations: 85.3 kB / 0.6196 GB, free: 6.285 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001749/0.9428, allocations: 167.7 kB / 0.6198 GB, free: 6.113 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.9429, allocations: 33.64 kB / 0.6198 GB, free: 6.074 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001711/0.9431, allocations: 291 kB / 0.6201 GB, free: 5.785 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001671/0.9432, allocations: 258.9 kB / 0.6203 GB, free: 5.535 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.9434, allocations: 97.95 kB / 0.6204 GB, free: 5.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.9435, allocations: 334.8 kB / 0.6208 GB, free: 5.094 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000277/0.9438, allocations: 125.3 kB / 0.6209 GB, free: 4.973 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003709/0.9442, allocations: 289.4 kB / 0.6212 GB, free: 4.625 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006947/0.9449, allocations: 477.5 kB / 0.6216 GB, free: 4.09 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.9449, allocations: 0 / 0.6216 GB, free: 4.09 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008941/0.9458, allocations: 480.7 kB / 0.6221 GB, free: 3.613 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/0.9458, allocations: 15.97 kB / 0.6221 GB, free: 3.598 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/0.9458, allocations: 4 kB / 0.6221 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.032e-05/0.9459, allocations: 8 kB / 0.6221 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002809/0.9462, allocations: 71.91 kB / 0.6222 GB, free: 3.516 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/0.9462, allocations: 15.92 kB / 0.6222 GB, free: 3.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002394/0.9464, allocations: 51.56 kB / 0.6222 GB, free: 3.449 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.692e-05/0.9465, allocations: 20 kB / 0.6222 GB, free: 3.43 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.0002223/0.9467, allocations: 197.7 kB / 0.6224 GB, free: 3.227 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/0.9468, allocations: 35.7 kB / 0.6225 GB, free: 3.191 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.395e-05/0.9469, allocations: 25.97 kB / 0.6225 GB, free: 3.172 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.9469, allocations: 4 kB / 0.6225 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.9469, allocations: 0 / 0.6225 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.9469, allocations: 3.984 kB / 0.6225 GB, free: 3.164 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000625/0.9475, allocations: 0.4922 MB / 0.623 GB, free: 2.629 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.9475, allocations: 0 / 0.623 GB, free: 2.629 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000165/0.9477, allocations: 43.84 kB / 0.623 GB, free: 2.586 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.9477, allocations: 7.938 kB / 0.623 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.99e-05/0.9477, allocations: 8 kB / 0.623 GB, free: 2.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.254e-06/0.9478, allocations: 0 / 0.623 GB, free: 2.57 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.9478, allocations: 0 / 0.623 GB, free: 2.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007353/0.9485, allocations: 0.5295 MB / 0.6236 GB, free: 2.027 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.581e-05/0.9486, allocations: 116.7 kB / 0.6237 GB, free: 1.895 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.9486, allocations: 7.938 kB / 0.6237 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.9489, allocations: 12 kB / 0.6237 GB, free: 1.875 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.987e-05/0.9489, allocations: 23.95 kB / 0.6237 GB, free: 1.852 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.551e-05/0.949, allocations: 11.98 kB / 0.6237 GB, free: 1.84 MB / 462.1 MB Notification: Performance of sorting global known variables: time 8.457e-05/0.9491, allocations: 115.2 kB / 0.6238 GB, free: 1.727 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9491, allocations: 4 kB / 0.6238 GB, free: 1.723 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006712/0.9498, allocations: 199.5 kB / 0.624 GB, free: 1.527 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.001486/0.9513, allocations: 1.263 MB / 0.6253 GB, free: 268 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000917/0.9522, allocations: 0.6067 MB / 0.6258 GB, free: 15.63 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.178e-06/0.9522, allocations: 4.625 kB / 0.6259 GB, free: 15.63 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005365/0.9527, allocations: 0.5041 MB / 0.6263 GB, free: 15.05 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001651/0.9544, allocations: 192.9 kB / 0.6265 GB, free: 14.86 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004823/0.9592, allocations: 3.624 MB / 0.6301 GB, free: 11.03 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006577/0.9599, allocations: 0.9553 MB / 0.631 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005469/0.9605, allocations: 257.9 kB / 0.6312 GB, free: 9.797 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003351/0.9608, allocations: 271.3 kB / 0.6315 GB, free: 9.531 MB / 478.1 MB Notification: Performance of SimCode: time 2.3e-07/0.9608, allocations: 0 / 0.6315 GB, free: 9.531 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04594/1.007, allocations: 18.48 MB / 0.6496 GB, free: 7.055 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.135/10.14, allocations: 11.83 kB / 0.6496 GB, free: 7.043 MB / 494.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)