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.001389/0.001389, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.001521/0.001521, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.511/1.511, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.01164/0.01164, allocations: 2.799 MB / 312.3 MB, free: 2.332 MB / 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.001963/0.001963, allocations: 68.22 kB / 434.2 MB, free: 39 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07968/0.08165, allocations: 54.12 MB / 488.3 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.Pentane.Pentane_hs): time 0.008282/0.08993, allocations: 8.912 MB / 497.3 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005149/0.09508, allocations: 8.479 MB / 0.4939 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.09519, allocations: 0 / 0.4939 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005227/0.09571, allocations: 167 kB / 0.494 GB, free: 14.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002897/0.096, allocations: 87.38 kB / 0.4941 GB, free: 14.73 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.003434/0.09943, allocations: 1.428 MB / 0.4955 GB, free: 13.3 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003778/0.09981, allocations: 242.9 kB / 0.4958 GB, free: 13.06 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.097e-05/0.09987, allocations: 13.55 kB / 0.4958 GB, free: 13.04 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.1299/0.2297, allocations: 13.73 MB / 0.5092 GB, free: 448 kB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002617/0.23, allocations: 75.67 kB / 0.5092 GB, free: 372 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.612e-05/0.23, allocations: 11.94 kB / 0.5093 GB, free: 360 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.2316, allocations: 296 kB / 0.5095 GB, free: 64 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.579e-05/0.2317, allocations: 31.84 kB / 0.5096 GB, free: 32 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001685/0.2319, allocations: 71.67 kB / 0.5096 GB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001511/0.2334, allocations: 350.9 kB / 0.51 GB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.2334, allocations: 0 / 0.51 GB, free: 15.62 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2334, allocations: 4 kB / 0.51 GB, free: 15.61 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2334, allocations: 0 / 0.51 GB, free: 15.61 MB / 382.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.0008522/0.2343, allocations: 498.4 kB / 0.5105 GB, free: 15.08 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.2343, allocations: 15.98 kB / 0.5105 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.659e-05/0.2343, allocations: 192 / 0.5105 GB, free: 15.06 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.28e-05/0.2344, allocations: 54.73 kB / 0.5105 GB, free: 15 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004623/0.2349, allocations: 92.75 kB / 0.5106 GB, free: 14.91 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002651/0.2351, allocations: 196.2 kB / 0.5108 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.149e-05/0.2352, allocations: 23.92 kB / 0.5108 GB, free: 14.66 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.968e-05/0.2352, allocations: 12 kB / 0.5108 GB, free: 14.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004849/0.2357, allocations: 255.2 kB / 0.5111 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.2357, allocations: 0 / 0.5111 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.2357, allocations: 3.938 kB / 0.5111 GB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.537e-05/0.2357, allocations: 8 kB / 0.5111 GB, free: 14.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004579/0.2362, allocations: 243.7 kB / 0.5113 GB, free: 14.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.2374, allocations: 0.8647 MB / 0.5122 GB, free: 13.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002917/0.2377, allocations: 138.8 kB / 0.5123 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002404/0.2379, allocations: 125 kB / 0.5124 GB, free: 12.9 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.238, allocations: 8 kB / 0.5124 GB, free: 12.89 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.238, allocations: 30.56 kB / 0.5124 GB, free: 12.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=34): time 1.423e-06/0.238, allocations: 0 / 0.5124 GB, free: 12.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=34): time 0.0008446/0.2388, allocations: 409.7 kB / 0.5128 GB, free: 12.45 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.2389, allocations: 51.41 kB / 0.5129 GB, free: 12.39 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001175/0.239, allocations: 117.8 kB / 0.513 GB, free: 12.27 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.084e-05/0.239, allocations: 25.7 kB / 0.513 GB, free: 12.23 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.837e-05/0.2391, allocations: 116.5 kB / 0.5131 GB, free: 12.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.926e-05/0.2392, allocations: 107.1 kB / 0.5132 GB, free: 12.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.318e-05/0.2393, allocations: 41.66 kB / 0.5133 GB, free: 11.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2394, allocations: 322.8 kB / 0.5136 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002513/0.2397, allocations: 124.3 kB / 0.5137 GB, free: 11.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002633/0.24, allocations: 165.8 kB / 0.5139 GB, free: 11.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009637/0.2409, allocations: 224.7 kB / 0.5141 GB, free: 11.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.2409, allocations: 3.938 kB / 0.5141 GB, free: 11.09 MB / 382.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006006/0.2415, allocations: 285.4 kB / 0.5144 GB, free: 10.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.2415, allocations: 7.984 kB / 0.5144 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.125e-06/0.2416, allocations: 4 kB / 0.5144 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/0.2416, allocations: 0 / 0.5144 GB, free: 10.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001416/0.2417, allocations: 23.98 kB / 0.5144 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.2417, allocations: 0 / 0.5144 GB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001145/0.2418, allocations: 27.75 kB / 0.5144 GB, free: 10.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.349e-05/0.2418, allocations: 7.938 kB / 0.5144 GB, free: 10.74 MB / 382.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.0001384/0.242, allocations: 129.9 kB / 0.5145 GB, free: 10.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.388e-05/0.242, allocations: 15.91 kB / 0.5146 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006078/0.2426, allocations: 331 kB / 0.5149 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.2426, allocations: 7.984 kB / 0.5149 GB, free: 10.25 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.2427, allocations: 4 kB / 0.5149 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.2427, allocations: 0 / 0.5149 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003621/0.243, allocations: 297.2 kB / 0.5152 GB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.243, allocations: 4 kB / 0.5152 GB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.425e-05/0.2431, allocations: 19.98 kB / 0.5152 GB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.2431, allocations: 4 kB / 0.5152 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.718e-06/0.2431, allocations: 0 / 0.5152 GB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.529e-06/0.2431, allocations: 3.984 kB / 0.5152 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2431, allocations: 96 / 0.5152 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006544/0.2438, allocations: 446.6 kB / 0.5156 GB, free: 9.418 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.502e-05/0.2439, allocations: 100.9 kB / 0.5157 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.2439, allocations: 0 / 0.5157 GB, free: 9.301 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/0.244, allocations: 8 kB / 0.5157 GB, free: 9.293 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.229e-05/0.2441, allocations: 15.97 kB / 0.5157 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.019e-05/0.2441, allocations: 0 / 0.5157 GB, free: 9.277 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.648e-05/0.2442, allocations: 87.75 kB / 0.5158 GB, free: 9.191 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2442, allocations: 0 / 0.5158 GB, free: 9.191 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003735/0.2445, allocations: 63.86 kB / 0.5159 GB, free: 9.129 MB / 382.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.001501/0.246, allocations: 1.115 MB / 0.517 GB, free: 7.984 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006481/0.2467, allocations: 326.2 kB / 0.5173 GB, free: 7.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.2467, allocations: 4.312 kB / 0.5173 GB, free: 7.656 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003179/0.247, allocations: 207.5 kB / 0.5175 GB, free: 7.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005997/0.2476, allocations: 84.08 kB / 0.5176 GB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003243/0.2509, allocations: 2.381 MB / 0.5199 GB, free: 4.875 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004161/0.2513, allocations: 0.7487 MB / 0.5206 GB, free: 4.102 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001166/0.2514, allocations: 24.94 kB / 0.5207 GB, free: 4.078 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.2515, allocations: 67.41 kB / 0.5207 GB, free: 4.012 MB / 382.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2515, allocations: 3.938 kB / 0.5207 GB, free: 4.008 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.2793, allocations: 8.254 MB / 0.5288 GB, free: 11.81 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.511/8.791, allocations: 7.922 kB / 0.5288 GB, free: 11.8 MB / 398.1 MB " [Timeout remaining time 651] (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: 11.697914359974675] Failed to read output from testmodel.py, exit status != 0: 9.138561053026933 9.155932414 8.9191619 Calling exit ...