Running command: translateModel(ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|pipe.mediums.3..h|pipe.mediums.3..p|pipe.mediums.4..h|pipe.mediums.4..p|pipe.mediums.5..h|pipe.mediums.5..p|m_flow_initial",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 1.803/1.803, allocations: 209.3 MB / 221.9 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.762e-05/4.806e-05, allocations: 4 kB / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1344, allocations: 48.7 MB / 321.8 MB, free: 2.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.147/6.282, allocations: 2.553 GB / 2.867 GB, free: 96.02 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001982/6.282, allocations: 79.95 kB / 2.867 GB, free: 95.98 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.138/8.42, allocations: 489.8 MB / 3.346 GB, free: 48.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.389e-06/8.42, allocations: 3.031 kB / 3.346 GB, free: 48.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001202/8.42, allocations: 43.44 kB / 3.346 GB, free: 48.2 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: 509 * Number of variables: 509 Notification: Performance of Generate backend data structure: time 0.01084/8.431, allocations: 2.931 MB / 3.349 GB, free: 47.08 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/8.431, allocations: 11.16 kB / 3.349 GB, free: 47.08 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007112/8.438, allocations: 0.6915 MB / 3.349 GB, free: 46.97 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004802/8.443, allocations: 1.576 MB / 3.351 GB, free: 46.61 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002065/8.443, allocations: 167.4 kB / 3.351 GB, free: 46.6 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004944/8.444, allocations: 179.4 kB / 3.351 GB, free: 46.6 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009318/8.453, allocations: 3.504 MB / 3.355 GB, free: 46.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.464e-05/8.453, allocations: 5.312 kB / 3.355 GB, free: 46.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/8.453, allocations: 86.53 kB / 3.355 GB, free: 46.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002022/8.454, allocations: 167.8 kB / 3.355 GB, free: 46.15 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009315/8.463, allocations: 3.3 MB / 3.358 GB, free: 46.14 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.02324/8.486, allocations: 14.12 MB / 3.372 GB, free: 38.38 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005981/8.492, allocations: 2.14 MB / 3.374 GB, free: 38.25 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00203/8.494, allocations: 1.073 MB / 3.375 GB, free: 38.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1509/8.645, allocations: 63.57 MB / 3.437 GB, free: 30.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004927/8.65, allocations: 1.685 MB / 3.439 GB, free: 30.28 MB / 490.7 MB Notification: Performance of pre-optimization done (n=154): time 6.659e-06/8.65, allocations: 0 / 3.439 GB, free: 30.28 MB / 490.7 MB Notification: Performance of matching and sorting (n=174): time 0.02373/8.674, allocations: 8.151 MB / 3.447 GB, free: 28.66 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000199/8.674, allocations: 286.5 kB / 3.447 GB, free: 28.34 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002192/8.677, allocations: 1.177 MB / 3.448 GB, free: 28.17 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004594/8.677, allocations: 57.14 kB / 3.448 GB, free: 28.14 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007223/8.678, allocations: 0.814 MB / 3.449 GB, free: 27.67 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007753/8.679, allocations: 0.5997 MB / 3.45 GB, free: 27.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002177/8.679, allocations: 40.16 kB / 3.45 GB, free: 27.3 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002549/8.679, allocations: 396.5 kB / 3.45 GB, free: 26.98 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002274/8.681, allocations: 1.142 MB / 3.451 GB, free: 26.98 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002603/8.684, allocations: 1.68 MB / 3.453 GB, free: 26.35 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002857/8.687, allocations: 1.384 MB / 3.454 GB, free: 26.2 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/8.687, allocations: 3.906 kB / 3.454 GB, free: 26.2 MB / 490.7 MB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008479/8.695, allocations: 3.865 MB / 3.458 GB, free: 24.84 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003053/8.699, allocations: 6.27 MB / 3.464 GB, free: 18.14 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-05/8.699, allocations: 13.47 kB / 3.464 GB, free: 18.14 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02067/8.719, allocations: 3.429 MB / 3.467 GB, free: 16.06 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/8.721, allocations: 332.7 kB / 3.468 GB, free: 15.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006892/8.728, allocations: 3.817 MB / 3.471 GB, free: 12.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002963/8.731, allocations: 283.6 kB / 3.472 GB, free: 12.3 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003421/8.731, allocations: 108.4 kB / 3.472 GB, free: 12.2 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/8.731, allocations: 4 kB / 3.472 GB, free: 12.2 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007337/8.739, allocations: 3.536 MB / 3.475 GB, free: 9.219 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-05/8.739, allocations: 16 kB / 3.475 GB, free: 9.203 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009599/8.748, allocations: 2.172 MB / 3.477 GB, free: 7.52 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001991/8.75, allocations: 369.2 kB / 3.478 GB, free: 7.234 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005859/8.756, allocations: 3.096 MB / 3.481 GB, free: 4.539 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002492/8.759, allocations: 267.7 kB / 3.481 GB, free: 4.336 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003396/8.759, allocations: 102.4 kB / 3.481 GB, free: 4.242 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: 72 * Number of states: 0 () * Number of discrete variables: 17 (source.medium.phase,$PRE.m_flow_initial,m_flow_initial,$whenCondition2,$whenCondition1,valve.state_b.phase,valve.state_a.phase,pipe.state_a.phase,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].phase,sink.state.phase,sink.medium.phase,pipe.state_b.phase,source.state.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 165 * 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 {14 91} Notification: Performance of prepare postOptimizeDAE: time 0.0007516/8.76, allocations: 234.8 kB / 3.481 GB, free: 4.027 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005211/8.76, allocations: 162 kB / 3.482 GB, free: 3.867 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2919/9.052, allocations: 7.049 MB / 3.488 GB, free: 76.09 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001052/9.053, allocations: 79.36 kB / 3.488 GB, free: 76.09 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.635e-05/9.053, allocations: 4.125 kB / 3.488 GB, free: 76.09 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009124/9.062, allocations: 5.443 MB / 3.494 GB, free: 75.37 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01814/9.08, allocations: 9.463 MB / 3.503 GB, free: 74.89 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.101e-05/9.08, allocations: 4.5 kB / 3.503 GB, free: 74.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002616/9.083, allocations: 442.9 kB / 3.503 GB, free: 74.89 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003498/9.086, allocations: 437.9 kB / 3.504 GB, free: 74.86 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000735/9.087, allocations: 68.61 kB / 3.504 GB, free: 74.86 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0036/9.091, allocations: 3.209 MB / 3.507 GB, free: 72.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/9.091, allocations: 9.938 kB / 3.507 GB, free: 72.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02102/9.112, allocations: 6.744 MB / 3.514 GB, free: 71.81 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003465/9.115, allocations: 0.7703 MB / 3.514 GB, free: 71.63 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001085/9.116, allocations: 52.67 kB / 3.514 GB, free: 71.63 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004656/9.121, allocations: 207.3 kB / 3.515 GB, free: 71.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009012/9.122, allocations: 188 kB / 3.515 GB, free: 71.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004399/9.122, allocations: 69.48 kB / 3.515 GB, free: 71.62 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.004107/9.127, allocations: 1.222 MB / 3.516 GB, free: 71.5 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.269e-06/9.127, allocations: 0 / 3.516 GB, free: 71.5 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01499/9.142, allocations: 2.355 MB / 3.518 GB, free: 71.5 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (pipe.mediums[1].p,pipe.mediums[1].h,pipe.mediums[2].p,pipe.mediums[2].h,pipe.mediums[3].p,pipe.mediums[3].h,pipe.mediums[4].p,pipe.mediums[4].h,pipe.mediums[5].p,pipe.mediums[5].h) * Number of discrete variables: 39 ($cse4.region3boundary,$cse5.region3boundary,$cse6.phase,$cse6.region,$cse7.region3boundary,$cse8.region3boundary,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.region3boundary,$cse14.region3boundary,$cse15.phase,$cse15.region,$cse16.region3boundary,$cse17.region3boundary,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse31.phase,$cse31.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$whenCondition2,$whenCondition1,pipe.statesFM[2].phase,pipe.statesFM[3].phase,pipe.statesFM[4].phase,pipe.statesFM[5].phase,pipe.statesFM[6].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 (202): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 5 {1 1,1 1,1 1,1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01167/9.153, allocations: 2.01 MB / 3.52 GB, free: 71.39 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01066/9.164, allocations: 5.002 MB / 3.525 GB, free: 71.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.035e-05/9.164, allocations: 0 / 3.525 GB, free: 71.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004732/9.169, allocations: 2.267 MB / 3.527 GB, free: 71.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004865/9.174, allocations: 0.7934 MB / 3.528 GB, free: 71.28 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/9.185, allocations: 5.749 MB / 3.534 GB, free: 70.24 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001787/9.187, allocations: 2.044 MB / 3.536 GB, free: 69.5 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/9.188, allocations: 173.6 kB / 3.536 GB, free: 69.49 MB / 490.7 MB Notification: Performance of SimCode: time 2.251e-06/9.188, allocations: 0 / 3.536 GB, free: 69.49 MB / 490.7 MB Notification: Performance of Templates: time 0.1146/9.302, allocations: 86.98 MB / 3.621 GB, free: 54.46 MB / 490.7 MB