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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 2.479/2.479, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.928e-05/2.924e-05, allocations: 4 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3992/0.3993, allocations: 54.85 MB / 362.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1522/0.5516, allocations: 88.58 MB / 451.4 MB, free: 5.078 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.07749/0.6291, allocations: 35.46 MB / 486.9 MB, free: 1.547 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004708/0.6339, allocations: 111.1 kB / 487 MB, free: 1.438 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005312/0.6392, allocations: 1.143 MB / 488.1 MB, free: 296 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02477/0.6641, allocations: 5.697 MB / 493.8 MB, free: 10.57 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02663/0.6907, allocations: 6.611 MB / 0.4887 GB, free: 3.949 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.009742/0.7005, allocations: 3.585 MB / 0.4922 GB, free: 360 kB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3805/1.081, allocations: 1.283 MB / 0.4935 GB, free: 10.78 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05619/1.137, allocations: 24.02 MB / 0.5169 GB, free: 10.48 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05801/1.195, allocations: 24.32 MB / 0.5407 GB, free: 9.402 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0353/1.231, allocations: 12.19 MB / 0.5526 GB, free: 1.934 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005288/1.236, allocations: 0.6016 MB / 0.5532 GB, free: 1.332 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002296/1.238, allocations: 0.8862 MB / 0.554 GB, free: 0.9102 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001917/1.24, allocations: 332 kB / 0.5544 GB, free: 0.5859 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01894/1.259, allocations: 6.798 MB / 0.561 GB, free: 10.81 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/1.259, allocations: 6.953 kB / 0.561 GB, free: 10.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.046e-06/1.259, allocations: 0 / 0.561 GB, free: 10.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001699/1.26, allocations: 0 / 0.561 GB, free: 10.8 MB / 458.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.01662/1.276, allocations: 3.767 MB / 0.5647 GB, free: 7.277 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/1.276, allocations: 12.03 kB / 0.5647 GB, free: 7.266 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01088/1.287, allocations: 0.9842 MB / 0.5657 GB, free: 6.348 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005717/1.293, allocations: 1.715 MB / 0.5673 GB, free: 5.059 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005111/1.294, allocations: 282.1 kB / 0.5676 GB, free: 4.859 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/1.295, allocations: 236.7 kB / 0.5678 GB, free: 4.707 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0155/1.31, allocations: 4.41 MB / 0.5721 GB, free: 1.348 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.92e-05/1.31, allocations: 6.438 kB / 0.5721 GB, free: 1.344 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004466/1.311, allocations: 103 kB / 0.5722 GB, free: 1.32 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005685/1.311, allocations: 272.3 kB / 0.5725 GB, free: 1.086 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01631/1.328, allocations: 4.191 MB / 0.5766 GB, free: 14.12 MB / 474.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.04211/1.37, allocations: 18.86 MB / 0.595 GB, free: 12.91 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01147/1.381, allocations: 2.754 MB / 0.5977 GB, free: 10.99 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06162/1.443, allocations: 17.21 MB / 0.6145 GB, free: 8.07 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.549e-05/1.443, allocations: 58.19 kB / 0.6146 GB, free: 8.023 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002259/1.446, allocations: 320.7 kB / 0.6149 GB, free: 7.73 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=179): time 8.215e-06/1.446, allocations: 4 kB / 0.6149 GB, free: 7.727 MB / 0.4948 GB 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.212/2.658, allocations: 73.15 MB / 0.6863 GB, free: 5.965 MB / 0.5573 GB Error: Jacobian StateSetJac0 contains non-linear components. This indicates a singular system or internal generation errors. Notification: Performance of inlineWhenForInitialization (initialization): time 1.04/3.698, allocations: 126.4 MB / 0.8098 GB, free: 153.3 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003432/3.701, allocations: 1.633 MB / 0.8114 GB, free: 151.7 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008495/3.702, allocations: 73.7 kB / 0.8115 GB, free: 151.6 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009423/3.703, allocations: 1.12 MB / 0.8125 GB, free: 150.5 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001611/3.705, allocations: 0.9379 MB / 0.8135 GB, free: 149.5 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005204/3.705, allocations: 60 kB / 0.8135 GB, free: 149.5 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001973/3.706, allocations: 432.9 kB / 0.8139 GB, free: 149 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008498/3.714, allocations: 2.716 MB / 0.8166 GB, free: 146.3 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009219/3.723, allocations: 3.342 MB / 0.8198 GB, free: 142.7 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/3.735, allocations: 3.144 MB / 0.8229 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-05/3.735, allocations: 8 kB / 0.8229 GB, free: 139.6 MB / 0.5573 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03109/3.766, allocations: 9.094 MB / 0.8318 GB, free: 130.4 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.001509/3.768, allocations: 6.966 MB / 0.8386 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-05/3.768, allocations: 20 kB / 0.8386 GB, free: 122.9 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1098/3.877, allocations: 15.85 MB / 0.8541 GB, free: 107 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002628/3.88, allocations: 351.4 kB / 0.8544 GB, free: 106.7 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03777/3.918, allocations: 10.78 MB / 0.865 GB, free: 95.83 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008014/3.926, allocations: 435.4 kB / 0.8654 GB, free: 95.4 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001053/3.927, allocations: 175.9 kB / 0.8656 GB, free: 95.23 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/3.927, allocations: 7.938 kB / 0.8656 GB, free: 95.22 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03001/3.957, allocations: 8.542 MB / 0.8739 GB, free: 86.64 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.223e-05/3.957, allocations: 16 kB / 0.8739 GB, free: 86.62 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04697/4.004, allocations: 7.988 MB / 0.8817 GB, free: 78.62 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003261/4.008, allocations: 423.4 kB / 0.8821 GB, free: 78.2 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03438/4.042, allocations: 9.88 MB / 0.8918 GB, free: 68.27 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006926/4.049, allocations: 423.6 kB / 0.8922 GB, free: 67.85 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009897/4.05, allocations: 171.9 kB / 0.8923 GB, free: 67.68 MB / 0.5573 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.002881/4.053, allocations: 0.796 MB / 0.8931 GB, free: 66.88 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009943/4.054, allocations: 260.9 kB / 0.8934 GB, free: 66.62 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04348/4.097, allocations: 17.47 MB / 0.9104 GB, free: 49.08 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001504/4.098, allocations: 119.8 kB / 0.9105 GB, free: 48.96 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/4.098, allocations: 0 / 0.9105 GB, free: 48.96 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03774/4.135, allocations: 15.69 MB / 0.9259 GB, free: 33.15 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06627/4.202, allocations: 27.03 MB / 0.9523 GB, free: 6.047 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.657e-05/4.202, allocations: 0 / 0.9523 GB, free: 6.047 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/4.203, allocations: 215.9 kB / 0.9525 GB, free: 5.836 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4562/4.66, allocations: 27.43 MB / 0.9792 GB, free: 245.6 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008552/4.661, allocations: 103 kB / 0.9793 GB, free: 245.5 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04229/4.703, allocations: 16.06 MB / 0.995 GB, free: 230.5 MB / 0.5573 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.1294/4.832, allocations: 14.33 MB / 1.009 GB, free: 216.4 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05354/4.886, allocations: 22.62 MB / 1.031 GB, free: 193.9 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003459/4.889, allocations: 1.111 MB / 1.032 GB, free: 193 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001248/4.891, allocations: 56 kB / 1.032 GB, free: 192.9 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007497/4.898, allocations: 462.9 kB / 1.033 GB, free: 192.5 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001077/4.899, allocations: 262.3 kB / 1.033 GB, free: 192.2 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005335/4.9, allocations: 127.9 kB / 1.033 GB, free: 192.1 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002523/4.902, allocations: 1.274 MB / 1.034 GB, free: 190.8 MB / 0.5573 GB Notification: Performance of sort global known variables: time 7.51e-07/4.902, allocations: 0 / 1.034 GB, free: 190.8 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0157/4.918, allocations: 4.027 MB / 1.038 GB, free: 187.1 MB / 0.5573 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.01948/4.938, allocations: 3.177 MB / 1.041 GB, free: 184.4 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05671/4.994, allocations: 12.74 MB / 1.054 GB, free: 171.6 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 9.889e-06/4.995, allocations: 0 / 1.054 GB, free: 171.6 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02471/5.019, allocations: 5.954 MB / 1.06 GB, free: 165.7 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00911/5.028, allocations: 1.015 MB / 1.061 GB, free: 164.7 MB / 0.5573 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]