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.1_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.731/1.731, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.595e-05, allocations: 0 / 228.1 MB, free: 7.34 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08126/0.08131, allocations: 38.77 MB / 266.9 MB, free: 500 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3508/0.4322, allocations: 87.85 MB / 354.8 MB, free: 9.883 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.07216/0.5044, allocations: 35.25 MB / 390 MB, free: 6.566 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004045/0.5085, allocations: 107.1 kB / 390.1 MB, free: 6.461 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004783/0.5134, allocations: 1.139 MB / 391.3 MB, free: 5.316 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02583/0.5393, allocations: 5.646 MB / 396.9 MB, free: 15.65 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.03513/0.5744, allocations: 6.551 MB / 403.4 MB, free: 9.086 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01176/0.5862, allocations: 3.597 MB / 407 MB, free: 5.48 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003606/0.5899, allocations: 1.306 MB / 408.4 MB, free: 4.172 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06291/0.6528, allocations: 23.78 MB / 432.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3408/0.9937, allocations: 23.7 MB / 455.8 MB, free: 40.82 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03234/1.026, allocations: 11.99 MB / 467.8 MB, free: 40.76 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004315/1.03, allocations: 0.5852 MB / 468.4 MB, free: 40.66 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001782/1.032, allocations: 0.912 MB / 469.3 MB, free: 40.3 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001286/1.034, allocations: 336 kB / 469.6 MB, free: 39.97 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01532/1.049, allocations: 6.75 MB / 476.4 MB, free: 36.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/1.049, allocations: 0 / 476.4 MB, free: 36.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.066e-06/1.049, allocations: 4 kB / 476.4 MB, free: 36.76 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001505/1.049, allocations: 0 / 476.4 MB, free: 36.76 MB / 362.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.01469/1.064, allocations: 3.704 MB / 480.1 MB, free: 33.79 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/1.064, allocations: 13.06 kB / 480.1 MB, free: 33.78 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009994/1.074, allocations: 0.9559 MB / 481.1 MB, free: 33.07 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004794/1.079, allocations: 1.714 MB / 482.8 MB, free: 31.84 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000364/1.079, allocations: 289.3 kB / 483.1 MB, free: 31.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008177/1.08, allocations: 248.1 kB / 483.3 MB, free: 31.48 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01394/1.094, allocations: 4.422 MB / 487.7 MB, free: 28.11 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.785e-05/1.094, allocations: 13.23 kB / 487.7 MB, free: 28.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004439/1.095, allocations: 104.2 kB / 487.8 MB, free: 28.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004713/1.095, allocations: 268 kB / 488.1 MB, free: 27.84 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01535/1.11, allocations: 4.201 MB / 492.3 MB, free: 24.87 MB / 362.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.03494/1.145, allocations: 18.83 MB / 0.4992 GB, free: 7.727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01082/1.156, allocations: 2.87 MB / 0.502 GB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05919/1.216, allocations: 17.23 MB / 0.5188 GB, free: 2.801 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.548e-05/1.216, allocations: 61.12 kB / 0.5189 GB, free: 2.75 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00214/1.218, allocations: 210.7 kB / 0.5191 GB, free: 2.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=192): time 9.088e-06/1.218, allocations: 0 / 0.5191 GB, free: 2.57 MB / 378.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.4005/1.618, allocations: 30.56 MB / 0.5489 GB, free: 8.578 MB / 410.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.002939/1.621, allocations: 1.001 MB / 0.5499 GB, free: 7.648 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003569/1.625, allocations: 1.617 MB / 0.5515 GB, free: 6.398 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006985/1.626, allocations: 70.64 kB / 0.5515 GB, free: 6.355 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001161/1.627, allocations: 1.164 MB / 0.5527 GB, free: 5.598 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001476/1.628, allocations: 0.8307 MB / 0.5535 GB, free: 4.887 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003807/1.629, allocations: 49.75 kB / 0.5535 GB, free: 4.879 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002524/1.629, allocations: 416.7 kB / 0.5539 GB, free: 4.512 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007312/1.636, allocations: 2.001 MB / 0.5559 GB, free: 3.152 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007902/1.644, allocations: 2.577 MB / 0.5584 GB, free: 1.051 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0075/1.652, allocations: 2.224 MB / 0.5606 GB, free: 15.61 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.523e-05/1.652, allocations: 8 kB / 0.5606 GB, free: 15.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02321/1.675, allocations: 6.552 MB / 0.567 GB, free: 11.08 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003076/1.678, allocations: 6.704 MB / 0.5735 GB, free: 3.961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.292e-05/1.678, allocations: 16 kB / 0.5735 GB, free: 3.945 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05322/1.732, allocations: 7.855 MB / 0.5812 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003266/1.735, allocations: 384.8 kB / 0.5816 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0235/1.759, allocations: 6.771 MB / 0.5882 GB, free: 7.543 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007176/1.766, allocations: 452 kB / 0.5886 GB, free: 7.145 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001028/1.767, allocations: 152.5 kB / 0.5888 GB, free: 7.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/1.767, allocations: 4 kB / 0.5888 GB, free: 7.016 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02253/1.789, allocations: 5.9 MB / 0.5945 GB, free: 3.027 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-05/1.79, allocations: 19.98 kB / 0.5945 GB, free: 3.008 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2501/2.04, allocations: 4.335 MB / 0.5988 GB, free: 196.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003886/2.044, allocations: 452.8 kB / 0.5992 GB, free: 196.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01876/2.062, allocations: 5.713 MB / 0.6048 GB, free: 195.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006782/2.069, allocations: 450.2 kB / 0.6052 GB, free: 195.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001034/2.07, allocations: 150.3 kB / 0.6054 GB, free: 195.2 MB / 442.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.002844/2.073, allocations: 0.7404 MB / 0.6061 GB, free: 195 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009296/2.074, allocations: 239.6 kB / 0.6063 GB, free: 195 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0351/2.109, allocations: 12.39 MB / 0.6184 GB, free: 190.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03006/2.139, allocations: 11.09 MB / 0.6292 GB, free: 186 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.206e-05/2.139, allocations: 0.8125 kB / 0.6292 GB, free: 186 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02911/2.169, allocations: 11.19 MB / 0.6402 GB, free: 177.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06631/2.235, allocations: 19.04 MB / 0.6588 GB, free: 159.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.187e-05/2.235, allocations: 3.984 kB / 0.6588 GB, free: 159.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005351/2.24, allocations: 436.5 kB / 0.6592 GB, free: 158.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.03047/2.271, allocations: 5.771 MB / 0.6648 GB, free: 153.1 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007362/2.272, allocations: 91.92 kB / 0.6649 GB, free: 153 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0176/2.289, allocations: 10.82 MB / 0.6755 GB, free: 142 MB / 442.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.003851/2.293, allocations: 1.823 MB / 0.6773 GB, free: 140.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03846/2.332, allocations: 14.67 MB / 0.6916 GB, free: 125.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002894/2.335, allocations: 0.9441 MB / 0.6925 GB, free: 124.4 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001048/2.336, allocations: 55.98 kB / 0.6926 GB, free: 124.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005733/2.341, allocations: 382.3 kB / 0.6929 GB, free: 124 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008613/2.342, allocations: 225.9 kB / 0.6931 GB, free: 123.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004062/2.343, allocations: 107.9 kB / 0.6932 GB, free: 123.7 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002444/2.345, allocations: 1.262 MB / 0.6945 GB, free: 122.4 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.062e-06/2.345, allocations: 3.969 kB / 0.6945 GB, free: 122.4 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0125/2.358, allocations: 3.448 MB / 0.6978 GB, free: 119.2 MB / 442.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.01395/2.372, allocations: 2.529 MB / 0.7003 GB, free: 117.1 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.03717/2.409, allocations: 9.199 MB / 0.7093 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/2.409, allocations: 5.938 kB / 0.7093 GB, free: 107.8 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01706/2.426, allocations: 4.318 MB / 0.7135 GB, free: 103.5 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00911/2.435, allocations: 1.024 MB / 0.7145 GB, free: 102.5 MB / 442.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]