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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001364/0.001364, allocations: 103.3 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 212.9 kB / 19.43 MB, free: 3.637 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.488/1.488, allocations: 230.6 MB / 252.8 MB, free: 8.949 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01247/0.01247, allocations: 2.795 MB / 311.6 MB, free: 1.457 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002834/0.002834, allocations: 67.89 kB / 433.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1194/0.1222, allocations: 54.15 MB / 487.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.2528/0.375, allocations: 51.03 MB / 0.5261 GB, free: 3.699 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02154/0.3965, allocations: 29.15 MB / 0.5545 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006166/0.3971, allocations: 2.75 kB / 0.5545 GB, free: 10.72 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001693/0.3988, allocations: 0.6204 MB / 0.5552 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006676/0.4055, allocations: 2.251 MB / 0.5574 GB, free: 9.105 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.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.009254/0.4148, allocations: 2.921 MB / 0.5602 GB, free: 7.555 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001479/0.4162, allocations: 0.9268 MB / 0.5611 GB, free: 7.199 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.4164, allocations: 23.09 kB / 0.5611 GB, free: 7.184 MB / 398.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.4481/0.8645, allocations: 51.22 MB / 0.6112 GB, free: 10.12 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001691/0.8661, allocations: 294.7 kB / 0.6114 GB, free: 9.836 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002492/0.8664, allocations: 40 kB / 0.6115 GB, free: 9.797 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2256/1.092, allocations: 27.01 MB / 0.6379 GB, free: 14.61 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002314/1.092, allocations: 103.5 kB / 0.638 GB, free: 14.51 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007347/1.093, allocations: 342.4 kB / 0.6383 GB, free: 14.17 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01072/1.104, allocations: 1.858 MB / 0.6401 GB, free: 12.31 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/1.104, allocations: 0 / 0.6401 GB, free: 12.31 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.194e-06/1.104, allocations: 0 / 0.6401 GB, free: 12.31 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.433e-05/1.104, allocations: 0 / 0.6401 GB, free: 12.31 MB / 478.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.002158/1.106, allocations: 1.137 MB / 0.6412 GB, free: 11.12 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/1.106, allocations: 11.98 kB / 0.6412 GB, free: 11.11 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/1.106, allocations: 115.1 kB / 0.6413 GB, free: 10.99 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002152/1.108, allocations: 0.4961 MB / 0.6418 GB, free: 10.49 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002076/1.11, allocations: 343.5 kB / 0.6421 GB, free: 10.12 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-05/1.11, allocations: 41.88 kB / 0.6422 GB, free: 10.08 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.736e-05/1.11, allocations: 63.94 kB / 0.6422 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001681/1.112, allocations: 0.8646 MB / 0.6431 GB, free: 9.105 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.946e-05/1.112, allocations: 7.938 kB / 0.6431 GB, free: 9.098 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.665e-05/1.112, allocations: 24 kB / 0.6431 GB, free: 9.074 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.76e-05/1.112, allocations: 27.98 kB / 0.6431 GB, free: 9.047 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001455/1.114, allocations: 0.7117 MB / 0.6438 GB, free: 8.336 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004944/1.119, allocations: 4.963 MB / 0.6487 GB, free: 2.766 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008062/1.119, allocations: 273 kB / 0.6489 GB, free: 2.48 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003565/1.12, allocations: 165.5 kB / 0.6491 GB, free: 2.312 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002227/1.122, allocations: 1.55 MB / 0.6506 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.809e-05/1.122, allocations: 42.55 kB / 0.6507 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of pre-optimization done (n=74): time 2.215e-06/1.122, allocations: 0 / 0.6507 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of matching and sorting (n=74): time 0.001916/1.124, allocations: 0.6205 MB / 0.6513 GB, free: 15.91 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.686e-05/1.124, allocations: 81.11 kB / 0.6513 GB, free: 15.81 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001971/1.124, allocations: 185.9 kB / 0.6515 GB, free: 15.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/1.124, allocations: 33.7 kB / 0.6515 GB, free: 15.58 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001942/1.125, allocations: 272.6 kB / 0.6518 GB, free: 15.31 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002166/1.125, allocations: 257.7 kB / 0.6521 GB, free: 15.05 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001574/1.125, allocations: 102 kB / 0.6521 GB, free: 14.95 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/1.125, allocations: 338.8 kB / 0.6525 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003176/1.125, allocations: 125.5 kB / 0.6526 GB, free: 14.48 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004343/1.126, allocations: 281.5 kB / 0.6529 GB, free: 14.14 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007944/1.127, allocations: 477.5 kB / 0.6533 GB, free: 13.61 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/1.127, allocations: 4 kB / 0.6533 GB, free: 13.61 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001017/1.128, allocations: 476.7 kB / 0.6538 GB, free: 13.13 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.555e-05/1.128, allocations: 11.94 kB / 0.6538 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/1.128, allocations: 8.031 kB / 0.6538 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.491e-05/1.128, allocations: 8 kB / 0.6538 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002864/1.128, allocations: 71.89 kB / 0.6539 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/1.128, allocations: 11.94 kB / 0.6539 GB, free: 13.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002653/1.128, allocations: 59.52 kB / 0.6539 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.444e-05/1.128, allocations: 27.92 kB / 0.654 GB, free: 12.94 MB / 494.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.0002714/1.129, allocations: 189.7 kB / 0.6541 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.255e-05/1.129, allocations: 35.75 kB / 0.6542 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.636e-05/1.129, allocations: 29.91 kB / 0.6542 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.291e-06/1.129, allocations: 0 / 0.6542 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/1.129, allocations: 7.984 kB / 0.6542 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/1.129, allocations: 0 / 0.6542 GB, free: 12.67 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007409/1.13, allocations: 491 kB / 0.6547 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/1.13, allocations: 4 kB / 0.6547 GB, free: 12.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001673/1.13, allocations: 35.97 kB / 0.6547 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.63e-06/1.13, allocations: 3.938 kB / 0.6547 GB, free: 12.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.94e-05/1.13, allocations: 4 kB / 0.6547 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/1.13, allocations: 4 kB / 0.6547 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/1.13, allocations: 0 / 0.6547 GB, free: 12.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008477/1.131, allocations: 0.5332 MB / 0.6553 GB, free: 11.54 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000119/1.131, allocations: 116.7 kB / 0.6554 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.774e-05/1.131, allocations: 7.938 kB / 0.6554 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002329/1.131, allocations: 15.98 kB / 0.6554 GB, free: 11.39 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.085e-05/1.131, allocations: 23.97 kB / 0.6554 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.571e-05/1.131, allocations: 8 kB / 0.6554 GB, free: 11.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001069/1.131, allocations: 120.1 kB / 0.6555 GB, free: 11.24 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/1.131, allocations: 0 / 0.6555 GB, free: 11.24 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007568/1.132, allocations: 195.5 kB / 0.6557 GB, free: 11.05 MB / 494.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.001732/1.134, allocations: 1.283 MB / 0.657 GB, free: 9.738 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001028/1.135, allocations: 0.5602 MB / 0.6575 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.277e-06/1.135, allocations: 0 / 0.6575 GB, free: 9.156 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006023/1.135, allocations: 484.3 kB / 0.658 GB, free: 8.609 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001218/1.137, allocations: 184.9 kB / 0.6582 GB, free: 8.43 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005706/1.142, allocations: 3.613 MB / 0.6617 GB, free: 4.598 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007179/1.143, allocations: 0.9514 MB / 0.6626 GB, free: 3.613 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005887/1.144, allocations: 257.9 kB / 0.6629 GB, free: 3.363 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003639/1.144, allocations: 279.3 kB / 0.6631 GB, free: 3.09 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/1.144, allocations: 0 / 0.6631 GB, free: 3.09 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0484/1.192, allocations: 18.57 MB / 0.6813 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.639/10.83, allocations: 4.875 kB / 0.6813 GB, free: 0.5195 MB / 0.4981 GB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.50538195297122] Failed to read output from testmodel.py, exit status != 0: 11.153336607851088 11.168278101 10.06130736 Calling exit ...