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.001321/0.001321, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001537/0.001537, allocations: 218.1 kB / 23.03 MB, free: 4.922 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.801 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.01262/0.01262, allocations: 2.807 MB / 316 MB, free: 64 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.001908/0.001908, allocations: 63.89 kB / 439.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09397/0.09588, allocations: 54.18 MB / 493.6 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.0111/0.107, allocations: 8.145 MB / 0.49 GB, free: 14.81 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007739/0.1147, allocations: 7.314 MB / 0.4971 GB, free: 7.469 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000174/0.1149, allocations: 0 / 0.4971 GB, free: 7.469 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000565/0.1155, allocations: 127.2 kB / 0.4972 GB, free: 7.344 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003567/0.1158, allocations: 99.3 kB / 0.4973 GB, free: 7.246 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.004015/0.1198, allocations: 1.417 MB / 0.4987 GB, free: 5.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004556/0.1203, allocations: 246.8 kB / 0.499 GB, free: 5.578 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.602e-05/0.1203, allocations: 9.734 kB / 0.499 GB, free: 5.57 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.3554/0.4758, allocations: 13.77 MB / 0.5124 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001987/0.476, allocations: 74.06 kB / 0.5125 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.255e-05/0.476, allocations: 5.531 kB / 0.5125 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001062/0.4771, allocations: 303.9 kB / 0.5128 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.159e-05/0.4772, allocations: 25.75 kB / 0.5128 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.4773, allocations: 64.56 kB / 0.5129 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.4785, allocations: 345 kB / 0.5132 GB, free: 9.426 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.4785, allocations: 0 / 0.5132 GB, free: 9.426 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.4785, allocations: 0 / 0.5132 GB, free: 9.426 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.4785, allocations: 1.734 kB / 0.5132 GB, free: 9.426 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.000826/0.4794, allocations: 430 kB / 0.5136 GB, free: 9.105 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.111e-05/0.4794, allocations: 10.12 kB / 0.5136 GB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.384e-05/0.4794, allocations: 3.469 kB / 0.5136 GB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.895e-05/0.4795, allocations: 48.3 kB / 0.5137 GB, free: 9.066 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004804/0.48, allocations: 94.16 kB / 0.5138 GB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002059/0.4802, allocations: 135 kB / 0.5139 GB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.4802, allocations: 21.28 kB / 0.5139 GB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.264e-05/0.4802, allocations: 12.81 kB / 0.5139 GB, free: 8.922 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.4807, allocations: 308.1 kB / 0.5142 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.4807, allocations: 0 / 0.5142 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.799e-05/0.4808, allocations: 4.875 kB / 0.5142 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.4808, allocations: 13.02 kB / 0.5142 GB, free: 8.797 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004285/0.4812, allocations: 252.4 kB / 0.5145 GB, free: 8.789 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009296/0.4821, allocations: 0.7041 MB / 0.5152 GB, free: 8.355 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.4824, allocations: 147 kB / 0.5153 GB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002108/0.4826, allocations: 132.6 kB / 0.5154 GB, free: 8.316 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.4826, allocations: 5.156 kB / 0.5154 GB, free: 8.312 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.232e-05/0.4827, allocations: 33.64 kB / 0.5155 GB, free: 8.273 MB / 366.1 MB Notification: Performance of pre-optimization done (n=34): time 2.064e-06/0.4827, allocations: 0 / 0.5155 GB, free: 8.273 MB / 366.1 MB Notification: Performance of matching and sorting (n=34): time 0.0007398/0.4834, allocations: 422.7 kB / 0.5159 GB, free: 8.211 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.4834, allocations: 52.78 kB / 0.5159 GB, free: 8.148 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.924e-05/0.4835, allocations: 109.8 kB / 0.516 GB, free: 8.051 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.4835, allocations: 30.83 kB / 0.516 GB, free: 8.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.362e-05/0.4836, allocations: 107.3 kB / 0.5161 GB, free: 7.922 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.528e-05/0.4837, allocations: 115.1 kB / 0.5163 GB, free: 7.844 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.245e-05/0.4837, allocations: 35.67 kB / 0.5163 GB, free: 7.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.659e-05/0.4838, allocations: 331.2 kB / 0.5166 GB, free: 7.512 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002229/0.484, allocations: 127.1 kB / 0.5167 GB, free: 7.504 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002442/0.4842, allocations: 180.6 kB / 0.5169 GB, free: 7.453 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003652/0.4846, allocations: 217.2 kB / 0.5171 GB, free: 7.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.4846, allocations: 0 / 0.5171 GB, free: 7.398 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000553/0.4852, allocations: 299.1 kB / 0.5174 GB, free: 7.344 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.879e-05/0.4852, allocations: 6.953 kB / 0.5174 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.4852, allocations: 1.375 kB / 0.5174 GB, free: 7.344 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.4852, allocations: 6.938 kB / 0.5174 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.4853, allocations: 24.05 kB / 0.5174 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.4853, allocations: 3.688 kB / 0.5174 GB, free: 7.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000118/0.4855, allocations: 26.28 kB / 0.5175 GB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.667e-05/0.4855, allocations: 3.875 kB / 0.5175 GB, free: 7.328 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 9.448e-05/0.4856, allocations: 124.6 kB / 0.5176 GB, free: 7.215 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.74e-05/0.4856, allocations: 17.84 kB / 0.5176 GB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006/0.4862, allocations: 352.4 kB / 0.5179 GB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.067e-05/0.4862, allocations: 3.734 kB / 0.5179 GB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.4863, allocations: 0 / 0.5179 GB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.4863, allocations: 0.5625 kB / 0.5179 GB, free: 7.152 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003774/0.4866, allocations: 268.2 kB / 0.5182 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.659e-06/0.4866, allocations: 0.5156 kB / 0.5182 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.4867, allocations: 16.88 kB / 0.5182 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.4868, allocations: 0 / 0.5182 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.4868, allocations: 2.406 kB / 0.5182 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.4868, allocations: 0.75 kB / 0.5182 GB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.4868, allocations: 4 kB / 0.5182 GB, free: 6.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007867/0.4876, allocations: 448.8 kB / 0.5186 GB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.908e-05/0.4876, allocations: 18.3 kB / 0.5187 GB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.414e-05/0.4876, allocations: 2.406 kB / 0.5187 GB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001214/0.4878, allocations: 5.594 kB / 0.5187 GB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.598e-05/0.4878, allocations: 14 kB / 0.5187 GB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.4878, allocations: 3.703 kB / 0.5187 GB, free: 6.816 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.644e-05/0.4879, allocations: 88.88 kB / 0.5188 GB, free: 6.742 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.4879, allocations: 4 kB / 0.5188 GB, free: 6.738 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004752/0.4884, allocations: 64.23 kB / 0.5188 GB, free: 6.727 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.00202/0.4904, allocations: 1.131 MB / 0.5199 GB, free: 5.996 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007994/0.4912, allocations: 340.8 kB / 0.5203 GB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.4912, allocations: 1.812 kB / 0.5203 GB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003047/0.4915, allocations: 210.2 kB / 0.5205 GB, free: 5.914 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006077/0.4921, allocations: 76.97 kB / 0.5205 GB, free: 5.898 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00295/0.4951, allocations: 2.395 MB / 0.5229 GB, free: 4.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001483/0.4952, allocations: 149.5 kB / 0.523 GB, free: 4.453 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.4953, allocations: 26.08 kB / 0.523 GB, free: 4.445 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.493e-05/0.4954, allocations: 64.03 kB / 0.5231 GB, free: 4.438 MB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4954, allocations: 0 / 0.5231 GB, free: 4.438 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0326/0.528, allocations: 8.876 MB / 0.5318 GB, free: 1.82 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.65/12.17, allocations: 7.016 kB / 0.5318 GB, free: 1.816 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.042488761013374] Failed to read output from testmodel.py, exit status != 0: 12.560743251000531 12.578690232 12.096499988 Calling exit ...