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.001785/0.001785, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.002161/0.002161, allocations: 212.8 kB / 22.25 MB, free: 5.082 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.547/1.547, allocations: 230.6 MB / 256 MB, free: 8.004 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.01776/0.01776, allocations: 2.795 MB / 315.2 MB, free: 300 kB / 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.001993/0.001993, allocations: 67.89 kB / 438.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09571, allocations: 54.17 MB / 492.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2836/0.3793, allocations: 51.31 MB / 0.5314 GB, free: 11.53 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03008/0.4094, allocations: 29.21 MB / 0.56 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007156/0.4101, allocations: 4.875 kB / 0.56 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001997/0.4121, allocations: 0.6131 MB / 0.5606 GB, free: 4.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006793/0.4189, allocations: 2.249 MB / 0.5628 GB, free: 2.504 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.008785/0.4277, allocations: 2.929 MB / 0.5656 GB, free: 148 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001562/0.4292, allocations: 0.94 MB / 0.5665 GB, free: 15.58 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.857e-05/0.4293, allocations: 23.84 kB / 0.5666 GB, free: 15.56 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.4541/0.8834, allocations: 51.34 MB / 0.6167 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008393/0.8842, allocations: 306.6 kB / 0.617 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001083/0.8843, allocations: 40 kB / 0.617 GB, free: 13 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2258/1.11, allocations: 27.08 MB / 0.6435 GB, free: 1.746 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002917/1.11, allocations: 111.5 kB / 0.6436 GB, free: 1.637 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007071/1.111, allocations: 338.5 kB / 0.6439 GB, free: 1.305 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01016/1.121, allocations: 1.869 MB / 0.6457 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/1.121, allocations: 0 / 0.6457 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.633e-06/1.121, allocations: 4 kB / 0.6457 GB, free: 15.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.321e-05/1.121, allocations: 0 / 0.6457 GB, free: 15.43 MB / 494.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.002447/1.124, allocations: 1.049 MB / 0.6468 GB, free: 14.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/1.124, allocations: 12.03 kB / 0.6468 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002215/1.124, allocations: 119 kB / 0.6469 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003656/1.128, allocations: 0.4961 MB / 0.6474 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003232/1.131, allocations: 285.6 kB / 0.6476 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001021/1.131, allocations: 45.88 kB / 0.6477 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001134/1.131, allocations: 55.94 kB / 0.6477 GB, free: 13.3 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002376/1.134, allocations: 0.8766 MB / 0.6486 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.547e-05/1.134, allocations: 4 kB / 0.6486 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.608e-05/1.134, allocations: 24 kB / 0.6486 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.117e-05/1.134, allocations: 31.98 kB / 0.6487 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002054/1.136, allocations: 0.7201 MB / 0.6494 GB, free: 11.6 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00765/1.143, allocations: 4.978 MB / 0.6542 GB, free: 6.023 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009165/1.144, allocations: 265.1 kB / 0.6545 GB, free: 5.746 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004387/1.145, allocations: 153.7 kB / 0.6546 GB, free: 5.59 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/1.147, allocations: 0.9155 MB / 0.6555 GB, free: 4.652 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.148e-05/1.147, allocations: 34.56 kB / 0.6556 GB, free: 4.609 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 2.865e-06/1.147, allocations: 4 kB / 0.6556 GB, free: 4.605 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.002265/1.149, allocations: 0.5973 MB / 0.6561 GB, free: 4.004 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/1.149, allocations: 77.11 kB / 0.6562 GB, free: 3.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003018/1.149, allocations: 186.5 kB / 0.6564 GB, free: 3.719 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/1.149, allocations: 29.7 kB / 0.6564 GB, free: 3.684 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/1.15, allocations: 296.4 kB / 0.6567 GB, free: 3.387 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002313/1.15, allocations: 245.8 kB / 0.6569 GB, free: 3.145 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/1.15, allocations: 98.06 kB / 0.657 GB, free: 3.039 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002325/1.15, allocations: 346.7 kB / 0.6574 GB, free: 2.691 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003655/1.151, allocations: 117.3 kB / 0.6575 GB, free: 2.578 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004859/1.151, allocations: 299.9 kB / 0.6578 GB, free: 2.207 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009731/1.152, allocations: 473 kB / 0.6582 GB, free: 1.668 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/1.152, allocations: 11.94 kB / 0.6582 GB, free: 1.656 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.001267/1.154, allocations: 484.7 kB / 0.6587 GB, free: 1.176 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.742e-05/1.154, allocations: 11.94 kB / 0.6587 GB, free: 1.164 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.285e-05/1.154, allocations: 8 kB / 0.6587 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.497e-05/1.154, allocations: 8 kB / 0.6587 GB, free: 1.148 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004036/1.154, allocations: 71.84 kB / 0.6588 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.298e-05/1.154, allocations: 8 kB / 0.6588 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/1.154, allocations: 63.44 kB / 0.6588 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.298e-05/1.155, allocations: 20 kB / 0.6589 GB, free: 0.9883 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.0003996/1.155, allocations: 197.8 kB / 0.6591 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000121/1.155, allocations: 31.75 kB / 0.6591 GB, free: 0.7539 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/1.155, allocations: 30.64 kB / 0.6591 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.237e-06/1.155, allocations: 4 kB / 0.6591 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/1.155, allocations: 0 / 0.6591 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/1.155, allocations: 0 / 0.6591 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009795/1.156, allocations: 467.9 kB / 0.6596 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.27e-06/1.156, allocations: 4 kB / 0.6596 GB, free: 224 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001587/1.156, allocations: 23.98 kB / 0.6596 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.163e-06/1.156, allocations: 7.938 kB / 0.6596 GB, free: 192 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/1.156, allocations: 12 kB / 0.6596 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.746e-06/1.156, allocations: 0 / 0.6596 GB, free: 180 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/1.156, allocations: 3.938 kB / 0.6596 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/1.157, allocations: 0.5062 MB / 0.6601 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.926e-05/1.157, allocations: 31.69 kB / 0.6601 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.665e-05/1.157, allocations: 11.94 kB / 0.6601 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/1.158, allocations: 7.984 kB / 0.6602 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.464e-05/1.158, allocations: 15.98 kB / 0.6602 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.924e-05/1.158, allocations: 11.98 kB / 0.6602 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001682/1.158, allocations: 127.2 kB / 0.6603 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/1.158, allocations: 0 / 0.6603 GB, free: 15.44 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001174/1.159, allocations: 191.5 kB / 0.6605 GB, free: 15.25 MB / 0.4981 GB 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.002191/1.161, allocations: 1.256 MB / 0.6617 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001956/1.163, allocations: 0.5485 MB / 0.6622 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/1.163, allocations: 0 / 0.6622 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008145/1.164, allocations: 468.1 kB / 0.6627 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001698/1.166, allocations: 186.9 kB / 0.6629 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007009/1.173, allocations: 3.638 MB / 0.6664 GB, free: 8.828 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/1.174, allocations: 0.9425 MB / 0.6673 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0009302/1.175, allocations: 261.8 kB / 0.6676 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005425/1.175, allocations: 275.3 kB / 0.6679 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/1.175, allocations: 0 / 0.6679 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07727/1.253, allocations: 19.27 MB / 0.6867 GB, free: 4.094 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.54/13.79, allocations: 11.7 kB / 0.6867 GB, free: 4.082 MB / 0.5137 GB " [Timeout remaining time 646] (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: 18.50172570900031] Failed to read output from testmodel.py, exit status != 0: 14.13379114500276 14.152470617 13.027423724 Calling exit ...