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_4.0.0_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.344/2.344, allocations: 270 MB / 283.6 MB, free: 3.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.647e-05/3.652e-05, allocations: 3.984 kB / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 61.89 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.756/6.866, allocations: 2.838 GB / 3.239 GB, free: 89.66 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002228/6.866, allocations: 78.45 kB / 3.239 GB, free: 89.62 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.436/9.303, allocations: 0.4969 GB / 3.736 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.859e-06/9.303, allocations: 0 / 3.736 GB, free: 44.01 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001403/9.303, allocations: 44.11 kB / 3.736 GB, free: 44.01 MB / 0.5261 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.01152/9.314, allocations: 2.978 MB / 3.739 GB, free: 43.02 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/9.314, allocations: 11.02 kB / 3.739 GB, free: 43.02 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006958/9.321, allocations: 0.7081 MB / 3.739 GB, free: 42.91 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005468/9.327, allocations: 1.584 MB / 3.741 GB, free: 42.6 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002869/9.327, allocations: 168.2 kB / 3.741 GB, free: 42.6 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006504/9.328, allocations: 178.2 kB / 3.741 GB, free: 42.59 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009841/9.338, allocations: 3.511 MB / 3.745 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.834e-05/9.338, allocations: 5.906 kB / 3.745 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003632/9.338, allocations: 72.89 kB / 3.745 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002605/9.338, allocations: 174.4 kB / 3.745 GB, free: 42.15 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009993/9.348, allocations: 3.296 MB / 3.748 GB, free: 42.14 MB / 0.5261 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.02546/9.374, allocations: 14.13 MB / 3.762 GB, free: 34.39 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006161/9.38, allocations: 2.142 MB / 3.764 GB, free: 34.26 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002175/9.382, allocations: 1.078 MB / 3.765 GB, free: 34.21 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1523/9.535, allocations: 63.65 MB / 3.827 GB, free: 27.05 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005659/9.54, allocations: 1.685 MB / 3.829 GB, free: 26.91 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 6.913e-06/9.54, allocations: 3.75 kB / 3.829 GB, free: 26.91 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02482/9.565, allocations: 8.157 MB / 3.837 GB, free: 25.29 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002102/9.566, allocations: 277.3 kB / 3.837 GB, free: 24.98 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002207/9.568, allocations: 1.185 MB / 3.838 GB, free: 24.8 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004619/9.568, allocations: 59.2 kB / 3.838 GB, free: 24.77 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007558/9.569, allocations: 0.8184 MB / 3.839 GB, free: 24.38 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007682/9.57, allocations: 0.6021 MB / 3.84 GB, free: 24 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000227/9.57, allocations: 39.72 kB / 3.84 GB, free: 24 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002675/9.57, allocations: 392 kB / 3.84 GB, free: 23.69 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002371/9.573, allocations: 1.145 MB / 3.841 GB, free: 23.68 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002847/9.576, allocations: 1.68 MB / 3.843 GB, free: 23.05 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002859/9.578, allocations: 1.375 MB / 3.844 GB, free: 23.01 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.619e-05/9.579, allocations: 7.938 kB / 3.844 GB, free: 23 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008822/9.587, allocations: 3.928 MB / 3.848 GB, free: 22.82 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003117/9.591, allocations: 6.279 MB / 3.854 GB, free: 16.24 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.751e-05/9.591, allocations: 17.31 kB / 3.854 GB, free: 16.24 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02197/9.613, allocations: 3.456 MB / 3.857 GB, free: 16.14 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001825/9.614, allocations: 334.8 kB / 3.858 GB, free: 16.14 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008154/9.623, allocations: 3.818 MB / 3.862 GB, free: 31.55 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003544/9.626, allocations: 279.6 kB / 3.862 GB, free: 31.52 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005431/9.627, allocations: 100.1 kB / 3.862 GB, free: 31.52 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/9.627, allocations: 7.344 kB / 3.862 GB, free: 31.52 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008547/9.635, allocations: 3.537 MB / 3.865 GB, free: 31.44 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.102e-05/9.635, allocations: 18.16 kB / 3.865 GB, free: 31.44 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.012/9.647, allocations: 2.263 MB / 3.868 GB, free: 31.37 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002055/9.65, allocations: 363.9 kB / 3.868 GB, free: 31.37 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005385/9.655, allocations: 3.099 MB / 3.871 GB, free: 30.8 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0032/9.658, allocations: 267.9 kB / 3.871 GB, free: 30.77 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005777/9.659, allocations: 104.9 kB / 3.871 GB, free: 30.77 MB / 0.573 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.0008023/9.66, allocations: 228.3 kB / 3.872 GB, free: 30.65 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004869/9.66, allocations: 164.9 kB / 3.872 GB, free: 30.57 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01132/9.672, allocations: 6.767 MB / 3.878 GB, free: 29.92 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.188e-05/9.672, allocations: 70.97 kB / 3.878 GB, free: 29.92 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/9.672, allocations: 3.938 kB / 3.878 GB, free: 29.92 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008518/9.68, allocations: 5.439 MB / 3.884 GB, free: 28.87 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01582/9.696, allocations: 9.473 MB / 3.893 GB, free: 24.95 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.086e-05/9.696, allocations: 5.484 kB / 3.893 GB, free: 24.95 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002456/9.699, allocations: 442.1 kB / 3.893 GB, free: 24.93 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002276/9.701, allocations: 435.5 kB / 3.894 GB, free: 24.79 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003672/9.701, allocations: 63.02 kB / 3.894 GB, free: 24.76 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/9.704, allocations: 3.211 MB / 3.897 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.523e-06/9.704, allocations: 288 / 3.897 GB, free: 21.91 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01122/9.715, allocations: 6.745 MB / 3.904 GB, free: 18.94 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001995/9.717, allocations: 0.7665 MB / 3.904 GB, free: 18.48 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004987/9.718, allocations: 55.2 kB / 3.904 GB, free: 18.45 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002335/9.72, allocations: 211.8 kB / 3.905 GB, free: 18.4 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004588/9.721, allocations: 189.8 kB / 3.905 GB, free: 18.38 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002255/9.721, allocations: 71.45 kB / 3.905 GB, free: 18.36 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002125/9.723, allocations: 1.22 MB / 3.906 GB, free: 17.88 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.78e-07/9.723, allocations: 3.281 kB / 3.906 GB, free: 17.88 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009157/9.732, allocations: 2.363 MB / 3.908 GB, free: 17.45 MB / 0.573 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.009959/9.742, allocations: 2.036 MB / 3.91 GB, free: 16.79 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01035/9.753, allocations: 5.051 MB / 3.915 GB, free: 12.36 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.075e-05/9.753, allocations: 0 / 3.915 GB, free: 12.36 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.004746/9.757, allocations: 2.264 MB / 3.917 GB, free: 10.35 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005005/9.763, allocations: 0.7879 MB / 3.918 GB, free: 9.77 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01263/9.775, allocations: 5.675 MB / 3.924 GB, free: 4.785 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/9.778, allocations: 2.052 MB / 3.926 GB, free: 3.145 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.00524/9.783, allocations: 1.621 MB / 3.927 GB, free: 2.152 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008388/9.784, allocations: 147.2 kB / 3.927 GB, free: 2.016 MB / 0.573 GB Notification: Performance of SimCode: time 1.772e-06/9.784, allocations: 3.391 kB / 3.927 GB, free: 2.016 MB / 0.573 GB Notification: Performance of Templates: time 0.5107/10.29, allocations: 85.27 MB / 4.011 GB, free: 100.2 MB / 0.5886 GB