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.001253/0.001253, allocations: 98.33 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.001472/0.001472, allocations: 215.2 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.409/1.409, allocations: 230.6 MB / 256.8 MB, free: 7.969 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.01224/0.01224, allocations: 2.805 MB / 316 MB, free: 280 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_Pentane_Pentane_hs",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.001892/0.001892, allocations: 63.91 kB / 439.5 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0872/0.08909, allocations: 54.18 MB / 493.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.01087/0.09996, allocations: 8.974 MB / 0.4908 GB, free: 14.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008314/0.1083, allocations: 8.493 MB / 0.4991 GB, free: 5.777 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.841e-05/0.1084, allocations: 0 / 0.4991 GB, free: 5.777 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004813/0.1089, allocations: 159.1 kB / 0.4993 GB, free: 5.621 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002867/0.1091, allocations: 87.38 kB / 0.4994 GB, free: 5.535 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.003242/0.1124, allocations: 1.44 MB / 0.5008 GB, free: 4.086 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003519/0.1127, allocations: 242.9 kB / 0.501 GB, free: 3.848 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.439e-05/0.1128, allocations: 9.734 kB / 0.501 GB, free: 3.84 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.296/0.4088, allocations: 13.75 MB / 0.5145 GB, free: 7.461 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001851/0.409, allocations: 68.03 kB / 0.5145 GB, free: 7.461 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.719e-05/0.409, allocations: 6.781 kB / 0.5145 GB, free: 7.461 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001278/0.4103, allocations: 306.4 kB / 0.5148 GB, free: 7.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.834e-05/0.4104, allocations: 33.23 kB / 0.5148 GB, free: 7.457 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.4105, allocations: 75.58 kB / 0.5149 GB, free: 7.457 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001088/0.4116, allocations: 346.4 kB / 0.5152 GB, free: 7.441 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.4116, allocations: 1.359 kB / 0.5153 GB, free: 7.441 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4116, allocations: 0 / 0.5153 GB, free: 7.441 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.273e-06/0.4116, allocations: 1.375 kB / 0.5153 GB, free: 7.441 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.0007057/0.4123, allocations: 425.8 kB / 0.5157 GB, free: 7.125 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.907e-05/0.4123, allocations: 12.97 kB / 0.5157 GB, free: 7.125 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.889e-05/0.4124, allocations: 7.25 kB / 0.5157 GB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.114e-05/0.4124, allocations: 51.62 kB / 0.5157 GB, free: 7.082 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004625/0.4129, allocations: 92.84 kB / 0.5158 GB, free: 7.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.413, allocations: 137 kB / 0.5159 GB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.55e-05/0.4131, allocations: 20.16 kB / 0.516 GB, free: 6.941 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.4131, allocations: 11.31 kB / 0.516 GB, free: 6.938 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.4135, allocations: 254.6 kB / 0.5162 GB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4135, allocations: 1.25 kB / 0.5162 GB, free: 6.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.761e-05/0.4135, allocations: 11.36 kB / 0.5162 GB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.52e-05/0.4136, allocations: 11.11 kB / 0.5162 GB, free: 6.871 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004111/0.414, allocations: 254.1 kB / 0.5165 GB, free: 6.863 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008776/0.4148, allocations: 0.8158 MB / 0.5173 GB, free: 6.301 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002353/0.4151, allocations: 142.9 kB / 0.5174 GB, free: 6.273 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001873/0.4153, allocations: 131.7 kB / 0.5175 GB, free: 6.262 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.914e-05/0.4153, allocations: 8.328 kB / 0.5175 GB, free: 6.258 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.4153, allocations: 31.94 kB / 0.5176 GB, free: 6.219 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 1.513e-06/0.4153, allocations: 0 / 0.5176 GB, free: 6.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0006765/0.416, allocations: 423.1 kB / 0.518 GB, free: 6.156 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.27e-05/0.416, allocations: 53.58 kB / 0.518 GB, free: 6.094 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.903e-05/0.4161, allocations: 114.8 kB / 0.5181 GB, free: 5.996 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.39e-05/0.4161, allocations: 27.08 kB / 0.5182 GB, free: 5.965 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.05e-05/0.4161, allocations: 107.4 kB / 0.5183 GB, free: 5.867 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.523e-05/0.4162, allocations: 114.9 kB / 0.5184 GB, free: 5.789 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.774e-05/0.4162, allocations: 40.61 kB / 0.5184 GB, free: 5.773 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.332e-05/0.4163, allocations: 333.8 kB / 0.5187 GB, free: 5.453 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.4165, allocations: 123.4 kB / 0.5189 GB, free: 5.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002504/0.4167, allocations: 175.9 kB / 0.519 GB, free: 5.398 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004091/0.4171, allocations: 209.2 kB / 0.5192 GB, free: 5.344 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.4172, allocations: 0.5938 kB / 0.5192 GB, free: 5.344 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005468/0.4177, allocations: 304.7 kB / 0.5195 GB, free: 5.289 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.522e-05/0.4177, allocations: 6.062 kB / 0.5195 GB, free: 5.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.4177, allocations: 6.266 kB / 0.5195 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.4177, allocations: 2.156 kB / 0.5195 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001302/0.4179, allocations: 26.83 kB / 0.5196 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.4179, allocations: 1.25 kB / 0.5196 GB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001102/0.418, allocations: 31.42 kB / 0.5196 GB, free: 5.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.229e-05/0.418, allocations: 3.656 kB / 0.5196 GB, free: 5.27 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 8.246e-05/0.4181, allocations: 125.7 kB / 0.5197 GB, free: 5.156 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006808/0.4188, allocations: 17.59 kB / 0.5197 GB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005048/0.4193, allocations: 345.4 kB / 0.5201 GB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.4193, allocations: 6.797 kB / 0.5201 GB, free: 5.098 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.4193, allocations: 4 kB / 0.5201 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.4193, allocations: 2.203 kB / 0.5201 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002456/0.4195, allocations: 265.9 kB / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.4195, allocations: 3.281 kB / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.89e-05/0.4196, allocations: 16.95 kB / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.4196, allocations: 0 / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.4196, allocations: 5.766 kB / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.4196, allocations: 0.8906 kB / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.4196, allocations: 0 / 0.5203 GB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005/0.4201, allocations: 451.7 kB / 0.5208 GB, free: 4.766 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.449e-05/0.4202, allocations: 13.14 kB / 0.5208 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.009e-05/0.4202, allocations: 5.688 kB / 0.5208 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001144/0.4203, allocations: 6.062 kB / 0.5208 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.4203, allocations: 15.33 kB / 0.5208 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.11e-05/0.4203, allocations: 3.141 kB / 0.5208 GB, free: 4.758 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.477e-05/0.4204, allocations: 95.44 kB / 0.5209 GB, free: 4.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4204, allocations: 2.844 kB / 0.5209 GB, free: 4.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.4207, allocations: 65.2 kB / 0.521 GB, free: 4.668 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.001079/0.4218, allocations: 1.13 MB / 0.5221 GB, free: 3.934 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005858/0.4224, allocations: 342.6 kB / 0.5224 GB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.4224, allocations: 1.188 kB / 0.5224 GB, free: 3.895 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002563/0.4227, allocations: 206.2 kB / 0.5226 GB, free: 3.852 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005754/0.4232, allocations: 79.02 kB / 0.5227 GB, free: 3.832 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.4257, allocations: 2.403 MB / 0.525 GB, free: 2.461 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001683/0.4258, allocations: 0.7529 MB / 0.5258 GB, free: 1.758 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001381/0.426, allocations: 20.88 kB / 0.5258 GB, free: 1.754 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.953e-05/0.4261, allocations: 68.69 kB / 0.5258 GB, free: 1.746 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.4261, allocations: 0 / 0.5258 GB, free: 1.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03059/0.4567, allocations: 8.773 MB / 0.5344 GB, free: 15.08 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.41/11.86, allocations: 13.52 kB / 0.5344 GB, free: 15.07 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.642993932007812] Failed to read output from testmodel.py, exit status != 0: 12.238891159999184 12.256504593 11.841494222 Calling exit ...