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.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.00129/0.00129, allocations: 112.2 kB / 16.46 MB, free: 6.453 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.00168/0.00168, allocations: 215.2 kB / 19.43 MB, free: 3.625 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.528/1.528, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.01206/0.01206, allocations: 2.794 MB / 311.6 MB, free: 1.465 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.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"}) [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.001974/0.001974, allocations: 67.89 kB / 433.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.1003, allocations: 54.13 MB / 487.7 MB, free: 9.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2647/0.3651, allocations: 51.03 MB / 0.5261 GB, free: 3.672 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02187/0.3869, allocations: 29.16 MB / 0.5546 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005368/0.3875, allocations: 3.156 kB / 0.5546 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001623/0.3891, allocations: 0.621 MB / 0.5552 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006767/0.3959, allocations: 2.248 MB / 0.5574 GB, free: 9.074 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.01025/0.4061, allocations: 2.916 MB / 0.5602 GB, free: 7.523 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.4075, allocations: 0.9314 MB / 0.5611 GB, free: 7.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.4076, allocations: 30.19 kB / 0.5611 GB, free: 7.141 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.4695/0.8771, allocations: 51.22 MB / 0.6112 GB, free: 10.09 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001059/0.8781, allocations: 298.7 kB / 0.6114 GB, free: 9.801 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.8783, allocations: 40 kB / 0.6115 GB, free: 9.762 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2455/1.124, allocations: 27 MB / 0.6378 GB, free: 14.59 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002345/1.124, allocations: 119.4 kB / 0.638 GB, free: 14.47 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000687/1.125, allocations: 338.4 kB / 0.6383 GB, free: 14.14 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007671/1.132, allocations: 1.858 MB / 0.6401 GB, free: 12.28 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/1.132, allocations: 0 / 0.6401 GB, free: 12.28 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.244e-06/1.132, allocations: 0 / 0.6401 GB, free: 12.28 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.239e-05/1.132, allocations: 4 kB / 0.6401 GB, free: 12.27 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.00273/1.135, allocations: 1.125 MB / 0.6412 GB, free: 11.1 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.606e-05/1.135, allocations: 19.97 kB / 0.6412 GB, free: 11.08 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001674/1.135, allocations: 115.1 kB / 0.6413 GB, free: 10.96 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002952/1.138, allocations: 0.4961 MB / 0.6418 GB, free: 10.46 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00248/1.141, allocations: 343.5 kB / 0.6421 GB, free: 10.09 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001069/1.141, allocations: 41.88 kB / 0.6422 GB, free: 10.05 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001363/1.141, allocations: 63.88 kB / 0.6422 GB, free: 9.984 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002338/1.143, allocations: 0.8685 MB / 0.6431 GB, free: 9.07 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.267e-05/1.143, allocations: 4 kB / 0.6431 GB, free: 9.066 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.263e-05/1.143, allocations: 27.94 kB / 0.6431 GB, free: 9.039 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.325e-05/1.144, allocations: 31.98 kB / 0.6432 GB, free: 9.008 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002146/1.146, allocations: 0.7039 MB / 0.6438 GB, free: 8.305 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005272/1.151, allocations: 5.009 MB / 0.6487 GB, free: 2.688 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007097/1.152, allocations: 265.1 kB / 0.649 GB, free: 2.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002895/1.152, allocations: 153.7 kB / 0.6491 GB, free: 2.254 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00183/1.154, allocations: 1.534 MB / 0.6506 GB, free: 0.543 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.32e-05/1.154, allocations: 42.55 kB / 0.6507 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 1.844e-06/1.154, allocations: 0 / 0.6507 GB, free: 0.4922 MB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001793/1.156, allocations: 0.6041 MB / 0.6513 GB, free: 15.88 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.149e-05/1.156, allocations: 77.11 kB / 0.6513 GB, free: 15.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/1.156, allocations: 191.2 kB / 0.6515 GB, free: 15.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.848e-05/1.156, allocations: 29.7 kB / 0.6515 GB, free: 15.56 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/1.156, allocations: 296.4 kB / 0.6518 GB, free: 15.26 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/1.156, allocations: 237.8 kB / 0.6521 GB, free: 15.03 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/1.157, allocations: 97.95 kB / 0.6521 GB, free: 14.92 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000226/1.157, allocations: 346.8 kB / 0.6525 GB, free: 14.57 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/1.157, allocations: 113.3 kB / 0.6526 GB, free: 14.46 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005225/1.158, allocations: 308 kB / 0.6529 GB, free: 14.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008021/1.158, allocations: 477.7 kB / 0.6533 GB, free: 13.55 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.683e-06/1.158, allocations: 4 kB / 0.6533 GB, free: 13.54 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009781/1.159, allocations: 480.2 kB / 0.6538 GB, free: 13.07 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/1.159, allocations: 15.92 kB / 0.6538 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/1.159, allocations: 8 kB / 0.6538 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.436e-05/1.159, allocations: 8.719 kB / 0.6538 GB, free: 13.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002645/1.16, allocations: 71.84 kB / 0.6539 GB, free: 12.96 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.64e-05/1.16, allocations: 15.94 kB / 0.6539 GB, free: 12.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002724/1.16, allocations: 59.5 kB / 0.654 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.945e-05/1.16, allocations: 24 kB / 0.654 GB, free: 12.87 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): 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.0002798/1.16, allocations: 185.7 kB / 0.6542 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000104/1.16, allocations: 31.75 kB / 0.6542 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.376e-05/1.16, allocations: 30.64 kB / 0.6542 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/1.16, allocations: 0 / 0.6542 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/1.161, allocations: 0 / 0.6542 GB, free: 12.61 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/1.161, allocations: 12 kB / 0.6542 GB, free: 12.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008523/1.161, allocations: 491 kB / 0.6547 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.322e-06/1.161, allocations: 4 kB / 0.6547 GB, free: 12.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/1.161, allocations: 35.86 kB / 0.6547 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.141e-05/1.162, allocations: 7.922 kB / 0.6548 GB, free: 12.03 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.934e-05/1.162, allocations: 4 kB / 0.6548 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/1.162, allocations: 0 / 0.6548 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/1.162, allocations: 0 / 0.6548 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008699/1.162, allocations: 0.5178 MB / 0.6553 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001431/1.163, allocations: 112.7 kB / 0.6554 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/1.163, allocations: 3.938 kB / 0.6554 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002915/1.163, allocations: 15.92 kB / 0.6554 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.56e-05/1.163, allocations: 11.98 kB / 0.6554 GB, free: 11.33 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.895e-05/1.163, allocations: 12 kB / 0.6554 GB, free: 11.32 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001687/1.163, allocations: 119.2 kB / 0.6555 GB, free: 11.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.163, allocations: 4 kB / 0.6555 GB, free: 11.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001577/1.165, allocations: 195.5 kB / 0.6557 GB, free: 11.01 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): 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.001796/1.167, allocations: 1.236 MB / 0.6569 GB, free: 9.746 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0009794/1.168, allocations: 0.5647 MB / 0.6575 GB, free: 9.16 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.768e-06/1.168, allocations: 0 / 0.6575 GB, free: 9.16 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005656/1.168, allocations: 451.8 kB / 0.6579 GB, free: 8.645 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/1.169, allocations: 203.7 kB / 0.6581 GB, free: 8.449 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005511/1.175, allocations: 3.634 MB / 0.6616 GB, free: 4.574 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007115/1.175, allocations: 0.9504 MB / 0.6626 GB, free: 3.598 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005587/1.176, allocations: 253.9 kB / 0.6628 GB, free: 3.348 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004006/1.176, allocations: 271.3 kB / 0.6631 GB, free: 3.082 MB / 494.1 MB Notification: Performance of SimCode: time 9.22e-07/1.176, allocations: 0 / 0.6631 GB, free: 3.082 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05635/1.233, allocations: 18.04 MB / 0.6807 GB, free: 1.039 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.472/10.7, allocations: 8 kB / 0.6807 GB, free: 1.031 MB / 0.4981 GB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.284058331977576] Failed to read output from testmodel.py, exit status != 0: 11.003755882848054 11.032980181 9.894590097 Calling exit ...