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_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState") Notification: Performance of loadModel(ModelicaTest): time 2.501/2.501, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.152e-05/4.162e-05, allocations: 0 / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3952/0.3953, allocations: 54.86 MB / 362.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_SteadyState): time 0.1503/0.5456, allocations: 88.59 MB / 451.5 MB, free: 4.836 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.09523/0.6409, allocations: 35.47 MB / 486.9 MB, free: 1.301 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003832/0.6448, allocations: 107.1 kB / 487 MB, free: 1.195 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004977/0.6498, allocations: 1.143 MB / 488.2 MB, free: 48 kB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0238/0.6737, allocations: 5.705 MB / 493.9 MB, free: 10.32 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02618/0.6999, allocations: 6.604 MB / 0.4888 GB, free: 3.707 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.009461/0.7094, allocations: 3.577 MB / 0.4922 GB, free: 120 kB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3779/1.087, allocations: 1.287 MB / 0.4935 GB, free: 10.66 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06004/1.147, allocations: 24.02 MB / 0.517 GB, free: 10.36 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06269/1.21, allocations: 23.96 MB / 0.5404 GB, free: 8.465 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04227/1.253, allocations: 12.18 MB / 0.5523 GB, free: 1 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005083/1.258, allocations: 0.5977 MB / 0.5528 GB, free: 412 kB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002178/1.26, allocations: 0.8912 MB / 0.5537 GB, free: 56 kB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004247/1.264, allocations: 470.8 kB / 0.5542 GB, free: 0 / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01949/1.284, allocations: 6.836 MB / 0.5608 GB, free: 10.73 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.082e-06/1.284, allocations: 0 / 0.5608 GB, free: 10.73 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.284, allocations: 3.828 kB / 0.5608 GB, free: 10.73 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001747/1.284, allocations: 0 / 0.5608 GB, free: 10.73 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.01737/1.301, allocations: 3.763 MB / 0.5645 GB, free: 7.207 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.491e-05/1.302, allocations: 12.03 kB / 0.5645 GB, free: 7.195 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/1.312, allocations: 0.9956 MB / 0.5655 GB, free: 6.273 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005797/1.318, allocations: 1.715 MB / 0.5672 GB, free: 4.977 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004941/1.319, allocations: 288.5 kB / 0.5674 GB, free: 4.777 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00113/1.32, allocations: 231 kB / 0.5677 GB, free: 4.629 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01696/1.337, allocations: 4.401 MB / 0.572 GB, free: 1.277 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/1.337, allocations: 11.17 kB / 0.572 GB, free: 1.27 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008868/1.338, allocations: 103.1 kB / 0.5721 GB, free: 1.246 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000636/1.339, allocations: 269.6 kB / 0.5723 GB, free: 1.012 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01763/1.356, allocations: 4.185 MB / 0.5764 GB, free: 14.05 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.04445/1.401, allocations: 18.87 MB / 0.5948 GB, free: 12.84 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01177/1.413, allocations: 2.751 MB / 0.5975 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06113/1.474, allocations: 17.21 MB / 0.6143 GB, free: 8 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.997e-05/1.474, allocations: 58.25 kB / 0.6144 GB, free: 7.949 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002331/1.476, allocations: 318.8 kB / 0.6147 GB, free: 7.66 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=179): time 6.392e-06/1.476, allocations: 0 / 0.6147 GB, free: 7.66 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.207/2.684, allocations: 73.17 MB / 0.6862 GB, free: 5.879 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.075/3.758, allocations: 126.4 MB / 0.8096 GB, free: 153.1 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003182/3.761, allocations: 1.636 MB / 0.8112 GB, free: 151.4 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0008421/3.762, allocations: 73.7 kB / 0.8113 GB, free: 151.3 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.00095/3.763, allocations: 1.187 MB / 0.8125 GB, free: 150.1 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.001441/3.765, allocations: 0.9365 MB / 0.8134 GB, free: 149.2 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004956/3.765, allocations: 60 kB / 0.8134 GB, free: 149.1 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001823/3.765, allocations: 428 kB / 0.8138 GB, free: 148.7 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008416/3.774, allocations: 2.719 MB / 0.8165 GB, free: 146 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009342/3.783, allocations: 3.339 MB / 0.8197 GB, free: 142.4 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01139/3.795, allocations: 3.156 MB / 0.8228 GB, free: 139.2 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-05/3.795, allocations: 4 kB / 0.8228 GB, free: 139.2 MB / 0.5573 GB Notification: Performance of matching and sorting (n=377) (initialization): time 0.03041/3.825, allocations: 9.213 MB / 0.8318 GB, free: 130 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.00168/3.827, allocations: 7.239 MB / 0.8389 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.476e-05/3.827, allocations: 23.94 kB / 0.8389 GB, free: 122.1 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.1242/3.951, allocations: 15.83 MB / 0.8544 GB, free: 106.3 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003594/3.955, allocations: 359.4 kB / 0.8547 GB, free: 105.9 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04698/4.002, allocations: 10.79 MB / 0.8653 GB, free: 95.06 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008472/4.011, allocations: 429 kB / 0.8657 GB, free: 94.64 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001421/4.012, allocations: 171.9 kB / 0.8658 GB, free: 94.48 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/4.012, allocations: 4 kB / 0.8658 GB, free: 94.47 MB / 0.5573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03211/4.044, allocations: 8.545 MB / 0.8742 GB, free: 85.88 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-05/4.044, allocations: 16 kB / 0.8742 GB, free: 85.87 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05255/4.097, allocations: 8.774 MB / 0.8828 GB, free: 77.08 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003597/4.101, allocations: 427.3 kB / 0.8832 GB, free: 76.66 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03505/4.136, allocations: 9.76 MB / 0.8927 GB, free: 66.84 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007857/4.144, allocations: 431.6 kB / 0.8931 GB, free: 66.42 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001329/4.145, allocations: 171.9 kB / 0.8933 GB, free: 66.25 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.003985/4.149, allocations: 0.7999 MB / 0.8941 GB, free: 65.44 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001555/4.151, allocations: 252.9 kB / 0.8943 GB, free: 65.19 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04462/4.195, allocations: 17.48 MB / 0.9114 GB, free: 47.64 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001545/4.196, allocations: 119.8 kB / 0.9115 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/4.196, allocations: 0 / 0.9115 GB, free: 47.52 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03853/4.234, allocations: 15.7 MB / 0.9268 GB, free: 31.7 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07428/4.308, allocations: 27.02 MB / 0.9532 GB, free: 4.605 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.27e-05/4.309, allocations: 0 / 0.9532 GB, free: 4.605 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001656/4.31, allocations: 215.7 kB / 0.9534 GB, free: 4.395 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.4803/4.791, allocations: 27.42 MB / 0.9802 GB, free: 244.1 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000901/4.792, allocations: 100.5 kB / 0.9803 GB, free: 244 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04131/4.833, allocations: 16.05 MB / 0.996 GB, free: 229.9 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.08427/4.917, allocations: 14.33 MB / 1.01 GB, free: 215.7 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05311/4.97, allocations: 22.62 MB / 1.032 GB, free: 193.2 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003463/4.974, allocations: 1.102 MB / 1.033 GB, free: 192.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001213/4.975, allocations: 59.98 kB / 1.033 GB, free: 192.2 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007504/4.983, allocations: 462.9 kB / 1.034 GB, free: 191.7 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001136/4.984, allocations: 270.2 kB / 1.034 GB, free: 191.5 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005415/4.984, allocations: 131.9 kB / 1.034 GB, free: 191.3 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.002602/4.987, allocations: 1.27 MB / 1.035 GB, free: 190.1 MB / 0.5573 GB Notification: Performance of sort global known variables: time 1.343e-06/4.987, allocations: 0 / 1.035 GB, free: 190.1 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.016/5.003, allocations: 4.035 MB / 1.039 GB, free: 186.3 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.0208/5.024, allocations: 3.176 MB / 1.042 GB, free: 183.7 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.05918/5.083, allocations: 12.81 MB / 1.055 GB, free: 170.8 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 1.322e-05/5.083, allocations: 0 / 1.055 GB, free: 170.8 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.02495/5.108, allocations: 5.987 MB / 1.061 GB, free: 164.9 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008984/5.117, allocations: 1.006 MB / 1.062 GB, free: 163.9 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]