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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 1.902/1.902, allocations: 171.1 MB / 186.3 MB, free: 1.34 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.094e-05/3.087e-05, allocations: 6.188 kB / 228.1 MB, free: 7.992 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08653/0.08658, allocations: 38.78 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.3939/0.4805, allocations: 87.86 MB / 354.7 MB, free: 10.36 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.07574/0.5563, allocations: 35.23 MB / 390 MB, free: 7.062 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00435/0.5607, allocations: 107.1 kB / 390.1 MB, free: 6.957 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005142/0.5659, allocations: 1.147 MB / 391.2 MB, free: 5.805 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02396/0.5899, allocations: 5.643 MB / 396.9 MB, free: 148 kB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02557/0.6155, allocations: 6.557 MB / 403.4 MB, free: 9.57 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.009526/0.6251, allocations: 3.589 MB / 407 MB, free: 5.973 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003167/0.6283, allocations: 1.306 MB / 408.3 MB, free: 4.664 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05916/0.6875, allocations: 23.8 MB / 432.1 MB, free: 12.85 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3425/1.03, allocations: 23.72 MB / 455.8 MB, free: 41.04 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03358/1.064, allocations: 11.99 MB / 467.8 MB, free: 40.98 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005061/1.069, allocations: 0.5881 MB / 468.4 MB, free: 40.98 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002045/1.071, allocations: 0.8983 MB / 469.3 MB, free: 40.98 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00184/1.073, allocations: 336 kB / 469.6 MB, free: 40.7 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01593/1.089, allocations: 6.759 MB / 476.4 MB, free: 37.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/1.089, allocations: 2.188 kB / 476.4 MB, free: 37.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.559e-06/1.089, allocations: 4 kB / 476.4 MB, free: 37.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001595/1.089, allocations: 0 / 476.4 MB, free: 37.48 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.01499/1.104, allocations: 3.703 MB / 480.1 MB, free: 34.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/1.104, allocations: 8.031 kB / 480.1 MB, free: 34.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0101/1.114, allocations: 0.9583 MB / 481.1 MB, free: 33.79 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005099/1.119, allocations: 1.721 MB / 482.8 MB, free: 32.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004825/1.12, allocations: 282.6 kB / 483.1 MB, free: 32.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/1.121, allocations: 249 kB / 483.3 MB, free: 32.23 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01607/1.137, allocations: 4.419 MB / 487.7 MB, free: 28.86 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/1.137, allocations: 7.469 kB / 487.7 MB, free: 28.86 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001022/1.138, allocations: 112.5 kB / 487.9 MB, free: 28.83 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005042/1.139, allocations: 266.6 kB / 488.1 MB, free: 28.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01652/1.155, allocations: 4.206 MB / 492.3 MB, free: 25.62 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.03912/1.195, allocations: 18.84 MB / 0.4992 GB, free: 8.477 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01127/1.206, allocations: 2.867 MB / 0.502 GB, free: 6.484 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05918/1.265, allocations: 17.23 MB / 0.5188 GB, free: 3.547 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.669e-05/1.265, allocations: 58.38 kB / 0.5189 GB, free: 3.496 MB / 378.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002178/1.267, allocations: 214.3 kB / 0.5191 GB, free: 3.312 MB / 378.7 MB Notification: Performance of pre-optimization done (n=192): time 1.056e-05/1.268, allocations: 4 kB / 0.5191 GB, free: 3.309 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.4775/1.745, allocations: 30.57 MB / 0.5489 GB, free: 9.309 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.004873/1.75, allocations: 0.9957 MB / 0.5499 GB, free: 8.391 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006239/1.756, allocations: 1.617 MB / 0.5515 GB, free: 7.137 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00096/1.757, allocations: 66.83 kB / 0.5515 GB, free: 7.098 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001617/1.759, allocations: 1.095 MB / 0.5526 GB, free: 6.359 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002126/1.761, allocations: 0.8242 MB / 0.5534 GB, free: 5.652 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005631/1.762, allocations: 56.69 kB / 0.5535 GB, free: 5.641 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003693/1.762, allocations: 418 kB / 0.5539 GB, free: 5.266 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0111/1.773, allocations: 2.011 MB / 0.5558 GB, free: 3.898 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01242/1.786, allocations: 2.572 MB / 0.5583 GB, free: 1.801 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01252/1.798, allocations: 2.224 MB / 0.5605 GB, free: 360 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.771e-05/1.798, allocations: 4 kB / 0.5605 GB, free: 356 kB / 410.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.0406/1.839, allocations: 6.431 MB / 0.5668 GB, free: 11.95 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00411/1.843, allocations: 6.448 MB / 0.5731 GB, free: 5.125 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001172/1.843, allocations: 16 kB / 0.5731 GB, free: 5.109 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.08724/1.931, allocations: 7.857 MB / 0.5808 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005035/1.936, allocations: 380.6 kB / 0.5811 GB, free: 13.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03732/1.973, allocations: 6.766 MB / 0.5877 GB, free: 8.715 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01104/1.984, allocations: 449.6 kB / 0.5882 GB, free: 8.316 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001443/1.986, allocations: 149.4 kB / 0.5883 GB, free: 8.195 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/1.986, allocations: 4 kB / 0.5883 GB, free: 8.191 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03262/2.018, allocations: 5.904 MB / 0.5941 GB, free: 4.199 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.314e-05/2.019, allocations: 19.98 kB / 0.5941 GB, free: 4.18 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03197/2.051, allocations: 4.053 MB / 0.5981 GB, free: 0.6875 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005065/2.056, allocations: 455.9 kB / 0.5985 GB, free: 276 kB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3482/2.404, allocations: 5.737 MB / 0.6041 GB, free: 195.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008407/2.412, allocations: 442 kB / 0.6045 GB, free: 195.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001313/2.414, allocations: 147.7 kB / 0.6047 GB, free: 195.9 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.002977/2.417, allocations: 0.7452 MB / 0.6054 GB, free: 195.7 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009276/2.418, allocations: 241.8 kB / 0.6056 GB, free: 195.7 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0371/2.455, allocations: 12.4 MB / 0.6177 GB, free: 191.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02985/2.485, allocations: 11.08 MB / 0.6286 GB, free: 186.7 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.925e-05/2.485, allocations: 0 / 0.6286 GB, free: 186.7 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0281/2.513, allocations: 11.19 MB / 0.6395 GB, free: 179.6 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04756/2.56, allocations: 19.04 MB / 0.6581 GB, free: 161.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.413e-05/2.56, allocations: 3.984 kB / 0.6581 GB, free: 161.4 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004002/2.565, allocations: 435.4 kB / 0.6585 GB, free: 160.9 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02569/2.59, allocations: 5.777 MB / 0.6641 GB, free: 155.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007504/2.591, allocations: 95.92 kB / 0.6642 GB, free: 155.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01729/2.608, allocations: 10.82 MB / 0.6748 GB, free: 144.2 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.003796/2.612, allocations: 1.822 MB / 0.6766 GB, free: 142.4 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03876/2.651, allocations: 14.66 MB / 0.6909 GB, free: 127.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002998/2.654, allocations: 0.948 MB / 0.6918 GB, free: 126.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/2.655, allocations: 59.3 kB / 0.6919 GB, free: 126.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005974/2.661, allocations: 382.2 kB / 0.6922 GB, free: 126.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000929/2.662, allocations: 237.1 kB / 0.6925 GB, free: 126 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004083/2.663, allocations: 107.9 kB / 0.6926 GB, free: 125.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00247/2.665, allocations: 1.262 MB / 0.6938 GB, free: 124.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.404e-06/2.665, allocations: 3.938 kB / 0.6938 GB, free: 124.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01328/2.678, allocations: 3.443 MB / 0.6972 GB, free: 121.4 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.01409/2.693, allocations: 2.534 MB / 0.6996 GB, free: 119.2 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0381/2.731, allocations: 9.121 MB / 0.7085 GB, free: 110 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/2.731, allocations: 1.938 kB / 0.7085 GB, free: 110 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01676/2.747, allocations: 4.301 MB / 0.7127 GB, free: 105.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009192/2.757, allocations: 1.028 MB / 0.7137 GB, free: 104.7 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]