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.001077/0.001077, 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.001138/0.001138, allocations: 194.5 kB / 16.53 MB, free: 6.664 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1063/0.1063, allocations: 2.766 MB / 293.2 MB, free: 3.637 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 59.91 kB / 354.5 MB, free: 4.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07744/0.07867, allocations: 50.24 MB / 404.8 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.1749/0.2536, allocations: 50.69 MB / 455.4 MB, free: 21.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01598/0.2696, allocations: 29.1 MB / 484.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004822/0.2701, allocations: 3.219 kB / 484.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.2717, allocations: 0.6135 MB / 485.2 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005291/0.277, allocations: 2.243 MB / 487.4 MB, free: 13.88 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.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.007604/0.2847, allocations: 2.924 MB / 490.3 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001063/0.2857, allocations: 0.9184 MB / 491.2 MB, free: 11.64 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.2859, allocations: 60.44 kB / 491.3 MB, free: 11.62 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.3325/0.6183, allocations: 50.6 MB / 0.5292 GB, free: 8.703 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006712/0.619, allocations: 302.5 kB / 0.5295 GB, free: 8.41 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 8.643e-05/0.6191, allocations: 40 kB / 0.5295 GB, free: 8.371 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1639/0.7831, allocations: 26.72 MB / 0.5556 GB, free: 13.48 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002035/0.7833, allocations: 111.5 kB / 0.5557 GB, free: 13.37 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005205/0.7838, allocations: 334.4 kB / 0.556 GB, free: 13.04 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007968/0.7918, allocations: 1.828 MB / 0.5578 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.7919, allocations: 0 / 0.5578 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.003e-06/0.7919, allocations: 4 kB / 0.5578 GB, free: 11.2 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.433e-05/0.7919, 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.001389/0.7933, allocations: 1.116 MB / 0.5589 GB, free: 10.04 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.779e-05/0.7933, allocations: 8.031 kB / 0.5589 GB, free: 10.03 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000123/0.7935, allocations: 119 kB / 0.559 GB, free: 9.906 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001944/0.7954, allocations: 0.4997 MB / 0.5595 GB, free: 9.406 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003755/0.7958, allocations: 335.5 kB / 0.5599 GB, free: 9.039 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.247e-05/0.7959, allocations: 41.88 kB / 0.5599 GB, free: 9 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.579e-05/0.7959, allocations: 59.94 kB / 0.56 GB, free: 8.941 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001399/0.7973, allocations: 0.8646 MB / 0.5608 GB, free: 8.027 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.7974, allocations: 3.938 kB / 0.5608 GB, free: 8.023 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.7974, allocations: 28 kB / 0.5608 GB, free: 7.996 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.913e-05/0.7975, allocations: 27.98 kB / 0.5609 GB, free: 7.969 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.7991, allocations: 0.7117 MB / 0.5616 GB, free: 7.254 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003777/0.8028, allocations: 5.047 MB / 0.5665 GB, free: 1.609 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006337/0.8035, allocations: 321.8 kB / 0.5668 GB, free: 1.277 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002892/0.8038, allocations: 225.5 kB / 0.567 GB, free: 1.051 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001279/0.8051, allocations: 1.531 MB / 0.5685 GB, free: 15.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/0.8051, allocations: 34.5 kB / 0.5685 GB, free: 15.3 MB / 446.1 MB Notification: Performance of pre-optimization done (n=71): time 1.663e-06/0.8051, allocations: 0 / 0.5685 GB, free: 15.3 MB / 446.1 MB Notification: Performance of matching and sorting (n=71): time 0.002814/0.808, allocations: 0.5924 MB / 0.5691 GB, free: 14.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.642e-05/0.808, allocations: 93.05 kB / 0.5692 GB, free: 14.6 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001595/0.8082, allocations: 182.7 kB / 0.5694 GB, free: 14.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.146e-05/0.8082, allocations: 29.7 kB / 0.5694 GB, free: 14.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/0.8084, allocations: 287.5 kB / 0.5697 GB, free: 14.09 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.8085, allocations: 232.4 kB / 0.5699 GB, free: 13.86 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001208/0.8087, allocations: 93.92 kB / 0.57 GB, free: 13.76 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001141/0.8088, allocations: 342.8 kB / 0.5703 GB, free: 13.41 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002116/0.809, allocations: 117.3 kB / 0.5704 GB, free: 13.3 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000317/0.8093, allocations: 308 kB / 0.5707 GB, free: 12.93 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005879/0.8099, allocations: 484.5 kB / 0.5712 GB, free: 12.38 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.8099, allocations: 0 / 0.5712 GB, free: 12.38 MB / 446.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000747/0.8107, allocations: 488.2 kB / 0.5716 GB, free: 11.89 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.8107, allocations: 7.938 kB / 0.5717 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.8107, allocations: 8.719 kB / 0.5717 GB, free: 11.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.8108, allocations: 8 kB / 0.5717 GB, free: 11.87 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002678/0.811, allocations: 71.91 kB / 0.5717 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.8111, allocations: 11.94 kB / 0.5717 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002065/0.8113, allocations: 55.36 kB / 0.5718 GB, free: 11.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.408e-05/0.8113, allocations: 24 kB / 0.5718 GB, free: 11.71 MB / 446.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.0002018/0.8115, allocations: 189.7 kB / 0.572 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.37e-05/0.8116, allocations: 27.56 kB / 0.572 GB, free: 11.48 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.086e-05/0.8117, allocations: 38.64 kB / 0.5721 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.8117, allocations: 0 / 0.5721 GB, free: 11.45 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.8117, allocations: 8 kB / 0.5721 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.8117, allocations: 0 / 0.5721 GB, free: 11.44 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005747/0.8123, allocations: 494.4 kB / 0.5725 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.8123, allocations: 0 / 0.5725 GB, free: 10.91 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001169/0.8124, allocations: 31.92 kB / 0.5726 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.007e-06/0.8124, allocations: 3.938 kB / 0.5726 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.657e-05/0.8125, allocations: 4 kB / 0.5726 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.8125, allocations: 0 / 0.5726 GB, free: 10.87 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.8125, allocations: 7.984 kB / 0.5726 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006009/0.8131, allocations: 0.5096 MB / 0.5731 GB, free: 10.33 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.23e-05/0.8132, allocations: 108.6 kB / 0.5732 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.722e-05/0.8132, allocations: 11.94 kB / 0.5732 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.8134, allocations: 11.98 kB / 0.5732 GB, free: 10.18 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.088e-05/0.8134, allocations: 11.98 kB / 0.5732 GB, free: 10.17 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.8135, allocations: 8.188 kB / 0.5732 GB, free: 10.16 MB / 446.1 MB Notification: Performance of sorting global known variables: time 8.447e-05/0.8135, allocations: 127.2 kB / 0.5734 GB, free: 10.04 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.8136, allocations: 3.938 kB / 0.5734 GB, free: 10.04 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0009433/0.8145, allocations: 195.3 kB / 0.5735 GB, free: 9.844 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: 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.001241/0.8158, allocations: 1.248 MB / 0.5748 GB, free: 8.562 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000786/0.8166, allocations: 0.6037 MB / 0.5754 GB, free: 7.941 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.8166, allocations: 0 / 0.5754 GB, free: 7.941 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004673/0.817, allocations: 495.8 kB / 0.5758 GB, free: 7.387 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.8182, allocations: 211.2 kB / 0.576 GB, free: 7.184 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.8221, allocations: 3.57 MB / 0.5795 GB, free: 3.383 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.8226, allocations: 0.9426 MB / 0.5804 GB, free: 2.414 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0005236/0.8231, allocations: 257.9 kB / 0.5807 GB, free: 2.156 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002901/0.8234, allocations: 275.3 kB / 0.5809 GB, free: 1.887 MB / 446.1 MB Notification: Performance of SimCode: time 3.21e-07/0.8234, allocations: 0 / 0.5809 GB, free: 1.887 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1763/0.9997, allocations: 17.41 MB / 0.5979 GB, free: 141.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/9.016, allocations: 11.95 kB / 0.598 GB, free: 141.5 MB / 446.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)