Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.m|m_flow|T_forward|T_return|tankLevel|tank.ports.1..m_flow|tank.ports.1..p|tank.ports.1..h_outflow|tank.ports.2..m_flow|tank.ports.2..p|tank.ports.2..h_outflow|tank.portsData.1..diameter|tank.portsData.1..height|tank.portsData.1..zeta_out|tank.portsData.1..zeta_in|tank.portsData.2..diameter|tank.portsData.2..height|tank.portsData.2..zeta_out|tank.portsData.2..zeta_in|tank.ports_H_flow.1.|tank.ports_H_flow.2.|tank.ports_E_flow.1.|tank.ports_E_flow.2.|tank.ports_penetration.1.|tank.ports_penetration.2.|tank.portsData_diameter_internal.1.|tank.portsData_diameter_internal.2.|tank.portsData_height_internal.1.|tank.portsData_height_internal.2.|tank.portsData_zeta_in_internal.1.|tank.portsData_zeta_in_internal.2.|tank.portsData_zeta_out_internal.1.|tank.portsData_zeta_out_internal.2.|tank.portsData_diameter.1.|tank.portsData_diameter.2.|tank.portsData_height.1.|tank.portsData_height.2.|tank.portsData_zeta_in.1.|tank.portsData_zeta_in.2.|tank.portsData_zeta_out.1.|tank.portsData_zeta_out.2.|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valve.port_b.m_flow|valve.port_b.p|valve.port_b.h_outflow|valve.minLimiter.y|sensor_m_flow.port_b.m_flow|sensor_m_flow.port_b.p|sensor_m_flow.port_b.h_outflow|heater.port_b.m_flow|heater.port_b.p|heater.port_b.h_outflow|radiator.port_b.m_flow|radiator.port_b.p|radiator.port_b.h_outflow|handle.y|pipe.port_b.m_flow|pipe.port_b.p|pipe.port_b.h_outflow",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.3 MB / 223.8 MB, free: 0.5195 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.428e-05/3.431e-05, allocations: 0 / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3587/0.3587, allocations: 48.71 MB / 324.9 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1723/0.5311, allocations: 87.9 MB / 412.8 MB, free: 7.414 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.07444/0.6056, allocations: 35.24 MB / 448 MB, free: 4.094 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004612/0.6103, allocations: 111.1 kB / 448.1 MB, free: 3.984 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005668/0.616, allocations: 1.151 MB / 449.3 MB, free: 2.828 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02358/0.6396, allocations: 5.643 MB / 454.9 MB, free: 13.17 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02442/0.6641, allocations: 6.553 MB / 461.5 MB, free: 6.605 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009958/0.6741, allocations: 3.538 MB / 465 MB, free: 3.066 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003396/0.6775, allocations: 1.283 MB / 466.3 MB, free: 1.781 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.4018/1.079, allocations: 23.75 MB / 490 MB, free: 27.43 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05627/1.136, allocations: 23.72 MB / 0.5017 GB, free: 23.95 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03158/1.167, allocations: 11.99 MB / 0.5134 GB, free: 16.55 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005014/1.172, allocations: 0.5859 MB / 0.514 GB, free: 15.97 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00205/1.174, allocations: 0.8859 MB / 0.5149 GB, free: 15.62 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001825/1.176, allocations: 332 kB / 0.5152 GB, free: 15.3 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01698/1.193, allocations: 6.739 MB / 0.5218 GB, free: 12.09 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/1.193, allocations: 0 / 0.5218 GB, free: 12.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.36e-06/1.193, allocations: 0 / 0.5218 GB, free: 12.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001987/1.194, allocations: 4.031 kB / 0.5218 GB, free: 12.09 MB / 410.7 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.01642/1.21, allocations: 3.7 MB / 0.5254 GB, free: 9.121 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/1.21, allocations: 8.031 kB / 0.5254 GB, free: 9.113 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0102/1.22, allocations: 0.9605 MB / 0.5263 GB, free: 8.371 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005263/1.226, allocations: 1.712 MB / 0.528 GB, free: 7.082 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004683/1.226, allocations: 278.5 kB / 0.5283 GB, free: 6.887 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/1.227, allocations: 236 kB / 0.5285 GB, free: 6.734 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01522/1.242, allocations: 4.413 MB / 0.5328 GB, free: 3.375 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.406e-05/1.243, allocations: 7.562 kB / 0.5328 GB, free: 3.371 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005271/1.243, allocations: 102.6 kB / 0.5329 GB, free: 3.348 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004978/1.244, allocations: 280.3 kB / 0.5332 GB, free: 3.105 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01584/1.259, allocations: 4.177 MB / 0.5373 GB, free: 156 kB / 410.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.04498/1.304, allocations: 18.86 MB / 0.5557 GB, free: 14.94 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0117/1.316, allocations: 2.777 MB / 0.5584 GB, free: 13.01 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06037/1.377, allocations: 17.21 MB / 0.5752 GB, free: 10.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.956e-05/1.377, allocations: 53.31 kB / 0.5752 GB, free: 10.04 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002242/1.379, allocations: 316.9 kB / 0.5755 GB, free: 9.754 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 6.202e-06/1.379, allocations: 0 / 0.5755 GB, free: 9.754 MB / 458.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: tank.medium.h 2: radiator.mediums[1].h 3: pump.medium.h 4: pump.medium.p 5: heater.mediums[1].h 6: radiator.mediums[1].p 7: pipe.mediums[2].p 8: pipe.mediums[2].h 9: heater.mediums[1].p 10: pipe.mediums[1].p 11: pipe.mediums[1].h Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=281): time 1.282/2.661, allocations: 73.15 MB / 0.647 GB, free: 7.98 MB / 0.5105 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 0.9908/3.652, allocations: 126.3 MB / 0.7703 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003054/3.655, allocations: 1.632 MB / 0.7719 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0007861/3.656, allocations: 73.7 kB / 0.772 GB, free: 138 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008812/3.657, allocations: 1.197 MB / 0.7731 GB, free: 136.8 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001253/3.658, allocations: 0.9317 MB / 0.774 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004704/3.658, allocations: 56 kB / 0.7741 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001719/3.659, allocations: 428.1 kB / 0.7745 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0082/3.667, allocations: 2.719 MB / 0.7771 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009028/3.676, allocations: 3.342 MB / 0.7804 GB, free: 129.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01095/3.687, allocations: 3.152 MB / 0.7835 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.049e-05/3.687, allocations: 4 kB / 0.7835 GB, free: 125.9 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03057/3.718, allocations: 9.22 MB / 0.7925 GB, free: 116.6 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001747/3.719, allocations: 7.238 MB / 0.7996 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.21e-05/3.72, allocations: 20 kB / 0.7996 GB, free: 108.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1108/3.83, allocations: 15.84 MB / 0.8151 GB, free: 92.93 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002553/3.833, allocations: 359.4 kB / 0.8154 GB, free: 92.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03712/3.87, allocations: 10.79 MB / 0.8259 GB, free: 81.74 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007806/3.878, allocations: 435.4 kB / 0.8263 GB, free: 81.31 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009906/3.879, allocations: 179.9 kB / 0.8265 GB, free: 81.14 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/3.879, allocations: 4 kB / 0.8265 GB, free: 81.13 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02984/3.909, allocations: 8.534 MB / 0.8349 GB, free: 72.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.234e-05/3.909, allocations: 16 kB / 0.8349 GB, free: 72.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05045/3.959, allocations: 8.77 MB / 0.8434 GB, free: 63.75 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/3.963, allocations: 427.3 kB / 0.8438 GB, free: 63.33 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03341/3.996, allocations: 9.768 MB / 0.8534 GB, free: 53.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00739/4.004, allocations: 411.7 kB / 0.8538 GB, free: 53.1 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009938/4.005, allocations: 179.9 kB / 0.8539 GB, free: 52.93 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (181): * Single equations (assignments): 179 * Array equations: 0 * 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 {16 79,18 85} Notification: Performance of prepare postOptimizeDAE: time 0.002927/4.008, allocations: 0.7999 MB / 0.8547 GB, free: 52.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001054/4.009, allocations: 264.8 kB / 0.855 GB, free: 51.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04325/4.052, allocations: 17.48 MB / 0.872 GB, free: 34.31 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001738/4.052, allocations: 119.8 kB / 0.8722 GB, free: 34.2 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/4.052, allocations: 0 / 0.8722 GB, free: 34.2 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03647/4.089, allocations: 15.69 MB / 0.8875 GB, free: 18.38 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3607/4.449, allocations: 27.02 MB / 0.9139 GB, free: 220.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-05/4.449, allocations: 1.219 kB / 0.9139 GB, free: 220.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001734/4.451, allocations: 210.9 kB / 0.9141 GB, free: 220.8 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1265/4.578, allocations: 27.44 MB / 0.9409 GB, free: 215.2 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009528/4.579, allocations: 105 kB / 0.941 GB, free: 215.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04209/4.621, allocations: 16.05 MB / 0.9566 GB, free: 200.9 MB / 0.5105 GB Error: Internal error IndexReduction.pantelidesIndexReduction failed! System is structurally singular and cannot be handled because the number of unassigned equations is larger than the number of states. Use -d=bltdump to get more information. Error: Internal error Transformation Module PFPlusExt index Reduction Method Pantelides failed! Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.08167/4.703, allocations: 14.33 MB / 0.9706 GB, free: 186.7 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05304/4.756, allocations: 22.61 MB / 0.9927 GB, free: 164.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003425/4.759, allocations: 1.104 MB / 0.9938 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001196/4.76, allocations: 59.98 kB / 0.9939 GB, free: 163.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007043/4.767, allocations: 459.3 kB / 0.9943 GB, free: 162.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009456/4.768, allocations: 267.1 kB / 0.9945 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005183/4.769, allocations: 132.5 kB / 0.9947 GB, free: 162.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002429/4.771, allocations: 1.274 MB / 0.9959 GB, free: 161 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5.11e-07/4.771, allocations: 0 / 0.9959 GB, free: 161 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01607/4.788, allocations: 4.021 MB / 0.9998 GB, free: 157.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 ($STATESET1.x) * Number of discrete variables: 60 ($cse87.phase,$cse87.region,$cse90.phase,$cse90.region,$cse91.phase,$cse91.region,$cse93.phase,$cse93.region,$cse95.phase,$cse95.region,$cse96.region3boundary,$cse97.region3boundary,$cse98.phase,$cse98.region,$cse99.phase,$cse99.region,$cse103.phase,$cse103.region,$cse104.phase,$cse104.region,$cse105.region3boundary,$cse106.region3boundary,$cse107.phase,$cse107.region,$cse114.phase,$cse114.region,$cse115.phase,$cse115.region,$cse116.region3boundary,$cse117.region3boundary,$cse118.phase,$cse118.region,$cse128.phase,$cse128.region,$cse129.phase,$cse129.region,$cse130.phase,$cse130.region,$cse131.phase,$cse131.region,$cse132.region3boundary,$cse133.region3boundary,$cse134.phase,$cse134.region,$cse135.region3boundary,$cse136.region3boundary,$cse137.phase,$cse137.region,$cse144.phase,$cse144.region,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) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (105): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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 {15 83,20 123} Notification: Performance of Backend phase and start with SimCode phase: time 0.01955/4.807, allocations: 3.175 MB / 1.003 GB, free: 154.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05621/4.863, allocations: 12.8 MB / 1.015 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.264e-05/4.863, allocations: 0 / 1.015 GB, free: 141.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02411/4.888, allocations: 5.975 MB / 1.021 GB, free: 135.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008938/4.897, allocations: 1.028 MB / 1.022 GB, free: 134.8 MB / 0.5105 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:4485:9-4485:59:writable] Error: Internal error function createStateSetsSets failed. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:742:5-742:146:writable] Error: Internal error function createSimCode failed [Transformation from optimised DAE to simulation code structure failed]