Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization") translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002354/0.002355, allocations: 177.7 kB / 17.39 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.622/2.622, allocations: 205.4 MB / 223.5 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001255/0.001255, allocations: 107.7 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005077/0.000508, allocations: 8 kB / 328.2 MB, free: 15.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5405/0.5411, allocations: 47.58 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.InverseParameterization): time 0.08408/0.6252, allocations: 68 MB / 443.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04732/0.6726, allocations: 23.59 MB / 467.3 MB, free: 4.926 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004135/0.6768, allocations: 51.56 kB / 467.4 MB, free: 4.875 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004134/0.681, allocations: 0.6407 MB / 468 MB, free: 4.23 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.03382/0.7148, allocations: 5.29 MB / 473.3 MB, free: 14.93 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01968/0.7345, allocations: 3.534 MB / 476.8 MB, free: 11.39 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.01009/0.7446, allocations: 4.183 MB / 481 MB, free: 7.195 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002907/0.7476, allocations: 0.8607 MB / 481.9 MB, free: 6.309 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005483/0.7531, allocations: 1.327 MB / 483.2 MB, free: 4.977 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03125/0.7844, allocations: 15.47 MB / 498.7 MB, free: 5.5 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00087/0.7853, allocations: 80 kB / 498.8 MB, free: 5.422 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.5323/1.318, allocations: 11 MB / 0.4978 GB, free: 32.11 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001535/1.319, allocations: 433.5 kB / 0.4982 GB, free: 32.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002517/1.322, allocations: 0.7787 MB / 0.499 GB, free: 32.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02262/1.344, allocations: 4.882 MB / 0.5038 GB, free: 31.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.406e-05/1.344, allocations: 0.5 kB / 0.5038 GB, free: 31.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.41e-06/1.345, allocations: 0.5 kB / 0.5038 GB, free: 31.97 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.679e-05/1.345, allocations: 0 / 0.5038 GB, free: 31.97 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.02057/1.365, allocations: 2.562 MB / 0.5063 GB, free: 30.81 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001469/1.365, allocations: 8.75 kB / 0.5063 GB, free: 30.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006257/1.372, allocations: 0.5902 MB / 0.5068 GB, free: 30.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004777/1.376, allocations: 0.9942 MB / 0.5078 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003277/1.377, allocations: 91.06 kB / 0.5079 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006507/1.378, allocations: 104.2 kB / 0.508 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008062/1.386, allocations: 2.261 MB / 0.5102 GB, free: 30.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.763e-05/1.386, allocations: 8.453 kB / 0.5102 GB, free: 30.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002235/1.386, allocations: 46.53 kB / 0.5103 GB, free: 30.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001941/1.386, allocations: 93.05 kB / 0.5103 GB, free: 30.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006505/1.393, allocations: 2.38 MB / 0.5127 GB, free: 30.02 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0172/1.41, allocations: 9.197 MB / 0.5217 GB, free: 25.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006174/1.416, allocations: 1.919 MB / 0.5235 GB, free: 24.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001851/1.418, allocations: 0.7964 MB / 0.5243 GB, free: 24.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0546/1.473, allocations: 24.77 MB / 0.5485 GB, free: 3.227 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001566/1.473, allocations: 52.62 kB / 0.5485 GB, free: 3.18 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002904/1.476, allocations: 169.7 kB / 0.5487 GB, free: 3.035 MB / 378.7 MB Notification: Performance of pre-optimization done (n=109): time 1.737e-05/1.476, allocations: 0 / 0.5487 GB, free: 3.035 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.02164/1.497, allocations: 4.741 MB / 0.5533 GB, free: 15.13 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002162/1.498, allocations: 226.2 kB / 0.5536 GB, free: 14.86 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002263/1.5, allocations: 0.964 MB / 0.5545 GB, free: 14.12 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002119/1.5, allocations: 42.14 kB / 0.5545 GB, free: 14.09 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007039/1.501, allocations: 0.5586 MB / 0.5551 GB, free: 13.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006621/1.502, allocations: 376.8 kB / 0.5554 GB, free: 13.42 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001046/1.502, allocations: 24.03 kB / 0.5555 GB, free: 13.41 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0003308/1.502, allocations: 361.6 kB / 0.5558 GB, free: 13.08 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/1.504, allocations: 0.6604 MB / 0.5565 GB, free: 12.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002154/1.506, allocations: 1.026 MB / 0.5575 GB, free: 11.72 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003951/1.51, allocations: 1.705 MB / 0.5591 GB, free: 10.46 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/1.51, allocations: 8 kB / 0.5591 GB, free: 10.45 MB / 394.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.005665/1.516, allocations: 2.106 MB / 0.5612 GB, free: 9 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005128/1.516, allocations: 385.1 kB / 0.5615 GB, free: 8.531 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.887e-05/1.516, allocations: 8 kB / 0.5616 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02706/1.543, allocations: 3.062 MB / 0.5645 GB, free: 5.578 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001737/1.545, allocations: 282 kB / 0.5648 GB, free: 5.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00365/1.549, allocations: 1.479 MB / 0.5663 GB, free: 4.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002776/1.552, allocations: 140 kB / 0.5664 GB, free: 4.043 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004494/1.552, allocations: 72.97 kB / 0.5665 GB, free: 3.984 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.915e-05/1.552, allocations: 4.938 kB / 0.5665 GB, free: 3.98 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006571/1.559, allocations: 1.874 MB / 0.5683 GB, free: 2.711 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.453e-05/1.559, allocations: 8 kB / 0.5683 GB, free: 2.703 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009709/1.56, allocations: 194 kB / 0.5685 GB, free: 2.539 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001764/1.561, allocations: 353.1 kB / 0.5688 GB, free: 2.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/1.563, allocations: 0.7599 MB / 0.5696 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002363/1.565, allocations: 132.9 kB / 0.5697 GB, free: 1.418 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002606/1.565, allocations: 66.47 kB / 0.5698 GB, free: 1.363 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 128 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001652/1.567, allocations: 431.1 kB / 0.5702 GB, free: 1.055 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007337/1.568, allocations: 130.5 kB / 0.5703 GB, free: 0.9258 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01178/1.58, allocations: 5.695 MB / 0.5759 GB, free: 13.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.405e-05/1.58, allocations: 7.969 kB / 0.5759 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/1.58, allocations: 4 kB / 0.5759 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002223/1.582, allocations: 0.6415 MB / 0.5765 GB, free: 12.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007555/1.583, allocations: 20.38 kB / 0.5765 GB, free: 12.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/1.585, allocations: 168.8 kB / 0.5767 GB, free: 12.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003456/1.585, allocations: 96.03 kB / 0.5768 GB, free: 12.43 MB / 410.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/DAEMode.mo:522:7-524:90:writable] Error: Internal error DAEMode.traverserStrongComponents failed on equation: 1/1 (1): pipe2.flowModel.m_flows[1] + pipe1.flowModel.m_flows[1] + orifice.m_flow - pump.m_flow = 0.0 2/2 (1): $cse13 = max(pump.m_flow, 1e-07) 3/3 (1): pipe2.flowModel.states[1].h = ($cse21 * sink.ports[1].h_outflow + $cse11 * pipe1.port_a.h_outflow + $cse13 * pump.heatTransfer.states[1].h) / ($cse21 + $cse11 + $cse13) 4/4 (16): $cse29 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.heatTransfer.states[1].p, pipe2.flowModel.states[1].h, 0, 0) 5/20 (1): pipe2.flowModel.rhos[1] = $cse29.rho 6/21 (1): pipe2.flowModel.dps_fg[1] = pipe2.flowModel.g * pipe2.height_ab * (if pipe2.flowModel.m_flows[1] > 0.0 then pipe2.flowModel.rhos[1] else pipe2.flowModel.rhos[2]) + pipe2.flowModel.dp_nominal * pipe2.flowModel.m_flows[1] / pipe2.flowModel.m_flow_nominal 7/22 (1): $cse12 = max(-pipe2.flowModel.m_flows[1], 1e-07) 8/23 (1): pipe1.flowModel.states[1].h = ($cse21 * sink.ports[1].h_outflow + $cse12 * pipe2.port_a.h_outflow + $cse13 * pump.heatTransfer.states[1].h) / ($cse21 + $cse12 + $cse13) 9/24 (1): $cse21 = max(-orifice.m_flow, 1e-07) 10/25 (1): orifice.m_flow = Modelica.Fluid.Utilities.regRoot2(orifice.dp_fg, orifice.dp_small, orifice.state_a.d / $cse10, orifice.state_b.d / $cse10, false, 1.0) 11/26 (1): $cse10 = Modelica.Fluid.Fittings.BaseClasses.lossConstant_D_zeta(orifice.diameter, orifice.zeta_nominal) 12/27 (1): orifice.zeta_nominal = 2.0 * orifice.A_mean ^ 2.0 * orifice.d * orifice.dp_nominal / orifice.m_flow_nominal ^ 2.0 13/28 (1): orifice.d = 0.5 * (orifice.state_a.d + orifice.state_b.d) 14/29 (1): orifice.state_a.d = $cse14.rho 15/30 (16): $cse14 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.heatTransfer.states[1].p, orifice.port_b.h_outflow, 0, 0) 16/46 (1): orifice.port_b.h_outflow = ($cse11 * pipe1.port_a.h_outflow + $cse12 * pipe2.port_a.h_outflow + $cse13 * pump.heatTransfer.states[1].h) / ($cse11 + $cse12 + $cse13) 17/47 (1): $cse11 = max(-pipe1.flowModel.m_flows[1], 1e-07) 18/48 (1): pipe1.flowModel.m_flows[1] = $cse24 * pipe1.flowModel.nParallel 19/49 (1): $cse24 = Modelica.Fluid.Examples.InverseParameterization.pipe1.flowModel.WallFriction.massFlowRate_dp(pipe1.flowModel.dps_fg[1] - pipe1.flowModel.g * pipe1.height_ab * pipe1.flowModel.rhos_act[1], pipe1.flowModel.rhos_act[1], pipe1.flowModel.rhos_act[1], pipe1.flowModel.mus_act[1], pipe1.flowModel.mus_act[1], pipe1.flowModel.pathLengths_internal[1], pipe1.flowModel.diameters[1], 0.5 * (pipe1.flowModel.crossAreas[1] + pipe1.flowModel.crossAreas[2]), pipe1.roughness, pipe1.flowModel.dp_small, pipe1.flowModel.Res_turbulent_internal[1]) 20/50 (1): pipe1.flowModel.mus_act[1] = 0.5 * (pipe1.flowModel.mus[1] + pipe1.flowModel.mus[2]) 21/51 (1): pipe1.flowModel.mus[1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(pipe1.flowModel.rhos[1], pipe1.flowModel.states[1].T, pump.heatTransfer.states[1].p, 0) 22/52 (1): pipe1.flowModel.rhos_act[1] = 0.5 * (pipe1.flowModel.rhos[1] + pipe1.flowModel.rhos[2]) 23/53 (1): pipe1.flowModel.ks_inv[1] = (pipe1.flowModel.m_flow_nominal / pipe1.flowModel.nParallel) ^ 2.0 / ((pipe1.flowModel.dp_nominal - pipe1.flowModel.g * pipe1.height_ab * pipe1.flowModel.rhos_act[1]) * pipe1.flowModel.rhos_act[1]) 24/54 (1): pipe1.flowModel.zetas[1] = 0.125 * (3.141592653589793 * pipe1.flowModel.diameters[1] ^ 2.0) ^ 2.0 / pipe1.flowModel.ks_inv[1] 25/55 (1): pipe1.flowModel.pathLengths_internal[1] = pipe1.flowModel.zetas[1] * pipe1.flowModel.diameters[1] * (2.0 * $cse23) ^ 2.0 26/56 (1): pipe1.flowModel.rhos[1] = $cse20.rho 27/57 (16): $cse20 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.heatTransfer.states[1].p, pipe1.flowModel.states[1].h, 0, 0) 28/73 (1): pipe1.flowModel.states[1].T = $cse20.T 29/74 (1): pipe1.flowModel.Res_turbulent_internal[1] = 1.273239544735163 * pipe1.flowModel.m_flow_turbulent / (pipe1.flowModel.nParallel * pipe1.flowModel.diameters[1] * pipe1.flowModel.mus_act[1]) 30/75 (1): pump.Hb_flow = smooth(0, pump.m_flow * (if pump.m_flow > 0.0 then source.ports[1].h_outflow else pump.heatTransfer.states[1].h)) + smooth(0, (-pump.m_flow) * (if (-pump.m_flow) > 0.0 then ($cse21 * sink.ports[1].h_outflow + $cse11 * pipe1.port_a.h_outflow + $cse12 * pipe2.port_a.h_outflow) / ($cse21 + $cse11 + $cse12) else pump.heatTransfer.states[1].h)) 31/76 (1): -pump.Hb_flow = pump.W_single * /*Real*/(pump.nParallel) 32/77 (1): pump.W_single = pump.dp_pump * pump.V_flow_single / pump.eta 33/78 (1): pump.eta = Modelica.Fluid.Examples.InverseParameterization.pump.efficiencyCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, 0.8) 34/79 (1): $cse9 = Modelica.Fluid.Examples.InverseParameterization.pump.flowCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, {0.0, pump.V_flow_op, 1.5 * pump.V_flow_op}, {2.0 * pump.head_op, pump.head_op, 0.0}) 35/80 (1): pump.head = (pump.N / pump.N_nominal) ^ 2.0 * $cse9 36/81 (1): pump.V_flow_single = pump.V_flow / /*Real*/(pump.nParallel) 37/82 (1): pump.V_flow = pump.m_flow / pump.rho 38/83 (1): pump.head = pump.dp_pump / (pump.rho * pump.g) 39/84 (1): pump.rho = $cse7.rho 40/85 (16): $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.heatTransfer.states[1].p, pump.heatTransfer.states[1].h, pump.heatTransfer.states[1].phase, 0) 41/101 (1): pump.heatTransfer.states[1].phase = if pump.heatTransfer.states[1].h < $cse5.h or pump.heatTransfer.states[1].h > $cse6.h or pump.heatTransfer.states[1].p > 22064000.0 then 1 else 2 Variables: 1: pump.heatTransfer.states[1].phase:DISCRETE(min = 0 max = 2 final = true ) "Phase of the fluid: 1 for 1-phase, 2 for two-phase, 0 for not known, e.g., interactive use" type: Integer [1] 2: $cse7.R:VARIABLE(protected = true ) type: Real unreplaceable 3: $cse7.dpT:VARIABLE(protected = true ) type: Real unreplaceable 4: $cse7.s:VARIABLE(protected = true ) type: Real unreplaceable 5: pump.heatTransfer.states[1].h:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = pump.h_start unit = "J/kg" nominal = 500000.0 final = true ) "Specific enthalpy" type: Real [1] 6: $cse7.T:VARIABLE(protected = true ) type: Real unreplaceable 7: $cse7.cv:VARIABLE(protected = true ) type: Real unreplaceable 8: $cse7.cp:VARIABLE(protected = true ) type: Real unreplaceable 9: $cse7.pd:VARIABLE(protected = true ) type: Real unreplaceable 10: $cse7.h:VARIABLE(protected = true ) type: Real unreplaceable 11: $cse7.region:DISCRETE(protected = true ) type: Integer unreplaceable 12: $cse7.rho:VARIABLE(protected = true ) type: Real unreplaceable 13: $cse7.x:VARIABLE(protected = true ) type: Real unreplaceable 14: $cse7.vt:VARIABLE(protected = true ) type: Real unreplaceable 15: $cse7.phase:DISCRETE(protected = true ) type: Integer unreplaceable 16: $cse7.p:VARIABLE(protected = true ) type: Real unreplaceable 17: $cse7.vp:VARIABLE(protected = true ) type: Real unreplaceable 18: $cse7.pt:VARIABLE(protected = true ) type: Real unreplaceable 19: pump.head:VARIABLE(unit = "m" ) "Pump head" type: Real 20: pump.rho:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real 21: pump.V_flow:VARIABLE(unit = "m3/s" ) "Volume flow rate (total)" type: Real 22: pump.N:VARIABLE(start = pump.N_nominal unit = "rev/min" ) "Shaft rotational speed" type: Real 23: $cse9:VARIABLE(protected = true ) type: Real unreplaceable 24: pump.V_flow_single:VARIABLE(start = 0.4 / (pump.rho_nominal * /*Real*/(pump.nParallel)) unit = "m3/s" ) "Volume flow rate (single pump)" type: Real 25: pump.eta:VARIABLE() "Global Efficiency" type: Real 26: pump.W_single:VARIABLE(unit = "W" ) "Power Consumption (single pump)" type: Real 27: pump.Hb_flow:VARIABLE(unit = "W" ) "Enthalpy flow across boundaries or energy source/sink" type: Real 28: pipe1.flowModel.Res_turbulent_internal[1]:VARIABLE(unit = "1" ) "Re_turbulent used internally; to be defined by extending class" type: Real [1] 29: pipe1.flowModel.states[1].T:VARIABLE(min = 273.15 max = 2273.15 start = 500.0 unit = "K" nominal = 500.0 ) "Temperature" type: Real [2] 30: $cse20.s:VARIABLE(protected = true ) type: Real unreplaceable 31: $cse20.cp:VARIABLE(protected = true ) type: Real unreplaceable 32: $cse20.R:VARIABLE(protected = true ) type: Real unreplaceable 33: $cse20.dpT:VARIABLE(protected = true ) type: Real unreplaceable 34: $cse20.region:DISCRETE(protected = true ) type: Integer unreplaceable 35: $cse20.T:VARIABLE(protected = true ) type: Real unreplaceable 36: $cse20.rho:VARIABLE(protected = true ) type: Real unreplaceable 37: $cse20.vt:VARIABLE(protected = true ) type: Real unreplaceable 38: $cse20.p:VARIABLE(protected = true ) type: Real unreplaceable 39: $cse20.pd:VARIABLE(protected = true ) type: Real unreplaceable 40: $cse20.h:VARIABLE(protected = true ) type: Real unreplaceable 41: $cse20.phase:DISCRETE(protected = true ) type: Integer unreplaceable 42: pipe1.flowModel.states[1].h:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific enthalpy" type: Real [2] 43: $cse20.pt:VARIABLE(protected = true ) type: Real unreplaceable 44: $cse20.vp:VARIABLE(protected = true ) type: Real unreplaceable 45: $cse20.x:VARIABLE(protected = true ) type: Real unreplaceable 46: $cse20.cv:VARIABLE(protected = true ) type: Real unreplaceable 47: pipe1.flowModel.pathLengths_internal[1]:VARIABLE(unit = "m" ) "pathLengths used internally; to be defined by extending class" type: Real [1] 48: pipe1.flowModel.zetas[1]:VARIABLE() "coefficient for quadratic flow" type: Real [1] 49: pipe1.flowModel.ks_inv[1]:VARIABLE() "coefficient for quadratic flow" type: Real [1] 50: pipe1.flowModel.rhos_act[1]:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) "Actual density per segment" type: Real [1] 51: pipe1.flowModel.rhos[1]:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real [2] 52: pipe1.flowModel.mus[1]:VARIABLE(min = 0.0 max = 100000000.0 start = 0.001 unit = "Pa.s" nominal = 0.001 ) type: Real [2] 53: pipe1.flowModel.mus_act[1]:VARIABLE(min = 0.0 max = 100000000.0 start = 0.001 unit = "Pa.s" nominal = 0.001 ) "Actual viscosity per segment" type: Real [1] 54: $cse24:VARIABLE(protected = true ) type: Real unreplaceable 55: pipe1.flowModel.m_flows[1]:VARIABLE(min = -9.999999999999999e+59 max = 100000.0 start = 0.4 unit = "kg/s" ) "mass flow rates between states" type: Real [1] 56: $cse11:VARIABLE(protected = true ) type: Real unreplaceable 57: $cse14.R:VARIABLE(protected = true ) type: Real unreplaceable 58: $cse14.vt:VARIABLE(protected = true ) type: Real unreplaceable 59: orifice.port_b.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real 60: $cse14.s:VARIABLE(protected = true ) type: Real unreplaceable 61: $cse14.rho:VARIABLE(protected = true ) type: Real unreplaceable 62: $cse14.T:VARIABLE(protected = true ) type: Real unreplaceable 63: $cse14.cv:VARIABLE(protected = true ) type: Real unreplaceable 64: $cse14.h:VARIABLE(protected = true ) type: Real unreplaceable 65: $cse14.vp:VARIABLE(protected = true ) type: Real unreplaceable 66: $cse14.x:VARIABLE(protected = true ) type: Real unreplaceable 67: $cse14.region:DISCRETE(protected = true ) type: Integer unreplaceable 68: $cse14.phase:DISCRETE(protected = true ) type: Integer unreplaceable 69: $cse14.p:VARIABLE(protected = true ) type: Real unreplaceable 70: $cse14.dpT:VARIABLE(protected = true ) type: Real unreplaceable 71: $cse14.cp:VARIABLE(protected = true ) type: Real unreplaceable 72: $cse14.pt:VARIABLE(protected = true ) type: Real unreplaceable 73: $cse14.pd:VARIABLE(protected = true ) type: Real unreplaceable 74: orifice.state_a.d:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 protected = true ) "Density" type: Real 75: orifice.d:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real 76: orifice.zeta_nominal:VARIABLE() type: Real 77: $cse10:VARIABLE(protected = true ) type: Real unreplaceable 78: orifice.m_flow:VARIABLE(min = -9.999999999999999e+59 max = 100000.0 start = 0.4 unit = "kg/s" ) "Mass flow rate in design flow direction" type: Real 79: $cse21:VARIABLE(protected = true ) type: Real unreplaceable 80: $cse12:VARIABLE(protected = true ) type: Real unreplaceable 81: pipe2.flowModel.m_flows[1]:VARIABLE(min = -9.999999999999999e+59 max = 100000.0 start = 0.4 unit = "kg/s" ) "mass flow rates between states" type: Real [1] 82: pipe2.flowModel.rhos[1]:VARIABLE(min = 0.0 max = 100000.0 start = 150.0 unit = "kg/m3" nominal = 500.0 ) type: Real [2] 83: $cse29.phase:DISCRETE(protected = true ) type: Integer unreplaceable 84: $cse29.pt:VARIABLE(protected = true ) type: Real unreplaceable 85: $cse29.dpT:VARIABLE(protected = true ) type: Real unreplaceable 86: $cse29.region:DISCRETE(protected = true ) type: Integer unreplaceable 87: $cse29.rho:VARIABLE(protected = true ) type: Real unreplaceable 88: $cse29.pd:VARIABLE(protected = true ) type: Real unreplaceable 89: $cse29.x:VARIABLE(protected = true ) type: Real unreplaceable 90: $cse29.s:VARIABLE(protected = true ) type: Real unreplaceable 91: $cse29.cp:VARIABLE(protected = true ) type: Real unreplaceable 92: $cse29.T:VARIABLE(protected = true ) type: Real unreplaceable 93: $cse29.vt:VARIABLE(protected = true ) type: Real unreplaceable 94: $cse29.R:VARIABLE(protected = true ) type: Real unreplaceable 95: $cse29.cv:VARIABLE(protected = true ) type: Real unreplaceable 96: $cse29.h:VARIABLE(protected = true ) type: Real unreplaceable 97: $cse29.vp:VARIABLE(protected = true ) type: Real unreplaceable 98: $cse29.p:VARIABLE(protected = true ) type: Real unreplaceable 99: pipe2.flowModel.states[1].h:VARIABLE(min = -10000000000.0 max = 10000000000.0 start = 100000.0 unit = "J/kg" nominal = 500000.0 ) "Specific enthalpy" type: Real [2] 100: $cse13:VARIABLE(protected = true ) type: Real unreplaceable 101: pump.m_flow:VARIABLE(min = -9.999999999999999e+59 max = 100000.0 start = 0.4 unit = "kg/s" ) "Mass flow rate (total)" type: Real [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/BackEnd/BackendDAEUtil.mo:9741:5-9742:77:writable] Error: Internal error BackendDAEUtil.traverseEqSystemStrongComponents failed with function: omc_DAEMode_traverserStrongComponents Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005728/1.591, allocations: 3.874 MB / 0.5806 GB, free: 7.867 MB / 410.7 MB Error: post-optimization module createDAEmodeBDAE (simulation) failed.