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.2_cpp_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.125/2.125, allocations: 235 MB / 247.6 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.007e-05/3.014e-05, allocations: 0 / 304.9 MB, free: 5.668 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3199, allocations: 54.86 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.925/6.245, allocations: 2.664 GB / 3.015 GB, free: 10.25 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002206/6.245, allocations: 71.97 kB / 3.015 GB, free: 10.18 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.242/8.487, allocations: 0.489 GB / 3.504 GB, free: 52.45 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.092e-06/8.487, allocations: 0 / 3.504 GB, free: 52.45 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001319/8.487, allocations: 46.34 kB / 3.504 GB, free: 52.45 MB / 490.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.01105/8.498, allocations: 2.976 MB / 3.507 GB, free: 51 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/8.498, allocations: 10.75 kB / 3.507 GB, free: 51 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007318/8.505, allocations: 0.7061 MB / 3.508 GB, free: 50.83 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004925/8.51, allocations: 1.582 MB / 3.509 GB, free: 50.1 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000234/8.511, allocations: 172.3 kB / 3.509 GB, free: 50.03 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006146/8.511, allocations: 180.7 kB / 3.51 GB, free: 49.97 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008958/8.52, allocations: 3.503 MB / 3.513 GB, free: 48.5 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.295e-05/8.52, allocations: 6.969 kB / 3.513 GB, free: 48.5 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003444/8.521, allocations: 81.06 kB / 3.513 GB, free: 48.45 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/8.521, allocations: 170.1 kB / 3.513 GB, free: 48.43 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008982/8.53, allocations: 3.291 MB / 3.517 GB, free: 47.38 MB / 490.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.02225/8.552, allocations: 14.14 MB / 3.53 GB, free: 37.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005738/8.558, allocations: 2.127 MB / 3.532 GB, free: 36.55 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002021/8.56, allocations: 1.082 MB / 3.533 GB, free: 36.11 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4448/9.005, allocations: 63.65 MB / 3.596 GB, free: 67.46 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005602/9.01, allocations: 1.679 MB / 3.597 GB, free: 67.34 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=154): time 6.427e-06/9.011, allocations: 0 / 3.597 GB, free: 67.34 MB / 0.4948 GB Notification: Performance of matching and sorting (n=174): time 0.02469/9.035, allocations: 8.141 MB / 3.605 GB, free: 65.97 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.396e-05/9.035, allocations: 282.8 kB / 3.605 GB, free: 65.66 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002257/9.038, allocations: 1.179 MB / 3.607 GB, free: 65.5 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004666/9.038, allocations: 58.17 kB / 3.607 GB, free: 65.46 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007101/9.039, allocations: 0.8089 MB / 3.607 GB, free: 65.09 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007071/9.04, allocations: 0.6054 MB / 3.608 GB, free: 64.79 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002087/9.04, allocations: 43.09 kB / 3.608 GB, free: 64.79 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001728/9.04, allocations: 395.8 kB / 3.608 GB, free: 64.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002566/9.043, allocations: 1.142 MB / 3.61 GB, free: 64.47 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003167/9.046, allocations: 1.678 MB / 3.611 GB, free: 63.85 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003229/9.049, allocations: 1.382 MB / 3.613 GB, free: 63.83 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.526e-05/9.049, allocations: 4.812 kB / 3.613 GB, free: 63.83 MB / 0.4948 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.00912/9.058, allocations: 3.853 MB / 3.616 GB, free: 63.7 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001291/9.06, allocations: 6.28 MB / 3.622 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.325e-05/9.06, allocations: 17.16 kB / 3.622 GB, free: 57.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02/9.08, allocations: 3.433 MB / 3.626 GB, free: 57.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001794/9.081, allocations: 330.3 kB / 3.626 GB, free: 57.12 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00729/9.089, allocations: 3.82 MB / 3.63 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003227/9.092, allocations: 280.1 kB / 3.63 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004398/9.093, allocations: 107 kB / 3.63 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/9.093, allocations: 6.125 kB / 3.63 GB, free: 56.54 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008316/9.101, allocations: 3.536 MB / 3.634 GB, free: 56.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.921e-05/9.101, allocations: 17.59 kB / 3.634 GB, free: 56.48 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00994/9.111, allocations: 2.169 MB / 3.636 GB, free: 56.45 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/9.113, allocations: 375.2 kB / 3.636 GB, free: 56.45 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005136/9.118, allocations: 3.096 MB / 3.639 GB, free: 55.89 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/9.121, allocations: 262.9 kB / 3.639 GB, free: 55.88 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003301/9.121, allocations: 105.2 kB / 3.64 GB, free: 55.88 MB / 0.4948 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: 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.0007318/9.122, allocations: 225.9 kB / 3.64 GB, free: 55.77 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005045/9.122, allocations: 171.9 kB / 3.64 GB, free: 55.69 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01094/9.133, allocations: 6.76 MB / 3.647 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.119e-05/9.133, allocations: 76.48 kB / 3.647 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.219e-05/9.133, allocations: 0 / 3.647 GB, free: 55.16 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008046/9.141, allocations: 5.443 MB / 3.652 GB, free: 54.42 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/9.157, allocations: 9.467 MB / 3.661 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/9.157, allocations: 0 / 3.661 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002684/9.16, allocations: 442.6 kB / 3.662 GB, free: 53.83 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002243/9.162, allocations: 438.1 kB / 3.662 GB, free: 53.78 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003672/9.163, allocations: 65.89 kB / 3.662 GB, free: 53.78 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001862/9.165, allocations: 3.208 MB / 3.665 GB, free: 51.16 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.566e-06/9.165, allocations: 3.969 kB / 3.665 GB, free: 51.16 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0111/9.176, allocations: 6.742 MB / 3.672 GB, free: 48.21 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001955/9.178, allocations: 0.7767 MB / 3.673 GB, free: 47.75 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004916/9.178, allocations: 55.67 kB / 3.673 GB, free: 47.71 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0023/9.181, allocations: 207.3 kB / 3.673 GB, free: 47.68 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004237/9.181, allocations: 187.4 kB / 3.673 GB, free: 47.65 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002145/9.181, allocations: 66.16 kB / 3.673 GB, free: 47.64 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.002145/9.183, allocations: 1.22 MB / 3.674 GB, free: 47.16 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.29e-07/9.183, allocations: 0 / 3.674 GB, free: 47.16 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008935/9.192, allocations: 2.363 MB / 3.677 GB, free: 46.92 MB / 0.4948 GB 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.009817/9.202, allocations: 2.025 MB / 3.679 GB, free: 46.66 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01077/9.213, allocations: 5.019 MB / 3.683 GB, free: 45 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.362e-06/9.213, allocations: 3.438 kB / 3.683 GB, free: 45 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.004485/9.218, allocations: 2.25 MB / 3.686 GB, free: 44.12 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004845/9.222, allocations: 0.7847 MB / 3.686 GB, free: 43.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01148/9.234, allocations: 5.751 MB / 3.692 GB, free: 41.86 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00182/9.236, allocations: 2.041 MB / 3.694 GB, free: 41.02 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001037/9.237, allocations: 173.9 kB / 3.694 GB, free: 41 MB / 0.4948 GB Notification: Performance of SimCode: time 1.939e-06/9.237, allocations: 2.531 kB / 3.694 GB, free: 41 MB / 0.4948 GB Notification: Performance of Templates: time 0.1164/9.353, allocations: 87.16 MB / 3.779 GB, free: 10.61 MB / 0.5105 GB