Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 1.885/1.885, allocations: 209.3 MB / 221.5 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.696e-05/3.708e-05, allocations: 4 kB / 273.1 MB, free: 3.16 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08641/0.08648, allocations: 48.7 MB / 321.8 MB, free: 2.363 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.37/6.457, allocations: 2.477 GB / 2.791 GB, free: 84.95 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002059/6.457, allocations: 85.7 kB / 2.791 GB, free: 84.91 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8744/7.332, allocations: 211.5 MB / 2.998 GB, free: 40.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.851e-06/7.332, allocations: 0 / 2.998 GB, free: 40.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.768e-05/7.332, allocations: 11.12 kB / 2.998 GB, free: 40.5 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003945/7.336, allocations: 1.138 MB / 2.999 GB, free: 39.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/7.336, allocations: 12.03 kB / 2.999 GB, free: 39.31 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002241/7.338, allocations: 206.5 kB / 2.999 GB, free: 39.12 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006888/7.339, allocations: 396.9 kB / 2.999 GB, free: 38.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.554e-05/7.339, allocations: 28.78 kB / 3 GB, free: 38.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.827e-05/7.339, allocations: 28 kB / 3 GB, free: 38.64 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001585/7.34, allocations: 0.5829 MB / 3 GB, free: 38.02 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.67e-05/7.34, allocations: 0 / 3 GB, free: 38.02 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.435e-05/7.34, allocations: 19.92 kB / 3 GB, free: 38 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/7.34, allocations: 8 kB / 3 GB, free: 37.99 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/7.342, allocations: 492.5 kB / 3.001 GB, free: 37.52 MB / 426.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.002685/7.345, allocations: 2.53 MB / 3.003 GB, free: 34.77 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/7.346, allocations: 417.7 kB / 3.003 GB, free: 34.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/7.346, allocations: 128.5 kB / 3.004 GB, free: 34.23 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4481/7.794, allocations: 51.58 MB / 3.054 GB, free: 70.34 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/7.794, allocations: 36.75 kB / 3.054 GB, free: 70.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 3.287e-06/7.795, allocations: 0 / 3.054 GB, free: 70.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.002612/7.797, allocations: 0.6064 MB / 3.055 GB, free: 70.27 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/7.797, allocations: 110.8 kB / 3.055 GB, free: 70.14 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004359/7.798, allocations: 253.8 kB / 3.055 GB, free: 70.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/7.798, allocations: 30.27 kB / 3.055 GB, free: 70.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001555/7.798, allocations: 223 kB / 3.055 GB, free: 69.9 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.132e-05/7.798, allocations: 82.27 kB / 3.055 GB, free: 69.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.209e-05/7.798, allocations: 5.125 kB / 3.055 GB, free: 69.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.584e-05/7.798, allocations: 339.8 kB / 3.056 GB, free: 69.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/7.798, allocations: 98.16 kB / 3.056 GB, free: 69.54 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002566/7.799, allocations: 210 kB / 3.056 GB, free: 69.4 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000242/7.799, allocations: 118.4 kB / 3.056 GB, free: 69.4 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.483e-06/7.799, allocations: 7.281 kB / 3.056 GB, free: 69.4 MB / 442.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000733/7.8, allocations: 351.7 kB / 3.056 GB, free: 69.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/7.8, allocations: 3.562 kB / 3.056 GB, free: 69.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/7.8, allocations: 3.906 kB / 3.056 GB, free: 69.35 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.033e-05/7.8, allocations: 6.625 kB / 3.056 GB, free: 69.35 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/7.8, allocations: 101.9 kB / 3.056 GB, free: 69.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.466e-05/7.8, allocations: 4.938 kB / 3.056 GB, free: 69.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004336/7.801, allocations: 64.36 kB / 3.057 GB, free: 69.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.073e-05/7.801, allocations: 21.67 kB / 3.057 GB, free: 69.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001154/7.801, allocations: 122.8 kB / 3.057 GB, free: 69.23 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.907e-05/7.801, allocations: 32.28 kB / 3.057 GB, free: 69.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002292/7.803, allocations: 1.841 MB / 3.058 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-05/7.803, allocations: 26.27 kB / 3.059 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.603e-06/7.803, allocations: 7.266 kB / 3.059 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/7.803, allocations: 2.812 kB / 3.059 GB, free: 69.02 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001249/7.805, allocations: 0.9725 MB / 3.059 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.958e-06/7.805, allocations: 0.6562 kB / 3.059 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004194/7.805, allocations: 84.98 kB / 3.06 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.844e-06/7.805, allocations: 2.938 kB / 3.06 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/7.805, allocations: 6.812 kB / 3.06 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.314e-06/7.805, allocations: 1.156 kB / 3.06 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.744e-06/7.805, allocations: 2.531 kB / 3.06 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/7.807, allocations: 0.9734 MB / 3.061 GB, free: 68.56 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001934/7.807, allocations: 209.8 kB / 3.061 GB, free: 68.43 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.465e-05/7.807, allocations: 7.797 kB / 3.061 GB, free: 68.43 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004111/7.807, allocations: 44.94 kB / 3.061 GB, free: 68.42 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/7.807, allocations: 37.23 kB / 3.061 GB, free: 68.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.783e-05/7.807, allocations: 16.92 kB / 3.061 GB, free: 68.42 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003724/7.808, allocations: 256.8 kB / 3.061 GB, free: 68.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.44e-07/7.808, allocations: 0 / 3.061 GB, free: 68.34 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003977/7.812, allocations: 1.006 MB / 3.062 GB, free: 68.33 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006899/7.819, allocations: 1.373 MB / 3.063 GB, free: 68.19 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/7.82, allocations: 0.4933 MB / 3.064 GB, free: 68.18 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.918e-06/7.82, allocations: 4.312 kB / 3.064 GB, free: 68.18 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005989/7.82, allocations: 473.9 kB / 3.064 GB, free: 68.18 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001248/7.822, allocations: 173.2 kB / 3.064 GB, free: 68.17 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1847/8.006, allocations: 74.99 MB / 3.138 GB, free: 65.23 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004424/8.007, allocations: 0.981 MB / 3.139 GB, free: 64.52 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0006908/8.008, allocations: 241.2 kB / 3.139 GB, free: 64.43 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001305/8.008, allocations: 42.64 kB / 3.139 GB, free: 64.39 MB / 442.7 MB Notification: Performance of SimCode: time 1.785e-06/8.008, allocations: 7.656 kB / 3.139 GB, free: 64.39 MB / 442.7 MB Notification: Performance of Templates: time 0.05226/8.06, allocations: 31.68 MB / 3.17 GB, free: 46.05 MB / 442.7 MB