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_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 1.947/1.947, allocations: 209.3 MB / 224.4 MB, free: 0.6602 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.629e-05/3.628e-05, allocations: 8 kB / 276.2 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3527/0.3528, allocations: 48.7 MB / 324.9 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1446/0.4974, allocations: 87.89 MB / 412.7 MB, free: 7.5 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.06969/0.5671, allocations: 35.24 MB / 448 MB, free: 4.18 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003964/0.5711, allocations: 111.1 kB / 448.1 MB, free: 4.07 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005018/0.5762, allocations: 1.147 MB / 449.2 MB, free: 2.918 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02306/0.5993, allocations: 5.643 MB / 454.9 MB, free: 13.26 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0242/0.6236, allocations: 6.546 MB / 461.4 MB, free: 6.695 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009006/0.6326, allocations: 3.535 MB / 465 MB, free: 3.16 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002876/0.6355, allocations: 1.283 MB / 466.2 MB, free: 1.875 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3899/1.026, allocations: 23.77 MB / 490 MB, free: 27.33 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05275/1.078, allocations: 23.73 MB / 0.5017 GB, free: 23.88 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0323/1.111, allocations: 11.99 MB / 0.5134 GB, free: 16.49 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005076/1.116, allocations: 0.5859 MB / 0.514 GB, free: 15.91 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002073/1.118, allocations: 0.8862 MB / 0.5149 GB, free: 15.56 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001905/1.12, allocations: 332 kB / 0.5152 GB, free: 15.23 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01646/1.136, allocations: 6.736 MB / 0.5218 GB, free: 12.03 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/1.136, allocations: 0 / 0.5218 GB, free: 12.03 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.729e-06/1.136, allocations: 1.406 kB / 0.5218 GB, free: 12.03 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001663/1.137, allocations: 0 / 0.5218 GB, free: 12.03 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.0153/1.152, allocations: 3.704 MB / 0.5254 GB, free: 9.059 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/1.152, allocations: 12.03 kB / 0.5254 GB, free: 9.047 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/1.162, allocations: 0.9587 MB / 0.5263 GB, free: 8.301 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005146/1.167, allocations: 1.709 MB / 0.528 GB, free: 7.016 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004652/1.168, allocations: 285.3 kB / 0.5283 GB, free: 6.816 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001085/1.169, allocations: 230.1 kB / 0.5285 GB, free: 6.668 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01494/1.184, allocations: 4.423 MB / 0.5328 GB, free: 3.305 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.407e-05/1.184, allocations: 3 kB / 0.5328 GB, free: 3.305 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004403/1.185, allocations: 106.3 kB / 0.5329 GB, free: 3.277 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004797/1.185, allocations: 268.7 kB / 0.5332 GB, free: 3.043 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01586/1.201, allocations: 4.184 MB / 0.5372 GB, free: 84 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.043/1.244, allocations: 18.85 MB / 0.5557 GB, free: 14.88 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01165/1.256, allocations: 2.772 MB / 0.5584 GB, free: 12.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05983/1.316, allocations: 17.22 MB / 0.5752 GB, free: 10.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.793e-05/1.316, allocations: 51.44 kB / 0.5752 GB, free: 9.973 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002266/1.318, allocations: 319.4 kB / 0.5755 GB, free: 9.684 MB / 458.7 MB Notification: Performance of pre-optimization done (n=179): time 9.147e-06/1.318, allocations: 0 / 0.5755 GB, free: 9.684 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.237/2.555, allocations: 73.16 MB / 0.647 GB, free: 7.918 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 1.099/3.654, allocations: 126.3 MB / 0.7703 GB, free: 139.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003244/3.657, allocations: 1.633 MB / 0.7719 GB, free: 138.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008482/3.658, allocations: 77.7 kB / 0.772 GB, free: 138 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009409/3.659, allocations: 1.114 MB / 0.773 GB, free: 136.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.001529/3.661, allocations: 0.9345 MB / 0.774 GB, free: 136 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005045/3.661, allocations: 64.03 kB / 0.774 GB, free: 135.9 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001802/3.662, allocations: 425 kB / 0.7744 GB, free: 135.5 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008264/3.67, allocations: 2.719 MB / 0.7771 GB, free: 132.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009377/3.679, allocations: 3.342 MB / 0.7803 GB, free: 129.2 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01181/3.691, allocations: 3.154 MB / 0.7834 GB, free: 126 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.172e-05/3.691, allocations: 4 kB / 0.7834 GB, free: 126 MB / 0.5105 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03168/3.723, allocations: 9.089 MB / 0.7923 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001456/3.724, allocations: 6.975 MB / 0.7991 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.159e-05/3.724, allocations: 16 kB / 0.7991 GB, free: 109.3 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1277/3.852, allocations: 15.85 MB / 0.8146 GB, free: 93.43 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00262/3.855, allocations: 355.4 kB / 0.8149 GB, free: 93.09 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03874/3.894, allocations: 10.79 MB / 0.8255 GB, free: 82.24 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008425/3.902, allocations: 427.4 kB / 0.8259 GB, free: 81.82 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001186/3.903, allocations: 179.9 kB / 0.8261 GB, free: 81.65 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/3.903, allocations: 8 kB / 0.8261 GB, free: 81.64 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03098/3.934, allocations: 8.534 MB / 0.8344 GB, free: 73.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.307e-05/3.935, allocations: 20 kB / 0.8344 GB, free: 73.04 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0476/3.982, allocations: 7.985 MB / 0.8422 GB, free: 65.04 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003294/3.985, allocations: 427.3 kB / 0.8426 GB, free: 64.62 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03716/4.023, allocations: 9.875 MB / 0.8523 GB, free: 54.69 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00693/4.03, allocations: 423.6 kB / 0.8527 GB, free: 54.28 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008593/4.031, allocations: 171.9 kB / 0.8528 GB, free: 54.11 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.002674/4.033, allocations: 0.796 MB / 0.8536 GB, free: 53.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001/4.034, allocations: 256.9 kB / 0.8539 GB, free: 53.05 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04461/4.079, allocations: 17.49 MB / 0.8709 GB, free: 35.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001508/4.079, allocations: 115.8 kB / 0.871 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/4.079, allocations: 3.938 kB / 0.871 GB, free: 35.38 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.04492/4.124, allocations: 15.69 MB / 0.8864 GB, free: 19.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4443/4.568, allocations: 27.02 MB / 0.9128 GB, free: 220.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-05/4.569, allocations: 2.625 kB / 0.9128 GB, free: 220.7 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/4.57, allocations: 210.3 kB / 0.913 GB, free: 220.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.1477/4.718, allocations: 27.44 MB / 0.9398 GB, free: 215.7 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008652/4.719, allocations: 99.48 kB / 0.9398 GB, free: 215.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04212/4.761, allocations: 16.05 MB / 0.9555 GB, free: 201.7 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.08163/4.843, allocations: 14.33 MB / 0.9695 GB, free: 187.5 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05496/4.898, allocations: 22.62 MB / 0.9916 GB, free: 165 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003522/4.901, allocations: 1.104 MB / 0.9927 GB, free: 164 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001359/4.903, allocations: 63.98 kB / 0.9927 GB, free: 164 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007574/4.91, allocations: 466.2 kB / 0.9932 GB, free: 163.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001213/4.912, allocations: 258 kB / 0.9934 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005745/4.912, allocations: 135.9 kB / 0.9936 GB, free: 163.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002726/4.915, allocations: 1.262 MB / 0.9948 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.334e-06/4.915, allocations: 0 / 0.9948 GB, free: 161.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01636/4.931, allocations: 4.027 MB / 0.9987 GB, free: 158.1 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.02028/4.952, allocations: 3.167 MB / 1.002 GB, free: 155.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05791/5.01, allocations: 12.73 MB / 1.014 GB, free: 142.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.019e-05/5.01, allocations: 2.625 kB / 1.014 GB, free: 142.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.02556/5.035, allocations: 5.966 MB / 1.02 GB, free: 136.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009393/5.045, allocations: 1.016 MB / 1.021 GB, free: 135.7 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]