Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.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.001223/0.001223, allocations: 101.5 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.002349/0.002349, allocations: 214.8 kB / 23.04 MB, free: 5.07 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.455/1.455, allocations: 230.6 MB / 256.8 MB, free: 7.984 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.01397/0.01397, allocations: 2.798 MB / 316 MB, free: 292 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.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic",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.00209/0.00209, allocations: 67.91 kB / 439.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08516/0.08725, allocations: 54.17 MB / 493.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic): time 0.01144/0.09869, allocations: 9.169 MB / 0.4911 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009043/0.1077, allocations: 8.606 MB / 0.4995 GB, free: 5.477 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001623/0.1079, allocations: 0 / 0.4995 GB, free: 5.477 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000534/0.1084, allocations: 155 kB / 0.4996 GB, free: 5.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003745/0.1088, allocations: 107.2 kB / 0.4997 GB, free: 5.219 MB / 366.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.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.003773/0.1126, allocations: 1.459 MB / 0.5011 GB, free: 3.754 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004656/0.113, allocations: 270.8 kB / 0.5014 GB, free: 3.488 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.59e-05/0.1131, allocations: 13.73 kB / 0.5014 GB, free: 3.477 MB / 366.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.3102/0.4233, allocations: 12.92 MB / 0.514 GB, free: 7.383 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.4235, allocations: 98.42 kB / 0.5141 GB, free: 7.383 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.402e-05/0.4235, allocations: 6.625 kB / 0.5141 GB, free: 7.383 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.4253, allocations: 472.3 kB / 0.5146 GB, free: 7.383 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-05/0.4254, allocations: 30.56 kB / 0.5146 GB, free: 7.383 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.4255, allocations: 86.52 kB / 0.5147 GB, free: 7.383 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001532/0.427, allocations: 0.5057 MB / 0.5152 GB, free: 7.359 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.427, allocations: 0.75 kB / 0.5152 GB, free: 7.359 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.427, allocations: 0.875 kB / 0.5152 GB, free: 7.359 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.464e-06/0.427, allocations: 6.906 kB / 0.5152 GB, free: 7.355 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008844/0.4279, allocations: 0.4916 MB / 0.5157 GB, free: 7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.428, allocations: 10.09 kB / 0.5157 GB, free: 7 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.849e-05/0.428, allocations: 4.188 kB / 0.5157 GB, free: 7 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.919e-05/0.428, allocations: 49.48 kB / 0.5157 GB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000412/0.4284, allocations: 58.23 kB / 0.5158 GB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002203/0.4287, allocations: 149.4 kB / 0.5159 GB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.834e-05/0.4287, allocations: 11.31 kB / 0.5159 GB, free: 6.812 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/0.4287, allocations: 15.17 kB / 0.516 GB, free: 6.809 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005383/0.4293, allocations: 240.2 kB / 0.5162 GB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.4293, allocations: 3.375 kB / 0.5162 GB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.4293, allocations: 4.969 kB / 0.5162 GB, free: 6.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.372e-05/0.4293, allocations: 16.02 kB / 0.5162 GB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004791/0.4298, allocations: 201.7 kB / 0.5164 GB, free: 6.746 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000708/0.4305, allocations: 0.6709 MB / 0.5171 GB, free: 6.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005157/0.431, allocations: 209.5 kB / 0.5173 GB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002749/0.4313, allocations: 134.7 kB / 0.5174 GB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002223/0.4315, allocations: 100.9 kB / 0.5175 GB, free: 6.281 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.4315, allocations: 31.84 kB / 0.5175 GB, free: 6.242 MB / 366.1 MB Notification: Performance of pre-optimization done (n=43): time 1.503e-06/0.4315, allocations: 0.5 kB / 0.5175 GB, free: 6.242 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.002799/0.4343, allocations: 1.169 MB / 0.5187 GB, free: 6.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.998e-05/0.4343, allocations: 53.72 kB / 0.5187 GB, free: 5.941 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.449e-05/0.4344, allocations: 129.8 kB / 0.5188 GB, free: 5.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.4344, allocations: 30.83 kB / 0.5189 GB, free: 5.809 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.111e-05/0.4345, allocations: 107.2 kB / 0.519 GB, free: 5.715 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.912e-05/0.4346, allocations: 171.6 kB / 0.5191 GB, free: 5.598 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.411e-05/0.4346, allocations: 61.72 kB / 0.5192 GB, free: 5.578 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.798e-05/0.4347, allocations: 337.9 kB / 0.5195 GB, free: 5.262 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002342/0.4349, allocations: 123.9 kB / 0.5196 GB, free: 5.262 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.4352, allocations: 196.6 kB / 0.5198 GB, free: 5.195 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004967/0.4357, allocations: 350.7 kB / 0.5202 GB, free: 5.125 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.4357, allocations: 1.375 kB / 0.5202 GB, free: 5.125 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001098/0.4368, allocations: 482.9 kB / 0.5206 GB, free: 5.062 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.4368, allocations: 5.594 kB / 0.5206 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.4368, allocations: 2.031 kB / 0.5206 GB, free: 5.062 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007103/0.4375, allocations: 145.4 kB / 0.5208 GB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001413/0.4377, allocations: 34.34 kB / 0.5208 GB, free: 5.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004896/0.4381, allocations: 0.6572 MB / 0.5214 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.4383, allocations: 11.8 kB / 0.5214 GB, free: 4.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.4383, allocations: 13.33 kB / 0.5215 GB, free: 4.52 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.4384, allocations: 126 kB / 0.5216 GB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.894e-05/0.4385, allocations: 20.33 kB / 0.5216 GB, free: 4.395 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.095e-05/0.4385, allocations: 31.67 kB / 0.5216 GB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.079e-05/0.4385, allocations: 7.953 kB / 0.5216 GB, free: 4.387 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.4386, allocations: 5.094 kB / 0.5216 GB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.4386, allocations: 5.344 kB / 0.5216 GB, free: 4.383 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000278/0.4388, allocations: 262.8 kB / 0.5219 GB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.786e-06/0.4388, allocations: 0 / 0.5219 GB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/0.439, allocations: 38.09 kB / 0.5219 GB, free: 4.227 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003532/0.4394, allocations: 68 kB / 0.522 GB, free: 4.215 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.03e-05/0.4394, allocations: 10.67 kB / 0.522 GB, free: 4.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001445/0.4408, allocations: 1.449 MB / 0.5234 GB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.4408, allocations: 1.062 kB / 0.5234 GB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.4419, allocations: 0.7134 MB / 0.5241 GB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.07e-05/0.4419, allocations: 21.22 kB / 0.5241 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.686e-05/0.4419, allocations: 6.141 kB / 0.5241 GB, free: 2.688 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.4421, allocations: 13.11 kB / 0.5242 GB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.538e-05/0.4422, allocations: 24.02 kB / 0.5242 GB, free: 2.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.907e-05/0.4422, allocations: 9.625 kB / 0.5242 GB, free: 2.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.086e-05/0.4422, allocations: 98.84 kB / 0.5243 GB, free: 2.605 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4422, allocations: 0 / 0.5243 GB, free: 2.605 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003718/0.4426, allocations: 65.25 kB / 0.5243 GB, free: 2.602 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001439/0.4441, allocations: 1.256 MB / 0.5256 GB, free: 1.879 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007777/0.4448, allocations: 340.4 kB / 0.5259 GB, free: 1.867 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.4448, allocations: 0 / 0.5259 GB, free: 1.867 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005853/0.4454, allocations: 297.6 kB / 0.5262 GB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006952/0.4461, allocations: 101.9 kB / 0.5263 GB, free: 1.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004185/0.4503, allocations: 2.949 MB / 0.5292 GB, free: 192 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000376/0.4507, allocations: 0.7403 MB / 0.5299 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002614/0.4509, allocations: 109.8 kB / 0.53 GB, free: 15.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.101e-05/0.451, allocations: 59.17 kB / 0.53 GB, free: 15.46 MB / 382.1 MB Notification: Performance of SimCode: time 6.51e-07/0.451, allocations: 0 / 0.53 GB, free: 15.46 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.4863, allocations: 8.313 MB / 0.5382 GB, free: 12.61 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.81, allocations: 11.22 kB / 0.5382 GB, free: 12.61 MB / 382.1 MB " [Timeout remaining time 646] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --stepSize=0.1 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 19.353479735087603] Failed to read output from testmodel.py, exit status != 0: 14.20168769301381 14.231839098 13.799398155 Calling exit ...