Notification: Performance of FrontEnd - loaded program: time 2.662e-05/2.681e-05, allocations: 0 / 2.931 GB, free: 48.3 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1053, allocations: 44.53 MB / 2.975 GB, free: 30.79 MB / 334.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.224/7.33, allocations: 2.66 GB / 5.635 GB, free: 81.82 MB / 398.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001923/7.33, allocations: 75.02 kB / 5.635 GB, free: 81.82 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.179/12.51, allocations: 1.014 GB / 6.649 GB, free: 15.2 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.765e-06/12.51, allocations: 0 / 6.649 GB, free: 15.2 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0004121/12.51, allocations: 75.77 kB / 6.649 GB, free: 15.13 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 670 * Number of variables: 670 Notification: Performance of Generate backend data structure: time 0.2059/12.72, allocations: 4.377 MB / 6.653 GB, free: 37 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/12.72, allocations: 11.12 kB / 6.653 GB, free: 37 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01634/12.73, allocations: 1.03 MB / 6.654 GB, free: 36.84 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/12.74, allocations: 2.203 MB / 6.656 GB, free: 36.36 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006608/12.74, allocations: 206.4 kB / 6.657 GB, free: 36.29 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001539/12.75, allocations: 142.4 kB / 6.657 GB, free: 36.29 MB / 462.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02732/12.77, allocations: 3.426 MB / 6.66 GB, free: 36.28 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01459/12.79, allocations: 3.636 MB / 6.664 GB, free: 35.69 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001332/12.79, allocations: 8.219 kB / 6.664 GB, free: 35.69 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006489/12.79, allocations: 6.625 kB / 6.664 GB, free: 35.69 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004581/12.79, allocations: 220.1 kB / 6.664 GB, free: 35.68 MB / 462.1 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.06705/12.86, allocations: 18.45 MB / 6.682 GB, free: 24.96 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01539/12.87, allocations: 2.259 MB / 6.684 GB, free: 24.93 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003879/12.88, allocations: 1.442 MB / 6.686 GB, free: 24.92 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0527/12.93, allocations: 17.06 MB / 6.702 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.198e-05/12.93, allocations: 55.81 kB / 6.702 GB, free: 14.35 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002515/12.93, allocations: 174.7 kB / 6.702 GB, free: 14.27 MB / 462.1 MB Notification: Performance of pre-optimization done (n=194): time 1.669e-05/12.93, allocations: 0 / 6.702 GB, free: 14.27 MB / 462.1 MB Notification: Performance of matching and sorting (n=244): time 0.2568/13.19, allocations: 18.44 MB / 6.72 GB, free: 12.54 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/13.19, allocations: 128.5 kB / 6.721 GB, free: 12.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003671/13.19, allocations: 1.208 MB / 6.722 GB, free: 12.24 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000813/13.19, allocations: 28.45 kB / 6.722 GB, free: 12.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001314/13.19, allocations: 1.165 MB / 6.723 GB, free: 11.66 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001656/13.2, allocations: 0.7875 MB / 6.724 GB, free: 11.13 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005383/13.2, allocations: 4.906 kB / 6.724 GB, free: 11.13 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0004095/13.2, allocations: 412.3 kB / 6.724 GB, free: 10.82 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005848/13.2, allocations: 1.848 MB / 6.726 GB, free: 10.82 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006197/13.21, allocations: 2.349 MB / 6.728 GB, free: 10.3 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.02474/13.23, allocations: 4.312 MB / 6.732 GB, free: 10.25 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-05/13.23, allocations: 3.625 kB / 6.732 GB, free: 10.25 MB / 462.1 MB Notification: Performance of matching and sorting (n=339) (initialization): time 0.06177/13.3, allocations: 9.329 MB / 6.741 GB, free: 9.961 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00283/13.3, allocations: 5.435 MB / 6.747 GB, free: 4.418 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.172e-05/13.3, allocations: 15.34 kB / 6.747 GB, free: 4.418 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01631/13.32, allocations: 4.289 MB / 6.751 GB, free: 4.367 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002082/13.32, allocations: 376.8 kB / 6.751 GB, free: 4.363 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01769/13.34, allocations: 7.038 MB / 6.758 GB, free: 19.22 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005208/13.34, allocations: 403.7 kB / 6.759 GB, free: 19.21 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008358/13.34, allocations: 152.6 kB / 6.759 GB, free: 19.21 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/13.34, allocations: 6.188 kB / 6.759 GB, free: 19.21 MB / 478.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02571/13.37, allocations: 6.381 MB / 6.765 GB, free: 19.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.057e-05/13.37, allocations: 16.16 kB / 6.765 GB, free: 19.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0118/13.38, allocations: 2.395 MB / 6.767 GB, free: 19.05 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003018/13.38, allocations: 483.3 kB / 6.768 GB, free: 19.05 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007836/13.39, allocations: 3.754 MB / 6.771 GB, free: 18.46 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004529/13.39, allocations: 384.7 kB / 6.772 GB, free: 18.45 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005907/13.4, allocations: 130.8 kB / 6.772 GB, free: 18.45 MB / 478.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.tank.ports[2].p:DUMMY_DER(flow=false fixed = false ) "Thermodynamic pressure in the connection point" type: Real [2] $DER.pump.medium.h:DUMMY_DER(fixed = false ) "Specific enthalpy of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 19 (radiator.state_b.phase,radiator.state_a.phase,heater.state_b.phase,heater.state_a.phase,tank.heatTransfer.states[1].phase,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],pump.heatTransfer.states[1].phase,heater.statesFM[2].phase,radiator.statesFM[2].phase,pipe.statesFM[1].phase,pipe.statesFM[2].phase,pipe.state_b.phase,pipe.state_a.phase,valve.state_b.phase,valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (182): * Single equations (assignments): 178 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 10,19 122} Notification: Performance of prepare postOptimizeDAE: time 0.001062/13.4, allocations: 177.4 kB / 6.772 GB, free: 18.32 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007772/13.4, allocations: 216.3 kB / 6.772 GB, free: 18.21 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02883/13.43, allocations: 11.62 MB / 6.784 GB, free: 17.33 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0293/13.46, allocations: 10.38 MB / 6.794 GB, free: 16.49 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-05/13.46, allocations: 0 / 6.794 GB, free: 16.49 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03149/13.49, allocations: 10.5 MB / 6.804 GB, free: 7.246 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06639/13.55, allocations: 18.44 MB / 6.822 GB, free: 8.551 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.716e-05/13.55, allocations: 5.875 kB / 6.822 GB, free: 8.547 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004202/13.56, allocations: 435.6 kB / 6.823 GB, free: 8.219 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01736/13.57, allocations: 5.177 MB / 6.828 GB, free: 4.23 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009313/13.58, allocations: 66.81 kB / 6.828 GB, free: 4.191 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2291/13.8, allocations: 11.22 MB / 6.839 GB, free: 61.83 MB / 494.1 MB [/mnt/btrfs/@workspace/LibraryExperimental/OpenModelica/build/lib/omlibrary/Modelica 3.2.2/Media/Water/package.mo:195:9-196:60:writable] Error: Model is structurally singular, error found sorting equations 28: tank.heatTransfer.states[1].phase = if tank.medium.h < $cse1.h or tank.medium.h > $cse2.h or tank.p_ambient > 22064000.0 then 1 else 2; 37: $cse31 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(pump.p_b_nominal, pump.medium.h, 0, 0); 35: heater.statesFM[1].T = $cse31.T; 18: $cse21 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(heater.mediums[1].p, heater.mediums[1].h, heater.statesFM[2].phase, 0); 19: heater.statesFM[2].phase = if heater.mediums[1].h < $cse19.h or heater.mediums[1].h > $cse20.h or heater.mediums[1].p > 22064000.0 then 1 else 2; 17: heater.heatTransfer.Ts[1] = $cse21.T; 14: heater.flowModel.Fs_p[1] = heater.crossAreas[1] * (heater.mediums[1].p - pump.p_b_nominal) * heater.flowModel.nParallel; 36: heater.statesFM[1].d = $cse31.rho; 34: heater.flowModel.mus[1] = Modelica.Media.Water.IF97_Utilities.dynamicViscosity(heater.statesFM[1].d, heater.statesFM[1].T, pump.p_b_nominal, 0); 16: heater.statesFM[2].d = $cse21.rho; 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]); 12: $cse53 = 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); 29: tank.ports_penetration[2] = Modelica.Fluid.Utilities.regStep(tank.level + (-0.1) * tank.portsData[2].diameter - tank.portsData[2].height, 1.0, 0.001, 0.1 * tank.portsData[2].diameter); 11: m_flow = $cse53 * heater.flowModel.nParallel; 40: $STATESET1.J[3] = -(if tank.regularFlow[2] then tank.ports[2].p - (tank.vessel_ps_static[2] + 0.5 * tank.portAreas[2] ^ (-2.0) * Modelica.Fluid.Utilities.regSquare2(-m_flow, tank.m_flow_small, (-1.0 + tank.portsData[2].zeta_in + (tank.portAreas[2] / tank.vesselArea) ^ 2.0) * tank.ports_penetration[2] / tank.portInDensities[2], (1.0 + tank.portsData[2].zeta_out - (tank.portAreas[2] / tank.vesselArea) ^ 2.0) / (tank.ports_penetration[2] * tank.heatTransfer.states[1].d), false, 1.0)) else if tank.inFlow[2] then tank.ports[2].p - tank.vessel_ps_static[2] else -m_flow); 22: tank.portInDensities[2] = $cse7.rho; 25: $cse5 = max(0.0, tank.level - tank.portsData[2].height); 23: $cse7 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(tank.vessel_ps_static[2], tank.medium.h, 0, 0); 27: $cse3 = Modelica.Media.Water.IF97_Utilities.waterBaseProp_ph(tank.p_ambient, tank.medium.h, tank.heatTransfer.states[1].phase, 0); 24: tank.vessel_ps_static[2] = $cse5 * system.g * tank.heatTransfer.states[1].d + tank.p_ambient; 26: tank.heatTransfer.states[1].d = $cse3.rho; for variables $cse3.cv(43), $cse31.T(3), $cse31.x(4), $cse31.phase(5), $cse31.vp(6), $cse31.h(7), $cse31.cp(8), $cse31.s(9), $cse31.R(10), $cse31.pt(11), $cse31.p(12), $cse31.rho(13), $cse31.vt(14), $cse31.dpT(15), $cse31.region(16), $cse31.cv(17), $cse10.dpT(28), $cse10.cp(23), $cse21.pt(113), $cse21.rho(115), $cse21.h(111), $cse21.vt(107), $cse20.region3boundary(104), $cse20.R(103), $cse21.dpT(106), $cse20.s(101), $cse21.cp(108), $cse21.region(112), $cse21.R(116), $cse21.cv(117), $cse21.phase(118), $cse21.x(119), $cse21.T(120), pump.V_flow(130), $cse21.p(109), $cse12(133), pump.Hb_flow(129), pump.heatTransfer.states[1].phase(22), $cse10.vp(30), pump.V_flow_single(132), m_flow(128), $cse21.s(121), heater.heatTransfer.Ts[1](122), $cse10.vt(37), heater.flowModel.dps_fg[1](126), $cse7.cp(76), tank.heatTransfer.states[1].d(59), $cse7.region(71), $cse7.s(73), $cse7.dpT(68), $cse7.h(62), $cse7.vt(72), $cse7.pd(77), $cse7.pt(66), $cse7.rho(74), tank.vessel_ps_static[2](61), $cse7.T(75), $cse7.cv(63), $cse7.R(65), $cse7.x(67), $cse7.p(64), $cse7.vp(69), $cse7.phase(70), tank.regularFlow[2](40), $cse10.cv(38), pump.rho(39), $cse3.phase(46), $cse3.region(44), $cse3.h(58), $cse3.rho(57), $cse3.p(56), $cse3.R(55), $cse3.vp(52), $cse3.x(48), $cse3.pt(50), $cse5(60), $cse3.s(49), $cse3.pd(54), $cse3.cp(51), pump.N(139), $cse3.T(53), $cse19.cv(80) Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.01167/13.82, allocations: 3.487 MB / 6.842 GB, free: 61.25 MB / 494.1 MB Error: Jacobian A contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of postOpt symbolicJacobian (simulation): time 4.855/18.67, allocations: 341.8 MB / 7.176 GB, free: 6.184 MB / 494.1 MB Error: post-optimization module symbolicJacobian (simulation) failed.