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.004907/0.004907, allocations: 98.25 kB / 15.73 MB, free: 6.445 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.001346/0.001346, allocations: 196.8 kB / 16.68 MB, free: 6.352 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.459/1.459, allocations: 222.9 MB / 240.4 MB, free: 4.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1221/0.1221, allocations: 2.761 MB / 293.3 MB, free: 3.52 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001893, allocations: 71.89 kB / 405.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2456, allocations: 50.22 MB / 455.7 MB, free: 20.81 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.04537/0.291, allocations: 50.72 MB / 0.4945 GB, free: 15.1 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02794/0.319, allocations: 29.1 MB / 0.5229 GB, free: 5.129 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005975/0.3196, allocations: 7.875 kB / 0.5229 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001839/0.3215, allocations: 0.6136 MB / 0.5235 GB, free: 4.504 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006595/0.3281, allocations: 2.238 MB / 0.5257 GB, free: 2.25 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.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.008698/0.3369, allocations: 2.926 MB / 0.5286 GB, free: 15.31 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.00158/0.3385, allocations: 0.9209 MB / 0.5295 GB, free: 14.38 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.3387, allocations: 69.67 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.4491/0.7877, allocations: 51.04 MB / 0.5794 GB, free: 12.16 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000684/0.7884, allocations: 290.7 kB / 0.5797 GB, free: 11.88 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.7886, allocations: 43.94 kB / 0.5797 GB, free: 11.83 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4544/1.243, allocations: 26.93 MB / 0.606 GB, free: 65.22 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007813/1.244, allocations: 106.6 kB / 0.6061 GB, free: 65.22 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005962/1.244, allocations: 338.6 kB / 0.6064 GB, free: 65.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008167/1.253, allocations: 1.868 MB / 0.6083 GB, free: 65.12 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/1.253, allocations: 0.875 kB / 0.6083 GB, free: 65.12 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.267e-06/1.253, allocations: 0 / 0.6083 GB, free: 65.12 MB / 462.1 MB Notification: Performance of Transformations before backend: time 1.977e-05/1.253, allocations: 4.031 kB / 0.6083 GB, free: 65.12 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.002135/1.255, allocations: 1.122 MB / 0.6094 GB, free: 64.47 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/1.255, allocations: 11.2 kB / 0.6094 GB, free: 64.47 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001466/1.255, allocations: 121.5 kB / 0.6095 GB, free: 64.43 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002256/1.257, allocations: 0.4947 MB / 0.61 GB, free: 64.39 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00195/1.259, allocations: 337.3 kB / 0.6103 GB, free: 64.17 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.765e-05/1.259, allocations: 47.84 kB / 0.6103 GB, free: 64.17 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.417e-05/1.259, allocations: 60.41 kB / 0.6104 GB, free: 64.16 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/1.261, allocations: 0.8705 MB / 0.6112 GB, free: 64 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.874e-05/1.261, allocations: 5.125 kB / 0.6112 GB, free: 64 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.731e-05/1.261, allocations: 21.88 kB / 0.6113 GB, free: 64 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.164e-05/1.261, allocations: 34.11 kB / 0.6113 GB, free: 64 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/1.263, allocations: 0.7017 MB / 0.612 GB, free: 63.99 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003866/1.267, allocations: 5.016 MB / 0.6169 GB, free: 59.89 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007597/1.268, allocations: 328.2 kB / 0.6172 GB, free: 59.84 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/1.268, allocations: 217.2 kB / 0.6174 GB, free: 59.82 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/1.269, allocations: 1.532 MB / 0.6189 GB, free: 58.62 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.636e-05/1.269, allocations: 39.97 kB / 0.6189 GB, free: 58.57 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.775e-06/1.269, allocations: 0.6875 kB / 0.6189 GB, free: 58.57 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001592/1.271, allocations: 0.5942 MB / 0.6195 GB, free: 58.51 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/1.271, allocations: 79.45 kB / 0.6196 GB, free: 58.42 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/1.271, allocations: 181.8 kB / 0.6198 GB, free: 58.31 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/1.271, allocations: 34.33 kB / 0.6198 GB, free: 58.27 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001345/1.271, allocations: 296.6 kB / 0.6201 GB, free: 58.05 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/1.271, allocations: 240.9 kB / 0.6203 GB, free: 57.89 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/1.272, allocations: 96.84 kB / 0.6204 GB, free: 57.87 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.949e-05/1.272, allocations: 337.6 kB / 0.6207 GB, free: 57.56 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002337/1.272, allocations: 122.2 kB / 0.6208 GB, free: 57.56 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003025/1.272, allocations: 301.8 kB / 0.6211 GB, free: 57.35 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005805/1.273, allocations: 489.5 kB / 0.6216 GB, free: 57.13 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.771e-06/1.273, allocations: 1.844 kB / 0.6216 GB, free: 57.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007881/1.274, allocations: 485.4 kB / 0.6221 GB, free: 57.06 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/1.274, allocations: 13.84 kB / 0.6221 GB, free: 57.05 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/1.274, allocations: 5.781 kB / 0.6221 GB, free: 57.05 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.671e-05/1.274, allocations: 8.094 kB / 0.6221 GB, free: 57.05 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002578/1.274, allocations: 67.52 kB / 0.6221 GB, free: 57.05 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/1.274, allocations: 12.86 kB / 0.6222 GB, free: 57.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002917/1.274, allocations: 65.86 kB / 0.6222 GB, free: 57.02 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.22e-05/1.274, allocations: 26.47 kB / 0.6222 GB, free: 57.01 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.0002699/1.275, allocations: 192.6 kB / 0.6224 GB, free: 56.89 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.98e-05/1.275, allocations: 31 kB / 0.6225 GB, free: 56.88 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.347e-05/1.275, allocations: 29.34 kB / 0.6225 GB, free: 56.87 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/1.275, allocations: 2.5 kB / 0.6225 GB, free: 56.87 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/1.275, allocations: 0.9062 kB / 0.6225 GB, free: 56.87 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.599e-06/1.275, allocations: 1.469 kB / 0.6225 GB, free: 56.87 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/1.275, allocations: 0.4942 MB / 0.623 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/1.275, allocations: 1.281 kB / 0.623 GB, free: 56.64 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001196/1.276, allocations: 33.77 kB / 0.623 GB, free: 56.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/1.276, allocations: 7.688 kB / 0.623 GB, free: 56.63 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/1.276, allocations: 9.484 kB / 0.623 GB, free: 56.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/1.276, allocations: 1.219 kB / 0.623 GB, free: 56.63 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.276, allocations: 4.797 kB / 0.623 GB, free: 56.62 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005805/1.276, allocations: 0.5043 MB / 0.6235 GB, free: 56.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.043e-05/1.276, allocations: 113.8 kB / 0.6236 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.54e-05/1.276, allocations: 8.75 kB / 0.6236 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001611/1.277, allocations: 7.375 kB / 0.6236 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.859e-05/1.277, allocations: 13.39 kB / 0.6237 GB, free: 56.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/1.277, allocations: 12.25 kB / 0.6237 GB, free: 56.27 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.938e-05/1.277, allocations: 121.3 kB / 0.6238 GB, free: 56.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.277, allocations: 4 kB / 0.6238 GB, free: 56.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0007892/1.277, allocations: 196 kB / 0.624 GB, free: 56.15 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.001268/1.279, allocations: 1.239 MB / 0.6252 GB, free: 55.31 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.001284/1.28, allocations: 0.6051 MB / 0.6258 GB, free: 55.11 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.28, allocations: 1.375 kB / 0.6258 GB, free: 55.11 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004469/1.281, allocations: 0.4889 MB / 0.6263 GB, free: 54.79 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001184/1.282, allocations: 199.5 kB / 0.6264 GB, free: 54.74 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004136/1.286, allocations: 3.625 MB / 0.63 GB, free: 52.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004049/1.286, allocations: 0.9478 MB / 0.6309 GB, free: 51.94 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0004865/1.287, allocations: 251 kB / 0.6312 GB, free: 51.93 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/1.287, allocations: 272.4 kB / 0.6314 GB, free: 51.92 MB / 462.1 MB Notification: Performance of SimCode: time 5.81e-07/1.287, allocations: 0 / 0.6314 GB, free: 51.92 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04227/1.329, allocations: 17.97 MB / 0.649 GB, free: 36.71 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.701/11.03, allocations: 7.953 kB / 0.649 GB, free: 36.7 MB / 462.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)