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.001326/0.001326, allocations: 98.08 kB / 19.73 MB, free: 2.23 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.001582/0.001582, allocations: 219.6 kB / 23.04 MB, free: 5.074 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.437/1.437, allocations: 230.6 MB / 256.8 MB, free: 8.012 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.0154/0.0154, allocations: 2.798 MB / 316 MB, free: 308 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="cs",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.003082/0.003082, allocations: 71.89 kB / 439.5 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1331, allocations: 54.17 MB / 493.7 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2628/0.3959, allocations: 51.31 MB / 0.5322 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02985/0.4257, allocations: 29.21 MB / 0.5607 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006646/0.4264, allocations: 2.938 kB / 0.5607 GB, free: 4.848 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001589/0.428, allocations: 0.6146 MB / 0.5613 GB, free: 4.344 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006527/0.4345, allocations: 2.253 MB / 0.5635 GB, free: 2.539 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.008113/0.4426, allocations: 2.929 MB / 0.5664 GB, free: 180 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001353/0.444, allocations: 0.9439 MB / 0.5673 GB, free: 15.61 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.4441, allocations: 25.44 kB / 0.5673 GB, free: 15.59 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.4509/0.895, allocations: 51.34 MB / 0.6175 GB, free: 13.36 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001797/0.8968, allocations: 306.6 kB / 0.6178 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001298/0.8969, allocations: 40 kB / 0.6178 GB, free: 13.02 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2277/1.125, allocations: 27.08 MB / 0.6443 GB, free: 1.766 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003767/1.125, allocations: 111.5 kB / 0.6444 GB, free: 1.656 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008512/1.126, allocations: 334.5 kB / 0.6447 GB, free: 1.328 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007906/1.134, allocations: 1.866 MB / 0.6465 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/1.134, allocations: 0 / 0.6465 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/1.134, allocations: 0 / 0.6465 GB, free: 15.46 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/1.134, allocations: 0 / 0.6465 GB, free: 15.46 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.001663/1.135, allocations: 1.057 MB / 0.6475 GB, free: 14.37 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/1.135, allocations: 8.031 kB / 0.6475 GB, free: 14.36 MB / 494.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.525e-05/1.136, allocations: 21.48 kB / 0.6476 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001356/1.136, allocations: 119 kB / 0.6477 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001996/1.138, allocations: 0.4961 MB / 0.6482 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001805/1.139, allocations: 286.1 kB / 0.6484 GB, free: 13.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.631e-05/1.14, allocations: 45.31 kB / 0.6485 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-05/1.14, allocations: 55.94 kB / 0.6485 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002082/1.142, allocations: 0.8805 MB / 0.6494 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/1.142, allocations: 0 / 0.6494 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.614e-05/1.142, allocations: 28 kB / 0.6494 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.862e-05/1.142, allocations: 35.97 kB / 0.6494 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001337/1.143, allocations: 0.7123 MB / 0.6501 GB, free: 11.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004667/1.148, allocations: 4.978 MB / 0.655 GB, free: 6.031 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/1.149, allocations: 261.1 kB / 0.6553 GB, free: 5.758 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/1.149, allocations: 161.7 kB / 0.6554 GB, free: 5.594 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001315/1.15, allocations: 0.9117 MB / 0.6563 GB, free: 4.66 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/1.15, allocations: 34.5 kB / 0.6563 GB, free: 4.617 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 1.924e-06/1.15, allocations: 0 / 0.6563 GB, free: 4.617 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.001547/1.152, allocations: 0.5973 MB / 0.6569 GB, free: 4.016 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.701e-05/1.152, allocations: 81.11 kB / 0.657 GB, free: 3.918 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/1.152, allocations: 186.5 kB / 0.6572 GB, free: 3.727 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.637e-05/1.152, allocations: 29.7 kB / 0.6572 GB, free: 3.691 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002033/1.152, allocations: 300.4 kB / 0.6575 GB, free: 3.391 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/1.152, allocations: 237.8 kB / 0.6577 GB, free: 3.156 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001461/1.153, allocations: 97.95 kB / 0.6578 GB, free: 3.051 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/1.153, allocations: 342.8 kB / 0.6581 GB, free: 2.707 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002374/1.153, allocations: 125.2 kB / 0.6582 GB, free: 2.586 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003798/1.153, allocations: 299.9 kB / 0.6585 GB, free: 2.215 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006647/1.154, allocations: 480.9 kB / 0.659 GB, free: 1.668 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/1.154, allocations: 0 / 0.659 GB, free: 1.668 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008251/1.155, allocations: 489 kB / 0.6595 GB, free: 1.184 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/1.155, allocations: 16.06 kB / 0.6595 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/1.155, allocations: 7.938 kB / 0.6595 GB, free: 1.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/1.155, allocations: 8 kB / 0.6595 GB, free: 1.152 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002422/1.155, allocations: 71.84 kB / 0.6596 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/1.155, allocations: 11.98 kB / 0.6596 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002379/1.155, allocations: 63.45 kB / 0.6596 GB, free: 1.008 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.758e-05/1.155, allocations: 20 kB / 0.6597 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.0002753/1.156, allocations: 189.7 kB / 0.6598 GB, free: 0.793 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/1.156, allocations: 35.75 kB / 0.6599 GB, free: 0.7578 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.504e-05/1.156, allocations: 30.64 kB / 0.6599 GB, free: 0.7305 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.718e-06/1.156, allocations: 4 kB / 0.6599 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/1.156, allocations: 0 / 0.6599 GB, free: 0.7266 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/1.156, allocations: 3.984 kB / 0.6599 GB, free: 0.7227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006464/1.156, allocations: 467.9 kB / 0.6603 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/1.156, allocations: 0 / 0.6603 GB, free: 228 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001465/1.157, allocations: 27.92 kB / 0.6604 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/1.157, allocations: 3.938 kB / 0.6604 GB, free: 196 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/1.157, allocations: 11.98 kB / 0.6604 GB, free: 184 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/1.157, allocations: 8 kB / 0.6604 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.157, allocations: 0 / 0.6604 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006761/1.157, allocations: 0.4984 MB / 0.6609 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.819e-05/1.157, allocations: 39.62 kB / 0.6609 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/1.157, allocations: 7.984 kB / 0.6609 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001642/1.158, allocations: 8 kB / 0.6609 GB, free: 15.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.745e-05/1.158, allocations: 19.97 kB / 0.661 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/1.158, allocations: 4 kB / 0.661 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001046/1.158, allocations: 131.1 kB / 0.6611 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/1.158, allocations: 0 / 0.6611 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007146/1.159, allocations: 195.5 kB / 0.6613 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.002187/1.161, allocations: 1.252 MB / 0.6625 GB, free: 13.98 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009091/1.162, allocations: 0.5566 MB / 0.663 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/1.162, allocations: 0 / 0.663 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005116/1.162, allocations: 455.8 kB / 0.6635 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.001292/1.163, allocations: 186.1 kB / 0.6637 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004998/1.168, allocations: 3.632 MB / 0.6672 GB, free: 8.836 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/1.169, allocations: 0.9503 MB / 0.6681 GB, free: 7.855 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005663/1.17, allocations: 261.9 kB / 0.6684 GB, free: 7.605 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/1.17, allocations: 279.3 kB / 0.6686 GB, free: 7.332 MB / 0.4981 GB Notification: Performance of SimCode: time 8.72e-07/1.17, allocations: 3.938 kB / 0.6686 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/1.217, allocations: 19.3 MB / 0.6875 GB, free: 4.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/13.69, allocations: 12 kB / 0.6875 GB, free: 4.059 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 os._exit(0), Time elapsed: 16.63121591799427] Failed to read output from testmodel.py, exit status != 0: 14.07978487899527 14.097465373 12.959820376 Calling exit ...