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.3_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.224/2.224, allocations: 249.5 MB / 261.6 MB, free: 2.16 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 2.881e-05/2.897e-05, allocations: 4 kB / 323.4 MB, free: 4.316 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3167/0.3168, allocations: 58.83 MB / 382.2 MB, free: 10.33 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.424/6.741, allocations: 2.833 GB / 3.206 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/6.742, allocations: 82.38 kB / 3.206 GB, free: 108.5 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 1.95/8.692, allocations: 0.4914 GB / 3.698 GB, free: 18.74 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.104e-06/8.692, allocations: 0 / 3.698 GB, free: 18.74 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001052/8.692, allocations: 47.12 kB / 3.698 GB, free: 18.7 MB / 0.5105 GB 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.009235/8.701, allocations: 2.983 MB / 3.701 GB, free: 15.68 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/8.701, allocations: 12.03 kB / 3.701 GB, free: 15.66 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00598/8.707, allocations: 0.7078 MB / 3.702 GB, free: 14.95 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004073/8.712, allocations: 1.589 MB / 3.703 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/8.712, allocations: 163.3 kB / 3.703 GB, free: 13.18 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003897/8.712, allocations: 179.7 kB / 3.703 GB, free: 13.01 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007283/8.719, allocations: 3.502 MB / 3.707 GB, free: 9.363 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.728e-05/8.72, allocations: 3.938 kB / 3.707 GB, free: 9.359 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003046/8.72, allocations: 72 kB / 3.707 GB, free: 9.289 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/8.72, allocations: 179.5 kB / 3.707 GB, free: 9.113 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007277/8.727, allocations: 3.29 MB / 3.71 GB, free: 5.82 MB / 0.5105 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.3316/9.059, allocations: 14.14 MB / 3.724 GB, free: 41.32 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005756/9.065, allocations: 2.135 MB / 3.726 GB, free: 41.2 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001865/9.067, allocations: 1.083 MB / 3.727 GB, free: 41.14 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1346/9.201, allocations: 63.63 MB / 3.789 GB, free: 34.47 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004665/9.206, allocations: 1.684 MB / 3.791 GB, free: 34.34 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=154): time 6.276e-06/9.206, allocations: 4 kB / 3.791 GB, free: 34.33 MB / 0.5418 GB Notification: Performance of matching and sorting (n=174): time 0.02135/9.227, allocations: 8.147 MB / 3.799 GB, free: 32.79 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001945/9.228, allocations: 278.9 kB / 3.799 GB, free: 32.46 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001996/9.23, allocations: 1.173 MB / 3.8 GB, free: 32.3 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.0003455/9.23, allocations: 58.67 kB / 3.8 GB, free: 32.27 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.000681/9.231, allocations: 0.8274 MB / 3.801 GB, free: 31.96 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005893/9.231, allocations: 0.6051 MB / 3.802 GB, free: 31.66 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002084/9.231, allocations: 43.22 kB / 3.802 GB, free: 31.66 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.0002435/9.232, allocations: 385.2 kB / 3.802 GB, free: 31.35 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00212/9.234, allocations: 1.146 MB / 3.803 GB, free: 31.34 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002406/9.236, allocations: 1.685 MB / 3.805 GB, free: 30.7 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002723/9.239, allocations: 1.379 MB / 3.806 GB, free: 30.66 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-05/9.239, allocations: 7.812 kB / 3.806 GB, free: 30.65 MB / 0.5418 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008042/9.247, allocations: 3.927 MB / 3.81 GB, free: 30.47 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.002978/9.25, allocations: 6.278 MB / 3.816 GB, free: 23.89 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.245e-05/9.25, allocations: 14.62 kB / 3.816 GB, free: 23.89 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01972/9.27, allocations: 3.458 MB / 3.82 GB, free: 23.78 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001641/9.272, allocations: 335.3 kB / 3.82 GB, free: 23.78 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006885/9.279, allocations: 3.809 MB / 3.824 GB, free: 23.2 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/9.282, allocations: 277.3 kB / 3.824 GB, free: 23.17 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003452/9.282, allocations: 106.3 kB / 3.824 GB, free: 23.17 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/9.282, allocations: 6.016 kB / 3.824 GB, free: 23.17 MB / 0.5418 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007849/9.29, allocations: 3.533 MB / 3.828 GB, free: 23.1 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.641e-05/9.29, allocations: 19.88 kB / 3.828 GB, free: 23.1 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01176/9.302, allocations: 2.257 MB / 3.83 GB, free: 23.03 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002028/9.304, allocations: 365.7 kB / 3.83 GB, free: 23.03 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004997/9.309, allocations: 3.107 MB / 3.833 GB, free: 22.46 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002745/9.312, allocations: 260.8 kB / 3.833 GB, free: 22.43 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002995/9.312, allocations: 100.6 kB / 3.834 GB, free: 22.43 MB / 0.5418 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.0007326/9.313, allocations: 241.2 kB / 3.834 GB, free: 22.32 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004122/9.313, allocations: 172 kB / 3.834 GB, free: 22.23 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01018/9.323, allocations: 6.756 MB / 3.841 GB, free: 21.66 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.147e-05/9.323, allocations: 72.61 kB / 3.841 GB, free: 21.66 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/9.323, allocations: 3.25 kB / 3.841 GB, free: 21.66 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.007665/9.331, allocations: 5.439 MB / 3.846 GB, free: 20.92 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01435/9.345, allocations: 9.477 MB / 3.855 GB, free: 20.31 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.581e-05/9.345, allocations: 0 / 3.855 GB, free: 20.31 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002291/9.348, allocations: 443.8 kB / 3.856 GB, free: 20.3 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001913/9.35, allocations: 440.2 kB / 3.856 GB, free: 20.24 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002172/9.35, allocations: 61.7 kB / 3.856 GB, free: 20.24 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003178/9.353, allocations: 3.211 MB / 3.859 GB, free: 33.64 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.652e-06/9.353, allocations: 3.562 kB / 3.859 GB, free: 33.64 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01009/9.363, allocations: 6.741 MB / 3.866 GB, free: 31.62 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00176/9.365, allocations: 0.7722 MB / 3.867 GB, free: 31.16 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004597/9.366, allocations: 48 kB / 3.867 GB, free: 31.13 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001943/9.368, allocations: 209.9 kB / 3.867 GB, free: 31.08 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004075/9.368, allocations: 192.9 kB / 3.867 GB, free: 31.05 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002177/9.368, allocations: 70.47 kB / 3.867 GB, free: 31.04 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.002002/9.37, allocations: 1.224 MB / 3.868 GB, free: 30.56 MB / 0.5574 GB Notification: Performance of sort global known variables: time 9.8e-07/9.37, allocations: 0 / 3.868 GB, free: 30.56 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.008054/9.378, allocations: 2.362 MB / 3.871 GB, free: 30.32 MB / 0.5574 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.009027/9.387, allocations: 2.026 MB / 3.873 GB, free: 29.97 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.01005/9.397, allocations: 5.037 MB / 3.877 GB, free: 28.29 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/9.397, allocations: 3.969 kB / 3.877 GB, free: 28.29 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.004065/9.402, allocations: 2.266 MB / 3.88 GB, free: 27.4 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004569/9.406, allocations: 0.7815 MB / 3.88 GB, free: 27.2 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01069/9.417, allocations: 5.669 MB / 3.886 GB, free: 22.29 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001938/9.419, allocations: 2.058 MB / 3.888 GB, free: 20.64 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.004956/9.424, allocations: 1.61 MB / 3.89 GB, free: 19.66 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007515/9.425, allocations: 142.7 kB / 3.89 GB, free: 19.53 MB / 0.5574 GB Notification: Performance of SimCode: time 1.647e-06/9.425, allocations: 4 kB / 3.89 GB, free: 19.52 MB / 0.5574 GB Notification: Performance of Templates: time 0.4785/9.903, allocations: 84.97 MB / 3.973 GB, free: 88.98 MB / 0.5574 GB