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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible") Notification: Performance of loadModel(ModelicaTest): time 2.416/2.416, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.128e-05/3.139e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1342, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveIncompressible): time 0.4208/0.555, allocations: 52.35 MB / 463.3 MB, free: 14.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04087/0.5959, allocations: 19.98 MB / 483.3 MB, free: 14.68 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002207/0.5982, allocations: 44.09 kB / 483.3 MB, free: 14.66 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003145/0.6014, allocations: 0.6924 MB / 484 MB, free: 14.04 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01408/0.6155, allocations: 3.342 MB / 487.3 MB, free: 11.12 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01881/0.6344, allocations: 4.603 MB / 491.9 MB, free: 6.617 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 0.003981/0.6384, allocations: 1.366 MB / 493.3 MB, free: 5.25 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001151/0.6396, allocations: 0.4931 MB / 493.8 MB, free: 4.758 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002525/0.6421, allocations: 0.8649 MB / 494.7 MB, free: 3.891 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00117/0.6433, allocations: 0.5491 MB / 495.2 MB, free: 3.34 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02282/0.6661, allocations: 7.441 MB / 0.4909 GB, free: 11.89 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003289/0.6695, allocations: 455.9 kB / 0.4913 GB, free: 11.45 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000655/0.6702, allocations: 231.2 kB / 0.4915 GB, free: 11.22 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005976/0.6708, allocations: 132 kB / 0.4917 GB, free: 11.09 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.6828, allocations: 3.945 MB / 0.4955 GB, free: 7.137 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.6828, allocations: 3.938 kB / 0.4955 GB, free: 7.133 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.361e-06/0.6828, allocations: 7.984 kB / 0.4955 GB, free: 7.125 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.823e-05/0.6829, allocations: 0 / 0.4955 GB, free: 7.125 MB / 410.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.007604/0.6905, allocations: 1.93 MB / 0.4974 GB, free: 5.141 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.6906, allocations: 8.031 kB / 0.4974 GB, free: 5.133 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008092/0.6987, allocations: 0.6619 MB / 0.4981 GB, free: 4.469 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.7007, allocations: 0.7329 MB / 0.4988 GB, free: 3.695 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001323/0.7009, allocations: 78 kB / 0.4989 GB, free: 3.617 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002387/0.7011, allocations: 92 kB / 0.4989 GB, free: 3.527 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007568/0.7087, allocations: 1.735 MB / 0.5006 GB, free: 1.691 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.693e-05/0.7088, allocations: 3.938 kB / 0.5006 GB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001855/0.709, allocations: 44 kB / 0.5007 GB, free: 1.645 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.709, allocations: 27.95 kB / 0.5007 GB, free: 1.617 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008383/0.7174, allocations: 1.666 MB / 0.5023 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01673/0.7342, allocations: 7.59 MB / 0.5097 GB, free: 7.781 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00729/0.7415, allocations: 1.308 MB / 0.511 GB, free: 6.461 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08592/0.8275, allocations: 24.52 MB / 0.535 GB, free: 11 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.58e-05/0.8276, allocations: 43.12 kB / 0.535 GB, free: 10.95 MB / 458.7 MB Notification: Performance of pre-optimization done (n=67): time 3.667e-06/0.8276, allocations: 0 / 0.535 GB, free: 10.95 MB / 458.7 MB Notification: Performance of matching and sorting (n=67): time 0.01266/0.8403, allocations: 2.23 MB / 0.5372 GB, free: 8.715 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001431/0.8405, allocations: 218.2 kB / 0.5374 GB, free: 8.453 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00156/0.8421, allocations: 0.721 MB / 0.5381 GB, free: 7.711 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001805/0.8423, allocations: 41.7 kB / 0.5381 GB, free: 7.664 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004784/0.8428, allocations: 485.6 kB / 0.5386 GB, free: 7.188 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003302/0.8431, allocations: 232.8 kB / 0.5388 GB, free: 6.957 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.013e-05/0.8432, allocations: 16 kB / 0.5388 GB, free: 6.941 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.8434, allocations: 350.8 kB / 0.5392 GB, free: 6.59 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001943/0.8453, allocations: 389.7 kB / 0.5395 GB, free: 6.211 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002211/0.8476, allocations: 0.6906 MB / 0.5402 GB, free: 5.391 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002052/0.8497, allocations: 458.9 kB / 0.5407 GB, free: 4.941 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.111e-05/0.8497, allocations: 4 kB / 0.5407 GB, free: 4.938 MB / 458.7 MB Notification: Performance of matching and sorting (n=109) (initialization): time 0.004822/0.8545, allocations: 1.126 MB / 0.5418 GB, free: 3.805 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001596/0.8562, allocations: 3.23 MB / 0.5449 GB, free: 332 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.4e-05/0.8562, allocations: 8 kB / 0.5449 GB, free: 324 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.544e-05/0.8563, allocations: 16 kB / 0.5449 GB, free: 308 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002077/0.8584, allocations: 275.6 kB / 0.5452 GB, free: 32 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.482e-05/0.8585, allocations: 15.98 kB / 0.5452 GB, free: 16 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001931/0.8604, allocations: 190.7 kB / 0.5454 GB, free: 15.83 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.8606, allocations: 51.97 kB / 0.5455 GB, free: 15.78 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.8606, allocations: 4 kB / 0.5455 GB, free: 15.77 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00469/0.8653, allocations: 1.053 MB / 0.5465 GB, free: 14.72 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.195e-05/0.8654, allocations: 12.92 kB / 0.5465 GB, free: 14.71 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.33e-05/0.8654, allocations: 12 kB / 0.5465 GB, free: 14.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001906/0.8673, allocations: 271.6 kB / 0.5468 GB, free: 14.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.809e-05/0.8674, allocations: 19.94 kB / 0.5468 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001372/0.8688, allocations: 151.3 kB / 0.5469 GB, free: 14.26 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.8689, allocations: 47.98 kB / 0.547 GB, free: 14.21 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (109): * Single equations (assignments): 109 * 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.0007167/0.8696, allocations: 261.5 kB / 0.5472 GB, free: 13.95 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003438/0.87, allocations: 106.7 kB / 0.5473 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/0.8809, allocations: 5.136 MB / 0.5523 GB, free: 8.66 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.931e-05/0.881, allocations: 63.84 kB / 0.5524 GB, free: 8.598 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.881, allocations: 0 / 0.5524 GB, free: 8.598 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.253e-05/0.8811, allocations: 7.969 kB / 0.5524 GB, free: 8.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00432/0.8854, allocations: 2.494 MB / 0.5548 GB, free: 6.035 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-05/0.8855, allocations: 0 / 0.5548 GB, free: 6.035 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001788/0.8873, allocations: 239.7 kB / 0.5551 GB, free: 5.801 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-05/0.8873, allocations: 4 kB / 0.5551 GB, free: 5.797 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.274e-05/0.8874, allocations: 20 kB / 0.5551 GB, free: 5.777 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.255e-05/0.8874, allocations: 7.953 kB / 0.5551 GB, free: 5.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.67e-06/0.8875, allocations: 7.984 kB / 0.5551 GB, free: 5.762 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006143/0.8936, allocations: 2.38 MB / 0.5574 GB, free: 3.336 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001496/0.8952, allocations: 0.6836 MB / 0.5581 GB, free: 2.629 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000421/0.8956, allocations: 16 kB / 0.5581 GB, free: 2.613 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001634/0.8972, allocations: 111.8 kB / 0.5582 GB, free: 2.504 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002636/0.8975, allocations: 88.81 kB / 0.5583 GB, free: 2.418 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001023/0.8976, allocations: 31.98 kB / 0.5583 GB, free: 2.387 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002671/0.9003, allocations: 1.183 MB / 0.5595 GB, free: 1.18 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.525e-06/0.9004, allocations: 4 kB / 0.5595 GB, free: 1.176 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006164/0.9065, allocations: 1.518 MB / 0.561 GB, free: 15.65 MB / 490.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 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse11.phase,$cse11.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse22.phase,$cse22.region,$cse25.phase,$cse25.region,$cse26.phase,$cse26.region,$cse29.phase,$cse29.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.region,$cse40.phase,$cse40.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.00715/0.9137, allocations: 1.337 MB / 0.5623 GB, free: 14.32 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.007457/0.9212, allocations: 2.045 MB / 0.5643 GB, free: 12.27 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.177e-06/0.9213, allocations: 0 / 0.5643 GB, free: 12.27 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002918/0.9242, allocations: 1.164 MB / 0.5654 GB, free: 11.11 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00563/0.9299, allocations: 0.6009 MB / 0.566 GB, free: 10.51 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0101/0.94, allocations: 4.969 MB / 0.5709 GB, free: 5.492 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001512/0.9416, allocations: 1.565 MB / 0.5724 GB, free: 3.891 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005849/0.9422, allocations: 119.4 kB / 0.5725 GB, free: 3.773 MB / 490.7 MB Notification: Performance of SimCode: time 1.482e-06/0.9422, allocations: 0 / 0.5725 GB, free: 3.773 MB / 490.7 MB Notification: Performance of Templates: time 0.4626/1.405, allocations: 41.01 MB / 0.6126 GB, free: 159.4 MB / 0.5105 GB