Notification: Performance of loadModel(ModelicaTest): time 1.787/1.787, allocations: 235 MB / 240.9 MB, free: 7.414 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.2379/2.025, allocations: 57.17 MB / 298.1 MB, free: 8.43 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09253/2.117, allocations: 54.86 MB / 352.9 MB, free: 9.312 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.851/6.969, allocations: 2.669 GB / 3.014 GB, free: 66.47 MB / 472.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001825/6.969, allocations: 82.28 kB / 3.014 GB, free: 66.43 MB / 472.6 MB Notification: Performance of Generate backend data structure: time 4.204/11.17, allocations: 1.027 GB / 4.041 GB, free: 32.91 MB / 0.5241 GB Notification: Performance of prepare preOptimizeDAE: time 5.324e-05/11.17, allocations: 10.75 kB / 4.041 GB, free: 32.91 MB / 0.5241 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01275/11.19, allocations: 1.108 MB / 4.043 GB, free: 32.75 MB / 0.5241 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00807/11.19, allocations: 2.261 MB / 4.045 GB, free: 32.28 MB / 0.5241 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003537/11.19, allocations: 205.5 kB / 4.045 GB, free: 32.21 MB / 0.5241 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001066/11.2, allocations: 141.1 kB / 4.045 GB, free: 32.21 MB / 0.5241 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00868/11.2, allocations: 3.531 MB / 4.049 GB, free: 32.19 MB / 0.5241 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01042/11.21, allocations: 3.717 MB / 4.052 GB, free: 31.6 MB / 0.5241 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001084/11.21, allocations: 6.125 kB / 4.052 GB, free: 31.6 MB / 0.5241 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007558/11.22, allocations: 3.906 kB / 4.052 GB, free: 31.6 MB / 0.5241 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002354/11.22, allocations: 237.5 kB / 4.052 GB, free: 31.59 MB / 0.5241 GB Warning: The model contains alias variables with conflicting start and/or 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.03262/11.25, allocations: 18.61 MB / 4.071 GB, free: 20.89 MB / 0.5241 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003268/11.25, allocations: 1.523 MB / 4.072 GB, free: 20.86 MB / 0.5241 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003047/11.25, allocations: 1.501 MB / 4.074 GB, free: 20.85 MB / 0.5241 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04157/11.3, allocations: 17.44 MB / 4.091 GB, free: 26.3 MB / 0.5397 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.86e-05/11.3, allocations: 60.34 kB / 4.091 GB, free: 26.25 MB / 0.5397 GB Notification: Performance of pre-optimization done (n=194): time 6.584e-06/11.3, allocations: 0 / 4.091 GB, free: 26.25 MB / 0.5397 GB Notification: Performance of matching and sorting (n=244): time 0.1835/11.48, allocations: 19.16 MB / 4.109 GB, free: 24.51 MB / 0.5397 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.072e-05/11.48, allocations: 125.4 kB / 4.109 GB, free: 24.38 MB / 0.5397 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002722/11.48, allocations: 1.227 MB / 4.111 GB, free: 24.2 MB / 0.5397 GB Notification: Performance of collectPreVariables (initialization): time 0.0007106/11.48, allocations: 25.7 kB / 4.111 GB, free: 24.16 MB / 0.5397 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009205/11.48, allocations: 1.159 MB / 4.112 GB, free: 23.62 MB / 0.5397 GB Notification: Performance of collectInitialBindings (initialization): time 0.001302/11.49, allocations: 0.7949 MB / 4.113 GB, free: 23.09 MB / 0.5397 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003852/11.49, allocations: 0 / 4.113 GB, free: 23.09 MB / 0.5397 GB Notification: Performance of setup shared object (initialization): time 0.0002954/11.49, allocations: 413.3 kB / 4.113 GB, free: 22.79 MB / 0.5397 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004138/11.49, allocations: 2.042 MB / 4.115 GB, free: 22.78 MB / 0.5397 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004711/11.5, allocations: 2.525 MB / 4.117 GB, free: 22.26 MB / 0.5397 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02037/11.52, allocations: 4.558 MB / 4.122 GB, free: 22.22 MB / 0.5397 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.898e-05/11.52, allocations: 6.75 kB / 4.122 GB, free: 22.22 MB / 0.5397 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.03401/11.55, allocations: 8.474 MB / 4.13 GB, free: 21.92 MB / 0.5397 GB Notification: Performance of prepare postOptimizeDAE: time 0.002256/11.55, allocations: 5.43 MB / 4.135 GB, free: 16.38 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.172e-05/11.55, allocations: 19.31 kB / 4.136 GB, free: 16.38 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007077/11.56, allocations: 2.351 MB / 4.138 GB, free: 16.3 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/11.56, allocations: 0.6066 MB / 4.138 GB, free: 16.3 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0134/11.58, allocations: 8.268 MB / 4.146 GB, free: 11.6 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005467/11.58, allocations: 416.7 kB / 4.147 GB, free: 11.57 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00103/11.58, allocations: 157.1 kB / 4.147 GB, free: 11.57 MB / 0.5397 GB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/11.58, allocations: 3.031 kB / 4.147 GB, free: 11.57 MB / 0.5397 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02423/11.61, allocations: 6.295 MB / 4.153 GB, free: 11.43 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.91e-05/11.61, allocations: 14.72 kB / 4.153 GB, free: 11.43 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002404/11.61, allocations: 0.633 MB / 4.154 GB, free: 11.36 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004323/11.61, allocations: 0.7066 MB / 4.154 GB, free: 11.36 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01295/11.63, allocations: 8.29 MB / 4.163 GB, free: 20.88 MB / 0.5553 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007749/11.64, allocations: 389.8 kB / 4.163 GB, free: 20.86 MB / 0.5553 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001239/11.64, allocations: 140.9 kB / 4.163 GB, free: 20.86 MB / 0.5553 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.0008323/11.64, allocations: 80.73 kB / 4.163 GB, free: 20.78 MB / 0.5553 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03435/11.67, allocations: 5.963 MB / 4.169 GB, free: 20.5 MB / 0.5553 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005981/11.68, allocations: 0.6879 MB / 4.17 GB, free: 20.4 MB / 0.5553 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04029/11.72, allocations: 11.15 MB / 4.181 GB, free: 19.77 MB / 0.5553 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02659/11.75, allocations: 9.603 MB / 4.19 GB, free: 19.26 MB / 0.5553 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/11.75, allocations: 0 / 4.19 GB, free: 19.26 MB / 0.5553 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0191/11.76, allocations: 9.742 MB / 4.199 GB, free: 18.43 MB / 0.5553 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04282/11.81, allocations: 17.64 MB / 4.217 GB, free: 10.42 MB / 0.5553 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.926e-05/11.81, allocations: 5.781 kB / 4.217 GB, free: 10.41 MB / 0.5553 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002895/11.81, allocations: 427.2 kB / 4.217 GB, free: 10.09 MB / 0.5553 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01143/11.82, allocations: 4.295 MB / 4.221 GB, free: 6.766 MB / 0.5553 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007949/11.82, allocations: 76.94 kB / 4.221 GB, free: 6.715 MB / 0.5553 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2359/12.06, allocations: 10.5 MB / 4.232 GB, free: 87.89 MB / 0.5553 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.005495/12.06, allocations: 2.799 MB / 4.234 GB, free: 87.33 MB / 0.5553 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02749/12.09, allocations: 12.86 MB / 4.247 GB, free: 86.68 MB / 0.5553 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00287/12.09, allocations: 0.8481 MB / 4.248 GB, free: 86.58 MB / 0.5553 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001116/12.1, allocations: 16.03 kB / 4.248 GB, free: 86.58 MB / 0.5553 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004297/12.1, allocations: 321.4 kB / 4.248 GB, free: 86.58 MB / 0.5553 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008701/12.1, allocations: 227.7 kB / 4.248 GB, free: 86.58 MB / 0.5553 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004653/12.1, allocations: 123.1 kB / 4.248 GB, free: 86.58 MB / 0.5553 GB Notification: Performance of sort global known variables: time 0.001884/12.1, allocations: 0.8737 MB / 4.249 GB, free: 86.47 MB / 0.5553 GB Notification: Performance of remove unused functions: time 0.01567/12.12, allocations: 3.774 MB / 4.253 GB, free: 86.47 MB / 0.5553 GB Notification: Performance of Backend phase and start with SimCode phase: time 0.04527/12.16, allocations: 17.72 MB / 4.27 GB, free: 84.83 MB / 0.5553 GB Notification: Performance of simCode: created initialization part: time 0.02221/12.19, allocations: 9.586 MB / 4.28 GB, free: 84.4 MB / 0.5553 GB Notification: Performance of simCode: created event and clocks part: time 9.104e-06/12.19, allocations: 0 / 4.28 GB, free: 84.4 MB / 0.5553 GB Notification: Performance of simCode: created simulation system equations: time 0.01087/12.2, allocations: 5.087 MB / 4.285 GB, free: 84.36 MB / 0.5553 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006474/12.2, allocations: 0.9272 MB / 4.285 GB, free: 84.34 MB / 0.5553 GB [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4342:9-4342:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/hudson/slave/workspace/OpenModelica_TEST_LIBS/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:601:5-601:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed] Error: Internal error SimCode: The model ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial could not be translated to FMU