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.977/1.977, allocations: 209.3 MB / 224.4 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.171e-05/4.141e-05, allocations: 7.984 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.391/0.3911, allocations: 48.7 MB / 324.9 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.09193/0.4831, allocations: 51.63 MB / 376.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0416/0.5247, allocations: 19.75 MB / 396.2 MB, free: 8.066 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002001/0.5268, allocations: 47.62 kB / 396.3 MB, free: 8.02 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003075/0.5299, allocations: 0.6921 MB / 397 MB, free: 7.324 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01408/0.544, allocations: 3.302 MB / 400.3 MB, free: 4.012 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.02333/0.5674, allocations: 4.537 MB / 404.8 MB, free: 15.47 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.003848/0.5713, allocations: 1.339 MB / 406.2 MB, free: 14.12 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.5725, allocations: 492.9 kB / 406.6 MB, free: 13.64 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002829/0.5754, allocations: 0.857 MB / 407.5 MB, free: 12.78 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001383/0.5768, allocations: 0.5296 MB / 408 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02236/0.5992, allocations: 7.27 MB / 415.3 MB, free: 4.973 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003167/0.6025, allocations: 436 kB / 415.7 MB, free: 4.547 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005703/0.6031, allocations: 227.2 kB / 415.9 MB, free: 4.324 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005412/0.6036, allocations: 132 kB / 416.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01122/0.6149, allocations: 3.859 MB / 419.9 MB, free: 336 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.6149, allocations: 0 / 419.9 MB, free: 336 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6149, allocations: 4 kB / 419.9 MB, free: 332 kB / 346.7 MB Notification: Performance of Transformations before backend: time 3.844e-05/0.615, allocations: 0 / 419.9 MB, free: 332 kB / 346.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.007214/0.6222, allocations: 1.883 MB / 421.8 MB, free: 14.39 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.6223, allocations: 8.031 kB / 421.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007739/0.63, allocations: 0.623 MB / 422.4 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002144/0.6322, allocations: 0.7525 MB / 423.2 MB, free: 12.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001371/0.6324, allocations: 85.95 kB / 423.3 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002117/0.6326, allocations: 84 kB / 423.4 MB, free: 12.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007347/0.64, allocations: 1.739 MB / 425.1 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.69e-05/0.6401, allocations: 11.94 kB / 425.1 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001756/0.6403, allocations: 40 kB / 425.2 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.359e-05/0.6403, allocations: 24 kB / 425.2 MB, free: 10.88 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008018/0.6483, allocations: 1.662 MB / 426.8 MB, free: 9.215 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01366/0.6621, allocations: 7.393 MB / 434.2 MB, free: 1.246 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006229/0.6683, allocations: 1.211 MB / 435.4 MB, free: 28 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07497/0.7434, allocations: 17.75 MB / 453.2 MB, free: 12.55 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.562e-05/0.7435, allocations: 39.12 kB / 453.2 MB, free: 12.51 MB / 394.7 MB Notification: Performance of pre-optimization done (n=67): time 6.302e-06/0.7435, allocations: 0 / 453.2 MB, free: 12.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=67): time 0.01095/0.7545, allocations: 2.086 MB / 455.3 MB, free: 10.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001656/0.7547, allocations: 218.2 kB / 455.5 MB, free: 10.15 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001216/0.7559, allocations: 0.6055 MB / 456.1 MB, free: 9.539 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001535/0.7561, allocations: 37.7 kB / 456.2 MB, free: 9.496 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005001/0.7566, allocations: 0.5436 MB / 456.7 MB, free: 8.945 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003182/0.7569, allocations: 232.7 kB / 456.9 MB, free: 8.715 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.757, allocations: 20 kB / 457 MB, free: 8.695 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001729/0.7572, allocations: 354.8 kB / 457.3 MB, free: 8.34 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/0.7589, allocations: 378.4 kB / 457.7 MB, free: 7.973 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/0.7609, allocations: 0.7915 MB / 458.5 MB, free: 6.984 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001871/0.7628, allocations: 465.8 kB / 458.9 MB, free: 6.527 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.257e-05/0.7629, allocations: 8 kB / 458.9 MB, free: 6.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=127) (initialization): time 0.004489/0.7674, allocations: 1.189 MB / 460.1 MB, free: 5.32 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002267/0.7697, allocations: 5.051 MB / 465.2 MB, free: 15.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.803e-05/0.7698, allocations: 12 kB / 465.2 MB, free: 15.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.217e-05/0.7698, allocations: 20 kB / 465.2 MB, free: 15.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002061/0.7719, allocations: 303.5 kB / 465.5 MB, free: 15.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-05/0.772, allocations: 27.92 kB / 465.5 MB, free: 15.52 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001705/0.7737, allocations: 178.8 kB / 465.7 MB, free: 15.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001705/0.7739, allocations: 67.94 kB / 465.8 MB, free: 15.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.7739, allocations: 4 kB / 465.8 MB, free: 15.27 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004351/0.7783, allocations: 1.118 MB / 466.9 MB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/0.7784, allocations: 12 kB / 466.9 MB, free: 14.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.287e-05/0.7784, allocations: 20 kB / 466.9 MB, free: 14.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001932/0.7804, allocations: 303.8 kB / 467.2 MB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-05/0.7805, allocations: 27.92 kB / 467.2 MB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/0.7819, allocations: 147.2 kB / 467.4 MB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001591/0.7821, allocations: 63.98 kB / 467.5 MB, free: 13.59 MB / 410.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.0007232/0.7828, allocations: 269.4 kB / 467.7 MB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003102/0.7831, allocations: 94.83 kB / 467.8 MB, free: 13.23 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009801/0.793, allocations: 4.651 MB / 472.5 MB, free: 8.535 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.307e-05/0.7932, allocations: 59.91 kB / 472.5 MB, free: 8.477 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.7932, allocations: 4 kB / 472.5 MB, free: 8.473 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.464e-05/0.7932, allocations: 7.969 kB / 472.5 MB, free: 8.465 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003707/0.7969, allocations: 2.156 MB / 474.7 MB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.648e-05/0.797, allocations: 0 / 474.7 MB, free: 6.258 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001491/0.7985, allocations: 227.7 kB / 474.9 MB, free: 6.035 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.359e-05/0.7986, allocations: 4 kB / 474.9 MB, free: 6.031 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.924e-05/0.7986, allocations: 23.95 kB / 474.9 MB, free: 6.008 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.536e-06/0.7987, allocations: 4 kB / 474.9 MB, free: 6.004 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.7987, allocations: 4 kB / 474.9 MB, free: 6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005229/0.8039, allocations: 2.279 MB / 477.2 MB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009305/0.8049, allocations: 453.3 kB / 477.7 MB, free: 3.215 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000286/0.8052, allocations: 16 kB / 477.7 MB, free: 3.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00113/0.8064, allocations: 103.7 kB / 477.8 MB, free: 3.098 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.8066, allocations: 72.89 kB / 477.9 MB, free: 3.027 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.633e-05/0.8067, allocations: 23.98 kB / 477.9 MB, free: 3.004 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001138/0.8078, allocations: 0.5667 MB / 478.4 MB, free: 2.43 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.8079, allocations: 8 kB / 478.4 MB, free: 2.422 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005556/0.8134, allocations: 1.44 MB / 479.9 MB, free: 0.9805 MB / 410.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,$cse10.phase,$cse10.region,$cse12.phase,$cse12.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,$cse23.phase,$cse23.region,$cse24.phase,$cse24.region,$cse26.phase,$cse26.region,$cse27.phase,$cse27.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.2706/1.084, allocations: 1.303 MB / 481.2 MB, free: 132.5 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006929/1.091, allocations: 2.059 MB / 483.3 MB, free: 132.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.091, allocations: 0 / 483.3 MB, free: 132.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00259/1.094, allocations: 1.142 MB / 484.4 MB, free: 131.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/1.098, allocations: 456.8 kB / 484.8 MB, free: 131.8 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009333/1.107, allocations: 4.555 MB / 489.4 MB, free: 129.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001355/1.109, allocations: 1.429 MB / 490.8 MB, free: 128.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000595/1.109, allocations: 109 kB / 490.9 MB, free: 128.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.512e-06/1.109, allocations: 0 / 490.9 MB, free: 128.6 MB / 410.7 MB Notification: Performance of Templates: time 0.08199/1.191, allocations: 37.07 MB / 0.5156 GB, free: 104 MB / 410.7 MB