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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.129/2.129, allocations: 235 MB / 247.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.682e-05/3.722e-05, allocations: 4 kB / 304.9 MB, free: 5.672 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3197/0.3197, allocations: 54.86 MB / 359.8 MB, free: 2.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.354/6.674, allocations: 2.652 GB / 3.004 GB, free: 116.5 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002284/6.674, allocations: 79.11 kB / 3.004 GB, free: 116.5 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.313/9.988, allocations: 0.7406 GB / 3.744 GB, free: 33.11 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.156e-06/9.988, allocations: 0 / 3.744 GB, free: 33.11 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001312/9.988, allocations: 29.08 kB / 3.744 GB, free: 33.11 MB / 0.4948 GB 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.01078/9.999, allocations: 2.758 MB / 3.747 GB, free: 31.96 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/9.999, allocations: 14.22 kB / 3.747 GB, free: 31.96 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004465/10, allocations: 485 kB / 3.747 GB, free: 31.88 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003362/10.01, allocations: 1.123 MB / 3.749 GB, free: 31.56 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/10.01, allocations: 146 kB / 3.749 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002662/10.01, allocations: 92.17 kB / 3.749 GB, free: 31.5 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005284/10.01, allocations: 1.878 MB / 3.751 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/10.01, allocations: 4.406 kB / 3.751 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000194/10.01, allocations: 39.98 kB / 3.751 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001263/10.01, allocations: 80.05 kB / 3.751 GB, free: 31.16 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004968/10.02, allocations: 1.691 MB / 3.752 GB, free: 31.16 MB / 0.4948 GB Warning: The model contains alias variables with conflicting start and/or 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.01527/10.03, allocations: 8.545 MB / 3.761 GB, free: 26.25 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/10.04, allocations: 1.369 MB / 3.762 GB, free: 25.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/10.04, allocations: 473.5 kB / 3.763 GB, free: 25.91 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1483/10.19, allocations: 63.48 MB / 3.825 GB, free: 18.69 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003085/10.19, allocations: 0.8954 MB / 3.825 GB, free: 18.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=82): time 5.102e-06/10.19, allocations: 0 / 3.825 GB, free: 18.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=86): time 0.01161/10.2, allocations: 3.738 MB / 3.829 GB, free: 17.43 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000279/10.2, allocations: 408 kB / 3.829 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00193/10.2, allocations: 0.9168 MB / 3.83 GB, free: 16.79 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002671/10.2, allocations: 47.89 kB / 3.83 GB, free: 16.76 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005109/10.2, allocations: 0.5616 MB / 3.831 GB, free: 16.44 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/10.2, allocations: 306.9 kB / 3.831 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/10.2, allocations: 26.91 kB / 3.831 GB, free: 16.25 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0002231/10.21, allocations: 356.9 kB / 3.832 GB, free: 15.94 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001188/10.21, allocations: 481.7 kB / 3.832 GB, free: 15.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001487/10.21, allocations: 0.9326 MB / 3.833 GB, free: 15.36 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001531/10.21, allocations: 0.6311 MB / 3.834 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.286e-05/10.21, allocations: 3.188 kB / 3.834 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004461/10.21, allocations: 1.673 MB / 3.835 GB, free: 15.23 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.003104/10.22, allocations: 5.403 MB / 3.841 GB, free: 25.57 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.906e-05/10.22, allocations: 18.39 kB / 3.841 GB, free: 25.56 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008222/10.23, allocations: 1.052 MB / 3.842 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/10.23, allocations: 248.3 kB / 3.842 GB, free: 25.52 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002746/10.23, allocations: 1.438 MB / 3.843 GB, free: 24.99 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002065/10.23, allocations: 130.8 kB / 3.843 GB, free: 24.97 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000267/10.23, allocations: 70.88 kB / 3.843 GB, free: 24.97 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/10.23, allocations: 3.281 kB / 3.843 GB, free: 24.97 MB / 0.5417 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003977/10.24, allocations: 1.483 MB / 3.845 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-05/10.24, allocations: 19.06 kB / 3.845 GB, free: 24.93 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001545/10.24, allocations: 337.2 kB / 3.845 GB, free: 24.91 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/10.24, allocations: 284.5 kB / 3.845 GB, free: 24.91 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001594/10.24, allocations: 1.007 MB / 3.846 GB, free: 24.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/10.24, allocations: 134.4 kB / 3.847 GB, free: 24.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001999/10.24, allocations: 66.88 kB / 3.847 GB, free: 24.36 MB / 0.5417 GB Warning: Assuming fixed start value for the following 1 variables: m_flow_initial:DISCRETE(unit = "kg/s" fixed = false ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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.inFlow[2],pipe.volume.inFlow[1],pipe.volume.heatTransfer.states[1].phase,sink.state.phase,sink.medium.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0005311/10.24, allocations: 196.6 kB / 3.847 GB, free: 24.24 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003723/10.24, allocations: 132.9 kB / 3.847 GB, free: 24.18 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006563/10.25, allocations: 3.96 MB / 3.851 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.229e-05/10.25, allocations: 45.22 kB / 3.851 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.461e-06/10.25, allocations: 0 / 3.851 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.881e-05/10.25, allocations: 11.61 kB / 3.851 GB, free: 23.73 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009452/10.26, allocations: 5.481 MB / 3.856 GB, free: 23.09 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.829e-05/10.26, allocations: 3.844 kB / 3.856 GB, free: 23.09 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001092/10.26, allocations: 172.4 kB / 3.856 GB, free: 23.09 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008282/10.27, allocations: 1.78 MB / 3.858 GB, free: 23 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002284/10.27, allocations: 30.19 kB / 3.858 GB, free: 23 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002429/10.27, allocations: 2.084 MB / 3.86 GB, free: 21.94 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.654e-06/10.27, allocations: 3.75 kB / 3.86 GB, free: 21.94 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006216/10.28, allocations: 3.808 MB / 3.864 GB, free: 21.36 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/10.28, allocations: 0.5322 MB / 3.864 GB, free: 21.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005111/10.28, allocations: 22.12 kB / 3.864 GB, free: 21.11 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/10.28, allocations: 102.2 kB / 3.865 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002511/10.28, allocations: 78.44 kB / 3.865 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001239/10.28, allocations: 38.17 kB / 3.865 GB, free: 21.09 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.002057/10.28, allocations: 1.032 MB / 3.866 GB, free: 20.97 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.42e-07/10.28, allocations: 0 / 3.866 GB, free: 20.97 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.008636/10.29, allocations: 2.055 MB / 3.868 GB, free: 20.66 MB / 0.5417 GB 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,$cse19.phase,$cse19.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.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.01113/10.3, allocations: 2.375 MB / 3.87 GB, free: 20.09 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00582/10.31, allocations: 2.221 MB / 3.872 GB, free: 20.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.137e-05/10.31, allocations: 0 / 3.872 GB, free: 20.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.00198/10.31, allocations: 0.9772 MB / 3.873 GB, free: 20.04 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004049/10.32, allocations: 0.6386 MB / 3.874 GB, free: 19.99 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005885/10.32, allocations: 2.899 MB / 3.877 GB, free: 18.82 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001333/10.32, allocations: 1.474 MB / 3.878 GB, free: 17.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005453/10.32, allocations: 110.3 kB / 3.878 GB, free: 17.7 MB / 0.5417 GB Notification: Performance of SimCode: time 1.629e-06/10.32, allocations: 0 / 3.878 GB, free: 17.7 MB / 0.5417 GB Notification: Performance of Templates: time 0.4244/10.75, allocations: 58.85 MB / 3.936 GB, free: 76.66 MB / 0.5417 GB