Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible,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|V1.minLimiter.y|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SourceP3.ports.1..m_flow|SourceP3.ports.1..p|SourceP3.ports.1..h_outflow|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 1.872/1.872, allocations: 209.3 MB / 221.9 MB, free: 1.859 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.349e-05, allocations: 4 kB / 273.1 MB, free: 0.7266 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0872/0.08725, allocations: 48.71 MB / 321.8 MB, free: 15.92 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.325/6.412, allocations: 2.497 GB / 2.811 GB, free: 85.16 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000226/6.412, allocations: 82.33 kB / 2.811 GB, free: 85.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.172/8.584, allocations: 499.1 MB / 3.298 GB, free: 37.47 MB / 442.7 MB Notification: Performance of FrontEnd: time 4.258e-06/8.584, allocations: 0 / 3.298 GB, free: 37.47 MB / 442.7 MB Notification: Performance of Transformations before backend: time 8.828e-05/8.584, allocations: 34.55 kB / 3.298 GB, free: 37.47 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.007281/8.592, allocations: 1.996 MB / 3.3 GB, free: 36.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.412e-05/8.592, allocations: 9.188 kB / 3.3 GB, free: 36.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007981/8.6, allocations: 0.6778 MB / 3.301 GB, free: 36.45 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002137/8.602, allocations: 0.8523 MB / 3.302 GB, free: 36.15 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001092/8.602, allocations: 84.62 kB / 3.302 GB, free: 36.15 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/8.602, allocations: 87.06 kB / 3.302 GB, free: 36.15 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005008/8.607, allocations: 1.691 MB / 3.304 GB, free: 35.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.921e-05/8.607, allocations: 7.094 kB / 3.304 GB, free: 35.82 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001521/8.608, allocations: 40.59 kB / 3.304 GB, free: 35.82 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.227e-05/8.608, allocations: 27.3 kB / 3.304 GB, free: 35.82 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005137/8.613, allocations: 1.468 MB / 3.305 GB, free: 35.82 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009436/8.622, allocations: 7.365 MB / 3.312 GB, free: 30.85 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00436/8.627, allocations: 1.104 MB / 3.313 GB, free: 30.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005873/8.627, allocations: 314.6 kB / 3.314 GB, free: 30.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04877/8.676, allocations: 17.68 MB / 3.331 GB, free: 21.96 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.163e-05/8.676, allocations: 46.16 kB / 3.331 GB, free: 21.92 MB / 442.7 MB Notification: Performance of pre-optimization done (n=67): time 4.009e-06/8.676, allocations: 0 / 3.331 GB, free: 21.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=67): time 0.007056/8.683, allocations: 1.707 MB / 3.333 GB, free: 21.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.171e-05/8.683, allocations: 221.3 kB / 3.333 GB, free: 21.56 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009359/8.684, allocations: 0.5951 MB / 3.334 GB, free: 21.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.832e-05/8.684, allocations: 37.11 kB / 3.334 GB, free: 21.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002967/8.685, allocations: 0.55 MB / 3.334 GB, free: 21.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/8.685, allocations: 228.3 kB / 3.334 GB, free: 20.9 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.44e-05/8.685, allocations: 23.12 kB / 3.334 GB, free: 20.9 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.843e-05/8.685, allocations: 343 kB / 3.335 GB, free: 20.59 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005728/8.686, allocations: 262 kB / 3.335 GB, free: 20.52 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007135/8.686, allocations: 0.6696 MB / 3.336 GB, free: 19.88 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006773/8.687, allocations: 353.3 kB / 3.336 GB, free: 19.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/8.687, allocations: 3.812 kB / 3.336 GB, free: 19.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.001964/8.689, allocations: 0.9274 MB / 3.337 GB, free: 19.38 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009592/8.69, allocations: 5.048 MB / 3.342 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.168e-05/8.69, allocations: 12.88 kB / 3.342 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.039e-05/8.69, allocations: 22.47 kB / 3.342 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/8.692, allocations: 299.5 kB / 3.342 GB, free: 13.95 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.054e-05/8.692, allocations: 30.56 kB / 3.342 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001502/8.693, allocations: 186.6 kB / 3.342 GB, free: 13.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000152/8.693, allocations: 62.83 kB / 3.342 GB, free: 13.84 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.409e-05/8.693, allocations: 3.812 kB / 3.342 GB, free: 13.84 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001752/8.695, allocations: 0.8463 MB / 3.343 GB, free: 13.54 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/8.695, allocations: 20.91 kB / 3.343 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.606e-05/8.695, allocations: 19.91 kB / 3.343 GB, free: 13.53 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001292/8.696, allocations: 298.7 kB / 3.344 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.7e-05/8.697, allocations: 26.88 kB / 3.344 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/8.698, allocations: 162.7 kB / 3.344 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001167/8.698, allocations: 55.17 kB / 3.344 GB, free: 13.42 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 58 * Number of states: 0 () * Number of discrete variables: 12 (SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase,V3.state_b.phase,V3.state_a.phase,V2.state_b.phase,V2.state_a.phase,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 127 * 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.0002721/8.698, allocations: 179.8 kB / 3.344 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002614/8.698, allocations: 93.5 kB / 3.344 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005652/8.704, allocations: 4.432 MB / 3.348 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.186e-05/8.704, allocations: 62.84 kB / 3.348 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.48e-06/8.704, allocations: 3.656 kB / 3.348 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.768e-05/8.704, allocations: 7.75 kB / 3.348 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002889/8.707, allocations: 2.153 MB / 3.351 GB, free: 10.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.801e-06/8.707, allocations: 0 / 3.351 GB, free: 10.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00115/8.708, allocations: 225.5 kB / 3.351 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.939e-05/8.708, allocations: 5.719 kB / 3.351 GB, free: 9.992 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001028/8.708, allocations: 22.05 kB / 3.351 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.087e-05/8.708, allocations: 3.875 kB / 3.351 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.64e-06/8.708, allocations: 0 / 3.351 GB, free: 9.98 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003084/8.712, allocations: 2.047 MB / 3.353 GB, free: 8.98 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007655/8.712, allocations: 459 kB / 3.353 GB, free: 8.652 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000211/8.713, allocations: 19.53 kB / 3.353 GB, free: 8.641 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009344/8.714, allocations: 103.1 kB / 3.353 GB, free: 8.617 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001557/8.714, allocations: 72.5 kB / 3.353 GB, free: 8.609 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.719e-05/8.714, allocations: 27.41 kB / 3.353 GB, free: 8.602 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009054/8.715, allocations: 0.5572 MB / 3.354 GB, free: 8.355 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.8e-07/8.715, allocations: 0 / 3.354 GB, free: 8.355 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.006004/8.721, allocations: 1.546 MB / 3.355 GB, free: 8.035 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: 42 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse22.phase,$cse22.region,$cse23.phase,$cse23.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,SourceP1.medium.phase,SinkP1.medium.phase,SourceP2.medium.phase,SinkP2.medium.phase,SourceP3.medium.phase,SinkP3.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (91): * Single equations (assignments): 73 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 18 * 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.008177/8.729, allocations: 1.787 MB / 3.357 GB, free: 7.555 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003143/8.732, allocations: 1.657 MB / 3.359 GB, free: 6.938 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.742e-06/8.732, allocations: 2.406 kB / 3.359 GB, free: 6.938 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001413/8.734, allocations: 1.024 MB / 3.36 GB, free: 6.438 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003179/8.737, allocations: 459.8 kB / 3.36 GB, free: 6.312 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5643/9.301, allocations: 122.3 MB / 3.48 GB, free: 42.16 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009213/9.302, allocations: 1.425 MB / 3.481 GB, free: 41.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004428/9.303, allocations: 104.8 kB / 3.481 GB, free: 41.41 MB / 458.7 MB Notification: Performance of SimCode: time 1.899e-06/9.303, allocations: 0 / 3.481 GB, free: 41.41 MB / 458.7 MB Notification: Performance of Templates: time 0.06506/9.368, allocations: 39.18 MB / 3.519 GB, free: 32.91 MB / 458.7 MB