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.001496/0.001496, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001335/0.001335, allocations: 191.7 kB / 16.53 MB, free: 6.691 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.364/1.364, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1151/0.1151, allocations: 2.76 MB / 293.1 MB, free: 3.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 354.5 MB, free: 4.305 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09868, allocations: 50.24 MB / 404.7 MB, free: 2.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.1984/0.2972, allocations: 50.7 MB / 455.4 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01632/0.3135, allocations: 29.1 MB / 484.5 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005944/0.3141, allocations: 6.844 kB / 484.6 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.3157, allocations: 0.6119 MB / 485.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00664/0.3224, allocations: 2.241 MB / 487.4 MB, free: 13.8 MB / 366.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.008742/0.3312, allocations: 2.921 MB / 490.3 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001356/0.3325, allocations: 0.9182 MB / 491.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001381/0.3327, allocations: 61.39 kB / 491.3 MB, free: 11.55 MB / 366.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.3277/0.6604, allocations: 50.61 MB / 0.5292 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007946/0.6612, allocations: 298.7 kB / 0.5295 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 9.346e-05/0.6613, allocations: 40 kB / 0.5295 GB, free: 8.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1821/0.8435, allocations: 26.72 MB / 0.5556 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002131/0.8437, allocations: 119.5 kB / 0.5557 GB, free: 13.36 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005583/0.8443, allocations: 334.4 kB / 0.5561 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006345/0.8507, allocations: 1.832 MB / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.8507, allocations: 0 / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.8507, allocations: 0 / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.489e-05/0.8507, allocations: 0 / 0.5578 GB, free: 11.2 MB / 430.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.001502/0.8522, allocations: 1.112 MB / 0.5589 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.8523, allocations: 8.031 kB / 0.5589 GB, free: 10.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/0.8524, allocations: 119 kB / 0.5591 GB, free: 9.906 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002038/0.8545, allocations: 0.4919 MB / 0.5595 GB, free: 9.414 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004174/0.8549, allocations: 335.5 kB / 0.5599 GB, free: 9.047 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.38e-05/0.855, allocations: 49.86 kB / 0.5599 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.452e-05/0.855, allocations: 59.94 kB / 0.56 GB, free: 8.941 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001497/0.8565, allocations: 0.8645 MB / 0.5608 GB, free: 8.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/0.8566, allocations: 3.984 kB / 0.5608 GB, free: 8.023 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.306e-05/0.8566, allocations: 28 kB / 0.5608 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.572e-05/0.8567, allocations: 35.97 kB / 0.5609 GB, free: 7.961 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.8579, allocations: 0.7039 MB / 0.5616 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004606/0.8626, allocations: 4.989 MB / 0.5664 GB, free: 1.668 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007783/0.8634, allocations: 349.1 kB / 0.5668 GB, free: 1.309 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.8638, allocations: 225.7 kB / 0.567 GB, free: 1.082 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001449/0.8652, allocations: 1.551 MB / 0.5685 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.887e-05/0.8653, allocations: 34.5 kB / 0.5685 GB, free: 15.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=74): time 2.324e-06/0.8653, allocations: 0 / 0.5685 GB, free: 15.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=74): time 0.004097/0.8694, allocations: 0.6231 MB / 0.5691 GB, free: 14.69 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.8694, allocations: 85.11 kB / 0.5692 GB, free: 14.59 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00021/0.8697, allocations: 171.6 kB / 0.5694 GB, free: 14.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.533e-05/0.8697, allocations: 29.7 kB / 0.5694 GB, free: 14.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/0.8699, allocations: 275.6 kB / 0.5697 GB, free: 14.1 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002248/0.8702, allocations: 240.4 kB / 0.5699 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001631/0.8704, allocations: 97.86 kB / 0.57 GB, free: 13.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.8705, allocations: 338.8 kB / 0.5703 GB, free: 13.42 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002838/0.8708, allocations: 125.3 kB / 0.5704 GB, free: 13.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004334/0.8713, allocations: 293.4 kB / 0.5707 GB, free: 12.95 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007083/0.872, allocations: 474.7 kB / 0.5712 GB, free: 12.41 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.872, allocations: 0 / 0.5712 GB, free: 12.41 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008607/0.8729, allocations: 476.3 kB / 0.5716 GB, free: 11.94 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.441e-05/0.8729, allocations: 12.03 kB / 0.5716 GB, free: 11.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.393e-05/0.8729, allocations: 11.94 kB / 0.5716 GB, free: 11.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.285e-05/0.8729, allocations: 4 kB / 0.5716 GB, free: 11.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000272/0.8732, allocations: 72.47 kB / 0.5717 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.154e-05/0.8732, allocations: 8 kB / 0.5717 GB, free: 11.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.8735, allocations: 63.27 kB / 0.5718 GB, free: 11.77 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.867e-05/0.8736, allocations: 20 kB / 0.5718 GB, free: 11.75 MB / 446.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.0002662/0.8738, allocations: 189.7 kB / 0.572 GB, free: 11.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.519e-05/0.8739, allocations: 31.56 kB / 0.572 GB, free: 11.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.234e-05/0.874, allocations: 29.95 kB / 0.572 GB, free: 11.5 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.376e-06/0.874, allocations: 4 kB / 0.572 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.874, allocations: 0 / 0.572 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.8741, allocations: 4 kB / 0.572 GB, free: 11.49 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008/0.8749, allocations: 0.5022 MB / 0.5725 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.8749, allocations: 0 / 0.5725 GB, free: 10.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001579/0.875, allocations: 39.92 kB / 0.5726 GB, free: 10.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.01e-05/0.8751, allocations: 7.938 kB / 0.5726 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.608e-05/0.8751, allocations: 11.94 kB / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.853e-06/0.8751, allocations: 0 / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.8751, allocations: 0 / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009246/0.876, allocations: 0.5292 MB / 0.5731 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.8762, allocations: 108.6 kB / 0.5732 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.228e-05/0.8762, allocations: 7.938 kB / 0.5732 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.8764, allocations: 11.98 kB / 0.5732 GB, free: 10.19 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.934e-05/0.8765, allocations: 23.91 kB / 0.5733 GB, free: 10.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/0.8766, allocations: 12 kB / 0.5733 GB, free: 10.15 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.8767, allocations: 124.1 kB / 0.5734 GB, free: 10.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8767, allocations: 4 kB / 0.5734 GB, free: 10.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0008768/0.8776, allocations: 191.4 kB / 0.5736 GB, free: 9.84 MB / 446.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.001498/0.8791, allocations: 1.248 MB / 0.5748 GB, free: 8.562 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000968/0.8801, allocations: 0.6226 MB / 0.5754 GB, free: 7.922 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.8801, allocations: 0 / 0.5754 GB, free: 7.922 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005055/0.8806, allocations: 0.5158 MB / 0.5759 GB, free: 7.332 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001122/0.8817, allocations: 208.7 kB / 0.5761 GB, free: 7.129 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.8867, allocations: 3.556 MB / 0.5796 GB, free: 3.359 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005217/0.8873, allocations: 0.9475 MB / 0.5805 GB, free: 2.383 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005923/0.8879, allocations: 261.9 kB / 0.5807 GB, free: 2.129 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.8882, allocations: 275.3 kB / 0.581 GB, free: 1.859 MB / 446.1 MB Notification: Performance of SimCode: time 9.72e-07/0.8882, allocations: 0 / 0.581 GB, free: 1.859 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1915/1.08, allocations: 17.92 MB / 0.5985 GB, free: 141.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.122/9.202, allocations: 7.953 kB / 0.5985 GB, free: 141.2 MB / 446.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)