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.832/1.832, allocations: 209.3 MB / 221.9 MB, free: 7.742 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.518e-05/3.54e-05, allocations: 4 kB / 273.1 MB, free: 3.668 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0872/0.08726, allocations: 48.69 MB / 321.8 MB, free: 2.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.193/6.281, allocations: 2.542 GB / 2.856 GB, free: 105.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002276/6.281, allocations: 77.52 kB / 2.856 GB, free: 105.6 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216/9.497, allocations: 0.7229 GB / 3.579 GB, free: 31.75 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.146e-06/9.497, allocations: 0 / 3.579 GB, free: 31.75 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001327/9.497, allocations: 32.22 kB / 3.579 GB, free: 31.74 MB / 458.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.01011/9.507, allocations: 2.673 MB / 3.582 GB, free: 30.38 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.358e-05/9.507, allocations: 8.875 kB / 3.582 GB, free: 30.38 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004697/9.512, allocations: 459 kB / 3.582 GB, free: 30.31 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003302/9.515, allocations: 1.126 MB / 3.583 GB, free: 29.99 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000165/9.515, allocations: 141.1 kB / 3.583 GB, free: 29.92 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002369/9.516, allocations: 95.09 kB / 3.583 GB, free: 29.92 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004876/9.521, allocations: 1.882 MB / 3.585 GB, free: 29.58 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.969e-05/9.521, allocations: 6.812 kB / 3.585 GB, free: 29.58 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001862/9.521, allocations: 39.34 kB / 3.585 GB, free: 29.58 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/9.521, allocations: 82.38 kB / 3.585 GB, free: 29.58 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005062/9.526, allocations: 1.694 MB / 3.587 GB, free: 29.56 MB / 458.7 MB 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.01395/9.54, allocations: 8.544 MB / 3.595 GB, free: 24.59 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003895/9.544, allocations: 1.364 MB / 3.597 GB, free: 24.28 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/9.545, allocations: 465.1 kB / 3.597 GB, free: 24.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1929/9.738, allocations: 63.44 MB / 3.659 GB, free: 8.293 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002903/9.741, allocations: 0.8906 MB / 3.66 GB, free: 7.555 MB / 490.7 MB Notification: Performance of pre-optimization done (n=82): time 4.962e-06/9.741, allocations: 0 / 3.66 GB, free: 7.555 MB / 490.7 MB Notification: Performance of matching and sorting (n=86): time 0.01199/9.753, allocations: 3.733 MB / 3.664 GB, free: 4.145 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002624/9.753, allocations: 410.2 kB / 3.664 GB, free: 3.656 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001966/9.755, allocations: 0.9218 MB / 3.665 GB, free: 2.793 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002515/9.756, allocations: 41.7 kB / 3.665 GB, free: 2.746 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006364/9.756, allocations: 0.557 MB / 3.665 GB, free: 2.215 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004988/9.757, allocations: 310.2 kB / 3.666 GB, free: 1.945 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/9.757, allocations: 24 kB / 3.666 GB, free: 1.922 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000223/9.757, allocations: 360.9 kB / 3.666 GB, free: 1.574 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/9.758, allocations: 481 kB / 3.667 GB, free: 1.129 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/9.76, allocations: 0.9367 MB / 3.667 GB, free: 32 kB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.3012/10.06, allocations: 0.6412 MB / 3.668 GB, free: 64.15 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.646e-05/10.06, allocations: 4.25 kB / 3.668 GB, free: 64.15 MB / 490.7 MB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004306/10.07, allocations: 1.667 MB / 3.67 GB, free: 64.11 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001053/10.07, allocations: 5.398 MB / 3.675 GB, free: 58.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/10.07, allocations: 13.47 kB / 3.675 GB, free: 58.49 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008288/10.08, allocations: 1.056 MB / 3.676 GB, free: 58.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/10.08, allocations: 251.9 kB / 3.676 GB, free: 58.48 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/10.08, allocations: 1.436 MB / 3.678 GB, free: 57.96 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002124/10.08, allocations: 128.2 kB / 3.678 GB, free: 57.96 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002323/10.08, allocations: 74.2 kB / 3.678 GB, free: 57.96 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/10.08, allocations: 6.188 kB / 3.678 GB, free: 57.96 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003953/10.09, allocations: 1.484 MB / 3.679 GB, free: 57.93 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.043e-05/10.09, allocations: 14.19 kB / 3.679 GB, free: 57.93 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001708/10.09, allocations: 338.8 kB / 3.68 GB, free: 57.93 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001579/10.09, allocations: 279.6 kB / 3.68 GB, free: 57.93 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001449/10.09, allocations: 1.011 MB / 3.681 GB, free: 57.4 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001537/10.09, allocations: 132.1 kB / 3.681 GB, free: 57.4 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001989/10.09, allocations: 70.11 kB / 3.681 GB, free: 57.4 MB / 490.7 MB 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.0004939/10.09, allocations: 198.3 kB / 3.681 GB, free: 57.3 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003724/10.09, allocations: 123.8 kB / 3.681 GB, free: 57.3 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006779/10.1, allocations: 3.977 MB / 3.685 GB, free: 57.04 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.778e-05/10.1, allocations: 43.92 kB / 3.685 GB, free: 57.04 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.07e-05/10.1, allocations: 0 / 3.685 GB, free: 57.04 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.552e-05/10.1, allocations: 10.36 kB / 3.685 GB, free: 57.04 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009622/10.11, allocations: 5.477 MB / 3.691 GB, free: 56.45 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-05/10.11, allocations: 3.906 kB / 3.691 GB, free: 56.45 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/10.11, allocations: 173.3 kB / 3.691 GB, free: 56.45 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008322/10.12, allocations: 1.774 MB / 3.693 GB, free: 56.41 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002217/10.12, allocations: 27.16 kB / 3.693 GB, free: 56.41 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002039/10.12, allocations: 2.091 MB / 3.695 GB, free: 55.34 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.772e-06/10.12, allocations: 1.969 kB / 3.695 GB, free: 55.34 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005938/10.13, allocations: 3.816 MB / 3.698 GB, free: 54.76 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/10.13, allocations: 0.5244 MB / 3.699 GB, free: 54.56 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003406/10.13, allocations: 26.19 kB / 3.699 GB, free: 54.56 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001414/10.13, allocations: 99.73 kB / 3.699 GB, free: 54.56 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/10.13, allocations: 77.8 kB / 3.699 GB, free: 54.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001172/10.13, allocations: 40.8 kB / 3.699 GB, free: 54.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.00197/10.13, allocations: 1.036 MB / 3.7 GB, free: 54.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.259e-06/10.13, allocations: 0 / 3.7 GB, free: 54.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008141/10.14, allocations: 2.039 MB / 3.702 GB, free: 54.44 MB / 490.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,$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.01087/10.15, allocations: 2.373 MB / 3.704 GB, free: 54.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00534/10.16, allocations: 2.213 MB / 3.707 GB, free: 54.15 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/10.16, allocations: 2.625 kB / 3.707 GB, free: 54.15 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/10.16, allocations: 0.9796 MB / 3.708 GB, free: 54.14 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/10.16, allocations: 0.6206 MB / 3.708 GB, free: 54.12 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005887/10.17, allocations: 2.9 MB / 3.711 GB, free: 53.45 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001072/10.17, allocations: 1.474 MB / 3.712 GB, free: 52.72 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005566/10.17, allocations: 110.7 kB / 3.713 GB, free: 52.71 MB / 490.7 MB Notification: Performance of SimCode: time 2.058e-06/10.17, allocations: 0 / 3.713 GB, free: 52.71 MB / 490.7 MB Notification: Performance of Templates: time 0.08844/10.26, allocations: 58.7 MB / 3.77 GB, free: 49.18 MB / 490.7 MB