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.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.144/2.144, allocations: 235 MB / 247.6 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.368e-05/3.388e-05, allocations: 4 kB / 304.9 MB, free: 5.656 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3179, allocations: 54.86 MB / 359.8 MB, free: 2.664 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.174/6.492, allocations: 2.608 GB / 2.959 GB, free: 101.2 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002509/6.492, allocations: 81.19 kB / 2.959 GB, free: 101.2 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.773/9.265, allocations: 0.6322 GB / 3.592 GB, free: 38.88 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.883e-06/9.265, allocations: 0 / 3.592 GB, free: 38.88 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0001107/9.265, allocations: 39.25 kB / 3.592 GB, free: 38.87 MB / 0.4948 GB 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.008586/9.274, allocations: 2.445 MB / 3.594 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/9.274, allocations: 7.875 kB / 3.594 GB, free: 37.77 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01178/9.285, allocations: 0.9549 MB / 3.595 GB, free: 37.68 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/9.288, allocations: 1.052 MB / 3.596 GB, free: 37.35 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/9.288, allocations: 107.1 kB / 3.596 GB, free: 37.34 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002099/9.289, allocations: 115 kB / 3.596 GB, free: 37.34 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006817/9.295, allocations: 2.232 MB / 3.598 GB, free: 36.91 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.276e-05/9.295, allocations: 12.88 kB / 3.598 GB, free: 36.91 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001979/9.296, allocations: 64.03 kB / 3.599 GB, free: 36.91 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.854e-05/9.296, allocations: 30.09 kB / 3.599 GB, free: 36.91 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006622/9.302, allocations: 1.949 MB / 3.6 GB, free: 36.9 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01143/9.314, allocations: 9.768 MB / 3.61 GB, free: 30.34 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005334/9.319, allocations: 1.488 MB / 3.611 GB, free: 30.31 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007509/9.32, allocations: 410.8 kB / 3.612 GB, free: 30.3 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04649/9.366, allocations: 18.96 MB / 3.63 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/9.367, allocations: 47.83 kB / 3.63 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=88): time 3.682e-06/9.367, allocations: 2.688 kB / 3.63 GB, free: 20.79 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.009664/9.376, allocations: 2.262 MB / 3.633 GB, free: 20.67 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7e-05/9.376, allocations: 269.5 kB / 3.633 GB, free: 20.36 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001132/9.377, allocations: 0.739 MB / 3.634 GB, free: 20.19 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 9.215e-05/9.378, allocations: 39.67 kB / 3.634 GB, free: 20.16 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003608/9.378, allocations: 0.6768 MB / 3.634 GB, free: 19.75 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002437/9.378, allocations: 300.1 kB / 3.635 GB, free: 19.56 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.342e-05/9.378, allocations: 24.69 kB / 3.635 GB, free: 19.56 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001002/9.378, allocations: 369 kB / 3.635 GB, free: 19.24 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007534/9.379, allocations: 338.1 kB / 3.635 GB, free: 19.24 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/9.38, allocations: 0.8869 MB / 3.636 GB, free: 18.53 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009364/9.381, allocations: 450.2 kB / 3.637 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/9.381, allocations: 6.812 kB / 3.637 GB, free: 18.5 MB / 0.4948 GB Notification: Performance of matching and sorting (n=165) (initialization): time 0.002738/9.384, allocations: 1.197 MB / 3.638 GB, free: 18.37 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.002382/9.386, allocations: 6.881 MB / 3.644 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.38e-05/9.386, allocations: 20.47 kB / 3.644 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.748e-05/9.386, allocations: 26.03 kB / 3.645 GB, free: 27.14 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001871/9.388, allocations: 393.6 kB / 3.645 GB, free: 27.12 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.758e-05/9.388, allocations: 38.67 kB / 3.645 GB, free: 27.11 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/9.39, allocations: 235.1 kB / 3.645 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/9.391, allocations: 81.31 kB / 3.645 GB, free: 27.03 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/9.391, allocations: 6.406 kB / 3.645 GB, free: 27.02 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002448/9.393, allocations: 1.115 MB / 3.646 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.326e-05/9.393, allocations: 17.59 kB / 3.646 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/9.393, allocations: 27.34 kB / 3.646 GB, free: 26.91 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001683/9.395, allocations: 388.7 kB / 3.647 GB, free: 26.88 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.395e-05/9.395, allocations: 42.5 kB / 3.647 GB, free: 26.87 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/9.396, allocations: 212.6 kB / 3.647 GB, free: 26.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001631/9.396, allocations: 78.94 kB / 3.647 GB, free: 26.8 MB / 0.5105 GB 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.0003864/9.397, allocations: 194.4 kB / 3.647 GB, free: 26.67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003403/9.397, allocations: 121.1 kB / 3.647 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007528/9.405, allocations: 5.82 MB / 3.653 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.516e-05/9.405, allocations: 88.22 kB / 3.653 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.593e-06/9.405, allocations: 0 / 3.653 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.582e-05/9.405, allocations: 11.64 kB / 3.653 GB, free: 25.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003879/9.409, allocations: 2.792 MB / 3.656 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.31e-05/9.409, allocations: 0 / 3.656 GB, free: 25.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001395/9.41, allocations: 293.7 kB / 3.656 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-05/9.41, allocations: 7.281 kB / 3.656 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.46e-05/9.41, allocations: 23.88 kB / 3.656 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.325e-06/9.41, allocations: 3.406 kB / 3.656 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.829e-06/9.41, allocations: 0 / 3.656 GB, free: 25.55 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003817/9.414, allocations: 2.678 MB / 3.659 GB, free: 24.34 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008611/9.415, allocations: 0.5282 MB / 3.659 GB, free: 23.96 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002159/9.415, allocations: 19.81 kB / 3.659 GB, free: 23.95 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/9.416, allocations: 138.3 kB / 3.659 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/9.417, allocations: 92 kB / 3.66 GB, free: 23.9 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.585e-05/9.417, allocations: 37.48 kB / 3.66 GB, free: 23.89 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001102/9.418, allocations: 0.6528 MB / 3.66 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.8e-07/9.418, allocations: 4 kB / 3.66 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006705/9.425, allocations: 1.728 MB / 3.662 GB, free: 23.26 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: 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.007894/9.433, allocations: 1.973 MB / 3.664 GB, free: 22.74 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.004064/9.437, allocations: 2.189 MB / 3.666 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.574e-06/9.437, allocations: 4 kB / 3.666 GB, free: 21.93 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001801/9.438, allocations: 1.36 MB / 3.667 GB, free: 21.26 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00369/9.442, allocations: 0.572 MB / 3.668 GB, free: 21.12 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5999/10.04, allocations: 125.4 MB / 3.79 GB, free: 45.83 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001165/10.04, allocations: 1.656 MB / 3.792 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005573/10.04, allocations: 137.2 kB / 3.792 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of SimCode: time 1.943e-06/10.04, allocations: 0 / 3.792 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of Templates: time 0.07435/10.12, allocations: 45.44 MB / 3.836 GB, free: 37.33 MB / 0.5105 GB