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_trunk_ModelicaTest.Fluid.TestPipesAndValves.DynamicPipeInitialization") Notification: Performance of loadModel(ModelicaTest): time 2.428/2.428, allocations: 270.1 MB / 283.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.05e-05/5.071e-05, allocations: 4 kB / 348.4 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1567/0.1568, allocations: 61.89 MB / 410.3 MB, free: 12.99 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.855/7.012, allocations: 2.838 GB / 3.239 GB, free: 89.62 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/7.012, allocations: 79.67 kB / 3.239 GB, free: 89.59 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.45/9.462, allocations: 0.4969 GB / 3.736 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of FrontEnd: time 3.567e-06/9.462, allocations: 0.8906 kB / 3.736 GB, free: 44.39 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001598/9.462, allocations: 48.98 kB / 3.736 GB, free: 44.39 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.01264/9.475, allocations: 2.981 MB / 3.739 GB, free: 43.39 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/9.475, allocations: 8.5 kB / 3.739 GB, free: 43.39 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007219/9.482, allocations: 0.7084 MB / 3.739 GB, free: 43.29 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00573/9.488, allocations: 1.583 MB / 3.741 GB, free: 42.97 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003189/9.488, allocations: 171.4 kB / 3.741 GB, free: 42.96 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008451/9.489, allocations: 177.2 kB / 3.741 GB, free: 42.96 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01099/9.5, allocations: 3.507 MB / 3.745 GB, free: 42.52 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-05/9.5, allocations: 7.078 kB / 3.745 GB, free: 42.52 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004322/9.5, allocations: 78.39 kB / 3.745 GB, free: 42.52 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/9.501, allocations: 170.7 kB / 3.745 GB, free: 42.52 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/9.511, allocations: 3.296 MB / 3.748 GB, free: 42.51 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.02591/9.537, allocations: 14.14 MB / 3.762 GB, free: 34.76 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006286/9.544, allocations: 2.134 MB / 3.764 GB, free: 34.62 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002128/9.546, allocations: 1.082 MB / 3.765 GB, free: 34.58 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1487/9.695, allocations: 63.65 MB / 3.827 GB, free: 27.38 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004792/9.699, allocations: 1.683 MB / 3.829 GB, free: 27.24 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=154): time 6.058e-06/9.699, allocations: 0 / 3.829 GB, free: 27.24 MB / 0.5573 GB Notification: Performance of matching and sorting (n=174): time 0.02843/9.728, allocations: 8.148 MB / 3.837 GB, free: 25.62 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001901/9.728, allocations: 282.2 kB / 3.837 GB, free: 25.31 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/9.73, allocations: 1.178 MB / 3.838 GB, free: 25.13 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 0.0004412/9.731, allocations: 57.45 kB / 3.838 GB, free: 25.1 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007261/9.732, allocations: 0.817 MB / 3.839 GB, free: 24.71 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007388/9.732, allocations: 0.6013 MB / 3.84 GB, free: 24.33 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002283/9.733, allocations: 42.47 kB / 3.84 GB, free: 24.33 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0002553/9.733, allocations: 398.5 kB / 3.84 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002213/9.735, allocations: 1.142 MB / 3.841 GB, free: 24.02 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002735/9.738, allocations: 1.681 MB / 3.843 GB, free: 23.39 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002798/9.741, allocations: 1.377 MB / 3.844 GB, free: 23.34 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.344e-05/9.741, allocations: 3.531 kB / 3.844 GB, free: 23.34 MB / 0.5573 GB Notification: Performance of matching and sorting (n=270) (initialization): time 0.008673/9.749, allocations: 3.931 MB / 3.848 GB, free: 23.15 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 0.003056/9.752, allocations: 6.276 MB / 3.854 GB, free: 16.57 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.706e-05/9.753, allocations: 15.88 kB / 3.854 GB, free: 16.57 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02269/9.775, allocations: 3.459 MB / 3.857 GB, free: 16.47 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/9.778, allocations: 333.3 kB / 3.858 GB, free: 16.47 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01069/9.789, allocations: 3.822 MB / 3.862 GB, free: 31.88 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00333/9.792, allocations: 273.1 kB / 3.862 GB, free: 31.85 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004235/9.793, allocations: 109.1 kB / 3.862 GB, free: 31.85 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/9.793, allocations: 3.938 kB / 3.862 GB, free: 31.85 MB / 0.573 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009121/9.802, allocations: 3.538 MB / 3.865 GB, free: 31.77 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.932e-05/9.802, allocations: 17.03 kB / 3.865 GB, free: 31.77 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02268/9.825, allocations: 2.259 MB / 3.868 GB, free: 31.7 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004135/9.829, allocations: 366.1 kB / 3.868 GB, free: 31.7 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01146/9.84, allocations: 3.102 MB / 3.871 GB, free: 31.13 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006399/9.847, allocations: 261.4 kB / 3.871 GB, free: 31.1 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007934/9.848, allocations: 103.6 kB / 3.871 GB, free: 31.1 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.001466/9.849, allocations: 236.6 kB / 3.872 GB, free: 30.98 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009785/9.85, allocations: 162.8 kB / 3.872 GB, free: 30.9 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02259/9.873, allocations: 6.763 MB / 3.878 GB, free: 30.25 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001544/9.873, allocations: 74.27 kB / 3.878 GB, free: 30.25 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-05/9.873, allocations: 3.562 kB / 3.878 GB, free: 30.25 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01581/9.889, allocations: 5.441 MB / 3.884 GB, free: 29.11 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01537/9.904, allocations: 9.469 MB / 3.893 GB, free: 25.2 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.855e-05/9.904, allocations: 0 / 3.893 GB, free: 25.2 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002691/9.907, allocations: 443.5 kB / 3.893 GB, free: 25.18 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002121/9.909, allocations: 437.3 kB / 3.894 GB, free: 25.04 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003211/9.91, allocations: 68.89 kB / 3.894 GB, free: 25 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002683/9.912, allocations: 3.203 MB / 3.897 GB, free: 22.15 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.474e-06/9.912, allocations: 9.281 kB / 3.897 GB, free: 22.15 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/9.924, allocations: 6.741 MB / 3.904 GB, free: 19.19 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002018/9.926, allocations: 0.7822 MB / 3.904 GB, free: 18.72 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005293/9.927, allocations: 48.34 kB / 3.904 GB, free: 18.7 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002203/9.929, allocations: 218.9 kB / 3.905 GB, free: 18.64 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004377/9.929, allocations: 184.4 kB / 3.905 GB, free: 18.62 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000223/9.93, allocations: 67.05 kB / 3.905 GB, free: 18.6 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.002124/9.932, allocations: 1.221 MB / 3.906 GB, free: 18.12 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.08e-07/9.932, allocations: 0 / 3.906 GB, free: 18.12 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.009776/9.941, allocations: 2.364 MB / 3.908 GB, free: 17.7 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.01067/9.952, allocations: 2.038 MB / 3.91 GB, free: 16.97 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.01135/9.964, allocations: 5.045 MB / 3.915 GB, free: 12.55 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/9.964, allocations: 6.188 kB / 3.915 GB, free: 12.54 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.00504/9.969, allocations: 2.267 MB / 3.917 GB, free: 10.53 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005432/9.974, allocations: 0.7829 MB / 3.918 GB, free: 9.953 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01356/9.988, allocations: 5.676 MB / 3.924 GB, free: 4.973 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002562/9.99, allocations: 2.059 MB / 3.926 GB, free: 3.328 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.005471/9.996, allocations: 1.615 MB / 3.927 GB, free: 2.336 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009057/9.997, allocations: 142.2 kB / 3.927 GB, free: 2.203 MB / 0.573 GB Notification: Performance of SimCode: time 2.044e-06/9.997, allocations: 0 / 3.927 GB, free: 2.203 MB / 0.573 GB Notification: Performance of Templates: time 0.5064/10.5, allocations: 85.09 MB / 4.011 GB, free: 100 MB / 0.5886 GB