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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics") Notification: Performance of loadModel(ModelicaTest): time 2.306/2.306, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.819e-05/2.824e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.129/0.129, allocations: 61.9 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveCharacteristics): time 0.4389/0.568, allocations: 66.84 MB / 477.8 MB, free: 2.602 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04809/0.6161, allocations: 23.08 MB / 0.4891 GB, free: 13.64 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002652/0.6188, allocations: 59.56 kB / 0.4892 GB, free: 13.58 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004115/0.623, allocations: 0.9176 MB / 0.4901 GB, free: 12.66 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01509/0.6381, allocations: 3.692 MB / 0.4937 GB, free: 8.953 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02264/0.6608, allocations: 5.588 MB / 0.4991 GB, free: 3.363 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.00515/0.666, allocations: 1.817 MB / 0.5009 GB, free: 1.543 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001646/0.6677, allocations: 0.6505 MB / 0.5015 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003558/0.6713, allocations: 1.103 MB / 0.5026 GB, free: 15.79 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001807/0.6731, allocations: 0.7205 MB / 0.5033 GB, free: 15.07 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02362/0.6968, allocations: 7.8 MB / 0.5109 GB, free: 7.258 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003459/0.7003, allocations: 472 kB / 0.5114 GB, free: 6.797 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000834/0.7012, allocations: 306.9 kB / 0.5117 GB, free: 6.496 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007839/0.702, allocations: 180 kB / 0.5119 GB, free: 6.32 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01268/0.7147, allocations: 4.471 MB / 0.5162 GB, free: 1.84 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.7147, allocations: 0 / 0.5162 GB, free: 1.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.7148, allocations: 0 / 0.5162 GB, free: 1.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.899e-05/0.7148, allocations: 4 kB / 0.5162 GB, free: 1.836 MB / 426.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.008696/0.7235, allocations: 2.321 MB / 0.5185 GB, free: 15.46 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.228e-05/0.7236, allocations: 9.156 kB / 0.5185 GB, free: 15.45 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0106/0.7342, allocations: 0.8839 MB / 0.5194 GB, free: 14.57 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002519/0.7368, allocations: 0.8885 MB / 0.5202 GB, free: 13.63 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001898/0.737, allocations: 106.3 kB / 0.5203 GB, free: 13.53 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003017/0.7373, allocations: 116 kB / 0.5204 GB, free: 13.41 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009699/0.7471, allocations: 2.295 MB / 0.5227 GB, free: 10.96 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.601e-05/0.7472, allocations: 7.938 kB / 0.5227 GB, free: 10.95 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.7474, allocations: 52 kB / 0.5227 GB, free: 10.9 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-05/0.7475, allocations: 32 kB / 0.5228 GB, free: 10.87 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01093/0.7584, allocations: 2.205 MB / 0.5249 GB, free: 8.656 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02176/0.7802, allocations: 10.06 MB / 0.5347 GB, free: 13.84 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009497/0.7898, allocations: 1.75 MB / 0.5365 GB, free: 12.08 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09143/0.8813, allocations: 26.34 MB / 0.5622 GB, free: 14.77 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.877e-05/0.8814, allocations: 47.56 kB / 0.5622 GB, free: 14.72 MB / 490.7 MB Notification: Performance of pre-optimization done (n=88): time 4.088e-06/0.8814, allocations: 0 / 0.5622 GB, free: 14.72 MB / 490.7 MB Notification: Performance of matching and sorting (n=88): time 0.01663/0.898, allocations: 2.938 MB / 0.5651 GB, free: 11.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001645/0.8982, allocations: 270 kB / 0.5653 GB, free: 11.45 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002049/0.9003, allocations: 0.9213 MB / 0.5662 GB, free: 10.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002422/0.9006, allocations: 41.7 kB / 0.5663 GB, free: 10.47 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006325/0.9012, allocations: 0.5949 MB / 0.5669 GB, free: 9.871 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004555/0.9017, allocations: 307.6 kB / 0.5672 GB, free: 9.566 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.9018, allocations: 20 kB / 0.5672 GB, free: 9.547 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001928/0.902, allocations: 354.8 kB / 0.5675 GB, free: 9.191 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002546/0.9046, allocations: 0.5022 MB / 0.568 GB, free: 8.691 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002944/0.9076, allocations: 0.9047 MB / 0.5689 GB, free: 7.605 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002733/0.9103, allocations: 0.5779 MB / 0.5695 GB, free: 7.031 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.896e-05/0.9104, allocations: 4 kB / 0.5695 GB, free: 7.027 MB / 490.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.006445/0.9169, allocations: 1.468 MB / 0.5709 GB, free: 5.555 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002128/0.919, allocations: 4.45 MB / 0.5752 GB, free: 0.7539 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.007e-05/0.9191, allocations: 12 kB / 0.5752 GB, free: 0.7422 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.295e-05/0.9192, allocations: 24 kB / 0.5753 GB, free: 0.7188 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002638/0.9218, allocations: 351.5 kB / 0.5756 GB, free: 384 kB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.16e-05/0.9219, allocations: 23.92 kB / 0.5756 GB, free: 360 kB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002333/0.9242, allocations: 242.3 kB / 0.5759 GB, free: 116 kB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002343/0.9245, allocations: 63.98 kB / 0.5759 GB, free: 52 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.9245, allocations: 4 kB / 0.5759 GB, free: 48 kB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006127/0.9307, allocations: 1.385 MB / 0.5773 GB, free: 14.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.874e-05/0.9308, allocations: 12 kB / 0.5773 GB, free: 14.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.094e-05/0.9308, allocations: 23.94 kB / 0.5773 GB, free: 14.62 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002478/0.9333, allocations: 348.3 kB / 0.5776 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.953e-05/0.9334, allocations: 31.88 kB / 0.5777 GB, free: 14.25 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001679/0.9351, allocations: 191.1 kB / 0.5779 GB, free: 14.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/0.9353, allocations: 67.97 kB / 0.5779 GB, free: 14 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (141): * Single equations (assignments): 141 * 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.0009327/0.9362, allocations: 311.1 kB / 0.5782 GB, free: 13.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004631/0.9367, allocations: 146.3 kB / 0.5784 GB, free: 13.54 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01447/0.9512, allocations: 6.787 MB / 0.585 GB, free: 6.719 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001182/0.9513, allocations: 83.86 kB / 0.5851 GB, free: 6.637 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.239e-05/0.9514, allocations: 3.953 kB / 0.5851 GB, free: 6.633 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.884e-05/0.9514, allocations: 11.97 kB / 0.5851 GB, free: 6.621 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005716/0.9571, allocations: 3.289 MB / 0.5883 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.227e-05/0.9572, allocations: 0 / 0.5883 GB, free: 3.277 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002229/0.9594, allocations: 315.6 kB / 0.5886 GB, free: 2.969 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.511e-05/0.9595, allocations: 4 kB / 0.5886 GB, free: 2.965 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001015/0.9596, allocations: 20 kB / 0.5886 GB, free: 2.945 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-05/0.9596, allocations: 4 kB / 0.5886 GB, free: 2.941 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.9596, allocations: 0 / 0.5886 GB, free: 2.941 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007717/0.9674, allocations: 3.12 MB / 0.5917 GB, free: 15.79 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001892/0.9693, allocations: 0.8888 MB / 0.5925 GB, free: 14.88 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006023/0.9699, allocations: 27.98 kB / 0.5926 GB, free: 14.85 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002152/0.9721, allocations: 139.7 kB / 0.5927 GB, free: 14.71 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003415/0.9725, allocations: 108.8 kB / 0.5928 GB, free: 14.61 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001322/0.9726, allocations: 43.97 kB / 0.5928 GB, free: 14.57 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.003413/0.9761, allocations: 1.538 MB / 0.5943 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.62e-07/0.9761, allocations: 3.938 kB / 0.5943 GB, free: 13.02 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006922/0.983, allocations: 1.706 MB / 0.596 GB, free: 11.3 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 ($cse3.phase,$cse3.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse10.phase,$cse10.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse20.phase,$cse20.region,$cse24.phase,$cse24.region,$cse28.phase,$cse28.region,$cse32.phase,$cse32.region,$cse35.phase,$cse35.region,$cse36.phase,$cse36.region,$cse39.phase,$cse39.region,$cse43.phase,$cse43.region,$cse46.phase,$cse46.region,$cse47.phase,$cse47.region,$cse49.phase,$cse49.region,$cse50.phase,$cse50.region,$cse52.phase,$cse52.region,$cse53.phase,$cse53.region,$cse55.phase,$cse55.region,$cse56.phase,$cse56.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.007269/0.9903, allocations: 1.39 MB / 0.5974 GB, free: 9.914 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009499/0.9999, allocations: 2.68 MB / 0.6 GB, free: 7.242 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/0.9999, allocations: 0 / 0.6 GB, free: 7.242 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.003756/1.004, allocations: 1.543 MB / 0.6015 GB, free: 5.699 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007204/1.011, allocations: 0.7823 MB / 0.6023 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3484/1.359, allocations: 6.591 MB / 0.6087 GB, free: 170.4 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/1.362, allocations: 1.859 MB / 0.6105 GB, free: 169.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007724/1.363, allocations: 147.6 kB / 0.6107 GB, free: 169.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.443e-06/1.363, allocations: 1.688 kB / 0.6107 GB, free: 169.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.1082/1.471, allocations: 48 MB / 0.6575 GB, free: 144.8 MB / 0.5105 GB