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_4.0.0_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.348/2.348, allocations: 270 MB / 283.6 MB, free: 3.117 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.342e-05/3.354e-05, allocations: 4 kB / 348.4 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.1139, allocations: 61.89 MB / 410.3 MB, free: 13.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.28/7.394, allocations: 2.759 GB / 3.16 GB, free: 109.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000236/7.394, allocations: 83.77 kB / 3.16 GB, free: 109.2 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.9519/8.346, allocations: 218.8 MB / 3.374 GB, free: 85.15 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.07e-06/8.346, allocations: 3.219 kB / 3.374 GB, free: 85.15 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 3.039e-05/8.346, allocations: 10.03 kB / 3.374 GB, free: 85.15 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004318/8.35, allocations: 1.158 MB / 3.375 GB, free: 84.41 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.205e-05/8.35, allocations: 7.156 kB / 3.375 GB, free: 84.41 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002294/8.353, allocations: 227.5 kB / 3.375 GB, free: 84.37 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007234/8.353, allocations: 366.1 kB / 3.376 GB, free: 84.09 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.073e-05/8.353, allocations: 25.22 kB / 3.376 GB, free: 84.07 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/8.354, allocations: 34.3 kB / 3.376 GB, free: 84.05 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001611/8.355, allocations: 0.5789 MB / 3.376 GB, free: 83.79 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/8.355, allocations: 7.875 kB / 3.376 GB, free: 83.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.63e-05/8.355, allocations: 15.94 kB / 3.376 GB, free: 83.77 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/8.355, allocations: 7.75 kB / 3.376 GB, free: 83.77 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001506/8.357, allocations: 493.7 kB / 3.377 GB, free: 83.63 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.003276/8.36, allocations: 2.595 MB / 3.379 GB, free: 81.45 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001531/8.362, allocations: 430.7 kB / 3.38 GB, free: 81.31 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002764/8.362, allocations: 133 kB / 3.38 GB, free: 81.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.05413/8.416, allocations: 24.15 MB / 3.403 GB, free: 65.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.866e-05/8.416, allocations: 34.5 kB / 3.403 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.787e-06/8.416, allocations: 0 / 3.403 GB, free: 65.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002804/8.419, allocations: 0.6364 MB / 3.404 GB, free: 65.39 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.164e-05/8.419, allocations: 110.7 kB / 3.404 GB, free: 65.26 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003508/8.419, allocations: 275.7 kB / 3.404 GB, free: 65.11 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.636e-05/8.42, allocations: 25.7 kB / 3.404 GB, free: 65.07 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/8.42, allocations: 207.1 kB / 3.405 GB, free: 64.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 7.412e-05/8.42, allocations: 85.2 kB / 3.405 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.13e-05/8.42, allocations: 4 kB / 3.405 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.85e-05/8.42, allocations: 341.7 kB / 3.405 GB, free: 64.51 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000203/8.42, allocations: 93.94 kB / 3.405 GB, free: 64.47 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/8.42, allocations: 180.4 kB / 3.405 GB, free: 64.32 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002275/8.421, allocations: 106.8 kB / 3.405 GB, free: 64.28 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.775e-06/8.421, allocations: 3.938 kB / 3.405 GB, free: 64.28 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006992/8.421, allocations: 317.5 kB / 3.406 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.946e-05/8.421, allocations: 7.938 kB / 3.406 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.039e-06/8.421, allocations: 4.312 kB / 3.406 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.226e-05/8.421, allocations: 10.81 kB / 3.406 GB, free: 64.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004517/8.422, allocations: 84.78 kB / 3.406 GB, free: 64.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.178e-05/8.422, allocations: 3.906 kB / 3.406 GB, free: 64.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004532/8.422, allocations: 69.02 kB / 3.406 GB, free: 64.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.287e-05/8.422, allocations: 18.34 kB / 3.406 GB, free: 64.09 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (35): * Single equations (assignments): 35 * 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.0001163/8.423, allocations: 127.5 kB / 3.406 GB, free: 63.97 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.411e-05/8.423, allocations: 32.47 kB / 3.406 GB, free: 63.95 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002264/8.425, allocations: 1.846 MB / 3.408 GB, free: 62.64 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.46e-05/8.425, allocations: 31.47 kB / 3.408 GB, free: 62.62 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.534e-06/8.425, allocations: 0 / 3.408 GB, free: 62.62 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.035e-06/8.425, allocations: 3.703 kB / 3.408 GB, free: 62.62 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/8.426, allocations: 1.007 MB / 3.409 GB, free: 61.71 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.961e-06/8.426, allocations: 0 / 3.409 GB, free: 61.71 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004637/8.427, allocations: 86.8 kB / 3.409 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.415e-06/8.427, allocations: 0 / 3.409 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.999e-05/8.427, allocations: 11.8 kB / 3.409 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.135e-06/8.427, allocations: 0 / 3.409 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.216e-06/8.427, allocations: 0 / 3.409 GB, free: 61.64 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00131/8.428, allocations: 0.9812 MB / 3.41 GB, free: 60.71 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002225/8.428, allocations: 226.4 kB / 3.41 GB, free: 60.49 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.996e-05/8.429, allocations: 4 kB / 3.41 GB, free: 60.48 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004857/8.429, allocations: 43.44 kB / 3.41 GB, free: 60.45 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/8.429, allocations: 39.55 kB / 3.41 GB, free: 60.43 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/8.429, allocations: 8 kB / 3.41 GB, free: 60.42 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004275/8.43, allocations: 324.1 kB / 3.411 GB, free: 60.12 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.79e-07/8.43, allocations: 0 / 3.411 GB, free: 60.12 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.004263/8.434, allocations: 1.006 MB / 3.412 GB, free: 59.14 MB / 0.5261 GB 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.007875/8.442, allocations: 1.384 MB / 3.413 GB, free: 58.02 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0009402/8.443, allocations: 499.9 kB / 3.413 GB, free: 57.56 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.752e-06/8.443, allocations: 0 / 3.413 GB, free: 57.56 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0005322/8.443, allocations: 471.5 kB / 3.414 GB, free: 57.12 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/8.445, allocations: 208.3 kB / 3.414 GB, free: 56.96 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/8.447, allocations: 1.127 MB / 3.415 GB, free: 55.92 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/8.447, allocations: 0.978 MB / 3.416 GB, free: 55.02 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0005976/8.448, allocations: 248 kB / 3.416 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/8.448, allocations: 39.44 kB / 3.416 GB, free: 54.83 MB / 0.5261 GB Notification: Performance of SimCode: time 1.62e-06/8.448, allocations: 0 / 3.416 GB, free: 54.83 MB / 0.5261 GB Notification: Performance of Templates: time 0.05506/8.503, allocations: 32.51 MB / 3.448 GB, free: 24.57 MB / 0.5261 GB