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_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2.252/2.252, allocations: 194.9 MB / 211.2 MB, free: 8.352 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.669e-05, allocations: 4 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3759, allocations: 44.5 MB / 303.3 MB, free: 12.75 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.1804/0.5563, allocations: 88.54 MB / 391.8 MB, free: 4.953 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.07498/0.6314, allocations: 35.45 MB / 427.3 MB, free: 1.438 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003922/0.6354, allocations: 107.1 kB / 427.4 MB, free: 1.332 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004827/0.6402, allocations: 1.147 MB / 428.5 MB, free: 184 kB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.3389/0.9792, allocations: 5.708 MB / 434.2 MB, free: 7.477 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02406/1.003, allocations: 6.616 MB / 440.8 MB, free: 7.328 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00951/1.013, allocations: 3.638 MB / 444.5 MB, free: 7.32 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003202/1.016, allocations: 1.309 MB / 445.8 MB, free: 7.297 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.05902/1.075, allocations: 24.05 MB / 469.8 MB, free: 2.07 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.06346/1.139, allocations: 23.96 MB / 493.8 MB, free: 12.19 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03804/1.177, allocations: 12.18 MB / 0.4941 GB, free: 2.266 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005222/1.182, allocations: 0.6016 MB / 0.4947 GB, free: 1.664 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002495/1.185, allocations: 0.9082 MB / 0.4956 GB, free: 1.066 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002244/1.187, allocations: 340 kB / 0.4959 GB, free: 0.7344 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01983/1.207, allocations: 6.821 MB / 0.5026 GB, free: 10.91 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/1.207, allocations: 0 / 0.5026 GB, free: 10.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.866e-06/1.207, allocations: 0 / 0.5026 GB, free: 10.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001811/1.207, allocations: 4 kB / 0.5026 GB, free: 10.9 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.01716/1.224, allocations: 3.772 MB / 0.5063 GB, free: 7.336 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.071e-05/1.224, allocations: 8.031 kB / 0.5063 GB, free: 7.328 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01093/1.235, allocations: 0.9881 MB / 0.5072 GB, free: 6.406 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006744/1.242, allocations: 1.725 MB / 0.5089 GB, free: 5.098 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005599/1.243, allocations: 287.1 kB / 0.5092 GB, free: 4.895 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001289/1.244, allocations: 251.5 kB / 0.5094 GB, free: 4.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01748/1.262, allocations: 4.416 MB / 0.5137 GB, free: 1.367 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001087/1.262, allocations: 10.81 kB / 0.5138 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007167/1.262, allocations: 107 kB / 0.5139 GB, free: 1.332 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005813/1.263, allocations: 269.8 kB / 0.5141 GB, free: 1.098 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01731/1.28, allocations: 4.199 MB / 0.5182 GB, free: 14.12 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.04457/1.325, allocations: 18.84 MB / 0.5366 GB, free: 12.97 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01196/1.337, allocations: 2.876 MB / 0.5394 GB, free: 10.96 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06182/1.399, allocations: 17.21 MB / 0.5562 GB, free: 8.043 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.852e-05/1.399, allocations: 59.38 kB / 0.5563 GB, free: 7.992 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00204/1.401, allocations: 208.2 kB / 0.5565 GB, free: 7.816 MB / 458.7 MB Notification: Performance of pre-optimization done (n=192): time 6.843e-06/1.401, allocations: 6.625 kB / 0.5565 GB, free: 7.812 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.6889/2.09, allocations: 30.57 MB / 0.5863 GB, free: 208.6 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.002939/2.093, allocations: 0.9935 MB / 0.5873 GB, free: 208.1 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003383/2.096, allocations: 1.616 MB / 0.5889 GB, free: 207.6 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007671/2.097, allocations: 68.02 kB / 0.589 GB, free: 207.5 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009411/2.098, allocations: 1.093 MB / 0.59 GB, free: 206.9 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001372/2.1, allocations: 0.8282 MB / 0.5908 GB, free: 206.3 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004046/2.1, allocations: 51.88 kB / 0.5909 GB, free: 206.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0002079/2.1, allocations: 423.3 kB / 0.5913 GB, free: 205.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006613/2.107, allocations: 2.007 MB / 0.5932 GB, free: 205.2 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007232/2.114, allocations: 2.575 MB / 0.5958 GB, free: 203.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007265/2.121, allocations: 2.219 MB / 0.5979 GB, free: 203.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-05/2.122, allocations: 3.969 kB / 0.5979 GB, free: 203.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=346) (initialization): time 0.0223/2.144, allocations: 6.447 MB / 0.6042 GB, free: 200.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001479/2.145, allocations: 6.444 MB / 0.6105 GB, free: 194 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.861e-05/2.146, allocations: 17.56 kB / 0.6105 GB, free: 194 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04945/2.195, allocations: 7.846 MB / 0.6182 GB, free: 190.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002913/2.198, allocations: 387.3 kB / 0.6186 GB, free: 190.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01973/2.218, allocations: 6.76 MB / 0.6252 GB, free: 183.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007098/2.225, allocations: 448.7 kB / 0.6256 GB, free: 183.2 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009297/2.226, allocations: 153.2 kB / 0.6257 GB, free: 183.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/2.226, allocations: 4 kB / 0.6257 GB, free: 183.1 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01987/2.246, allocations: 5.908 MB / 0.6315 GB, free: 177.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.379e-05/2.246, allocations: 17.31 kB / 0.6315 GB, free: 177.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02055/2.266, allocations: 4.059 MB / 0.6355 GB, free: 173.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003625/2.27, allocations: 443.3 kB / 0.6359 GB, free: 172.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01662/2.287, allocations: 5.757 MB / 0.6415 GB, free: 166.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006001/2.293, allocations: 439.3 kB / 0.642 GB, free: 166.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007773/2.294, allocations: 143.9 kB / 0.6421 GB, free: 166.3 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.002552/2.296, allocations: 0.7443 MB / 0.6428 GB, free: 165.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000894/2.297, allocations: 241.1 kB / 0.6431 GB, free: 165.3 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03257/2.33, allocations: 12.4 MB / 0.6552 GB, free: 152.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02907/2.359, allocations: 11.09 MB / 0.666 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.008e-05/2.359, allocations: 0 / 0.666 GB, free: 141.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02846/2.387, allocations: 11.19 MB / 0.6769 GB, free: 130.3 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04738/2.435, allocations: 19.06 MB / 0.6955 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.262e-05/2.435, allocations: 4 kB / 0.6955 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003828/2.439, allocations: 435.5 kB / 0.6959 GB, free: 110.7 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02526/2.464, allocations: 5.762 MB / 0.7016 GB, free: 104.9 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007332/2.465, allocations: 99.92 kB / 0.7017 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01729/2.482, allocations: 10.81 MB / 0.7122 GB, free: 93.76 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.003872/2.486, allocations: 1.827 MB / 0.714 GB, free: 91.9 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03805/2.524, allocations: 14.66 MB / 0.7283 GB, free: 77.09 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002964/2.527, allocations: 0.9479 MB / 0.7292 GB, free: 76.12 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001043/2.528, allocations: 59.98 kB / 0.7293 GB, free: 76.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005932/2.534, allocations: 383.4 kB / 0.7297 GB, free: 75.69 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009516/2.535, allocations: 230 kB / 0.7299 GB, free: 75.46 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004368/2.536, allocations: 107.9 kB / 0.73 GB, free: 75.36 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002521/2.538, allocations: 1.262 MB / 0.7312 GB, free: 74.07 MB / 474.7 MB Notification: Performance of sort global known variables: time 6.11e-07/2.538, allocations: 0 / 0.7312 GB, free: 74.07 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01309/2.551, allocations: 3.452 MB / 0.7346 GB, free: 70.87 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.01416/2.566, allocations: 2.544 MB / 0.7371 GB, free: 68.74 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03664/2.602, allocations: 9.13 MB / 0.746 GB, free: 59.56 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/2.602, allocations: 0 / 0.746 GB, free: 59.56 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01698/2.619, allocations: 4.292 MB / 0.7502 GB, free: 55.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009426/2.629, allocations: 1.035 MB / 0.7512 GB, free: 54.23 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]