Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|valve_linear.port_b.m_flow|valve_linear.port_b.p|valve_linear.port_b.h_outflow|valve_linear.minLimiter.y|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|opening.y|valve_constant.port_b.m_flow|valve_constant.port_b.p|valve_constant.port_b.h_outflow|valve_constant.minLimiter.y|valve_quadratic.port_b.m_flow|valve_quadratic.port_b.p|valve_quadratic.port_b.h_outflow|valve_quadratic.minLimiter.y|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow|sink3.ports.1..m_flow|sink3.ports.1..p|sink3.ports.1..h_outflow|valve_equalPercentage.port_b.m_flow|valve_equalPercentage.port_b.p|valve_equalPercentage.port_b.h_outflow|valve_equalPercentage.minLimiter.y|sink4.ports.1..m_flow|sink4.ports.1..p|sink4.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 1.819/1.819, allocations: 209.3 MB / 221.9 MB, free: 7.738 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.779e-05/3.795e-05, allocations: 8 kB / 273.1 MB, free: 3.648 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08791/0.08798, allocations: 48.69 MB / 321.8 MB, free: 2.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.387/6.475, allocations: 2.497 GB / 2.812 GB, free: 61.08 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/6.475, allocations: 83.2 kB / 2.812 GB, free: 61.04 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.894/9.369, allocations: 0.6184 GB / 3.43 GB, free: 35.8 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.082e-06/9.369, allocations: 2.312 kB / 3.43 GB, free: 35.8 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001396/9.369, allocations: 41.34 kB / 3.43 GB, free: 35.79 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.009156/9.378, allocations: 2.369 MB / 3.432 GB, free: 34.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/9.379, allocations: 10.94 kB / 3.432 GB, free: 34.73 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01084/9.389, allocations: 0.8974 MB / 3.433 GB, free: 34.65 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002834/9.392, allocations: 1.053 MB / 3.434 GB, free: 34.31 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001715/9.392, allocations: 102.5 kB / 3.434 GB, free: 34.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003131/9.393, allocations: 116.2 kB / 3.435 GB, free: 34.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007013/9.4, allocations: 2.235 MB / 3.437 GB, free: 33.87 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.372e-05/9.4, allocations: 7.625 kB / 3.437 GB, free: 33.87 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002461/9.4, allocations: 61.28 kB / 3.437 GB, free: 33.87 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.9e-05/9.4, allocations: 29.69 kB / 3.437 GB, free: 33.87 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006517/9.407, allocations: 1.951 MB / 3.439 GB, free: 33.86 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01229/9.419, allocations: 9.779 MB / 3.448 GB, free: 27.29 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004937/9.424, allocations: 1.48 MB / 3.45 GB, free: 27.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008289/9.425, allocations: 405.3 kB / 3.45 GB, free: 27.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04668/9.472, allocations: 18.92 MB / 3.469 GB, free: 17.76 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/9.472, allocations: 46.61 kB / 3.469 GB, free: 17.72 MB / 458.7 MB Notification: Performance of pre-optimization done (n=88): time 3.756e-06/9.472, allocations: 2.344 kB / 3.469 GB, free: 17.72 MB / 458.7 MB Notification: Performance of matching and sorting (n=88): time 0.008808/9.481, allocations: 2.26 MB / 3.471 GB, free: 17.6 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.954e-05/9.481, allocations: 267.2 kB / 3.471 GB, free: 17.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00121/9.482, allocations: 0.7465 MB / 3.472 GB, free: 17.11 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001109/9.482, allocations: 39.05 kB / 3.472 GB, free: 17.07 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003826/9.482, allocations: 0.6808 MB / 3.473 GB, free: 16.66 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002758/9.483, allocations: 299.2 kB / 3.473 GB, free: 16.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.143e-05/9.483, allocations: 27.22 kB / 3.473 GB, free: 16.48 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/9.483, allocations: 356.6 kB / 3.473 GB, free: 16.17 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007701/9.484, allocations: 334.1 kB / 3.473 GB, free: 16.17 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000998/9.485, allocations: 0.8817 MB / 3.474 GB, free: 15.46 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009021/9.486, allocations: 459.1 kB / 3.475 GB, free: 15.42 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-05/9.486, allocations: 8.5 kB / 3.475 GB, free: 15.42 MB / 458.7 MB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002717/9.488, allocations: 1.2 MB / 3.476 GB, free: 15.34 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003068/9.491, allocations: 6.88 MB / 3.483 GB, free: 24.12 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.482e-05/9.492, allocations: 19.28 kB / 3.483 GB, free: 24.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-05/9.492, allocations: 33.23 kB / 3.483 GB, free: 24.11 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001755/9.493, allocations: 395.2 kB / 3.483 GB, free: 24.11 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.111e-05/9.493, allocations: 42.47 kB / 3.483 GB, free: 24.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/9.495, allocations: 235.4 kB / 3.483 GB, free: 24.03 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001781/9.495, allocations: 85.89 kB / 3.483 GB, free: 24.03 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/9.495, allocations: 3.594 kB / 3.483 GB, free: 24.03 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002491/9.498, allocations: 1.11 MB / 3.485 GB, free: 24 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/9.498, allocations: 15.09 kB / 3.485 GB, free: 24 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.299e-05/9.498, allocations: 29.22 kB / 3.485 GB, free: 24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001562/9.5, allocations: 392.2 kB / 3.485 GB, free: 23.98 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.392e-05/9.5, allocations: 35.47 kB / 3.485 GB, free: 23.97 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/9.501, allocations: 209.6 kB / 3.485 GB, free: 23.91 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001703/9.501, allocations: 82.12 kB / 3.485 GB, free: 23.91 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 79 * Number of states: 0 () * Number of discrete variables: 16 (source2.medium.phase,sink2.medium.phase,source1.medium.phase,sink1.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase,valve_equalPercentage.state_b.phase,valve_equalPercentage.state_a.phase,valve_quadratic.state_b.phase,valve_quadratic.state_a.phase,valve_constant.state_b.phase,valve_constant.state_a.phase,valve_linear.state_b.phase,valve_linear.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (165): * Single equations (assignments): 165 * 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.0004081/9.502, allocations: 208.4 kB / 3.485 GB, free: 23.76 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003416/9.502, allocations: 122.7 kB / 3.486 GB, free: 23.7 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007579/9.51, allocations: 5.803 MB / 3.491 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-05/9.51, allocations: 86.8 kB / 3.491 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.032e-05/9.51, allocations: 3 kB / 3.491 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.91e-05/9.51, allocations: 10.7 kB / 3.491 GB, free: 23.08 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003798/9.514, allocations: 2.796 MB / 3.494 GB, free: 22.69 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/9.514, allocations: 0 / 3.494 GB, free: 22.69 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001321/9.515, allocations: 299.1 kB / 3.494 GB, free: 22.67 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.474e-05/9.515, allocations: 7.891 kB / 3.494 GB, free: 22.67 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.579e-05/9.515, allocations: 27.31 kB / 3.494 GB, free: 22.67 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.03e-05/9.515, allocations: 5.438 kB / 3.494 GB, free: 22.67 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.339e-06/9.515, allocations: 0 / 3.494 GB, free: 22.67 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003722/9.519, allocations: 2.666 MB / 3.497 GB, free: 22.25 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009569/9.52, allocations: 0.5336 MB / 3.498 GB, free: 21.95 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002503/9.52, allocations: 21.52 kB / 3.498 GB, free: 21.94 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/9.521, allocations: 134.9 kB / 3.498 GB, free: 21.92 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001921/9.521, allocations: 94.53 kB / 3.498 GB, free: 21.92 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-05/9.522, allocations: 34.7 kB / 3.498 GB, free: 21.92 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001132/9.523, allocations: 0.6557 MB / 3.498 GB, free: 21.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 8.45e-07/9.523, allocations: 1.125 kB / 3.498 GB, free: 21.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006583/9.529, allocations: 1.717 MB / 3.5 GB, free: 21.57 MB / 474.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: 56 ($cse2.phase,$cse2.region,$cse6.phase,$cse6.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.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,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,$cse33.phase,$cse33.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse38.phase,$cse38.region,source1.medium.phase,sink1.medium.phase,source2.medium.phase,sink2.medium.phase,source3.medium.phase,sink3.medium.phase,source4.medium.phase,sink4.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (120): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 24 * 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.008381/9.538, allocations: 1.974 MB / 3.502 GB, free: 21.08 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00414/9.542, allocations: 2.191 MB / 3.504 GB, free: 20.95 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.482e-06/9.542, allocations: 1.625 kB / 3.504 GB, free: 20.95 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001911/9.544, allocations: 1.357 MB / 3.506 GB, free: 20.92 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003932/9.548, allocations: 0.568 MB / 3.506 GB, free: 20.88 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6314/10.18, allocations: 123.2 MB / 3.626 GB, free: 43.47 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001171/10.18, allocations: 1.657 MB / 3.628 GB, free: 42.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005447/10.18, allocations: 138.3 kB / 3.628 GB, free: 42.7 MB / 474.7 MB Notification: Performance of SimCode: time 1.753e-06/10.18, allocations: 0 / 3.628 GB, free: 42.7 MB / 474.7 MB Notification: Performance of Templates: time 0.07299/10.25, allocations: 45.27 MB / 3.672 GB, free: 34.02 MB / 474.7 MB