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_ModelicaTest.Fluid.TestPipesAndValves.LumpedPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.256/2.256, allocations: 235 MB / 247.2 MB, free: 14.57 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.713e-05/6.734e-05, allocations: 7.984 kB / 304.9 MB, free: 5.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3617/0.3618, allocations: 54.85 MB / 359.8 MB, free: 3.039 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.058/6.42, allocations: 2.652 GB / 3.004 GB, free: 22.52 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000224/6.42, allocations: 81.42 kB / 3.004 GB, free: 22.44 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.262/9.682, allocations: 0.7406 GB / 3.744 GB, free: 36.09 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.091e-06/9.682, allocations: 0 / 3.744 GB, free: 36.09 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001378/9.682, allocations: 31.03 kB / 3.744 GB, free: 36.08 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.01092/9.693, allocations: 2.76 MB / 3.747 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/9.693, allocations: 9.219 kB / 3.747 GB, free: 34.52 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004657/9.697, allocations: 477.8 kB / 3.748 GB, free: 34.39 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/9.701, allocations: 1.121 MB / 3.749 GB, free: 33.76 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001938/9.701, allocations: 148.8 kB / 3.749 GB, free: 33.66 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003362/9.702, allocations: 97.33 kB / 3.749 GB, free: 33.62 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005356/9.707, allocations: 1.877 MB / 3.751 GB, free: 32.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.169e-05/9.707, allocations: 10.97 kB / 3.751 GB, free: 32.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001985/9.707, allocations: 42.41 kB / 3.751 GB, free: 32.69 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/9.707, allocations: 75.75 kB / 3.751 GB, free: 32.68 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005231/9.713, allocations: 1.697 MB / 3.752 GB, free: 32.09 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.01545/9.728, allocations: 8.535 MB / 3.761 GB, free: 25.62 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004056/9.732, allocations: 1.368 MB / 3.762 GB, free: 24.83 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009968/9.733, allocations: 468.9 kB / 3.763 GB, free: 24.38 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4752/10.21, allocations: 63.73 MB / 3.825 GB, free: 45.33 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002918/10.21, allocations: 0.8947 MB / 3.826 GB, free: 45.21 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=82): time 5.61e-06/10.21, allocations: 2.906 kB / 3.826 GB, free: 45.21 MB / 0.5105 GB Notification: Performance of matching and sorting (n=86): time 0.01132/10.22, allocations: 3.731 MB / 3.829 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/10.22, allocations: 411.1 kB / 3.83 GB, free: 43.75 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001814/10.22, allocations: 0.924 MB / 3.831 GB, free: 43.59 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0002518/10.22, allocations: 45.05 kB / 3.831 GB, free: 43.56 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000531/10.23, allocations: 0.5642 MB / 3.831 GB, free: 43.34 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003558/10.23, allocations: 298.6 kB / 3.832 GB, free: 43.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001154/10.23, allocations: 24.59 kB / 3.832 GB, free: 43.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001106/10.23, allocations: 361.2 kB / 3.832 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001123/10.23, allocations: 473.7 kB / 3.832 GB, free: 42.89 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00136/10.23, allocations: 0.9347 MB / 3.833 GB, free: 42.34 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/10.23, allocations: 0.6328 MB / 3.834 GB, free: 42.33 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/10.23, allocations: 8.719 kB / 3.834 GB, free: 42.33 MB / 0.5105 GB Notification: Performance of matching and sorting (n=160) (initialization): time 0.004355/10.23, allocations: 1.732 MB / 3.836 GB, free: 42.21 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.001069/10.24, allocations: 5.411 MB / 3.841 GB, free: 36.59 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/10.24, allocations: 13.22 kB / 3.841 GB, free: 36.59 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008114/10.24, allocations: 1.055 MB / 3.842 GB, free: 36.58 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/10.25, allocations: 253.1 kB / 3.842 GB, free: 36.58 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002421/10.25, allocations: 1.438 MB / 3.844 GB, free: 36.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002108/10.25, allocations: 130.7 kB / 3.844 GB, free: 36.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002716/10.25, allocations: 68.33 kB / 3.844 GB, free: 36.04 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/10.25, allocations: 5.406 kB / 3.844 GB, free: 36.04 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003723/10.25, allocations: 1.489 MB / 3.845 GB, free: 36.01 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.042e-05/10.25, allocations: 17.19 kB / 3.845 GB, free: 36.01 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001869/10.26, allocations: 343.6 kB / 3.846 GB, free: 36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001574/10.26, allocations: 280.1 kB / 3.846 GB, free: 36 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001348/10.26, allocations: 1.006 MB / 3.847 GB, free: 35.48 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002027/10.26, allocations: 129 kB / 3.847 GB, free: 35.47 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002608/10.26, allocations: 64.67 kB / 3.847 GB, free: 35.47 MB / 0.5105 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.0005074/10.26, allocations: 206 kB / 3.847 GB, free: 35.36 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003645/10.26, allocations: 130.1 kB / 3.847 GB, free: 35.3 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006184/10.27, allocations: 3.967 MB / 3.851 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.578e-05/10.27, allocations: 44.16 kB / 3.851 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/10.27, allocations: 3.875 kB / 3.851 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-05/10.27, allocations: 5.531 kB / 3.851 GB, free: 34.95 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008771/10.28, allocations: 5.475 MB / 3.857 GB, free: 34.36 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.471e-05/10.28, allocations: 0 / 3.857 GB, free: 34.36 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009986/10.28, allocations: 172.9 kB / 3.857 GB, free: 34.36 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007699/10.29, allocations: 1.779 MB / 3.858 GB, free: 34.31 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000211/10.29, allocations: 33.44 kB / 3.859 GB, free: 34.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002049/10.29, allocations: 2.083 MB / 3.861 GB, free: 33.25 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/10.29, allocations: 7.328 kB / 3.861 GB, free: 33.24 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005921/10.29, allocations: 3.811 MB / 3.864 GB, free: 32.66 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001283/10.3, allocations: 0.5336 MB / 3.865 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003952/10.3, allocations: 25.39 kB / 3.865 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/10.3, allocations: 101.4 kB / 3.865 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001971/10.3, allocations: 71.3 kB / 3.865 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001131/10.3, allocations: 33.62 kB / 3.865 GB, free: 32.42 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001934/10.3, allocations: 1.044 MB / 3.866 GB, free: 32.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.07e-06/10.3, allocations: 0 / 3.866 GB, free: 32.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.008686/10.31, allocations: 2.054 MB / 3.868 GB, free: 32.21 MB / 0.5105 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.0113/10.32, allocations: 2.371 MB / 3.87 GB, free: 31.96 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.005397/10.33, allocations: 2.255 MB / 3.873 GB, free: 31.92 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.081e-06/10.33, allocations: 0 / 3.873 GB, free: 31.92 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.00188/10.33, allocations: 0.9733 MB / 3.873 GB, free: 31.91 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003968/10.33, allocations: 0.6313 MB / 3.874 GB, free: 31.9 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005778/10.34, allocations: 2.851 MB / 3.877 GB, free: 31.26 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/10.34, allocations: 1.481 MB / 3.878 GB, free: 30.54 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00334/10.34, allocations: 1.042 MB / 3.879 GB, free: 30.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003744/10.34, allocations: 99.81 kB / 3.879 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of SimCode: time 2.781e-06/10.34, allocations: 0 / 3.879 GB, free: 30.51 MB / 0.5105 GB Notification: Performance of Templates: time 0.1273/10.47, allocations: 68.55 MB / 3.946 GB, free: 26.51 MB / 0.5105 GB