Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|SourceP1.ports.1..m_flow|SourceP1.ports.1..p|SourceP1.ports.1..h_outflow|SourceP1.ports.2..m_flow|SourceP1.ports.2..p|SourceP1.ports.2..h_outflow|SourceP2.ports.1..m_flow|SourceP2.ports.1..p|SourceP2.ports.1..h_outflow|SourceP2.ports.2..m_flow|SourceP2.ports.2..p|SourceP2.ports.2..h_outflow|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V3.port_b.m_flow|V3.port_b.p|V3.port_b.h_outflow|V3.minLimiter.y|V4.port_b.m_flow|V4.port_b.p|V4.port_b.h_outflow|V4.minLimiter.y|V5.port_b.m_flow|V5.port_b.p|V5.port_b.h_outflow|V5.minLimiter.y|SinkP2.ports.1..m_flow|SinkP2.ports.1..p|SinkP2.ports.1..h_outflow|SinkP3.ports.1..m_flow|SinkP3.ports.1..p|SinkP3.ports.1..h_outflow|CloseLoad.y|OpenRelief.y|CloseValves.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse") Notification: Performance of loadModel(ModelicaTest): time 2.045/2.045, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.826e-05/3.856e-05, allocations: 4 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.377, allocations: 48.7 MB / 324.9 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValvesIncompressibleReverse): time 0.06236/0.4395, allocations: 31.87 MB / 356.7 MB, free: 12.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02449/0.464, allocations: 9.547 MB / 366.3 MB, free: 5.645 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002358/0.4664, allocations: 62.31 kB / 366.3 MB, free: 5.613 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002889/0.4694, allocations: 0.588 MB / 366.9 MB, free: 5.102 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0118/0.4812, allocations: 2.88 MB / 369.8 MB, free: 2.562 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01273/0.494, allocations: 3.163 MB / 373 MB, free: 15.4 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004281/0.4983, allocations: 1.341 MB / 374.3 MB, free: 14.05 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001713/0.5001, allocations: 0.6631 MB / 375 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01033/0.5104, allocations: 3.807 MB / 378.8 MB, free: 9.578 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005831/0.5163, allocations: 2.18 MB / 381 MB, free: 7.395 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009162/0.5256, allocations: 2.95 MB / 383.9 MB, free: 4.441 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009817/0.5267, allocations: 124 kB / 384 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004404/0.5271, allocations: 243.1 kB / 384.3 MB, free: 4.082 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006427/0.5278, allocations: 128 kB / 384.4 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005174/0.533, allocations: 1.812 MB / 386.2 MB, free: 2.141 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.533, allocations: 0 / 386.2 MB, free: 2.141 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.277e-06/0.533, allocations: 4 kB / 386.2 MB, free: 2.137 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.779e-05/0.5331, allocations: 0 / 386.2 MB, free: 2.137 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 209 * Number of variables: 209 Notification: Performance of Generate backend data structure: time 0.005023/0.5381, allocations: 1.47 MB / 387.7 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.923e-05/0.5382, allocations: 8.031 kB / 387.7 MB, free: 0.6055 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003912/0.5421, allocations: 310.2 kB / 388 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002187/0.5444, allocations: 0.7795 MB / 388.8 MB, free: 15.48 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.897e-05/0.5445, allocations: 62 kB / 388.8 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002157/0.5447, allocations: 87.98 kB / 388.9 MB, free: 15.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004828/0.5495, allocations: 1.224 MB / 390.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.648e-05/0.5497, allocations: 0 / 390.1 MB, free: 14.04 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001761/0.5498, allocations: 40 kB / 390.2 MB, free: 14 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.167e-05/0.5499, allocations: 23.98 kB / 390.2 MB, free: 13.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004834/0.5547, allocations: 1.034 MB / 391.2 MB, free: 12.94 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01146/0.5662, allocations: 6.244 MB / 397.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003148/0.5695, allocations: 0.6335 MB / 398.1 MB, free: 5.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007589/0.5702, allocations: 0.7523 MB / 398.9 MB, free: 4.582 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.629e-05/0.5703, allocations: 42.94 kB / 398.9 MB, free: 4.531 MB / 330.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007511/0.5711, allocations: 87.25 kB / 399 MB, free: 4.445 MB / 330.7 MB Notification: Performance of pre-optimization done (n=48): time 5.781e-06/0.5711, allocations: 4 kB / 399 MB, free: 4.441 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.01045/0.5815, allocations: 1.523 MB / 400.5 MB, free: 2.887 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.5817, allocations: 196.3 kB / 400.7 MB, free: 2.652 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001577/0.5833, allocations: 0.7568 MB / 401.5 MB, free: 1.879 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001302/0.5835, allocations: 37.7 kB / 401.5 MB, free: 1.836 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005934/0.5841, allocations: 0.6132 MB / 402.1 MB, free: 1.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000236/0.5843, allocations: 173.6 kB / 402.3 MB, free: 1.043 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.5845, allocations: 20 kB / 402.3 MB, free: 1.023 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5846, allocations: 346.8 kB / 402.6 MB, free: 0.6758 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001439/0.5861, allocations: 357.8 kB / 403 MB, free: 336 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001722/0.5878, allocations: 0.7008 MB / 403.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001637/0.5895, allocations: 453.8 kB / 404.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-05/0.5895, allocations: 4 kB / 404.1 MB, free: 15.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=117) (initialization): time 0.004316/0.5938, allocations: 1.225 MB / 405.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001873/0.5957, allocations: 4.186 MB / 409.6 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/0.5958, allocations: 12 kB / 409.6 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009674/0.6055, allocations: 0.7615 MB / 410.3 MB, free: 8.492 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002022/0.6076, allocations: 299.5 kB / 410.6 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.609, allocations: 0.7903 MB / 411.4 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001845/0.6109, allocations: 99.83 kB / 411.5 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002604/0.6112, allocations: 103.9 kB / 411.6 MB, free: 7.184 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.818e-05/0.6112, allocations: 4 kB / 411.6 MB, free: 7.18 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004264/0.6155, allocations: 1.115 MB / 412.7 MB, free: 6.062 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.409e-05/0.6156, allocations: 12 kB / 412.7 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004625/0.616, allocations: 92.59 kB / 412.8 MB, free: 5.961 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001995/0.618, allocations: 307.7 kB / 413.1 MB, free: 5.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002445/0.6205, allocations: 1.647 MB / 414.8 MB, free: 3.883 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00138/0.6219, allocations: 88 kB / 414.9 MB, free: 3.797 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002385/0.6222, allocations: 87.97 kB / 415 MB, free: 3.711 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 104 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0007658/0.623, allocations: 261.6 kB / 415.2 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003536/0.6233, allocations: 110.6 kB / 415.3 MB, free: 3.336 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005861/0.6292, allocations: 1.315 MB / 416.6 MB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.661e-05/0.6293, allocations: 8 kB / 416.6 MB, free: 2 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.6293, allocations: 4 kB / 416.6 MB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.6293, allocations: 3.984 kB / 416.6 MB, free: 1.992 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006674/0.636, allocations: 1.833 MB / 418.5 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.6361, allocations: 4 kB / 418.5 MB, free: 88 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001154/0.6372, allocations: 132 kB / 418.6 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006705/0.6439, allocations: 0.5783 MB / 419.2 MB, free: 15.38 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001889/0.6442, allocations: 27.98 kB / 419.2 MB, free: 15.35 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001903/0.6461, allocations: 0.821 MB / 420 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.173e-06/0.6462, allocations: 3.953 kB / 420 MB, free: 14.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004752/0.6509, allocations: 1.062 MB / 421.1 MB, free: 13.38 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009444/0.6519, allocations: 299.4 kB / 421.4 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003723/0.6523, allocations: 12 kB / 421.4 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001493/0.6538, allocations: 67.95 kB / 421.5 MB, free: 12.98 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002212/0.6541, allocations: 60.38 kB / 421.5 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001509/0.6542, allocations: 39.98 kB / 421.6 MB, free: 12.89 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00171/0.656, allocations: 0.5974 MB / 422.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.656, allocations: 0 / 422.2 MB, free: 12.28 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00507/0.6611, allocations: 0.8387 MB / 423 MB, free: 11.44 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 46 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.002956/0.6641, allocations: 0.6012 MB / 423.6 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008078/0.6722, allocations: 1.57 MB / 425.2 MB, free: 9.258 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.248e-06/0.6723, allocations: 0 / 425.2 MB, free: 9.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.6745, allocations: 403.7 kB / 425.6 MB, free: 8.867 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005213/0.6797, allocations: 420 kB / 426 MB, free: 8.457 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007811/0.6876, allocations: 2.236 MB / 428.2 MB, free: 6.168 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001225/0.6889, allocations: 1.094 MB / 429.3 MB, free: 5.047 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001264/0.6902, allocations: 143.4 kB / 429.5 MB, free: 4.906 MB / 362.7 MB Notification: Performance of SimCode: time 1.503e-06/0.6902, allocations: 0 / 429.5 MB, free: 4.906 MB / 362.7 MB Notification: Performance of Templates: time 0.06878/0.759, allocations: 25.66 MB / 455.1 MB, free: 11.28 MB / 394.7 MB