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.2_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 2.394/2.394, allocations: 234.9 MB / 249.5 MB, free: 9.781 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.401e-05/5.396e-05, allocations: 8 kB / 308 MB, free: 15.13 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3647/0.3648, allocations: 54.86 MB / 362.9 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.1542/0.5191, allocations: 88.59 MB / 451.5 MB, free: 2.902 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.453/0.9721, allocations: 35.45 MB / 486.9 MB, free: 7.148 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004868/0.9771, allocations: 107.2 kB / 487 MB, free: 7.148 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007242/0.9844, allocations: 1.148 MB / 488.2 MB, free: 7.145 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02856/1.013, allocations: 5.7 MB / 493.9 MB, free: 7.066 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02461/1.038, allocations: 6.614 MB / 0.4887 GB, free: 6.895 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.009915/1.048, allocations: 3.586 MB / 0.4922 GB, free: 6.883 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003291/1.051, allocations: 1.318 MB / 0.4935 GB, free: 6.863 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.06035/1.111, allocations: 24.07 MB / 0.517 GB, free: 2.582 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0682/1.18, allocations: 23.97 MB / 0.5405 GB, free: 12.7 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03801/1.218, allocations: 12.18 MB / 0.5524 GB, free: 2.766 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005419/1.223, allocations: 0.6016 MB / 0.5529 GB, free: 2.164 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002516/1.226, allocations: 0.8982 MB / 0.5538 GB, free: 1.57 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002304/1.228, allocations: 336 kB / 0.5541 GB, free: 1.242 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02067/1.249, allocations: 6.825 MB / 0.5608 GB, free: 11.41 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/1.249, allocations: 0 / 0.5608 GB, free: 11.41 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.195e-06/1.249, allocations: 0 / 0.5608 GB, free: 11.41 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001576/1.249, allocations: 0 / 0.5608 GB, free: 11.41 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.01597/1.265, allocations: 3.778 MB / 0.5645 GB, free: 7.84 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.955e-05/1.265, allocations: 8.031 kB / 0.5645 GB, free: 7.832 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01143/1.277, allocations: 0.9881 MB / 0.5655 GB, free: 6.91 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00586/1.283, allocations: 1.728 MB / 0.5672 GB, free: 5.598 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005343/1.283, allocations: 279.5 kB / 0.5674 GB, free: 5.402 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001277/1.284, allocations: 252.2 kB / 0.5677 GB, free: 5.238 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01879/1.303, allocations: 4.417 MB / 0.572 GB, free: 1.875 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002044/1.304, allocations: 10 kB / 0.572 GB, free: 1.871 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001351/1.305, allocations: 111.8 kB / 0.5721 GB, free: 1.84 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007775/1.306, allocations: 261 kB / 0.5723 GB, free: 1.609 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01748/1.323, allocations: 4.205 MB / 0.5764 GB, free: 14.63 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.04274/1.366, allocations: 18.85 MB / 0.5949 GB, free: 13.47 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01205/1.378, allocations: 2.875 MB / 0.5977 GB, free: 11.47 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06242/1.441, allocations: 17.21 MB / 0.6145 GB, free: 8.543 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001147/1.441, allocations: 61.55 kB / 0.6145 GB, free: 8.488 MB / 0.4948 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0024/1.443, allocations: 214.8 kB / 0.6147 GB, free: 8.305 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=192): time 1.011e-05/1.443, allocations: 0 / 0.6147 GB, free: 8.305 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: 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.45/1.893, allocations: 32.51 MB / 0.6465 GB, free: 12.44 MB / 0.5261 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 inlineWhenForInitialization (initialization): time 0.003267/1.897, allocations: 1.007 MB / 0.6475 GB, free: 11.51 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004149/1.901, allocations: 1.61 MB / 0.649 GB, free: 10.26 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0007699/1.902, allocations: 69.33 kB / 0.6491 GB, free: 10.22 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.00141/1.903, allocations: 1.166 MB / 0.6502 GB, free: 9.461 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.001776/1.905, allocations: 0.8209 MB / 0.651 GB, free: 8.758 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007379/1.906, allocations: 61.48 kB / 0.6511 GB, free: 8.742 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0003791/1.906, allocations: 417 kB / 0.6515 GB, free: 8.371 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007523/1.914, allocations: 2.001 MB / 0.6535 GB, free: 7.012 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008942/1.923, allocations: 2.575 MB / 0.656 GB, free: 4.906 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008453/1.931, allocations: 2.218 MB / 0.6581 GB, free: 3.465 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-05/1.931, allocations: 4 kB / 0.6581 GB, free: 3.461 MB / 0.5261 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02914/1.96, allocations: 5.929 MB / 0.6639 GB, free: 15.05 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 0.003685/1.964, allocations: 6.703 MB / 0.6705 GB, free: 7.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001144/1.964, allocations: 16 kB / 0.6705 GB, free: 7.805 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02768/1.992, allocations: 3.421 MB / 0.6738 GB, free: 4.371 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007531/2, allocations: 0.5922 MB / 0.6744 GB, free: 3.809 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3615/2.361, allocations: 7.727 MB / 0.682 GB, free: 235.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007198/2.368, allocations: 455.2 kB / 0.6824 GB, free: 235.2 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009818/2.369, allocations: 153.2 kB / 0.6825 GB, free: 235.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/2.369, allocations: 3.375 kB / 0.6825 GB, free: 235.2 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01978/2.389, allocations: 5.352 MB / 0.6878 GB, free: 234.1 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.511e-05/2.389, allocations: 16.59 kB / 0.6878 GB, free: 234.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008782/2.398, allocations: 2.16 MB / 0.6899 GB, free: 233.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006535/2.405, allocations: 0.6608 MB / 0.6905 GB, free: 233.6 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01773/2.423, allocations: 11.02 MB / 0.7013 GB, free: 225 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006715/2.429, allocations: 437.8 kB / 0.7017 GB, free: 225 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008676/2.43, allocations: 147.6 kB / 0.7018 GB, free: 224.9 MB / 0.5417 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.002883/2.433, allocations: 0.7578 MB / 0.7026 GB, free: 224.5 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/2.434, allocations: 239.4 kB / 0.7028 GB, free: 224.5 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03469/2.469, allocations: 12.4 MB / 0.7149 GB, free: 218.7 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03047/2.499, allocations: 11.09 MB / 0.7258 GB, free: 207.5 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.58e-05/2.499, allocations: 0 / 0.7258 GB, free: 207.5 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02912/2.529, allocations: 11.2 MB / 0.7367 GB, free: 196.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05272/2.581, allocations: 19.06 MB / 0.7553 GB, free: 177.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.63e-05/2.581, allocations: 0 / 0.7553 GB, free: 177.3 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003894/2.585, allocations: 439.3 kB / 0.7557 GB, free: 176.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02681/2.612, allocations: 5.754 MB / 0.7613 GB, free: 171.2 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007166/2.613, allocations: 95.92 kB / 0.7614 GB, free: 171.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01733/2.63, allocations: 10.81 MB / 0.772 GB, free: 160 MB / 0.5417 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.003814/2.634, allocations: 1.827 MB / 0.7738 GB, free: 158.2 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04022/2.674, allocations: 14.66 MB / 0.7881 GB, free: 143.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002997/2.678, allocations: 0.944 MB / 0.789 GB, free: 142.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001283/2.679, allocations: 59.98 kB / 0.7891 GB, free: 142.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006417/2.685, allocations: 385.1 kB / 0.7894 GB, free: 142 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001187/2.687, allocations: 229.9 kB / 0.7897 GB, free: 141.7 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008069/2.687, allocations: 107.9 kB / 0.7898 GB, free: 141.6 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.003125/2.691, allocations: 1.258 MB / 0.791 GB, free: 140.3 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.465e-06/2.691, allocations: 96 / 0.791 GB, free: 140.3 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0137/2.704, allocations: 3.5 MB / 0.7944 GB, free: 137.1 MB / 0.5417 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.01407/2.719, allocations: 2.567 MB / 0.7969 GB, free: 134.9 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.04292/2.762, allocations: 9.475 MB / 0.8062 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.869e-06/2.762, allocations: 4.312 kB / 0.8062 GB, free: 125.4 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.01704/2.779, allocations: 4.303 MB / 0.8104 GB, free: 121.1 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009572/2.788, allocations: 1.035 MB / 0.8114 GB, free: 120.1 MB / 0.5417 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]