Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 1.955/1.955, allocations: 209.3 MB / 223.8 MB, free: 1.602 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.11e-05/3.127e-05, allocations: 0 / 276.2 MB, free: 15.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.1026, allocations: 48.71 MB / 324.9 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.4029/0.5056, allocations: 87.88 MB / 412.8 MB, free: 0.8398 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07136/0.577, allocations: 35.25 MB / 448 MB, free: 13.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004159/0.5812, allocations: 111.1 kB / 448.1 MB, free: 13.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005056/0.5863, allocations: 1.139 MB / 449.3 MB, free: 12.25 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02297/0.6094, allocations: 5.643 MB / 454.9 MB, free: 6.594 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02452/0.6339, allocations: 6.561 MB / 461.5 MB, free: 16 kB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.009477/0.6434, allocations: 3.546 MB / 465 MB, free: 12.46 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003222/0.6467, allocations: 1.31 MB / 466.3 MB, free: 11.16 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05914/0.7059, allocations: 23.81 MB / 490.1 MB, free: 3.332 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4183/1.124, allocations: 23.72 MB / 0.5018 GB, free: 49.91 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03381/1.158, allocations: 11.99 MB / 0.5135 GB, free: 49.89 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005553/1.164, allocations: 0.5883 MB / 0.5141 GB, free: 49.89 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002413/1.166, allocations: 0.9012 MB / 0.515 GB, free: 49.89 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001859/1.168, allocations: 339.1 kB / 0.5153 GB, free: 49.89 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01749/1.186, allocations: 6.753 MB / 0.5219 GB, free: 49.44 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.699e-05/1.186, allocations: 0 / 0.5219 GB, free: 49.44 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.406e-06/1.186, allocations: 3 kB / 0.5219 GB, free: 49.44 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001287/1.186, allocations: 0 / 0.5219 GB, free: 49.44 MB / 426.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.01564/1.202, allocations: 3.71 MB / 0.5255 GB, free: 47.8 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/1.202, allocations: 10.03 kB / 0.5255 GB, free: 47.8 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01055/1.212, allocations: 0.9551 MB / 0.5264 GB, free: 47.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005945/1.218, allocations: 1.718 MB / 0.5281 GB, free: 47.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00045/1.219, allocations: 289.9 kB / 0.5284 GB, free: 47.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009882/1.22, allocations: 247.1 kB / 0.5286 GB, free: 47.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/1.234, allocations: 4.413 MB / 0.5329 GB, free: 46.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001113/1.235, allocations: 13.42 kB / 0.533 GB, free: 46.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006761/1.235, allocations: 109.9 kB / 0.5331 GB, free: 46.45 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005/1.236, allocations: 268.3 kB / 0.5333 GB, free: 46.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01581/1.252, allocations: 4.197 MB / 0.5374 GB, free: 43.55 MB / 426.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.03881/1.291, allocations: 18.84 MB / 0.5558 GB, free: 26.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01074/1.301, allocations: 2.881 MB / 0.5586 GB, free: 24.41 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05326/1.355, allocations: 17.21 MB / 0.5754 GB, free: 5.48 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.695e-05/1.355, allocations: 57.94 kB / 0.5755 GB, free: 5.43 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002354/1.357, allocations: 222.4 kB / 0.5757 GB, free: 5.246 MB / 426.7 MB Notification: Performance of pre-optimization done (n=192): time 5.761e-06/1.357, allocations: 4 kB / 0.5757 GB, free: 5.242 MB / 426.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: heater.mediums[1].p 2: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.4364/1.794, allocations: 32.5 MB / 0.6075 GB, free: 9.383 MB / 458.7 MB 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 inlineWhenForInitialization (initialization): time 0.003261/1.797, allocations: 1.003 MB / 0.6084 GB, free: 8.457 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004249/1.801, allocations: 1.616 MB / 0.61 GB, free: 7.207 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008393/1.802, allocations: 70.39 kB / 0.6101 GB, free: 7.164 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00146/1.804, allocations: 1.163 MB / 0.6112 GB, free: 6.41 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001959/1.806, allocations: 0.8272 MB / 0.612 GB, free: 5.699 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004742/1.806, allocations: 56 kB / 0.6121 GB, free: 5.688 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003462/1.806, allocations: 417.4 kB / 0.6125 GB, free: 5.316 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00722/1.814, allocations: 2.001 MB / 0.6144 GB, free: 3.957 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008023/1.822, allocations: 2.575 MB / 0.6169 GB, free: 1.855 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007922/1.83, allocations: 2.222 MB / 0.6191 GB, free: 416 kB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.911e-05/1.83, allocations: 4 kB / 0.6191 GB, free: 412 kB / 458.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.0231/1.853, allocations: 5.924 MB / 0.6249 GB, free: 12.23 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003526/1.857, allocations: 6.698 MB / 0.6314 GB, free: 5.117 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.834e-05/1.857, allocations: 16 kB / 0.6315 GB, free: 5.102 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02022/1.877, allocations: 3.411 MB / 0.6348 GB, free: 2.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005385/1.882, allocations: 0.5924 MB / 0.6354 GB, free: 1.621 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01563/1.898, allocations: 7.747 MB / 0.6429 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007513/1.906, allocations: 444.1 kB / 0.6434 GB, free: 10.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001074/1.907, allocations: 150.7 kB / 0.6435 GB, free: 10.18 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.491e-05/1.907, allocations: 4 kB / 0.6435 GB, free: 10.18 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01986/1.927, allocations: 5.352 MB / 0.6487 GB, free: 6.508 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.93e-05/1.927, allocations: 16 kB / 0.6487 GB, free: 6.492 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009316/1.936, allocations: 2.167 MB / 0.6509 GB, free: 4.711 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006506/1.943, allocations: 0.6615 MB / 0.6515 GB, free: 4.109 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02078/1.963, allocations: 11.01 MB / 0.6623 GB, free: 9.984 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007119/1.971, allocations: 448.5 kB / 0.6627 GB, free: 9.59 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009363/1.972, allocations: 147.9 kB / 0.6628 GB, free: 9.469 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (282): * Single equations (assignments): 271 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 9 {3 12,2 4,1 1,2 7,1 1,5 16,1 1,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.002793/1.974, allocations: 0.7551 MB / 0.6636 GB, free: 8.996 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009349/1.975, allocations: 241 kB / 0.6638 GB, free: 8.758 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03785/2.013, allocations: 12.4 MB / 0.6759 GB, free: 24 kB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.3203/2.334, allocations: 11.08 MB / 0.6867 GB, free: 207.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.849e-05/2.334, allocations: 0.6562 kB / 0.6867 GB, free: 207.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03244/2.366, allocations: 11.19 MB / 0.6977 GB, free: 203.2 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05038/2.417, allocations: 19.06 MB / 0.7163 GB, free: 195.7 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.369e-05/2.417, allocations: 1.844 kB / 0.7163 GB, free: 195.7 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00399/2.421, allocations: 442.5 kB / 0.7167 GB, free: 195.7 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02552/2.446, allocations: 5.763 MB / 0.7223 GB, free: 192.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007362/2.447, allocations: 87.94 kB / 0.7224 GB, free: 192.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01704/2.464, allocations: 10.83 MB / 0.733 GB, free: 181.8 MB / 0.4948 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.0038/2.468, allocations: 1.823 MB / 0.7348 GB, free: 180 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03744/2.505, allocations: 14.67 MB / 0.7491 GB, free: 165.5 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003371/2.509, allocations: 0.9402 MB / 0.75 GB, free: 164.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001146/2.51, allocations: 63.94 kB / 0.7501 GB, free: 164.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005888/2.516, allocations: 390.5 kB / 0.7504 GB, free: 164.2 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007913/2.517, allocations: 229.9 kB / 0.7507 GB, free: 164 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003983/2.517, allocations: 107.9 kB / 0.7508 GB, free: 163.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002449/2.52, allocations: 1.258 MB / 0.752 GB, free: 162.6 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.493e-06/2.52, allocations: 96 / 0.752 GB, free: 162.6 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01379/2.533, allocations: 3.486 MB / 0.7554 GB, free: 159.3 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 ($STATESET1.x[4],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],radiator.mediums[1].p,radiator.mediums[1].h,pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h) * Number of discrete variables: 58 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.region3boundary,$cse9.region3boundary,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.region3boundary,$cse31.region3boundary,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.region,$cse43.region3boundary,$cse44.region3boundary,$cse45.phase,$cse45.region,$cse46.region3boundary,$cse47.region3boundary,$cse48.phase,$cse48.region,$cse50.phase,$cse50.region,$cse52.phase,$cse52.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 (213): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 19 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 1,1 1,1 10,1 1,2 12,1 1,2 4,2 9,1 9,9 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.01469/2.548, allocations: 2.546 MB / 0.7579 GB, free: 157.1 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.03718/2.585, allocations: 9.477 MB / 0.7671 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/2.585, allocations: 0 / 0.7671 GB, free: 147.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01704/2.603, allocations: 4.311 MB / 0.7713 GB, free: 143.3 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009231/2.612, allocations: 1.037 MB / 0.7724 GB, free: 142.3 MB / 0.4948 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]