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.3_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.305/2.305, allocations: 249.5 MB / 261.6 MB, free: 2.152 MB / 202.8 MB Notification: Performance of FrontEnd - loaded program: time 3.689e-05/3.706e-05, allocations: 8 kB / 323.4 MB, free: 4.309 MB / 266.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3229, allocations: 58.83 MB / 382.2 MB, free: 10.32 MB / 314.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.127/6.45, allocations: 2.754 GB / 3.127 GB, free: 76.54 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/6.45, allocations: 82.72 kB / 3.128 GB, free: 76.46 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.9069/7.357, allocations: 216.5 MB / 3.339 GB, free: 71.79 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.996e-06/7.357, allocations: 0 / 3.339 GB, free: 71.79 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 2.628e-05/7.357, allocations: 12 kB / 3.339 GB, free: 71.78 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003983/7.361, allocations: 1.165 MB / 3.34 GB, free: 70.57 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/7.361, allocations: 12.03 kB / 3.34 GB, free: 70.56 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002234/7.364, allocations: 219.3 kB / 3.34 GB, free: 70.34 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006185/7.364, allocations: 382 kB / 3.341 GB, free: 69.93 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.228e-05/7.364, allocations: 20.78 kB / 3.341 GB, free: 69.91 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/7.364, allocations: 32 kB / 3.341 GB, free: 69.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001591/7.366, allocations: 0.5676 MB / 3.341 GB, free: 69.27 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.778e-05/7.366, allocations: 7.938 kB / 3.341 GB, free: 69.27 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.714e-05/7.366, allocations: 19.98 kB / 3.341 GB, free: 69.25 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.092e-05/7.366, allocations: 8 kB / 3.341 GB, free: 69.24 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/7.368, allocations: 492.6 kB / 3.342 GB, free: 68.75 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.003175/7.371, allocations: 2.598 MB / 3.344 GB, free: 65.92 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001496/7.373, allocations: 426.2 kB / 3.345 GB, free: 65.5 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002707/7.373, allocations: 132.8 kB / 3.345 GB, free: 65.36 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04726/7.42, allocations: 24.17 MB / 3.369 GB, free: 38.31 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/7.42, allocations: 34.56 kB / 3.369 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=25): time 3.779e-06/7.42, allocations: 0 / 3.369 GB, free: 38.27 MB / 0.5105 GB Notification: Performance of matching and sorting (n=25): time 0.002408/7.423, allocations: 0.6257 MB / 3.369 GB, free: 37.63 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/7.423, allocations: 110.8 kB / 3.369 GB, free: 37.5 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003625/7.423, allocations: 266.7 kB / 3.37 GB, free: 37.23 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/7.423, allocations: 29.7 kB / 3.37 GB, free: 37.2 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001123/7.423, allocations: 203.9 kB / 3.37 GB, free: 37 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 6.735e-05/7.423, allocations: 78.84 kB / 3.37 GB, free: 36.92 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.087e-05/7.423, allocations: 4 kB / 3.37 GB, free: 36.91 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 7.624e-05/7.423, allocations: 342.8 kB / 3.37 GB, free: 36.57 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001981/7.424, allocations: 95.98 kB / 3.37 GB, free: 36.48 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002394/7.424, allocations: 182.9 kB / 3.37 GB, free: 36.26 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002202/7.424, allocations: 104 kB / 3.371 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.741e-06/7.424, allocations: 0 / 3.371 GB, free: 36.16 MB / 0.5105 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0006487/7.425, allocations: 325.1 kB / 3.371 GB, free: 35.83 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/7.425, allocations: 10.45 kB / 3.371 GB, free: 35.82 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/7.425, allocations: 7.938 kB / 3.371 GB, free: 35.82 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.83e-05/7.425, allocations: 4 kB / 3.371 GB, free: 35.81 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004288/7.425, allocations: 96.12 kB / 3.371 GB, free: 35.72 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.126e-05/7.425, allocations: 4 kB / 3.371 GB, free: 35.71 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004378/7.426, allocations: 67.66 kB / 3.371 GB, free: 35.65 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.99e-05/7.426, allocations: 8 kB / 3.371 GB, free: 35.64 MB / 0.5105 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.0001087/7.426, allocations: 132.8 kB / 3.371 GB, free: 35.5 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.821e-05/7.426, allocations: 35.53 kB / 3.371 GB, free: 35.47 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002061/7.428, allocations: 1.849 MB / 3.373 GB, free: 33.6 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.009e-05/7.428, allocations: 31.94 kB / 3.373 GB, free: 33.57 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.095e-06/7.428, allocations: 0 / 3.373 GB, free: 33.57 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.463e-06/7.428, allocations: 7.984 kB / 3.373 GB, free: 33.56 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001098/7.429, allocations: 1.004 MB / 3.374 GB, free: 32.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-06/7.429, allocations: 0 / 3.374 GB, free: 32.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004091/7.43, allocations: 79.94 kB / 3.374 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.239e-06/7.43, allocations: 0 / 3.374 GB, free: 32.43 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.61e-05/7.43, allocations: 15.98 kB / 3.374 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.947e-06/7.43, allocations: 3.953 kB / 3.374 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.794e-06/7.43, allocations: 4 kB / 3.374 GB, free: 32.41 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/7.431, allocations: 0.979 MB / 3.375 GB, free: 31.41 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/7.431, allocations: 215.6 kB / 3.375 GB, free: 31.18 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.82e-05/7.431, allocations: 8 kB / 3.375 GB, free: 31.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004198/7.432, allocations: 47.89 kB / 3.375 GB, free: 31.12 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.442e-05/7.432, allocations: 35.91 kB / 3.375 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.407e-05/7.432, allocations: 11.94 kB / 3.375 GB, free: 31.07 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0003972/7.432, allocations: 321.2 kB / 3.376 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.09e-07/7.432, allocations: 0 / 3.376 GB, free: 30.76 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00376/7.436, allocations: 1.007 MB / 3.377 GB, free: 29.75 MB / 0.5105 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.006782/7.443, allocations: 1.37 MB / 3.378 GB, free: 28.38 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0009221/7.444, allocations: 0.4973 MB / 3.378 GB, free: 27.89 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.517e-06/7.444, allocations: 4.125 kB / 3.378 GB, free: 27.88 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0005226/7.444, allocations: 474.3 kB / 3.379 GB, free: 27.42 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001246/7.446, allocations: 201.8 kB / 3.379 GB, free: 27.22 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001779/7.448, allocations: 1.119 MB / 3.38 GB, free: 26.07 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004185/7.448, allocations: 0.9835 MB / 3.381 GB, free: 25.07 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.000559/7.449, allocations: 238.9 kB / 3.381 GB, free: 24.83 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/7.449, allocations: 39.44 kB / 3.381 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of SimCode: time 1.6e-06/7.449, allocations: 0 / 3.381 GB, free: 24.79 MB / 0.5105 GB Notification: Performance of Templates: time 0.3508/7.8, allocations: 32.49 MB / 3.413 GB, free: 100.7 MB / 0.5105 GB