Notification: Performance of loadModel(Modelica): time 1.484/1.484, allocations: 194.9 MB / 201.1 MB, free: 4.762 MB / 168.6 MB Notification: Performance of FrontEnd - loaded program: time 0.2053/1.689, allocations: 46.45 MB / 247.6 MB, free: 4.738 MB / 200.6 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06703/1.756, allocations: 44.5 MB / 292.1 MB, free: 8.949 MB / 248.6 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.741/6.497, allocations: 2.66 GB / 2.945 GB, free: 62.4 MB / 392.6 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001797/6.498, allocations: 83.36 kB / 2.945 GB, free: 62.36 MB / 392.6 MB Notification: Performance of Generate backend data structure: time 4.071/10.57, allocations: 1.027 GB / 3.972 GB, free: 25.26 MB / 456.6 MB Notification: Performance of prepare preOptimizeDAE: time 6.108e-05/10.57, allocations: 10.47 kB / 3.972 GB, free: 25.26 MB / 456.6 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01563/10.58, allocations: 1.114 MB / 3.973 GB, free: 25.1 MB / 456.6 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007439/10.59, allocations: 2.204 MB / 3.976 GB, free: 24.61 MB / 456.6 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003043/10.59, allocations: 199.1 kB / 3.976 GB, free: 24.54 MB / 456.6 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008575/10.59, allocations: 152.8 kB / 3.976 GB, free: 24.54 MB / 456.6 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008463/10.6, allocations: 3.53 MB / 3.979 GB, free: 24.52 MB / 456.6 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009373/10.61, allocations: 3.715 MB / 3.983 GB, free: 23.94 MB / 456.6 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.049e-05/10.61, allocations: 7.844 kB / 3.983 GB, free: 23.94 MB / 456.6 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004247/10.61, allocations: 6.5 kB / 3.983 GB, free: 23.94 MB / 456.6 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002447/10.61, allocations: 232.2 kB / 3.983 GB, free: 23.93 MB / 456.6 MB 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.03137/10.64, allocations: 18.59 MB / 4.001 GB, free: 13.21 MB / 456.6 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003161/10.65, allocations: 1.527 MB / 4.003 GB, free: 13.19 MB / 456.6 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002858/10.65, allocations: 1.501 MB / 4.004 GB, free: 13.17 MB / 456.6 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04333/10.69, allocations: 17.43 MB / 4.021 GB, free: 18.62 MB / 472.6 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.489e-05/10.69, allocations: 53.16 kB / 4.021 GB, free: 18.58 MB / 472.6 MB Notification: Performance of pre-optimization done (n=194): time 7.746e-06/10.69, allocations: 6.453 kB / 4.021 GB, free: 18.58 MB / 472.6 MB Notification: Performance of matching and sorting (n=244): time 0.184/10.88, allocations: 19.17 MB / 4.04 GB, free: 16.82 MB / 472.6 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.436e-05/10.88, allocations: 134.1 kB / 4.04 GB, free: 16.7 MB / 472.6 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002571/10.88, allocations: 1.22 MB / 4.041 GB, free: 16.51 MB / 472.6 MB Notification: Performance of collectPreVariables (initialization): time 0.0006586/10.88, allocations: 25.7 kB / 4.041 GB, free: 16.48 MB / 472.6 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006882/10.88, allocations: 1.115 MB / 4.043 GB, free: 15.88 MB / 472.6 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009953/10.88, allocations: 0.7907 MB / 4.043 GB, free: 15.35 MB / 472.6 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003482/10.88, allocations: 0 / 4.043 GB, free: 15.35 MB / 472.6 MB Notification: Performance of setup shared object (initialization): time 0.0002519/10.88, allocations: 414.8 kB / 4.044 GB, free: 15.04 MB / 472.6 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003874/10.89, allocations: 2.039 MB / 4.046 GB, free: 15.03 MB / 472.6 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004258/10.89, allocations: 2.532 MB / 4.048 GB, free: 14.51 MB / 472.6 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02319/10.91, allocations: 4.566 MB / 4.053 GB, free: 14.46 MB / 472.6 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.656e-05/10.91, allocations: 2.875 kB / 4.053 GB, free: 14.46 MB / 472.6 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.06968/10.98, allocations: 10.21 MB / 4.063 GB, free: 14.22 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 0.002783/10.99, allocations: 5.3 MB / 4.068 GB, free: 8.688 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.913e-05/10.99, allocations: 14.19 kB / 4.068 GB, free: 8.688 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02889/11.02, allocations: 4.517 MB / 4.072 GB, free: 8.625 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003803/11.02, allocations: 372.5 kB / 4.073 GB, free: 8.621 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03434/11.05, allocations: 7.901 MB / 4.08 GB, free: 7.461 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008909/11.06, allocations: 416.2 kB / 4.081 GB, free: 7.418 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001277/11.06, allocations: 154 kB / 4.081 GB, free: 7.418 MB / 472.6 MB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/11.06, allocations: 2.281 kB / 4.081 GB, free: 7.418 MB / 472.6 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.04331/11.11, allocations: 6.762 MB / 4.087 GB, free: 7.254 MB / 472.6 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.661e-05/11.11, allocations: 18.12 kB / 4.087 GB, free: 7.25 MB / 472.6 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01874/11.13, allocations: 2.379 MB / 4.09 GB, free: 7.172 MB / 472.6 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002848/11.13, allocations: 488.8 kB / 4.09 GB, free: 7.164 MB / 472.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009089/11.14, allocations: 4.208 MB / 4.094 GB, free: 6.582 MB / 472.6 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00405/11.14, allocations: 385 kB / 4.095 GB, free: 6.543 MB / 472.6 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000507/11.14, allocations: 140.6 kB / 4.095 GB, free: 6.543 MB / 472.6 MB 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.0004304/11.14, allocations: 84.72 kB / 4.095 GB, free: 6.465 MB / 472.6 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.02008/11.16, allocations: 5.955 MB / 4.101 GB, free: 6.172 MB / 472.6 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003564/11.17, allocations: 0.697 MB / 4.101 GB, free: 6.062 MB / 472.6 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02342/11.19, allocations: 11.15 MB / 4.112 GB, free: 0.9648 MB / 472.6 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02025/11.21, allocations: 9.616 MB / 4.122 GB, free: 9.527 MB / 488.6 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.807e-05/11.21, allocations: 0.5625 kB / 4.122 GB, free: 9.527 MB / 488.6 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02001/11.23, allocations: 9.737 MB / 4.131 GB, free: 0.7773 MB / 488.6 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2266/11.46, allocations: 17.65 MB / 4.148 GB, free: 78.59 MB / 488.6 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.42e-05/11.46, allocations: 3.812 kB / 4.148 GB, free: 78.59 MB / 488.6 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00284/11.46, allocations: 423.1 kB / 4.149 GB, free: 78.59 MB / 488.6 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01086/11.47, allocations: 4.285 MB / 4.153 GB, free: 78.4 MB / 488.6 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006863/11.47, allocations: 73.48 kB / 4.153 GB, free: 78.4 MB / 488.6 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/11.49, allocations: 10.51 MB / 4.163 GB, free: 73.72 MB / 488.6 MB 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.005656/11.49, allocations: 2.806 MB / 4.166 GB, free: 73.14 MB / 488.6 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02697/11.52, allocations: 12.85 MB / 4.179 GB, free: 72.48 MB / 488.6 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00273/11.52, allocations: 0.8476 MB / 4.18 GB, free: 72.39 MB / 488.6 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008127/11.52, allocations: 16.33 kB / 4.18 GB, free: 72.39 MB / 488.6 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004236/11.53, allocations: 329.8 kB / 4.18 GB, free: 72.39 MB / 488.6 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006785/11.53, allocations: 231.1 kB / 4.18 GB, free: 72.38 MB / 488.6 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004034/11.53, allocations: 117.1 kB / 4.18 GB, free: 72.38 MB / 488.6 MB Notification: Performance of sort global known variables: time 0.001649/11.53, allocations: 0.8777 MB / 4.181 GB, free: 72.27 MB / 488.6 MB Notification: Performance of remove unused functions: time 0.01408/11.55, allocations: 3.738 MB / 4.185 GB, free: 72.27 MB / 488.6 MB Notification: Performance of Backend phase and start with SimCode phase: time 0.04367/11.59, allocations: 17.73 MB / 4.202 GB, free: 70.45 MB / 488.6 MB Notification: Performance of simCode: created initialization part: time 0.02075/11.61, allocations: 9.271 MB / 4.211 GB, free: 70.28 MB / 488.6 MB Notification: Performance of simCode: created event and clocks part: time 9.796e-06/11.61, allocations: 3.656 kB / 4.211 GB, free: 70.28 MB / 488.6 MB Notification: Performance of simCode: created simulation system equations: time 0.01055/11.62, allocations: 5.05 MB / 4.216 GB, free: 70.23 MB / 488.6 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005925/11.63, allocations: 0.9226 MB / 4.217 GB, free: 70.21 MB / 488.6 MB [/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 Modelica.Fluid.Examples.HeatingSystem could not be translated to FMU