Notification: Performance of loadModel(ModelicaTest): time 1.845/1.845, allocations: 235 MB / 241.2 MB, free: 7.43 MB / 200.6 MB Notification: Performance of FrontEnd - loaded program: time 0.2314/2.077, allocations: 56.81 MB / 298 MB, free: 8.41 MB / 248.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08596/2.163, allocations: 54.85 MB / 352.9 MB, free: 9.68 MB / 296.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.855/7.018, allocations: 2.669 GB / 3.014 GB, free: 68.32 MB / 472.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001869/7.018, allocations: 86.77 kB / 3.014 GB, free: 68.27 MB / 472.6 MB Notification: Performance of Generate backend data structure: time 4.157/11.18, allocations: 1.027 GB / 4.041 GB, free: 32.85 MB / 0.5241 GB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/11.18, allocations: 9.719 kB / 4.041 GB, free: 32.85 MB / 0.5241 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/11.19, allocations: 1.106 MB / 4.043 GB, free: 32.68 MB / 0.5241 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008172/11.2, allocations: 2.26 MB / 4.045 GB, free: 32.21 MB / 0.5241 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003699/11.2, allocations: 206 kB / 4.045 GB, free: 32.14 MB / 0.5241 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001149/11.2, allocations: 146.4 kB / 4.045 GB, free: 32.14 MB / 0.5241 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008887/11.21, allocations: 3.526 MB / 4.049 GB, free: 32.12 MB / 0.5241 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01071/11.22, allocations: 3.716 MB / 4.052 GB, free: 31.54 MB / 0.5241 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001097/11.22, allocations: 10.5 kB / 4.052 GB, free: 31.54 MB / 0.5241 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005912/11.22, allocations: 7.281 kB / 4.052 GB, free: 31.54 MB / 0.5241 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002387/11.22, allocations: 231.1 kB / 4.052 GB, free: 31.53 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.03355/11.25, allocations: 18.61 MB / 4.071 GB, free: 20.83 MB / 0.5241 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003233/11.26, allocations: 1.539 MB / 4.072 GB, free: 20.8 MB / 0.5241 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003113/11.26, allocations: 1.495 MB / 4.074 GB, free: 20.79 MB / 0.5241 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03992/11.3, allocations: 17.44 MB / 4.091 GB, free: 26.23 MB / 0.5397 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.506e-05/11.3, allocations: 56.72 kB / 4.091 GB, free: 26.19 MB / 0.5397 GB Notification: Performance of pre-optimization done (n=194): time 6.884e-06/11.3, allocations: 0 / 4.091 GB, free: 26.19 MB / 0.5397 GB Notification: Performance of matching and sorting (n=244): time 0.1864/11.48, allocations: 19.15 MB / 4.109 GB, free: 24.45 MB / 0.5397 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.724e-05/11.48, allocations: 133.2 kB / 4.109 GB, free: 24.32 MB / 0.5397 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002519/11.49, allocations: 1.225 MB / 4.111 GB, free: 24.14 MB / 0.5397 GB Notification: Performance of collectPreVariables (initialization): time 0.0007063/11.49, allocations: 25.7 kB / 4.111 GB, free: 24.11 MB / 0.5397 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007971/11.49, allocations: 1.109 MB / 4.112 GB, free: 23.5 MB / 0.5397 GB Notification: Performance of collectInitialBindings (initialization): time 0.00121/11.49, allocations: 0.7936 MB / 4.113 GB, free: 22.98 MB / 0.5397 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000361/11.49, allocations: 0 / 4.113 GB, free: 22.98 MB / 0.5397 GB Notification: Performance of setup shared object (initialization): time 0.0002722/11.49, allocations: 417 kB / 4.113 GB, free: 22.66 MB / 0.5397 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004145/11.5, allocations: 2.039 MB / 4.115 GB, free: 22.66 MB / 0.5397 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00478/11.5, allocations: 2.537 MB / 4.117 GB, free: 22.13 MB / 0.5397 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01998/11.52, allocations: 4.557 MB / 4.122 GB, free: 22.09 MB / 0.5397 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.868e-05/11.52, allocations: 3.938 kB / 4.122 GB, free: 22.09 MB / 0.5397 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.033/11.55, allocations: 8.369 MB / 4.13 GB, free: 21.85 MB / 0.5397 GB Notification: Performance of prepare postOptimizeDAE: time 0.002114/11.56, allocations: 5.314 MB / 4.135 GB, free: 16.3 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-05/11.56, allocations: 11.66 kB / 4.135 GB, free: 16.3 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006936/11.56, allocations: 2.364 MB / 4.138 GB, free: 16.23 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003873/11.57, allocations: 0.5993 MB / 4.138 GB, free: 16.23 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0131/11.58, allocations: 8.262 MB / 4.146 GB, free: 11.53 MB / 0.5397 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005533/11.58, allocations: 421.4 kB / 4.147 GB, free: 11.51 MB / 0.5397 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000963/11.59, allocations: 154.2 kB / 4.147 GB, free: 11.51 MB / 0.5397 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/11.59, allocations: 3.969 kB / 4.147 GB, free: 11.51 MB / 0.5397 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02859/11.61, allocations: 6.305 MB / 4.153 GB, free: 11.36 MB / 0.5397 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.276e-05/11.61, allocations: 17.75 kB / 4.153 GB, free: 11.36 MB / 0.5397 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003571/11.62, allocations: 0.6127 MB / 4.154 GB, free: 11.29 MB / 0.5397 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00801/11.63, allocations: 0.7055 MB / 4.154 GB, free: 11.29 MB / 0.5397 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01475/11.64, allocations: 8.231 MB / 4.162 GB, free: 20.88 MB / 0.5553 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006061/11.65, allocations: 392.3 kB / 4.163 GB, free: 20.86 MB / 0.5553 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001142/11.65, allocations: 140.5 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.0008832/11.65, allocations: 80.94 kB / 4.163 GB, free: 20.79 MB / 0.5553 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02156/11.67, allocations: 5.96 MB / 4.169 GB, free: 20.51 MB / 0.5553 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003679/11.67, allocations: 0.6933 MB / 4.169 GB, free: 20.41 MB / 0.5553 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02626/11.7, allocations: 11.15 MB / 4.18 GB, free: 19.78 MB / 0.5553 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02046/11.72, allocations: 9.602 MB / 4.19 GB, free: 19.27 MB / 0.5553 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.584e-05/11.72, allocations: 3.312 kB / 4.19 GB, free: 19.27 MB / 0.5553 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02013/11.74, allocations: 9.736 MB / 4.199 GB, free: 18.44 MB / 0.5553 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04208/11.78, allocations: 17.65 MB / 4.216 GB, free: 12.35 MB / 0.5553 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-05/11.78, allocations: 0 / 4.216 GB, free: 12.35 MB / 0.5553 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002844/11.79, allocations: 424.6 kB / 4.217 GB, free: 12.03 MB / 0.5553 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01111/11.8, allocations: 4.295 MB / 4.221 GB, free: 8.699 MB / 0.5553 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007414/11.8, allocations: 76.75 kB / 4.221 GB, free: 8.648 MB / 0.5553 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2333/12.03, allocations: 10.5 MB / 4.231 GB, free: 88.85 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.005746/12.04, allocations: 2.806 MB / 4.234 GB, free: 88.29 MB / 0.5553 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02936/12.07, allocations: 12.85 MB / 4.247 GB, free: 87.64 MB / 0.5553 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003157/12.07, allocations: 0.8459 MB / 4.247 GB, free: 87.54 MB / 0.5553 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001306/12.07, allocations: 19.45 kB / 4.247 GB, free: 87.54 MB / 0.5553 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004433/12.08, allocations: 324.8 kB / 4.248 GB, free: 87.54 MB / 0.5553 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009051/12.08, allocations: 230 kB / 4.248 GB, free: 87.54 MB / 0.5553 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004901/12.08, allocations: 114.9 kB / 4.248 GB, free: 87.54 MB / 0.5553 GB Notification: Performance of sort global known variables: time 0.001854/12.08, allocations: 0.8789 MB / 4.249 GB, free: 87.43 MB / 0.5553 GB Notification: Performance of remove unused functions: time 0.01594/12.1, allocations: 3.768 MB / 4.253 GB, free: 87.43 MB / 0.5553 GB Notification: Performance of Backend phase and start with SimCode phase: time 0.0456/12.14, allocations: 17.72 MB / 4.27 GB, free: 85.8 MB / 0.5553 GB Notification: Performance of simCode: created initialization part: time 0.02116/12.16, allocations: 9.511 MB / 4.279 GB, free: 85.39 MB / 0.5553 GB Notification: Performance of simCode: created event and clocks part: time 7.958e-06/12.16, allocations: 3.656 kB / 4.279 GB, free: 85.39 MB / 0.5553 GB Notification: Performance of simCode: created simulation system equations: time 0.01116/12.17, allocations: 5.048 MB / 4.284 GB, free: 85.34 MB / 0.5553 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006601/12.18, allocations: 0.9274 MB / 4.285 GB, free: 85.33 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