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_cpp_ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial") Notification: Performance of loadModel(ModelicaTest): time 2.059/2.059, allocations: 209.3 MB / 224.4 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.679e-05/3.689e-05, allocations: 4 kB / 276.1 MB, free: 15.88 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3557, allocations: 48.7 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.HeatingSystem_FixedInitial): time 0.1472/0.5029, allocations: 87.9 MB / 412.7 MB, free: 7.52 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.07534/0.5783, allocations: 35.24 MB / 448 MB, free: 4.203 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004637/0.583, allocations: 107.1 kB / 448.1 MB, free: 4.098 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005344/0.5884, allocations: 1.151 MB / 449.2 MB, free: 2.941 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02496/0.6134, allocations: 5.639 MB / 454.9 MB, free: 13.29 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0255/0.6389, allocations: 6.553 MB / 461.4 MB, free: 6.715 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.009554/0.6485, allocations: 3.542 MB / 465 MB, free: 3.172 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003275/0.6518, allocations: 1.306 MB / 466.3 MB, free: 1.863 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3967/1.049, allocations: 23.8 MB / 490.1 MB, free: 27.25 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0548/1.103, allocations: 23.71 MB / 0.5017 GB, free: 23.84 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03093/1.134, allocations: 11.99 MB / 0.5135 GB, free: 16.45 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004895/1.139, allocations: 0.5859 MB / 0.514 GB, free: 15.86 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002094/1.142, allocations: 0.9069 MB / 0.5149 GB, free: 15.5 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001837/1.143, allocations: 332 kB / 0.5152 GB, free: 15.18 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01625/1.16, allocations: 6.758 MB / 0.5218 GB, free: 11.96 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/1.16, allocations: 0 / 0.5218 GB, free: 11.96 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.196e-06/1.16, allocations: 0 / 0.5218 GB, free: 11.96 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001718/1.16, allocations: 0 / 0.5218 GB, free: 11.96 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.01514/1.175, allocations: 3.706 MB / 0.5254 GB, free: 8.996 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/1.175, allocations: 16.03 kB / 0.5255 GB, free: 8.98 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/1.185, allocations: 0.9567 MB / 0.5264 GB, free: 8.211 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005086/1.191, allocations: 1.72 MB / 0.5281 GB, free: 6.918 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004283/1.191, allocations: 283 kB / 0.5283 GB, free: 6.719 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001048/1.192, allocations: 246.3 kB / 0.5286 GB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01477/1.207, allocations: 4.423 MB / 0.5329 GB, free: 3.195 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000101/1.207, allocations: 8.344 kB / 0.5329 GB, free: 3.191 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004778/1.207, allocations: 117.7 kB / 0.533 GB, free: 3.156 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004734/1.208, allocations: 267.2 kB / 0.5333 GB, free: 2.922 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01554/1.224, allocations: 4.195 MB / 0.5374 GB, free: 15.95 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.04273/1.266, allocations: 18.84 MB / 0.5558 GB, free: 14.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01186/1.278, allocations: 2.879 MB / 0.5586 GB, free: 12.82 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06116/1.339, allocations: 17.22 MB / 0.5754 GB, free: 9.887 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.247e-05/1.34, allocations: 56.88 kB / 0.5755 GB, free: 9.836 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002097/1.342, allocations: 217.3 kB / 0.5757 GB, free: 9.652 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 9.448e-06/1.342, allocations: 0 / 0.5757 GB, free: 9.652 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: 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.4244/1.766, allocations: 32.51 MB / 0.6074 GB, free: 13.79 MB / 490.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.002979/1.769, allocations: 0.9989 MB / 0.6084 GB, free: 12.88 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00369/1.773, allocations: 1.618 MB / 0.61 GB, free: 11.62 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007934/1.774, allocations: 65.27 kB / 0.61 GB, free: 11.58 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001064/1.775, allocations: 1.099 MB / 0.6111 GB, free: 10.84 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00156/1.776, allocations: 0.8194 MB / 0.6119 GB, free: 10.14 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003953/1.777, allocations: 53.69 kB / 0.6119 GB, free: 10.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000266/1.777, allocations: 423.3 kB / 0.6124 GB, free: 9.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006955/1.784, allocations: 2.003 MB / 0.6143 GB, free: 8.387 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007771/1.792, allocations: 2.577 MB / 0.6168 GB, free: 6.281 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0078/1.8, allocations: 2.226 MB / 0.619 GB, free: 4.832 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.597e-05/1.8, allocations: 4 kB / 0.619 GB, free: 4.828 MB / 490.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.02117/1.821, allocations: 5.8 MB / 0.6247 GB, free: 0.7852 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002669/1.824, allocations: 6.444 MB / 0.631 GB, free: 9.957 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.47e-05/1.824, allocations: 16 kB / 0.631 GB, free: 9.941 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01974/1.844, allocations: 3.412 MB / 0.6343 GB, free: 6.996 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005238/1.849, allocations: 0.595 MB / 0.6349 GB, free: 6.457 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01536/1.864, allocations: 7.733 MB / 0.6424 GB, free: 15.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007104/1.871, allocations: 445.9 kB / 0.6429 GB, free: 15.15 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008398/1.872, allocations: 157.2 kB / 0.643 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/1.872, allocations: 7.938 kB / 0.643 GB, free: 15.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01901/1.891, allocations: 5.342 MB / 0.6482 GB, free: 11.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.072e-05/1.892, allocations: 20.97 kB / 0.6483 GB, free: 11.34 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008613/1.9, allocations: 2.107 MB / 0.6503 GB, free: 9.605 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006227/1.906, allocations: 0.6548 MB / 0.651 GB, free: 9.008 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3037/2.21, allocations: 10.97 MB / 0.6617 GB, free: 225.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006211/2.216, allocations: 438 kB / 0.6621 GB, free: 225.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009666/2.217, allocations: 152.8 kB / 0.6622 GB, free: 225.9 MB / 0.5105 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.002961/2.22, allocations: 0.7562 MB / 0.663 GB, free: 225.8 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009398/2.221, allocations: 241.8 kB / 0.6632 GB, free: 225.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03908/2.261, allocations: 12.4 MB / 0.6753 GB, free: 222 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03203/2.293, allocations: 11.08 MB / 0.6861 GB, free: 217.6 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.07e-05/2.293, allocations: 3.781 kB / 0.6861 GB, free: 217.6 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02988/2.323, allocations: 11.19 MB / 0.6971 GB, free: 213 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05012/2.373, allocations: 19.06 MB / 0.7157 GB, free: 199.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.748e-05/2.373, allocations: 6.594 kB / 0.7157 GB, free: 199.2 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003867/2.377, allocations: 435.4 kB / 0.7161 GB, free: 198.7 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02537/2.402, allocations: 5.776 MB / 0.7217 GB, free: 193.1 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000734/2.403, allocations: 91.92 kB / 0.7218 GB, free: 193 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01739/2.42, allocations: 10.81 MB / 0.7324 GB, free: 182 MB / 0.5105 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.003847/2.424, allocations: 1.812 MB / 0.7342 GB, free: 180.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03847/2.463, allocations: 14.67 MB / 0.7485 GB, free: 165.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003054/2.466, allocations: 0.9442 MB / 0.7494 GB, free: 164.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001079/2.467, allocations: 63.94 kB / 0.7495 GB, free: 164.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005961/2.473, allocations: 388.3 kB / 0.7498 GB, free: 164.1 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009547/2.474, allocations: 229.9 kB / 0.7501 GB, free: 163.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004272/2.474, allocations: 108 kB / 0.7502 GB, free: 163.8 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002664/2.477, allocations: 1.262 MB / 0.7514 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of sort global known variables: time 6.22e-07/2.477, allocations: 0 / 0.7514 GB, free: 162.5 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01381/2.491, allocations: 3.475 MB / 0.7548 GB, free: 159.3 MB / 0.5105 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.01513/2.506, allocations: 2.556 MB / 0.7573 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.03666/2.543, allocations: 9.377 MB / 0.7664 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.685e-06/2.543, allocations: 0 / 0.7664 GB, free: 147.7 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01673/2.56, allocations: 4.293 MB / 0.7706 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00903/2.569, allocations: 1.038 MB / 0.7716 GB, free: 142.4 MB / 0.5105 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]