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.001311/0.001311, allocations: 114.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.001494/0.001494, allocations: 216.9 kB / 22.26 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.511/1.511, allocations: 230.6 MB / 256 MB, free: 8.02 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.01299/0.01299, allocations: 2.804 MB / 315.2 MB, free: 336 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.001946/0.001946, allocations: 67.89 kB / 438.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.103, allocations: 54.18 MB / 492.9 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2887/0.3917, allocations: 51.31 MB / 0.5314 GB, free: 11.64 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03256/0.4242, allocations: 29.2 MB / 0.56 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007088/0.425, allocations: 6.594 kB / 0.56 GB, free: 4.934 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.4268, allocations: 0.6143 MB / 0.5606 GB, free: 4.434 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006965/0.4338, allocations: 2.253 MB / 0.5628 GB, free: 2.625 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.008848/0.4426, allocations: 2.926 MB / 0.5656 GB, free: 272 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001511/0.4441, allocations: 0.9377 MB / 0.5665 GB, free: 15.7 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.242e-05/0.4442, allocations: 27.72 kB / 0.5666 GB, free: 15.68 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.4591/0.9033, allocations: 51.35 MB / 0.6167 GB, free: 13.42 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008573/0.9042, allocations: 302.7 kB / 0.617 GB, free: 13.12 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001404/0.9043, allocations: 40 kB / 0.617 GB, free: 13.09 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2323/1.137, allocations: 27.08 MB / 0.6435 GB, free: 1.836 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002649/1.137, allocations: 115.4 kB / 0.6436 GB, free: 1.723 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007696/1.138, allocations: 334.5 kB / 0.6439 GB, free: 1.395 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008609/1.146, allocations: 1.866 MB / 0.6457 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/1.146, allocations: 0 / 0.6457 GB, free: 15.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.204e-06/1.146, allocations: 0 / 0.6457 GB, free: 15.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.509e-05/1.146, allocations: 0 / 0.6457 GB, free: 15.52 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.002026/1.148, allocations: 1.057 MB / 0.6468 GB, free: 14.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/1.148, allocations: 8.031 kB / 0.6468 GB, free: 14.43 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001605/1.149, allocations: 119 kB / 0.6469 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002104/1.151, allocations: 0.4961 MB / 0.6474 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002123/1.153, allocations: 289.6 kB / 0.6476 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.607e-05/1.153, allocations: 45.88 kB / 0.6477 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.504e-05/1.153, allocations: 59.94 kB / 0.6477 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001654/1.155, allocations: 0.8766 MB / 0.6486 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.051e-05/1.155, allocations: 3.938 kB / 0.6486 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.873e-05/1.155, allocations: 28 kB / 0.6486 GB, free: 12.43 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-05/1.155, allocations: 31.97 kB / 0.6487 GB, free: 12.4 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002173/1.157, allocations: 0.7162 MB / 0.6494 GB, free: 11.69 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004992/1.162, allocations: 4.966 MB / 0.6542 GB, free: 6.121 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007421/1.163, allocations: 265.1 kB / 0.6545 GB, free: 5.844 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000288/1.163, allocations: 161.7 kB / 0.6546 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001275/1.164, allocations: 0.9117 MB / 0.6555 GB, free: 4.746 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.816e-05/1.164, allocations: 30.56 kB / 0.6555 GB, free: 4.707 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 1.803e-06/1.164, allocations: 0 / 0.6555 GB, free: 4.707 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.001612/1.166, allocations: 0.605 MB / 0.6561 GB, free: 4.098 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.046e-05/1.166, allocations: 89.03 kB / 0.6562 GB, free: 3.992 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002058/1.166, allocations: 186.5 kB / 0.6564 GB, free: 3.801 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/1.166, allocations: 29.7 kB / 0.6564 GB, free: 3.766 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002125/1.166, allocations: 292.4 kB / 0.6567 GB, free: 3.473 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002084/1.167, allocations: 241.8 kB / 0.6569 GB, free: 3.234 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000139/1.167, allocations: 93.97 kB / 0.657 GB, free: 3.133 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001731/1.167, allocations: 346.8 kB / 0.6574 GB, free: 2.785 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002367/1.167, allocations: 117.3 kB / 0.6575 GB, free: 2.672 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003972/1.168, allocations: 300 kB / 0.6577 GB, free: 2.301 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006866/1.168, allocations: 484.9 kB / 0.6582 GB, free: 1.75 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/1.168, allocations: 0 / 0.6582 GB, free: 1.75 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008701/1.169, allocations: 492.9 kB / 0.6587 GB, free: 1.262 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.241e-05/1.169, allocations: 11.94 kB / 0.6587 GB, free: 1.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/1.169, allocations: 4 kB / 0.6587 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.524e-05/1.169, allocations: 8 kB / 0.6587 GB, free: 1.238 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002501/1.169, allocations: 67.84 kB / 0.6588 GB, free: 1.172 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.206e-05/1.169, allocations: 15.92 kB / 0.6588 GB, free: 1.156 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002509/1.17, allocations: 67.45 kB / 0.6588 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.903e-05/1.17, allocations: 16 kB / 0.6589 GB, free: 1.074 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.0002687/1.17, allocations: 197.7 kB / 0.6591 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.884e-05/1.17, allocations: 31.75 kB / 0.6591 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.975e-05/1.17, allocations: 30.64 kB / 0.6591 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/1.17, allocations: 0 / 0.6591 GB, free: 0.8125 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/1.17, allocations: 4 kB / 0.6591 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/1.17, allocations: 0 / 0.6591 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007134/1.171, allocations: 467.9 kB / 0.6596 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/1.171, allocations: 0 / 0.6596 GB, free: 316 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001197/1.171, allocations: 27.92 kB / 0.6596 GB, free: 288 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.46e-06/1.171, allocations: 3.938 kB / 0.6596 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/1.171, allocations: 15.98 kB / 0.6596 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/1.171, allocations: 4 kB / 0.6596 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/1.171, allocations: 0 / 0.6596 GB, free: 264 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/1.172, allocations: 0.4984 MB / 0.6601 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.454e-05/1.172, allocations: 39.62 kB / 0.6601 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.826e-05/1.172, allocations: 7.938 kB / 0.6601 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/1.172, allocations: 15.97 kB / 0.6602 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.131e-05/1.172, allocations: 19.97 kB / 0.6602 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/1.172, allocations: 4 kB / 0.6602 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001141/1.172, allocations: 119.2 kB / 0.6603 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/1.172, allocations: 3.938 kB / 0.6603 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007662/1.173, allocations: 199.6 kB / 0.6605 GB, free: 15.33 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.001584/1.175, allocations: 1.248 MB / 0.6617 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009248/1.176, allocations: 0.5489 MB / 0.6622 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/1.176, allocations: 0 / 0.6622 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005851/1.176, allocations: 463.7 kB / 0.6627 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001156/1.177, allocations: 188.4 kB / 0.6629 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005262/1.183, allocations: 3.632 MB / 0.6664 GB, free: 8.922 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007287/1.183, allocations: 0.9503 MB / 0.6673 GB, free: 7.941 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006294/1.184, allocations: 257.9 kB / 0.6676 GB, free: 7.691 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003989/1.184, allocations: 271.3 kB / 0.6678 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of SimCode: time 9.92e-07/1.184, allocations: 0 / 0.6678 GB, free: 7.426 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06119/1.245, allocations: 19.28 MB / 0.6867 GB, free: 4.184 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.48/13.72, allocations: 14.22 kB / 0.6867 GB, free: 4.176 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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: 19.795960168121383] Failed to read output from testmodel.py, exit status != 0: 14.058554823044688 14.077650004 12.927687435 Calling exit ...