Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.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.002118/0.002118, allocations: 215.6 kB / 22.25 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.532/1.532, allocations: 230.6 MB / 256 MB, free: 7.996 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.01352/0.01352, allocations: 2.788 MB / 315.2 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.Pentane.Pentane_hs,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs",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.002086/0.002086, allocations: 59.91 kB / 438.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09786/0.09995, allocations: 54.18 MB / 492.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.01129/0.1112, allocations: 8.978 MB / 0.4901 GB, free: 14.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008613/0.1199, allocations: 8.482 MB / 0.4984 GB, free: 5.793 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.12, allocations: 0 / 0.4984 GB, free: 5.793 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005027/0.1205, allocations: 155.1 kB / 0.4985 GB, free: 5.641 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.1208, allocations: 95.34 kB / 0.4986 GB, free: 5.547 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.Pentane.Pentane_hs.wf.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.wf.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.003349/0.1241, allocations: 1.444 MB / 0.5 GB, free: 4.094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003816/0.1245, allocations: 238.9 kB / 0.5002 GB, free: 3.859 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.256e-05/0.1245, allocations: 9.75 kB / 0.5003 GB, free: 3.852 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.3214/0.4459, allocations: 13.76 MB / 0.5137 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.4462, allocations: 69.84 kB / 0.5138 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.407e-05/0.4462, allocations: 8.359 kB / 0.5138 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001403/0.4476, allocations: 306.7 kB / 0.5141 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.344e-05/0.4477, allocations: 25.88 kB / 0.5141 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001467/0.4478, allocations: 75.31 kB / 0.5142 GB, free: 7.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.4491, allocations: 347.7 kB / 0.5145 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.4491, allocations: 1.312 kB / 0.5145 GB, free: 7.051 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4491, allocations: 0 / 0.5145 GB, free: 7.051 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.4491, allocations: 0 / 0.5145 GB, free: 7.051 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008172/0.4499, allocations: 431.7 kB / 0.5149 GB, free: 6.734 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.856e-05/0.45, allocations: 10 kB / 0.5149 GB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.526e-05/0.45, allocations: 50.14 kB / 0.515 GB, free: 6.695 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004631/0.4505, allocations: 94.5 kB / 0.515 GB, free: 6.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002046/0.4507, allocations: 136.6 kB / 0.5152 GB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.4507, allocations: 21.14 kB / 0.5152 GB, free: 6.551 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.4508, allocations: 13.16 kB / 0.5152 GB, free: 6.547 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004114/0.4512, allocations: 255.9 kB / 0.5155 GB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.4512, allocations: 0 / 0.5155 GB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.4512, allocations: 8.812 kB / 0.5155 GB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.4512, allocations: 9.469 kB / 0.5155 GB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004001/0.4516, allocations: 253.9 kB / 0.5157 GB, free: 6.477 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002254/0.4539, allocations: 0.8141 MB / 0.5165 GB, free: 5.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.4541, allocations: 146.1 kB / 0.5166 GB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002042/0.4543, allocations: 126.1 kB / 0.5168 GB, free: 5.879 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.631e-05/0.4544, allocations: 5.719 kB / 0.5168 GB, free: 5.875 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.182e-05/0.4544, allocations: 40.22 kB / 0.5168 GB, free: 5.832 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.064e-06/0.4544, allocations: 0 / 0.5168 GB, free: 5.832 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007923/0.4552, allocations: 415.8 kB / 0.5172 GB, free: 5.773 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/0.4552, allocations: 52.59 kB / 0.5173 GB, free: 5.711 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.059e-05/0.4553, allocations: 121 kB / 0.5174 GB, free: 5.605 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.478e-05/0.4553, allocations: 30.86 kB / 0.5174 GB, free: 5.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.403e-05/0.4554, allocations: 110.8 kB / 0.5175 GB, free: 5.473 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.35e-05/0.4554, allocations: 116.1 kB / 0.5176 GB, free: 5.395 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.671e-05/0.4555, allocations: 40.89 kB / 0.5177 GB, free: 5.379 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.4556, allocations: 321.9 kB / 0.518 GB, free: 5.066 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002798/0.4559, allocations: 125.6 kB / 0.5181 GB, free: 5.062 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002979/0.4562, allocations: 178.9 kB / 0.5183 GB, free: 5.008 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003543/0.4565, allocations: 214 kB / 0.5185 GB, free: 4.953 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.4565, allocations: 0 / 0.5185 GB, free: 4.953 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005137/0.4571, allocations: 297.6 kB / 0.5187 GB, free: 4.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.069e-05/0.4571, allocations: 5.656 kB / 0.5187 GB, free: 4.902 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.4571, allocations: 5.375 kB / 0.5188 GB, free: 4.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.177e-05/0.4571, allocations: 6.75 kB / 0.5188 GB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.4573, allocations: 24.89 kB / 0.5188 GB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.117e-06/0.4573, allocations: 2.75 kB / 0.5188 GB, free: 4.895 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001296/0.4574, allocations: 26.31 kB / 0.5188 GB, free: 4.883 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.4574, allocations: 5.25 kB / 0.5188 GB, free: 4.883 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (fluid.phaseOutput,fluid.state.phase,fluid.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001057/0.4575, allocations: 124.4 kB / 0.5189 GB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.26e-05/0.4576, allocations: 21.34 kB / 0.519 GB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005559/0.4581, allocations: 351.2 kB / 0.5193 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4581, allocations: 3.016 kB / 0.5193 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.071e-06/0.4581, allocations: 0 / 0.5193 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.4581, allocations: 1.984 kB / 0.5193 GB, free: 4.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003099/0.4585, allocations: 267.8 kB / 0.5196 GB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.4585, allocations: 5.219 kB / 0.5196 GB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.557e-05/0.4585, allocations: 24.06 kB / 0.5196 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.4586, allocations: 0 / 0.5196 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.4586, allocations: 1.219 kB / 0.5196 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.4586, allocations: 1.953 kB / 0.5196 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4586, allocations: 0 / 0.5196 GB, free: 4.531 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000564/0.4591, allocations: 449.4 kB / 0.52 GB, free: 4.379 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.142e-05/0.4592, allocations: 22.16 kB / 0.52 GB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.4592, allocations: 1.312 kB / 0.52 GB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001163/0.4593, allocations: 6.297 kB / 0.52 GB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.04e-05/0.4594, allocations: 15.48 kB / 0.5201 GB, free: 4.363 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.4594, allocations: 3.25 kB / 0.5201 GB, free: 4.363 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.044e-05/0.4594, allocations: 88.31 kB / 0.5201 GB, free: 4.289 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4594, allocations: 0 / 0.5201 GB, free: 4.289 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003871/0.4598, allocations: 66.53 kB / 0.5202 GB, free: 4.277 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fluid.state.phase,fluid.phaseOutput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001169/0.461, allocations: 1.137 MB / 0.5213 GB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006034/0.4616, allocations: 337.5 kB / 0.5216 GB, free: 3.504 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4616, allocations: 0 / 0.5216 GB, free: 3.504 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002606/0.4619, allocations: 210 kB / 0.5218 GB, free: 3.457 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000582/0.4624, allocations: 74.89 kB / 0.5219 GB, free: 3.445 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002789/0.4652, allocations: 2.398 MB / 0.5242 GB, free: 2.078 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.4655, allocations: 0.7583 MB / 0.525 GB, free: 1.371 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001585/0.4656, allocations: 22.94 kB / 0.525 GB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.4657, allocations: 65.61 kB / 0.5251 GB, free: 1.359 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.4657, allocations: 0 / 0.5251 GB, free: 1.359 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04116/0.5069, allocations: 8.736 MB / 0.5336 GB, free: 14.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.47/11.98, allocations: 7.656 kB / 0.5336 GB, free: 14.7 MB / 382.1 MB " [Timeout remaining time 648] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.Pentane.Pentane_hs.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.9614958812017] Failed to read output from testmodel.py, exit status != 0: 12.317710694856942 12.350301716 11.895270329 Calling exit ...