Notification: Performance of loadModel(ModelicaTest): time 1.917/1.917, allocations: 235 MB / 240.9 MB, free: 7.348 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.261/2.178, allocations: 57.18 MB / 298.1 MB, free: 8.512 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08185/2.26, allocations: 54.86 MB / 352.9 MB, free: 9.242 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.928/7.188, allocations: 2.669 GB / 3.014 GB, free: 68.34 MB / 488.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/7.188, allocations: 83.28 kB / 3.014 GB, free: 68.29 MB / 488.6 MB Notification: Performance of Generate backend data structure: time 3.962/11.15, allocations: 1.023 GB / 4.037 GB, free: 13.71 MB / 0.5241 GB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/11.15, allocations: 8 kB / 4.037 GB, free: 13.7 MB / 0.5241 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01306/11.16, allocations: 1.147 MB / 4.038 GB, free: 12.55 MB / 0.5241 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007988/11.17, allocations: 2.267 MB / 4.041 GB, free: 10.26 MB / 0.5241 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003647/11.17, allocations: 204.2 kB / 4.041 GB, free: 10.04 MB / 0.5241 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000821/11.17, allocations: 143.9 kB / 4.041 GB, free: 9.902 MB / 0.5241 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00875/11.18, allocations: 3.528 MB / 4.044 GB, free: 6.367 MB / 0.5241 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009054/11.19, allocations: 3.717 MB / 4.048 GB, free: 2.426 MB / 0.5241 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.344e-05/11.19, allocations: 7.938 kB / 4.048 GB, free: 2.418 MB / 0.5241 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004121/11.19, allocations: 4 kB / 4.048 GB, free: 2.414 MB / 0.5241 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002865/11.19, allocations: 240.8 kB / 4.048 GB, free: 2.176 MB / 0.5241 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2382/11.43, allocations: 19.85 MB / 4.068 GB, free: 52.92 MB / 0.5241 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003256/11.43, allocations: 1.521 MB / 4.069 GB, free: 52.89 MB / 0.5241 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003008/11.44, allocations: 1.495 MB / 4.071 GB, free: 52.88 MB / 0.5241 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04354/11.48, allocations: 17.06 MB / 4.087 GB, free: 42.37 MB / 0.5241 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.232e-05/11.48, allocations: 56.97 kB / 4.087 GB, free: 42.32 MB / 0.5241 GB Notification: Performance of pre-optimization done (n=194): time 7.172e-06/11.48, allocations: 0 / 4.087 GB, free: 42.32 MB / 0.5241 GB Notification: Performance of matching and sorting (n=244): time 0.2036/11.68, allocations: 19.25 MB / 4.106 GB, free: 40.75 MB / 0.5241 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/11.68, allocations: 128.3 kB / 4.106 GB, free: 40.62 MB / 0.5241 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002456/11.69, allocations: 1.216 MB / 4.107 GB, free: 40.45 MB / 0.5241 GB Notification: Performance of collectPreVariables (initialization): time 0.000588/11.69, allocations: 27.89 kB / 4.107 GB, free: 40.42 MB / 0.5241 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005632/11.69, allocations: 0.9128 MB / 4.108 GB, free: 40.02 MB / 0.5241 GB Notification: Performance of collectInitialBindings (initialization): time 0.00116/11.69, allocations: 0.7988 MB / 4.109 GB, free: 39.6 MB / 0.5241 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00035/11.69, allocations: 0 / 4.109 GB, free: 39.6 MB / 0.5241 GB Notification: Performance of setup shared object (initialization): time 0.0001834/11.69, allocations: 409 kB / 4.109 GB, free: 39.29 MB / 0.5241 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003885/11.69, allocations: 2.039 MB / 4.111 GB, free: 39.29 MB / 0.5241 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004586/11.7, allocations: 2.538 MB / 4.114 GB, free: 38.77 MB / 0.5241 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02134/11.72, allocations: 4.567 MB / 4.118 GB, free: 38.72 MB / 0.5241 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.019e-05/11.72, allocations: 3.281 kB / 4.118 GB, free: 38.72 MB / 0.5241 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.03555/11.75, allocations: 8.61 MB / 4.127 GB, free: 38.43 MB / 0.5241 GB Notification: Performance of prepare postOptimizeDAE: time 0.001026/11.76, allocations: 5.427 MB / 4.132 GB, free: 32.88 MB / 0.5241 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-05/11.76, allocations: 14.78 kB / 4.132 GB, free: 32.88 MB / 0.5241 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00714/11.76, allocations: 2.316 MB / 4.134 GB, free: 32.81 MB / 0.5241 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004112/11.77, allocations: 0.5945 MB / 4.135 GB, free: 32.81 MB / 0.5241 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0132/11.78, allocations: 8.305 MB / 4.143 GB, free: 44.11 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00551/11.79, allocations: 369.2 kB / 4.143 GB, free: 44.1 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006788/11.79, allocations: 154.3 kB / 4.144 GB, free: 44.1 MB / 0.5397 GB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/11.79, allocations: 3.781 kB / 4.144 GB, free: 44.1 MB / 0.5397 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02658/11.81, allocations: 6.43 MB / 4.15 GB, free: 43.95 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.492e-05/11.81, allocations: 16.78 kB / 4.15 GB, free: 43.95 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002251/11.82, allocations: 0.6273 MB / 4.151 GB, free: 43.89 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004692/11.82, allocations: 0.6967 MB / 4.151 GB, free: 43.89 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009316/11.83, allocations: 8.021 MB / 4.159 GB, free: 37.62 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004638/11.83, allocations: 337.7 kB / 4.159 GB, free: 37.61 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005698/11.83, allocations: 142.3 kB / 4.159 GB, free: 37.61 MB / 0.5397 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.0004531/11.83, allocations: 82.56 kB / 4.16 GB, free: 37.54 MB / 0.5397 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003414/11.84, allocations: 0.6822 MB / 4.16 GB, free: 37.43 MB / 0.5397 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02595/11.86, allocations: 11.72 MB / 4.172 GB, free: 36.82 MB / 0.5397 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02014/11.88, allocations: 10.17 MB / 4.182 GB, free: 36.3 MB / 0.5397 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.387e-05/11.88, allocations: 6.969 kB / 4.182 GB, free: 36.3 MB / 0.5397 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01977/11.9, allocations: 10.32 MB / 4.192 GB, free: 35.48 MB / 0.5397 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04011/11.94, allocations: 18.18 MB / 4.209 GB, free: 34.09 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-05/11.94, allocations: 3.906 kB / 4.209 GB, free: 34.08 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003114/11.95, allocations: 415.5 kB / 4.21 GB, free: 34.08 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0111/11.96, allocations: 4.225 MB / 4.214 GB, free: 33.88 MB / 0.5397 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007278/11.96, allocations: 74.52 kB / 4.214 GB, free: 33.88 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01744/11.98, allocations: 10.7 MB / 4.224 GB, free: 29.11 MB / 0.5397 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.006114/11.98, allocations: 2.918 MB / 4.227 GB, free: 28.23 MB / 0.5397 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02853/12.01, allocations: 13.42 MB / 4.24 GB, free: 22.86 MB / 0.5397 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04635/12.06, allocations: 25.75 MB / 4.266 GB, free: 5.023 MB / 0.5397 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002722/12.06, allocations: 0.8508 MB / 4.266 GB, free: 4.285 MB / 0.5397 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009861/12.06, allocations: 14.77 kB / 4.266 GB, free: 4.273 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004323/12.07, allocations: 298.8 kB / 4.267 GB, free: 4.09 MB / 0.5397 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006682/12.07, allocations: 225.4 kB / 4.267 GB, free: 3.965 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004058/12.07, allocations: 110.5 kB / 4.267 GB, free: 3.879 MB / 0.5397 GB Notification: Performance of sort global known variables: time 0.001786/12.07, allocations: 0.8809 MB / 4.268 GB, free: 3.09 MB / 0.5397 GB Notification: Performance of remove unused functions: time 0.2297/12.3, allocations: 4.672 MB / 4.272 GB, free: 77.14 MB / 0.5397 GB Notification: Performance of Backend phase and start with SimCode phase: time 0.01637/12.32, allocations: 3.873 MB / 4.276 GB, free: 77 MB / 0.5397 GB Notification: Performance of simCode: created initialization part: time 0.0226/12.34, allocations: 9.492 MB / 4.286 GB, free: 76.59 MB / 0.5397 GB Notification: Performance of simCode: created event and clocks part: time 8.151e-06/12.34, allocations: 3.812 kB / 4.286 GB, free: 76.59 MB / 0.5397 GB Notification: Performance of simCode: created simulation system equations: time 0.01139/12.35, allocations: 5.038 MB / 4.29 GB, free: 76.55 MB / 0.5397 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00638/12.36, allocations: 0.8867 MB / 4.291 GB, free: 76.54 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] Error: Internal error SimCode: The model ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial could not be translated to FMU