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_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.948/1.948, allocations: 209.3 MB / 223.8 MB, free: 448 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.193e-05/3.204e-05, allocations: 4 kB / 276.2 MB, free: 15.21 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3553, allocations: 48.69 MB / 324.9 MB, free: 3.375 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization): time 0.09481/0.4502, allocations: 52.47 MB / 377.3 MB, free: 10.96 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.05243/0.5027, allocations: 24.95 MB / 402.3 MB, free: 1.953 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002095/0.5048, allocations: 51.56 kB / 402.3 MB, free: 1.902 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.5074, allocations: 0.5635 MB / 402.9 MB, free: 1.336 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01932/0.5268, allocations: 4.607 MB / 407.5 MB, free: 12.72 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01604/0.5429, allocations: 3.899 MB / 411.4 MB, free: 8.809 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004534/0.5474, allocations: 1.59 MB / 413 MB, free: 7.215 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00156/0.5491, allocations: 0.5707 MB / 413.6 MB, free: 6.645 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1295/0.6786, allocations: 49.85 MB / 463.4 MB, free: 4.777 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.3769/1.056, allocations: 25.18 MB / 488.6 MB, free: 75.99 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02483/1.08, allocations: 8.258 MB / 496.8 MB, free: 75.97 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004455/1.085, allocations: 0.4969 MB / 497.3 MB, free: 75.97 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009359/1.086, allocations: 352.8 kB / 497.7 MB, free: 75.97 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006481/1.087, allocations: 147.2 kB / 497.8 MB, free: 75.97 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01187/1.098, allocations: 4.709 MB / 0.4908 GB, free: 75.71 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.481e-06/1.099, allocations: 0 / 0.4908 GB, free: 75.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.837e-06/1.099, allocations: 0 / 0.4908 GB, free: 75.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.607e-05/1.099, allocations: 3.281 kB / 0.4908 GB, free: 75.71 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.009055/1.108, allocations: 2.187 MB / 0.4929 GB, free: 74.62 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/1.108, allocations: 9.938 kB / 0.4929 GB, free: 74.62 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004789/1.113, allocations: 462.2 kB / 0.4934 GB, free: 74.55 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002964/1.116, allocations: 0.9334 MB / 0.4943 GB, free: 74.26 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002599/1.116, allocations: 148.7 kB / 0.4944 GB, free: 74.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003785/1.116, allocations: 93.44 kB / 0.4945 GB, free: 74.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006105/1.122, allocations: 1.873 MB / 0.4963 GB, free: 73.89 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.037e-05/1.123, allocations: 7.641 kB / 0.4963 GB, free: 73.89 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002022/1.123, allocations: 40.16 kB / 0.4964 GB, free: 73.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/1.123, allocations: 78.66 kB / 0.4964 GB, free: 73.84 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006672/1.13, allocations: 1.794 MB / 0.4982 GB, free: 72.93 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.01776/1.147, allocations: 8.559 MB / 0.5066 GB, free: 65.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005665/1.153, allocations: 1.412 MB / 0.5079 GB, free: 64.43 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2073/1.361, allocations: 64.07 MB / 0.5705 GB, free: 10.05 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003821/1.364, allocations: 0.8958 MB / 0.5714 GB, free: 9.344 MB / 426.7 MB Notification: Performance of pre-optimization done (n=82): time 4.519e-06/1.364, allocations: 0 / 0.5714 GB, free: 9.344 MB / 426.7 MB Notification: Performance of matching and sorting (n=86): time 0.0205/1.385, allocations: 4.601 MB / 0.5759 GB, free: 5.629 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002474/1.385, allocations: 398.2 kB / 0.5762 GB, free: 5.145 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002338/1.388, allocations: 0.9421 MB / 0.5772 GB, free: 4.434 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003161/1.388, allocations: 39.89 kB / 0.5772 GB, free: 4.398 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008025/1.389, allocations: 0.5767 MB / 0.5778 GB, free: 4.016 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006086/1.389, allocations: 300 kB / 0.5781 GB, free: 3.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001642/1.39, allocations: 24.94 kB / 0.5781 GB, free: 3.766 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/1.39, allocations: 356.7 kB / 0.5784 GB, free: 3.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00223/1.392, allocations: 0.5422 MB / 0.5789 GB, free: 3.086 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002889/1.395, allocations: 1.026 MB / 0.58 GB, free: 2.086 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002859/1.398, allocations: 0.708 MB / 0.5806 GB, free: 1.668 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.019e-05/1.398, allocations: 4 kB / 0.5806 GB, free: 1.664 MB / 426.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.007015/1.405, allocations: 1.958 MB / 0.5826 GB, free: 392 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002675/1.408, allocations: 5.574 MB / 0.588 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.065e-05/1.408, allocations: 18.91 kB / 0.588 GB, free: 10.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01088/1.419, allocations: 1.136 MB / 0.5891 GB, free: 9.473 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00191/1.421, allocations: 243.7 kB / 0.5894 GB, free: 9.262 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003825/1.425, allocations: 1.497 MB / 0.5908 GB, free: 8.129 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002471/1.427, allocations: 126.5 kB / 0.5909 GB, free: 8.027 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003228/1.427, allocations: 73.91 kB / 0.591 GB, free: 7.965 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.652e-05/1.428, allocations: 4 kB / 0.591 GB, free: 7.961 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00758/1.435, allocations: 1.701 MB / 0.5927 GB, free: 6.879 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.843e-05/1.435, allocations: 16 kB / 0.5927 GB, free: 6.863 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002842/1.438, allocations: 402.1 kB / 0.5931 GB, free: 6.547 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002252/1.44, allocations: 284.2 kB / 0.5934 GB, free: 6.301 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/1.443, allocations: 1.073 MB / 0.5944 GB, free: 5.422 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002208/1.445, allocations: 132.1 kB / 0.5945 GB, free: 5.312 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002881/1.445, allocations: 68.09 kB / 0.5946 GB, free: 5.258 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.001154/1.447, allocations: 396.1 kB / 0.595 GB, free: 5.004 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003919/1.447, allocations: 130.4 kB / 0.5951 GB, free: 4.879 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009034/1.456, allocations: 4.057 MB / 0.5991 GB, free: 2.211 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.809e-05/1.456, allocations: 48.81 kB / 0.5991 GB, free: 2.176 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.044e-05/1.456, allocations: 2.812 kB / 0.5991 GB, free: 2.176 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.589e-05/1.456, allocations: 11.97 kB / 0.5991 GB, free: 2.164 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01218/1.468, allocations: 5.528 MB / 0.6045 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.125e-05/1.469, allocations: 0 / 0.6045 GB, free: 14.57 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/1.47, allocations: 177.7 kB / 0.6047 GB, free: 14.41 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01165/1.482, allocations: 1.551 MB / 0.6062 GB, free: 13.01 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002975/1.482, allocations: 26.38 kB / 0.6062 GB, free: 13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003194/1.485, allocations: 2.086 MB / 0.6083 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/1.485, allocations: 0 / 0.6083 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01378/1.499, allocations: 3.991 MB / 0.6122 GB, free: 8.672 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/1.501, allocations: 0.5258 MB / 0.6127 GB, free: 8.242 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003944/1.501, allocations: 21.88 kB / 0.6127 GB, free: 8.234 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001552/1.503, allocations: 100.5 kB / 0.6128 GB, free: 8.152 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002223/1.503, allocations: 75.23 kB / 0.6129 GB, free: 8.086 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001179/1.503, allocations: 41.86 kB / 0.6129 GB, free: 8.055 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002211/1.505, allocations: 1.045 MB / 0.6139 GB, free: 7.324 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.505, allocations: 0 / 0.6139 GB, free: 7.324 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007235/1.512, allocations: 1.814 MB / 0.6157 GB, free: 5.613 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.009167/1.522, allocations: 1.67 MB / 0.6173 GB, free: 4.129 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008252/1.53, allocations: 2.516 MB / 0.6198 GB, free: 2.461 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/1.53, allocations: 5.375 kB / 0.6198 GB, free: 2.457 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002794/1.533, allocations: 1.051 MB / 0.6208 GB, free: 1.844 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005481/1.538, allocations: 0.6251 MB / 0.6214 GB, free: 1.328 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009199/1.547, allocations: 4.425 MB / 0.6257 GB, free: 13.43 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001504/1.549, allocations: 1.483 MB / 0.6272 GB, free: 11.96 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.004053/1.553, allocations: 1.049 MB / 0.6282 GB, free: 10.91 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003923/1.554, allocations: 93.53 kB / 0.6283 GB, free: 10.82 MB / 474.7 MB Notification: Performance of SimCode: time 1.202e-06/1.554, allocations: 4 kB / 0.6283 GB, free: 10.82 MB / 474.7 MB Notification: Performance of Templates: time 0.427/1.981, allocations: 57.34 MB / 0.6843 GB, free: 164.2 MB / 474.7 MB