Notification: Performance of loadModel(ModelicaTest): time 1.802/1.802, allocations: 234.4 MB / 240 MB, free: 7.844 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 6.687e-06/6.772e-06, allocations: 1.156 kB / 296.6 MB, free: 8.43 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08458/0.08461, allocations: 54.71 MB / 351.3 MB, free: 10.97 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.108/5.193, allocations: 2.669 GB / 3.012 GB, free: 88.11 MB / 488.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001978/5.193, allocations: 81.89 kB / 3.012 GB, free: 88.07 MB / 488.6 MB Notification: Performance of FrontEnd: time 4.177/9.37, allocations: 1.019 GB / 4.031 GB, free: 19.32 MB / 0.5084 GB Notification: Performance of Transformations before backend: time 0.0003207/9.371, allocations: 71.91 kB / 4.031 GB, free: 19.26 MB / 0.5084 GB Notification: Performance of Generate backend data structure: time 0.01864/9.389, allocations: 4.412 MB / 4.036 GB, free: 14.8 MB / 0.5084 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/9.389, allocations: 8.031 kB / 4.036 GB, free: 14.79 MB / 0.5084 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01318/9.403, allocations: 1.151 MB / 4.037 GB, free: 13.64 MB / 0.5084 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008048/9.411, allocations: 2.264 MB / 4.039 GB, free: 11.36 MB / 0.5084 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003642/9.411, allocations: 200.2 kB / 4.039 GB, free: 11.14 MB / 0.5084 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00113/9.412, allocations: 147.9 kB / 4.039 GB, free: 11 MB / 0.5084 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008983/9.421, allocations: 3.536 MB / 4.043 GB, free: 7.457 MB / 0.5084 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0104/9.432, allocations: 3.706 MB / 4.046 GB, free: 3.527 MB / 0.5084 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-05/9.432, allocations: 7.938 kB / 4.046 GB, free: 3.52 MB / 0.5084 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005095/9.432, allocations: 8 kB / 4.046 GB, free: 3.512 MB / 0.5084 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002449/9.433, allocations: 232.7 kB / 4.047 GB, free: 3.281 MB / 0.5084 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2633/9.696, allocations: 19.88 MB / 4.066 GB, free: 64.34 MB / 0.5241 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003429/9.699, allocations: 1.521 MB / 4.067 GB, free: 64.32 MB / 0.5241 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003351/9.703, allocations: 1.494 MB / 4.069 GB, free: 64.31 MB / 0.5241 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04405/9.747, allocations: 17.06 MB / 4.086 GB, free: 53.79 MB / 0.5241 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.037e-05/9.747, allocations: 52.81 kB / 4.086 GB, free: 53.75 MB / 0.5241 GB Notification: Performance of pre-optimization done (n=194): time 7.056e-06/9.747, allocations: 0 / 4.086 GB, free: 53.75 MB / 0.5241 GB Notification: Performance of matching and sorting (n=244): time 0.2083/9.955, allocations: 19.24 MB / 4.104 GB, free: 52.46 MB / 0.5241 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.566e-05/9.955, allocations: 126.6 kB / 4.105 GB, free: 52.33 MB / 0.5241 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002776/9.958, allocations: 1.224 MB / 4.106 GB, free: 52.16 MB / 0.5241 GB Notification: Performance of collectPreVariables (initialization): time 0.0007176/9.959, allocations: 25.7 kB / 4.106 GB, free: 52.13 MB / 0.5241 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005425/9.959, allocations: 0.8622 MB / 4.107 GB, free: 51.66 MB / 0.5241 GB Notification: Performance of collectInitialBindings (initialization): time 0.001452/9.961, allocations: 0.7944 MB / 4.107 GB, free: 51.25 MB / 0.5241 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000428/9.961, allocations: 1.312 kB / 4.107 GB, free: 51.25 MB / 0.5241 GB Notification: Performance of setup shared object (initialization): time 0.000235/9.962, allocations: 422.2 kB / 4.108 GB, free: 50.93 MB / 0.5241 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00459/9.966, allocations: 2.037 MB / 4.11 GB, free: 50.92 MB / 0.5241 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00511/9.971, allocations: 2.536 MB / 4.112 GB, free: 50.4 MB / 0.5241 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02207/9.993, allocations: 4.571 MB / 4.117 GB, free: 50.36 MB / 0.5241 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.138e-05/9.994, allocations: 3.875 kB / 4.117 GB, free: 50.36 MB / 0.5241 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.03646/10.03, allocations: 8.511 MB / 4.125 GB, free: 50.12 MB / 0.5241 GB Notification: Performance of prepare postOptimizeDAE: time 0.001099/10.03, allocations: 5.312 MB / 4.13 GB, free: 44.57 MB / 0.5241 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.594e-05/10.03, allocations: 12.34 kB / 4.13 GB, free: 44.57 MB / 0.5241 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007333/10.04, allocations: 2.267 MB / 4.132 GB, free: 44.5 MB / 0.5241 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003978/10.04, allocations: 0.588 MB / 4.133 GB, free: 44.5 MB / 0.5241 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01304/10.06, allocations: 8.294 MB / 4.141 GB, free: 39.81 MB / 0.5241 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005302/10.06, allocations: 370.6 kB / 4.141 GB, free: 39.8 MB / 0.5241 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001001/10.06, allocations: 152.7 kB / 4.142 GB, free: 39.8 MB / 0.5241 GB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/10.06, allocations: 3.719 kB / 4.142 GB, free: 39.8 MB / 0.5241 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02843/10.09, allocations: 6.436 MB / 4.148 GB, free: 39.65 MB / 0.5241 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.217e-05/10.09, allocations: 13.56 kB / 4.148 GB, free: 39.65 MB / 0.5241 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002467/10.09, allocations: 0.6028 MB / 4.149 GB, free: 39.59 MB / 0.5241 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004988/10.1, allocations: 0.7041 MB / 4.149 GB, free: 39.59 MB / 0.5241 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008583/10.11, allocations: 8.015 MB / 4.157 GB, free: 33.34 MB / 0.5241 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004427/10.11, allocations: 345.8 kB / 4.157 GB, free: 33.33 MB / 0.5241 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009161/10.11, allocations: 142.1 kB / 4.157 GB, free: 33.33 MB / 0.5241 GB Warning: There are iteration variables with default zero start attribute. For more information set -d=initialization. In OMEdit Tools->Options->Simulation->OMCFlags, in OMNotebook call setCommandLineOptions("-d=initialization"). Notification: Performance of prepare postOptimizeDAE: time 0.0006057/10.11, allocations: 3.625 kB / 4.157 GB, free: 33.33 MB / 0.5241 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003922/10.12, allocations: 0.6792 MB / 4.158 GB, free: 33.22 MB / 0.5241 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02836/10.15, allocations: 11.72 MB / 4.17 GB, free: 32.61 MB / 0.5241 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02153/10.17, allocations: 10.17 MB / 4.18 GB, free: 32.1 MB / 0.5241 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/10.17, allocations: 0 / 4.18 GB, free: 32.1 MB / 0.5241 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02111/10.19, allocations: 10.32 MB / 4.19 GB, free: 31.28 MB / 0.5241 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04344/10.23, allocations: 18.19 MB / 4.207 GB, free: 29.88 MB / 0.5241 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-05/10.23, allocations: 2.562 kB / 4.207 GB, free: 29.88 MB / 0.5241 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003178/10.23, allocations: 421.4 kB / 4.208 GB, free: 29.88 MB / 0.5241 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01201/10.25, allocations: 4.229 MB / 4.212 GB, free: 29.68 MB / 0.5241 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000799/10.25, allocations: 70.27 kB / 4.212 GB, free: 29.68 MB / 0.5241 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0169/10.26, allocations: 10.7 MB / 4.222 GB, free: 24.91 MB / 0.5241 GB Error: Model is structurally singular, error found sorting equations 35: $cse27 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0); 34: heater.statesFM[1].T = Modelica.Media.Water.IF97_Utilities.T_props_ph(pump.p_b_nominal, pump.medium.h, $cse27); 17: heater.heatTransfer.Ts[1] = Modelica.Media.Water.IF97_Utilities.T_props_ph(heater.mediums[1].p, heater.mediums[1].h, $cse17); 14: heater.flowModel.Fs_p[1] = heater.crossAreas[1] * (heater.mediums[1].p - pump.p_b_nominal) * heater.flowModel.nParallel; 27: pump.heatTransfer.states[1].phase = if pump.medium.h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pump.p_b_nominal, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(pump.p_b_nominal)) or pump.medium.h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(pump.p_b_nominal, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(pump.p_b_nominal)) or pump.p_b_nominal > 22064000.0 then 1 else 2; 26: $cse6 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.p_b_nominal, pump.medium.h, pump.heatTransfer.states[1].phase, 0); 10: pump.Hb_flow = m_flow * (smooth(0, tank.medium.h) - smooth(0, pump.medium.h)); 8: -pump.Hb_flow = pump.W_single * /*Real*/(pump.nParallel); 5: pump.eta = Modelica.Fluid.Machines.ControlledPump$pump.efficiencyCharacteristic(pump.V_flow_single * pump.N_nominal / pump.N, 0.8); 3: pump.dp_pump = pump.p_b_nominal - tank.ports[2].p; 38: $STATESET1.J[3] = pump.W_single - pump.dp_pump * pump.V_flow_single / pump.eta; 25: pump.rho = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pump.p_b_nominal, pump.medium.h, $cse6); 7: pump.V_flow_single = pump.V_flow / /*Real*/(pump.nParallel); 9: pump.V_flow = m_flow / pump.rho; 33: heater.statesFM[1].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(pump.p_b_nominal, pump.medium.h, $cse27); 32: heater.flowModel.mus[1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(heater.statesFM[1].d, heater.statesFM[1].T, pump.p_b_nominal, 0); 15: heater.flowModel.mus[2] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(heater.statesFM[2].d, heater.heatTransfer.Ts[1], heater.mediums[1].p, heater.statesFM[2].phase); 13: heater.flowModel.dps_fg[1] = -2.0 * heater.flowModel.Fs_p[1] / (heater.flowModel.nParallel * 2.0 * heater.crossAreas[1]); 11: m_flow = $cse43 * heater.flowModel.nParallel; 12: $cse43 = Modelica.Fluid.Pipes.DynamicPipe$heater.FlowModel$heater$flowModel.WallFriction.massFlowRate_dp_staticHead(heater.flowModel.dps_fg[1], heater.statesFM[1].d, heater.statesFM[2].d, heater.flowModel.mus[1], heater.flowModel.mus[2], heater.pathLengths[1], heater.dimensions[1], 0.0, heater.crossAreas[1], heater.roughnesses[1], 0.5 * heater.flowModel.dp_small, heater.flowModel.Re_turbulent); 19: heater.statesFM[2].phase = if heater.mediums[1].h < Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(heater.mediums[1].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.boilingcurve_p(heater.mediums[1].p)) or heater.mediums[1].h > Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.hvl_p(heater.mediums[1].p, Modelica.Media.Water.IF97_Utilities.BaseIF97.Regions.dewcurve_p(heater.mediums[1].p)) or heater.mediums[1].p > 22064000.0 then 1 else 2; 16: heater.statesFM[2].d = Modelica.Media.Water.IF97_Utilities.rho_props_ph(heater.mediums[1].p, heater.mediums[1].h, $cse17); 18: $cse17 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(heater.mediums[1].p, heater.mediums[1].h, heater.statesFM[2].phase, 0); for variables $cse27.x(3), $cse27.vt(4), $cse27.pd(5), $cse27.region(6), pump.N(113), $cse27.dpT(8), $cse27.pt(7), $cse27.phase(10), $cse27.p(9), $cse27.s(11), $cse27.h(13), $cse27.cp(14), $cse27.R(15), $cse27.cv(12), $cse27.rho(17), tank.heatTransfer.states[1].phase(22), $cse1.dpT(27), $cse43(101), pump.V_flow(104), $cse6.cv(45), $cse1.pd(36), $cse6.region(42), pump.heatTransfer.states[1].phase(41), $cse6.vt(43), $cse1.cp(38), tank.regularFlow[2](40), $cse1.s(37), $cse6.cp(48), $cse6.rho(50), $cse6.dpT(46), $cse6.h(52), $cse6.x(53), $cse6.T(54), $cse6.R(55), $cse5.rho(65), $cse5.cp(64), heater.heatTransfer.Ts[1](96), heater.flowModel.mus[2](98), pump.eta(108), m_flow(102), tank.vessel_ps_static[2](61), pump.head(109), pump.W_single(105), heater.statesFM[1].d(20), $cse1.rho(30), pump.V_flow_single(106), pump.dp_pump(110), $cse17.R(95), heater.flowModel.dps_fg[1](100), $cse5.vt(77), pump.Hb_flow(103), $cse17.pt(81), heater.statesFM[2].phase(79), $cse17.pd(83), $cse17.p(89), $cse5.p(75), $cse5.T(76), $cse17.rho(80), $cse17.vp(84), $cse17.s(82), $cse17.cv(88), $cse17.phase(85), $cse17.region(91), $cse17.dpT(92), $cse17.x(93), $cse17.h(94), heater.flowModel.Fs_p[1](99), $cse1.phase(23) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.006551/10.27, allocations: 2.916 MB / 4.225 GB, free: 40.32 MB / 0.5397 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.03031/10.3, allocations: 13.41 MB / 4.238 GB, free: 36.04 MB / 0.5397 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003151/10.3, allocations: 0.8546 MB / 4.239 GB, free: 35.58 MB / 0.5397 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001249/10.31, allocations: 15.42 kB / 4.239 GB, free: 35.58 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004658/10.31, allocations: 301.7 kB / 4.24 GB, free: 35.57 MB / 0.5397 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009742/10.31, allocations: 224 kB / 4.24 GB, free: 35.54 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004897/10.31, allocations: 118 kB / 4.24 GB, free: 35.52 MB / 0.5397 GB Notification: Performance of sort global known variables: time 0.002026/10.31, allocations: 0.8765 MB / 4.241 GB, free: 35.15 MB / 0.5397 GB Notification: Performance of remove unused functions: time 0.01769/10.33, allocations: 3.759 MB / 4.244 GB, free: 34.87 MB / 0.5397 GB Notification: Performance of Backend phase and start with SimCode phase: time 0.01835/10.35, allocations: 3.869 MB / 4.248 GB, free: 34.43 MB / 0.5397 GB Notification: Performance of simCode: created initialization part: time 0.02318/10.37, allocations: 9.411 MB / 4.257 GB, free: 27.25 MB / 0.5397 GB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/10.37, allocations: 6.188 kB / 4.257 GB, free: 27.24 MB / 0.5397 GB Notification: Performance of simCode: created simulation system equations: time 0.0113/10.38, allocations: 5.018 MB / 4.262 GB, free: 22.8 MB / 0.5397 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006595/10.39, allocations: 0.8834 MB / 4.263 GB, free: 22.21 MB / 0.5397 GB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4354:9-4354:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:596:5-596:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]