Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.volume.medium.h|pipe.volume.medium.p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.3 MB / 224.4 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.986e-05/2.989e-05, allocations: 4 kB / 276.1 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3595/0.3596, allocations: 48.71 MB / 324.8 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.08743/0.447, allocations: 52.48 MB / 377.3 MB, free: 11.01 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05067/0.4978, allocations: 24.93 MB / 402.3 MB, free: 2.02 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002143/0.5, allocations: 47.62 kB / 402.3 MB, free: 1.973 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002566/0.5026, allocations: 0.5635 MB / 402.9 MB, free: 1.406 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01955/0.5222, allocations: 4.611 MB / 407.5 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01576/0.538, allocations: 3.895 MB / 411.4 MB, free: 8.879 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004622/0.5426, allocations: 1.598 MB / 413 MB, free: 7.277 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00147/0.5441, allocations: 0.5668 MB / 413.5 MB, free: 6.711 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.129/0.6731, allocations: 49.84 MB / 463.4 MB, free: 4.848 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3793/1.053, allocations: 25.19 MB / 488.6 MB, free: 76.06 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02367/1.076, allocations: 8.263 MB / 496.8 MB, free: 76.04 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004312/1.081, allocations: 0.4964 MB / 497.3 MB, free: 76.04 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000957/1.082, allocations: 347.2 kB / 497.7 MB, free: 76.04 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006356/1.082, allocations: 147.2 kB / 497.8 MB, free: 76.04 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01216/1.094, allocations: 4.711 MB / 0.4907 GB, free: 75.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/1.094, allocations: 0 / 0.4907 GB, free: 75.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.986e-06/1.094, allocations: 0 / 0.4907 GB, free: 75.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.765e-05/1.095, allocations: 0 / 0.4907 GB, free: 75.79 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.009072/1.104, allocations: 2.19 MB / 0.4929 GB, free: 74.7 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/1.104, allocations: 7.688 kB / 0.4929 GB, free: 74.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004678/1.108, allocations: 462.3 kB / 0.4933 GB, free: 74.62 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/1.111, allocations: 0.9426 MB / 0.4942 GB, free: 74.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002009/1.111, allocations: 142.4 kB / 0.4944 GB, free: 74.27 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000313/1.112, allocations: 93.52 kB / 0.4945 GB, free: 74.27 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006142/1.118, allocations: 1.872 MB / 0.4963 GB, free: 73.96 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.688e-05/1.118, allocations: 9.203 kB / 0.4963 GB, free: 73.96 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002038/1.118, allocations: 38.92 kB / 0.4963 GB, free: 73.96 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001626/1.118, allocations: 82.38 kB / 0.4964 GB, free: 73.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00674/1.125, allocations: 1.791 MB / 0.4982 GB, free: 73.1 MB / 410.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.01729/1.142, allocations: 8.552 MB / 0.5065 GB, free: 65.7 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005029/1.147, allocations: 1.413 MB / 0.5079 GB, free: 64.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2243/1.372, allocations: 64.08 MB / 0.5705 GB, free: 10.18 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006365/1.378, allocations: 0.8869 MB / 0.5713 GB, free: 9.48 MB / 426.7 MB Notification: Performance of pre-optimization done (n=82): time 5.62e-06/1.378, allocations: 0 / 0.5713 GB, free: 9.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=86): time 0.02281/1.401, allocations: 4.6 MB / 0.5758 GB, free: 5.766 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002727/1.401, allocations: 412.1 kB / 0.5762 GB, free: 5.273 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002144/1.403, allocations: 0.9344 MB / 0.5771 GB, free: 4.566 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003005/1.404, allocations: 46.39 kB / 0.5772 GB, free: 4.527 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000621/1.404, allocations: 0.5701 MB / 0.5777 GB, free: 4.125 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004875/1.405, allocations: 303 kB / 0.578 GB, free: 3.875 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001282/1.405, allocations: 22.38 kB / 0.5781 GB, free: 3.871 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002267/1.405, allocations: 363.5 kB / 0.5784 GB, free: 3.527 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/1.407, allocations: 0.5363 MB / 0.5789 GB, free: 3.188 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002547/1.41, allocations: 1.033 MB / 0.5799 GB, free: 2.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002427/1.412, allocations: 0.7038 MB / 0.5806 GB, free: 1.766 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/1.412, allocations: 4 kB / 0.5806 GB, free: 1.762 MB / 426.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.00649/1.419, allocations: 1.885 MB / 0.5825 GB, free: 0.5547 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00264/1.422, allocations: 5.584 MB / 0.5879 GB, free: 10.66 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.633e-05/1.422, allocations: 12 kB / 0.5879 GB, free: 10.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01075/1.432, allocations: 1.132 MB / 0.589 GB, free: 9.641 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00192/1.434, allocations: 254.5 kB / 0.5893 GB, free: 9.422 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003725/1.438, allocations: 1.497 MB / 0.5907 GB, free: 8.293 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002329/1.441, allocations: 132.4 kB / 0.5909 GB, free: 8.184 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002295/1.441, allocations: 69.17 kB / 0.5909 GB, free: 8.129 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/1.441, allocations: 4 kB / 0.5909 GB, free: 8.125 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00617/1.447, allocations: 1.705 MB / 0.5926 GB, free: 7.035 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-05/1.447, allocations: 16.16 kB / 0.5926 GB, free: 7.02 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002386/1.45, allocations: 379.4 kB / 0.593 GB, free: 6.727 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002184/1.452, allocations: 291 kB / 0.5933 GB, free: 6.473 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/1.454, allocations: 1.068 MB / 0.5943 GB, free: 5.598 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001972/1.456, allocations: 124.3 kB / 0.5944 GB, free: 5.496 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002332/1.457, allocations: 67.36 kB / 0.5945 GB, free: 5.441 MB / 442.7 MB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 64 * Number of states: 0 () * Number of discrete variables: 19 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.staticPipe2.flowModel.states[2].phase,pipe.staticPipe2.flowModel.states[1].phase,pipe.staticPipe1.flowModel.states[2].phase,pipe.staticPipe1.flowModel.states[1].phase,pipe.volume.regularFlow[1],pipe.volume.regularFlow[2],pipe.volume.heatTransfer.states[1].phase,pipe.volume.inFlow[2],pipe.volume.inFlow[1],sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (125): * Single equations (assignments): 124 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 35} Notification: Performance of prepare postOptimizeDAE: time 0.001237/1.458, allocations: 394.2 kB / 0.5949 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004358/1.458, allocations: 126.5 kB / 0.595 GB, free: 5.066 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009076/1.467, allocations: 4.052 MB / 0.5989 GB, free: 2.402 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.684e-05/1.467, allocations: 44.94 kB / 0.599 GB, free: 2.371 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.467, allocations: 3.938 kB / 0.599 GB, free: 2.367 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.955e-05/1.468, allocations: 11.97 kB / 0.599 GB, free: 2.355 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/1.479, allocations: 5.536 MB / 0.6044 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/1.479, allocations: 0 / 0.6044 GB, free: 14.76 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/1.481, allocations: 179.7 kB / 0.6046 GB, free: 14.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01123/1.492, allocations: 1.55 MB / 0.6061 GB, free: 13.2 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002287/1.492, allocations: 29.67 kB / 0.6061 GB, free: 13.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002774/1.495, allocations: 2.078 MB / 0.6081 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/1.495, allocations: 7.25 kB / 0.6082 GB, free: 11.52 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008824/1.504, allocations: 3.988 MB / 0.612 GB, free: 8.855 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001427/1.505, allocations: 0.5265 MB / 0.6126 GB, free: 8.426 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005143/1.506, allocations: 23.06 kB / 0.6126 GB, free: 8.418 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001767/1.508, allocations: 98.31 kB / 0.6127 GB, free: 8.336 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002544/1.508, allocations: 79.08 kB / 0.6128 GB, free: 8.266 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/1.508, allocations: 30.5 kB / 0.6128 GB, free: 8.242 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002381/1.51, allocations: 1.051 MB / 0.6138 GB, free: 7.508 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.274e-06/1.51, allocations: 4 kB / 0.6138 GB, free: 7.504 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007733/1.518, allocations: 1.81 MB / 0.6156 GB, free: 5.801 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (pipe.volume.medium.p,pipe.volume.medium.h) * Number of discrete variables: 25 ($cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse22.phase,$cse22.region,$whenCondition2,$whenCondition1,pipe.volume.heatTransfer.states[1].phase,m_flow_initial,$cse3.phase,$cse3.region,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 1 * 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 {1 1,1 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.009507/1.528, allocations: 1.658 MB / 0.6172 GB, free: 4.316 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00843/1.536, allocations: 2.474 MB / 0.6196 GB, free: 2.68 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.307e-05/1.536, allocations: 3.672 kB / 0.6196 GB, free: 2.68 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002946/1.539, allocations: 1.057 MB / 0.6206 GB, free: 2.062 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00577/1.545, allocations: 0.6314 MB / 0.6213 GB, free: 1.539 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009633/1.555, allocations: 4.483 MB / 0.6256 GB, free: 13.6 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001496/1.556, allocations: 1.469 MB / 0.6271 GB, free: 12.14 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006554/1.557, allocations: 112.9 kB / 0.6272 GB, free: 12.03 MB / 474.7 MB Notification: Performance of SimCode: time 1.002e-06/1.557, allocations: 0 / 0.6272 GB, free: 12.03 MB / 474.7 MB Notification: Performance of Templates: time 0.4077/1.965, allocations: 55.32 MB / 0.6812 GB, free: 166.3 MB / 474.7 MB