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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.185/2.185, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.335e-05/3.34e-05, allocations: 7.984 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.3266, allocations: 54.85 MB / 359.8 MB, free: 2.656 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.905/6.231, allocations: 2.588 GB / 2.939 GB, free: 14.38 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/6.231, allocations: 85.14 kB / 2.939 GB, free: 14.34 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8849/7.116, allocations: 215.4 MB / 3.149 GB, free: 3.852 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.167e-06/7.116, allocations: 0 / 3.149 GB, free: 3.852 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.758e-05/7.116, allocations: 12 kB / 3.149 GB, free: 3.84 MB / 490.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.004518/7.121, allocations: 1.165 MB / 3.151 GB, free: 2.629 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/7.121, allocations: 12.03 kB / 3.151 GB, free: 2.617 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00234/7.123, allocations: 215.3 kB / 3.151 GB, free: 2.406 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007411/7.124, allocations: 387.2 kB / 3.151 GB, free: 1.984 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.092e-05/7.124, allocations: 32.73 kB / 3.151 GB, free: 1.949 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.472e-05/7.124, allocations: 24 kB / 3.151 GB, free: 1.926 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/7.126, allocations: 0.5793 MB / 3.152 GB, free: 1.305 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.659e-05/7.126, allocations: 0 / 3.152 GB, free: 1.305 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.478e-05/7.126, allocations: 16 kB / 3.152 GB, free: 1.289 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/7.126, allocations: 8 kB / 3.152 GB, free: 1.281 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/7.128, allocations: 496.6 kB / 3.152 GB, free: 0.7969 MB / 490.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.2733/7.401, allocations: 2.525 MB / 3.155 GB, free: 75.68 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001577/7.403, allocations: 414.2 kB / 3.155 GB, free: 75.66 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002936/7.403, allocations: 126.5 kB / 3.155 GB, free: 75.65 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1351/7.538, allocations: 51.63 MB / 3.206 GB, free: 47.89 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.459e-05/7.538, allocations: 50.3 kB / 3.206 GB, free: 47.85 MB / 490.7 MB Notification: Performance of pre-optimization done (n=25): time 3.238e-06/7.538, allocations: 0 / 3.206 GB, free: 47.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=25): time 0.002801/7.541, allocations: 0.6096 MB / 3.206 GB, free: 47.81 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/7.541, allocations: 110.2 kB / 3.206 GB, free: 47.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003308/7.541, allocations: 246.5 kB / 3.207 GB, free: 47.57 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.66e-05/7.541, allocations: 33.52 kB / 3.207 GB, free: 47.54 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/7.541, allocations: 271 kB / 3.207 GB, free: 47.36 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.691e-05/7.542, allocations: 83.75 kB / 3.207 GB, free: 47.32 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.264e-05/7.542, allocations: 10.91 kB / 3.207 GB, free: 47.32 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 6.086e-05/7.542, allocations: 330.2 kB / 3.207 GB, free: 47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002222/7.542, allocations: 90.05 kB / 3.207 GB, free: 47 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002786/7.542, allocations: 212.6 kB / 3.208 GB, free: 46.85 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/7.542, allocations: 109.3 kB / 3.208 GB, free: 46.85 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.57e-06/7.542, allocations: 0 / 3.208 GB, free: 46.85 MB / 490.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007335/7.543, allocations: 336.5 kB / 3.208 GB, free: 46.8 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/7.543, allocations: 7.562 kB / 3.208 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.045e-05/7.543, allocations: 4.594 kB / 3.208 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/7.543, allocations: 3.625 kB / 3.208 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004493/7.544, allocations: 102.8 kB / 3.208 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.502e-05/7.544, allocations: 9.297 kB / 3.208 GB, free: 46.8 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004586/7.544, allocations: 59.62 kB / 3.208 GB, free: 46.79 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.571e-05/7.544, allocations: 25.47 kB / 3.208 GB, free: 46.79 MB / 490.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.0001188/7.544, allocations: 125.3 kB / 3.208 GB, free: 46.68 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.074e-05/7.545, allocations: 34.67 kB / 3.208 GB, free: 46.66 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00231/7.547, allocations: 1.832 MB / 3.21 GB, free: 46.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.359e-05/7.547, allocations: 38.92 kB / 3.21 GB, free: 46.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.268e-06/7.547, allocations: 1.688 kB / 3.21 GB, free: 46.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.607e-06/7.547, allocations: 1.125 kB / 3.21 GB, free: 46.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001173/7.548, allocations: 0.9801 MB / 3.211 GB, free: 46.22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.735e-06/7.548, allocations: 3.906 kB / 3.211 GB, free: 46.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004368/7.549, allocations: 77.62 kB / 3.211 GB, free: 46.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.012e-05/7.549, allocations: 7.141 kB / 3.211 GB, free: 46.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/7.549, allocations: 6.625 kB / 3.211 GB, free: 46.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.534e-06/7.549, allocations: 3.375 kB / 3.211 GB, free: 46.21 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.086e-06/7.549, allocations: 3.25 kB / 3.211 GB, free: 46.21 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/7.55, allocations: 0.9702 MB / 3.212 GB, free: 45.99 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/7.55, allocations: 210.6 kB / 3.212 GB, free: 45.86 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.103e-05/7.55, allocations: 10.83 kB / 3.212 GB, free: 45.85 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004393/7.551, allocations: 43.62 kB / 3.212 GB, free: 45.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.546e-05/7.551, allocations: 32.44 kB / 3.212 GB, free: 45.84 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.228e-05/7.551, allocations: 11.41 kB / 3.212 GB, free: 45.84 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0003302/7.551, allocations: 258.5 kB / 3.213 GB, free: 45.75 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.37e-07/7.551, allocations: 0 / 3.213 GB, free: 45.75 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.004348/7.556, allocations: 1.011 MB / 3.214 GB, free: 45.75 MB / 490.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.007944/7.564, allocations: 1.38 MB / 3.215 GB, free: 45.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000906/7.565, allocations: 0.4937 MB / 3.216 GB, free: 45.59 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.065e-06/7.565, allocations: 0 / 3.216 GB, free: 45.59 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005352/7.565, allocations: 472 kB / 3.216 GB, free: 45.59 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/7.566, allocations: 172.3 kB / 3.216 GB, free: 45.58 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1854/7.752, allocations: 76.3 MB / 3.291 GB, free: 35.12 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004166/7.752, allocations: 0.9811 MB / 3.292 GB, free: 34.22 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/7.752, allocations: 44.05 kB / 3.292 GB, free: 34.18 MB / 490.7 MB Notification: Performance of SimCode: time 1.592e-06/7.752, allocations: 0 / 3.292 GB, free: 34.18 MB / 490.7 MB Notification: Performance of Templates: time 0.04045/7.793, allocations: 26.14 MB / 3.317 GB, free: 17.52 MB / 490.7 MB