Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,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="Modelica_3.2.2_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.961/1.961, allocations: 194.9 MB / 210.6 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.816e-05/2.815e-05, allocations: 4 kB / 258.8 MB, free: 8.074 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2903/0.2903, allocations: 44.5 MB / 303.3 MB, free: 12.95 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.1381/0.4285, allocations: 88.54 MB / 391.8 MB, free: 4.871 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07/0.4986, allocations: 35.46 MB / 427.3 MB, free: 1.344 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003601/0.5022, allocations: 111.1 kB / 427.4 MB, free: 1.234 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004602/0.5069, allocations: 1.143 MB / 428.5 MB, free: 88 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3442/0.8512, allocations: 5.696 MB / 434.2 MB, free: 7.543 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02737/0.8786, allocations: 6.609 MB / 440.9 MB, free: 7.395 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.008536/0.8871, allocations: 3.637 MB / 444.5 MB, free: 7.383 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002765/0.8899, allocations: 1.314 MB / 445.8 MB, free: 7.363 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05387/0.9439, allocations: 24.07 MB / 469.9 MB, free: 2.094 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05817/1.002, allocations: 23.97 MB / 493.8 MB, free: 12.21 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03459/1.037, allocations: 12.18 MB / 0.4942 GB, free: 2.277 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004702/1.041, allocations: 0.6016 MB / 0.4948 GB, free: 1.676 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002181/1.044, allocations: 0.9091 MB / 0.4956 GB, free: 1.078 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002005/1.046, allocations: 340 kB / 0.496 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01758/1.063, allocations: 6.82 MB / 0.5026 GB, free: 10.92 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/1.063, allocations: 0 / 0.5026 GB, free: 10.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.063, allocations: 0 / 0.5026 GB, free: 10.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001583/1.064, allocations: 4 kB / 0.5026 GB, free: 10.92 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.01616/1.08, allocations: 3.773 MB / 0.5063 GB, free: 7.348 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/1.08, allocations: 8.031 kB / 0.5063 GB, free: 7.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/1.09, allocations: 0.9854 MB / 0.5073 GB, free: 6.418 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005211/1.096, allocations: 1.723 MB / 0.509 GB, free: 5.109 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004252/1.096, allocations: 290.8 kB / 0.5093 GB, free: 4.906 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001054/1.097, allocations: 246.1 kB / 0.5095 GB, free: 4.746 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01539/1.113, allocations: 4.427 MB / 0.5138 GB, free: 1.375 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001014/1.113, allocations: 14.28 kB / 0.5138 GB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004979/1.113, allocations: 103.7 kB / 0.5139 GB, free: 1.344 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005552/1.114, allocations: 266 kB / 0.5142 GB, free: 1.109 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/1.13, allocations: 4.195 MB / 0.5183 GB, free: 14.14 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.04124/1.172, allocations: 18.85 MB / 0.5367 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01166/1.183, allocations: 2.871 MB / 0.5395 GB, free: 10.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05919/1.243, allocations: 17.21 MB / 0.5563 GB, free: 8.059 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.615e-05/1.243, allocations: 58.34 kB / 0.5563 GB, free: 8.008 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001943/1.245, allocations: 217.1 kB / 0.5565 GB, free: 7.828 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 5.43e-06/1.245, allocations: 0 / 0.5565 GB, free: 7.828 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: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=244): time 0.6598/1.905, allocations: 30.58 MB / 0.5864 GB, free: 208.8 MB / 474.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.002684/1.907, allocations: 0.9944 MB / 0.5874 GB, free: 208.3 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003055/1.91, allocations: 1.621 MB / 0.589 GB, free: 207.7 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006715/1.911, allocations: 73.19 kB / 0.589 GB, free: 207.7 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009169/1.912, allocations: 1.163 MB / 0.5902 GB, free: 207.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001213/1.913, allocations: 0.8214 MB / 0.591 GB, free: 206.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003669/1.914, allocations: 55.81 kB / 0.591 GB, free: 206.4 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/1.914, allocations: 417.9 kB / 0.5914 GB, free: 206.1 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006186/1.92, allocations: 2.004 MB / 0.5934 GB, free: 205.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006792/1.927, allocations: 2.577 MB / 0.5959 GB, free: 204.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006928/1.934, allocations: 2.223 MB / 0.5981 GB, free: 203.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.097e-05/1.934, allocations: 3.906 kB / 0.5981 GB, free: 203.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02115/1.955, allocations: 6.569 MB / 0.6045 GB, free: 200.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001355/1.956, allocations: 6.697 MB / 0.611 GB, free: 193.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-05/1.957, allocations: 20.34 kB / 0.611 GB, free: 193.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04963/2.006, allocations: 7.841 MB / 0.6187 GB, free: 190.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002907/2.009, allocations: 387.2 kB / 0.6191 GB, free: 189.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01989/2.029, allocations: 6.748 MB / 0.6257 GB, free: 183.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006796/2.036, allocations: 449.7 kB / 0.6261 GB, free: 182.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006217/2.037, allocations: 161.2 kB / 0.6262 GB, free: 182.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.227e-05/2.037, allocations: 0 / 0.6262 GB, free: 182.5 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01847/2.055, allocations: 5.906 MB / 0.632 GB, free: 176.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.354e-05/2.055, allocations: 16 kB / 0.632 GB, free: 176.6 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02158/2.077, allocations: 4.343 MB / 0.6363 GB, free: 172.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003448/2.08, allocations: 451.3 kB / 0.6367 GB, free: 171.9 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0161/2.096, allocations: 5.726 MB / 0.6423 GB, free: 166.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006368/2.103, allocations: 439.3 kB / 0.6427 GB, free: 165.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004495/2.103, allocations: 143.9 kB / 0.6428 GB, free: 165.5 MB / 474.7 MB 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 (185): * Single equations (assignments): 181 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 12,20 122} Notification: Performance of prepare postOptimizeDAE: time 0.002061/2.105, allocations: 0.7507 MB / 0.6436 GB, free: 164.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006694/2.106, allocations: 245 kB / 0.6438 GB, free: 164.5 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03005/2.136, allocations: 12.38 MB / 0.6559 GB, free: 152 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02723/2.163, allocations: 11.09 MB / 0.6667 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.664e-05/2.163, allocations: 0 / 0.6667 GB, free: 140.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02675/2.19, allocations: 11.2 MB / 0.6777 GB, free: 129.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04625/2.236, allocations: 19.06 MB / 0.6963 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.102e-05/2.236, allocations: 0 / 0.6963 GB, free: 110.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003701/2.24, allocations: 443.5 kB / 0.6967 GB, free: 109.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02488/2.265, allocations: 5.758 MB / 0.7023 GB, free: 104.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005959/2.266, allocations: 91.94 kB / 0.7024 GB, free: 104 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01692/2.283, allocations: 10.82 MB / 0.713 GB, free: 92.95 MB / 474.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 postOpt calculateStateSetsJacobians (simulation): time 0.003668/2.286, allocations: 1.823 MB / 0.7148 GB, free: 91.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03697/2.323, allocations: 14.67 MB / 0.7291 GB, free: 76.28 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002658/2.326, allocations: 0.9402 MB / 0.73 GB, free: 75.32 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008355/2.327, allocations: 59.98 kB / 0.7301 GB, free: 75.26 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005232/2.332, allocations: 383.3 kB / 0.7304 GB, free: 74.88 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006104/2.333, allocations: 230 kB / 0.7306 GB, free: 74.66 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003575/2.333, allocations: 107.9 kB / 0.7307 GB, free: 74.55 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002262/2.335, allocations: 1.262 MB / 0.732 GB, free: 73.27 MB / 474.7 MB Notification: Performance of sort global known variables: time 3.91e-07/2.335, allocations: 0 / 0.732 GB, free: 73.27 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0112/2.347, allocations: 3.453 MB / 0.7354 GB, free: 70.06 MB / 474.7 MB 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.01305/2.36, allocations: 2.541 MB / 0.7378 GB, free: 67.93 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0359/2.396, allocations: 9.208 MB / 0.7468 GB, free: 58.68 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/2.396, allocations: 0 / 0.7468 GB, free: 58.68 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01698/2.413, allocations: 4.307 MB / 0.751 GB, free: 54.36 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008593/2.421, allocations: 1.031 MB / 0.752 GB, free: 53.33 MB / 474.7 MB [/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]