Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.002022/0.002022, allocations: 102.9 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.002496/0.002496, 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.46/1.46, allocations: 230.6 MB / 252.8 MB, free: 8.953 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.01307/0.01307, allocations: 2.793 MB / 311.6 MB, free: 1.441 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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",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.001986/0.001986, allocations: 68.08 kB / 433.5 MB, free: 15.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09199, allocations: 54.15 MB / 487.7 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2812/0.3732, allocations: 51.06 MB / 0.5261 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02701/0.4002, allocations: 29.17 MB / 0.5546 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007008/0.4009, allocations: 2.75 kB / 0.5546 GB, free: 10.64 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002315/0.4033, allocations: 0.6136 MB / 0.5552 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008526/0.4118, allocations: 2.253 MB / 0.5574 GB, free: 9.031 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.009884/0.4217, allocations: 2.918 MB / 0.5603 GB, free: 7.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.002093/0.4238, allocations: 0.9392 MB / 0.5612 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000119/0.4239, allocations: 23.22 kB / 0.5612 GB, free: 7.109 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.4454/0.8692, allocations: 51.21 MB / 0.6112 GB, free: 10.13 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001123/0.8704, allocations: 310.6 kB / 0.6115 GB, free: 9.828 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001898/0.8706, allocations: 40 kB / 0.6115 GB, free: 9.789 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2305/1.101, allocations: 27 MB / 0.6379 GB, free: 14.61 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002935/1.101, allocations: 123.3 kB / 0.638 GB, free: 14.49 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008162/1.102, allocations: 338.4 kB / 0.6383 GB, free: 14.16 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009558/1.112, allocations: 1.858 MB / 0.6402 GB, free: 12.3 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.268e-06/1.112, allocations: 8 kB / 0.6402 GB, free: 12.29 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.304e-06/1.112, allocations: 4 kB / 0.6402 GB, free: 12.29 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.33e-05/1.112, allocations: 0 / 0.6402 GB, free: 12.29 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.002354/1.114, allocations: 1.122 MB / 0.6413 GB, free: 11.11 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/1.114, allocations: 11.98 kB / 0.6413 GB, free: 11.1 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001618/1.114, allocations: 115 kB / 0.6414 GB, free: 10.98 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002236/1.117, allocations: 0.5039 MB / 0.6419 GB, free: 10.48 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002758/1.119, allocations: 347.4 kB / 0.6422 GB, free: 10.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.858e-05/1.119, allocations: 45.88 kB / 0.6423 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001076/1.12, allocations: 55.94 kB / 0.6423 GB, free: 10 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001767/1.121, allocations: 0.8685 MB / 0.6432 GB, free: 9.082 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/1.121, allocations: 3.938 kB / 0.6432 GB, free: 9.078 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.826e-05/1.121, allocations: 24 kB / 0.6432 GB, free: 9.055 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.556e-05/1.121, allocations: 35.98 kB / 0.6432 GB, free: 9.02 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001457/1.123, allocations: 0.7 MB / 0.6439 GB, free: 8.32 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005183/1.128, allocations: 5.121 MB / 0.6489 GB, free: 2.566 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007269/1.129, allocations: 273.1 kB / 0.6492 GB, free: 2.281 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000293/1.129, allocations: 157.7 kB / 0.6493 GB, free: 2.121 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001615/1.131, allocations: 1.55 MB / 0.6508 GB, free: 404 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/1.131, allocations: 38.56 kB / 0.6509 GB, free: 356 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 1.633e-06/1.131, allocations: 0 / 0.6509 GB, free: 356 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001658/1.132, allocations: 0.6003 MB / 0.6514 GB, free: 15.74 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.552e-05/1.132, allocations: 85.05 kB / 0.6515 GB, free: 15.64 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/1.133, allocations: 187.2 kB / 0.6517 GB, free: 15.45 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/1.133, allocations: 25.7 kB / 0.6517 GB, free: 15.42 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/1.133, allocations: 304.4 kB / 0.652 GB, free: 15.11 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002318/1.133, allocations: 237.8 kB / 0.6522 GB, free: 14.88 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001615/1.133, allocations: 105.9 kB / 0.6524 GB, free: 14.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001655/1.133, allocations: 342.8 kB / 0.6527 GB, free: 14.42 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002559/1.134, allocations: 117.3 kB / 0.6528 GB, free: 14.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000399/1.134, allocations: 303.9 kB / 0.6531 GB, free: 13.94 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007271/1.135, allocations: 489.7 kB / 0.6535 GB, free: 13.38 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.161e-06/1.135, allocations: 4 kB / 0.6535 GB, free: 13.38 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008981/1.136, allocations: 492.4 kB / 0.654 GB, free: 12.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.477e-05/1.136, allocations: 11.94 kB / 0.654 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.136, allocations: 4.188 kB / 0.654 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/1.136, allocations: 8 kB / 0.654 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003648/1.136, allocations: 83.83 kB / 0.6541 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008052/1.137, allocations: 1.176 MB / 0.6553 GB, free: 11.56 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/1.137, allocations: 67.5 kB / 0.6553 GB, free: 11.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.558e-05/1.137, allocations: 20 kB / 0.6554 GB, free: 11.48 MB / 494.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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002628/1.138, allocations: 189.8 kB / 0.6555 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.088e-05/1.138, allocations: 35.77 kB / 0.6556 GB, free: 11.25 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.307e-05/1.138, allocations: 34.64 kB / 0.6556 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/1.138, allocations: 0 / 0.6556 GB, free: 11.21 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/1.138, allocations: 7.938 kB / 0.6556 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/1.138, allocations: 0 / 0.6556 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006905/1.138, allocations: 498.8 kB / 0.6561 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/1.138, allocations: 0 / 0.6561 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/1.139, allocations: 39.92 kB / 0.6561 GB, free: 10.63 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/1.139, allocations: 7.938 kB / 0.6561 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/1.139, allocations: 11.98 kB / 0.6561 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007102/1.139, allocations: 1.168 MB / 0.6573 GB, free: 9.395 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/1.139, allocations: 7.969 kB / 0.6573 GB, free: 9.387 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007066/1.14, allocations: 0.514 MB / 0.6578 GB, free: 8.859 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.284e-05/1.14, allocations: 112.8 kB / 0.6579 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.423e-05/1.14, allocations: 4 kB / 0.6579 GB, free: 8.727 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/1.14, allocations: 4 kB / 0.6579 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.273e-05/1.14, allocations: 19.97 kB / 0.6579 GB, free: 8.703 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.029e-05/1.14, allocations: 8 kB / 0.6579 GB, free: 8.695 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001212/1.141, allocations: 127.2 kB / 0.6581 GB, free: 8.57 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.141, allocations: 4 kB / 0.6581 GB, free: 8.566 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00076/1.141, allocations: 191.5 kB / 0.6582 GB, free: 8.379 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: 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001614/1.143, allocations: 1.24 MB / 0.6595 GB, free: 7.113 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001118/1.144, allocations: 0.5839 MB / 0.66 GB, free: 6.508 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/1.144, allocations: 0 / 0.66 GB, free: 6.508 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001263/1.145, allocations: 471.7 kB / 0.6605 GB, free: 5.973 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/1.147, allocations: 197 kB / 0.6607 GB, free: 5.781 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005379/1.152, allocations: 3.671 MB / 0.6642 GB, free: 1.879 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000766/1.153, allocations: 0.9465 MB / 0.6652 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005074/1.153, allocations: 219.8 kB / 0.6654 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004052/1.154, allocations: 271.3 kB / 0.6656 GB, free: 428 kB / 494.1 MB Notification: Performance of SimCode: time 5.91e-07/1.154, allocations: 0 / 0.6656 GB, free: 428 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0507/1.204, allocations: 18.45 MB / 0.6837 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/14.47, allocations: 11.14 kB / 0.6837 GB, free: 13.97 MB / 0.5137 GB " [Timeout remaining time 645] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit_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_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 20.992806788068265] Failed to read output from testmodel.py, exit status != 0: 14.797970243729651 14.82611073 13.708950105 Calling exit ...