Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",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.009182/0.009182, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.002051/0.002051, allocations: 192.2 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.525/1.525, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01256/0.01256, allocations: 2.782 MB / 293.3 MB, free: 11.99 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 55.91 kB / 405.4 MB, free: 29.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09813, allocations: 50.24 MB / 455.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.05303/0.1512, allocations: 50.71 MB / 0.4945 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.255/0.4063, allocations: 29.09 MB / 0.5229 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007437/0.4071, allocations: 6.844 kB / 0.5229 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001951/0.4091, allocations: 0.6193 MB / 0.5235 GB, free: 2.777 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008227/0.4173, allocations: 2.248 MB / 0.5257 GB, free: 2.711 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.00842/0.4258, allocations: 2.923 MB / 0.5286 GB, free: 1.852 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001293/0.4271, allocations: 0.9261 MB / 0.5295 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001336/0.4272, allocations: 60.33 kB / 0.5295 GB, free: 1.543 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.3502/0.7774, allocations: 51.05 MB / 0.5794 GB, free: 13.94 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007085/0.7782, allocations: 307.5 kB / 0.5797 GB, free: 13.7 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.914e-05/0.7783, allocations: 43.94 kB / 0.5797 GB, free: 13.66 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1694/0.9477, allocations: 26.94 MB / 0.606 GB, free: 4.828 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001847/0.9479, allocations: 111.8 kB / 0.6061 GB, free: 4.766 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005463/0.9484, allocations: 335.9 kB / 0.6065 GB, free: 4.469 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007041/0.9555, allocations: 1.862 MB / 0.6083 GB, free: 2.887 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.714e-06/0.9555, allocations: 4 kB / 0.6083 GB, free: 2.883 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.9555, allocations: 0 / 0.6083 GB, free: 2.883 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.9555, allocations: 0 / 0.6083 GB, free: 2.883 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.001618/0.9572, allocations: 1.127 MB / 0.6094 GB, free: 1.711 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.315e-05/0.9572, allocations: 8.031 kB / 0.6094 GB, free: 1.703 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001201/0.9574, allocations: 115 kB / 0.6095 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002071/0.9594, allocations: 0.5 MB / 0.61 GB, free: 1.082 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002423/0.9619, allocations: 343.5 kB / 0.6103 GB, free: 0.707 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.723e-05/0.962, allocations: 45.88 kB / 0.6104 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.097e-05/0.9621, allocations: 59.94 kB / 0.6104 GB, free: 0.6055 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/0.9636, allocations: 0.8646 MB / 0.6113 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.9637, allocations: 3.938 kB / 0.6113 GB, free: 15.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.191e-05/0.9637, allocations: 24 kB / 0.6113 GB, free: 15.66 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.938e-05/0.9638, allocations: 35.97 kB / 0.6113 GB, free: 15.63 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001319/0.9651, allocations: 0.7039 MB / 0.612 GB, free: 14.93 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00501/0.9701, allocations: 5.006 MB / 0.6169 GB, free: 9.34 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007686/0.9709, allocations: 333 kB / 0.6172 GB, free: 8.996 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003187/0.9713, allocations: 221.6 kB / 0.6174 GB, free: 8.773 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002212/0.9735, allocations: 1.527 MB / 0.6189 GB, free: 7.078 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.048e-05/0.9735, allocations: 38.5 kB / 0.6189 GB, free: 7.031 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 3.617e-06/0.9735, allocations: 0 / 0.6189 GB, free: 7.031 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001655/0.9752, allocations: 0.601 MB / 0.6195 GB, free: 6.426 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.962e-05/0.9753, allocations: 81.11 kB / 0.6196 GB, free: 6.328 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002053/0.9755, allocations: 178.8 kB / 0.6198 GB, free: 6.145 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.9755, allocations: 33.7 kB / 0.6198 GB, free: 6.105 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.9757, allocations: 293.5 kB / 0.6201 GB, free: 5.816 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.9759, allocations: 245.3 kB / 0.6203 GB, free: 5.578 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.9761, allocations: 97.95 kB / 0.6204 GB, free: 5.473 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.9762, allocations: 342.8 kB / 0.6207 GB, free: 5.129 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000219/0.9764, allocations: 113.3 kB / 0.6209 GB, free: 5.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003422/0.9768, allocations: 304 kB / 0.6211 GB, free: 4.648 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005799/0.9774, allocations: 488.7 kB / 0.6216 GB, free: 4.094 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.9774, allocations: 0 / 0.6216 GB, free: 4.094 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007717/0.9782, allocations: 488.8 kB / 0.6221 GB, free: 3.609 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.9782, allocations: 7.938 kB / 0.6221 GB, free: 3.602 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.9782, allocations: 8 kB / 0.6221 GB, free: 3.594 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.263e-05/0.9782, allocations: 8 kB / 0.6221 GB, free: 3.586 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002468/0.9785, allocations: 67.91 kB / 0.6222 GB, free: 3.52 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.356e-05/0.9785, allocations: 15.92 kB / 0.6222 GB, free: 3.504 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002646/0.9788, allocations: 59.45 kB / 0.6222 GB, free: 3.445 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.9788, allocations: 24 kB / 0.6223 GB, free: 3.422 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * 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.0002674/0.9791, allocations: 198.6 kB / 0.6225 GB, free: 3.219 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.726e-05/0.9792, allocations: 27.75 kB / 0.6225 GB, free: 3.191 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.939e-05/0.9793, allocations: 26.66 kB / 0.6225 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.713e-06/0.9793, allocations: 0 / 0.6225 GB, free: 3.168 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.198e-06/0.9793, allocations: 4 kB / 0.6225 GB, free: 3.164 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.9793, allocations: 7.922 kB / 0.6225 GB, free: 3.156 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000634/0.9799, allocations: 0.4901 MB / 0.623 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.98, allocations: 0 / 0.623 GB, free: 2.621 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001153/0.9801, allocations: 23.98 kB / 0.623 GB, free: 2.598 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.041e-06/0.9801, allocations: 3.938 kB / 0.623 GB, free: 2.594 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.214e-05/0.9801, allocations: 12 kB / 0.623 GB, free: 2.582 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.9801, allocations: 0 / 0.623 GB, free: 2.582 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.9801, allocations: 4 kB / 0.623 GB, free: 2.578 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006582/0.9808, allocations: 0.5061 MB / 0.6235 GB, free: 2.059 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.244e-05/0.9809, allocations: 112.7 kB / 0.6236 GB, free: 1.93 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.573e-05/0.9809, allocations: 8.125 kB / 0.6236 GB, free: 1.922 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.9811, allocations: 12 kB / 0.6237 GB, free: 1.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.72e-05/0.9812, allocations: 23.92 kB / 0.6237 GB, free: 1.887 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.939e-05/0.9812, allocations: 7.984 kB / 0.6237 GB, free: 1.879 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.874e-05/0.9813, allocations: 120.2 kB / 0.6238 GB, free: 1.762 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.503e-06/0.9813, allocations: 0 / 0.6238 GB, free: 1.762 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007366/0.9821, allocations: 203.4 kB / 0.624 GB, free: 1.562 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: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.00141/0.9835, allocations: 1.245 MB / 0.6252 GB, free: 328 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0009863/0.9845, allocations: 0.5997 MB / 0.6258 GB, free: 15.7 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.9845, allocations: 0 / 0.6258 GB, free: 15.7 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005213/0.985, allocations: 0.492 MB / 0.6263 GB, free: 15.13 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001242/0.9863, allocations: 192.5 kB / 0.6265 GB, free: 14.94 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004808/0.9911, allocations: 3.624 MB / 0.63 GB, free: 11.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005623/0.9917, allocations: 0.9465 MB / 0.6309 GB, free: 10.12 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0005581/0.9923, allocations: 265.8 kB / 0.6312 GB, free: 9.863 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003421/0.9926, allocations: 271.3 kB / 0.6314 GB, free: 9.598 MB / 478.1 MB Notification: Performance of SimCode: time 2.144e-06/0.9927, allocations: 0 / 0.6314 GB, free: 9.598 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04403/1.037, allocations: 17.95 MB / 0.649 GB, free: 7.652 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.999/10.04, allocations: 7.859 kB / 0.649 GB, free: 7.645 MB / 494.1 MB (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit_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_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1)