Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,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|SinkP1.ports.1..m_flow|SinkP1.ports.1..p|SinkP1.ports.1..h_outflow|Opening.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.507/2.507, allocations: 234.9 MB / 250.1 MB, free: 9.805 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.728e-05/3.736e-05, allocations: 0 / 308 MB, free: 15.78 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.377/0.3771, allocations: 54.86 MB / 362.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.03941/0.4165, allocations: 22.91 MB / 385.8 MB, free: 4.801 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.4378, allocations: 10.66 MB / 396.4 MB, free: 10.12 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005823/0.4384, allocations: 15.88 kB / 396.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000792/0.4392, allocations: 183.1 kB / 396.6 MB, free: 9.926 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009826/0.4491, allocations: 2.524 MB / 399.1 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006893/0.456, allocations: 1.682 MB / 400.8 MB, free: 5.707 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001175/0.4572, allocations: 428.4 kB / 401.2 MB, free: 5.289 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004376/0.4577, allocations: 167.8 kB / 401.4 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000989/0.4587, allocations: 362.9 kB / 401.8 MB, free: 4.77 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003546/0.4591, allocations: 175.4 kB / 401.9 MB, free: 4.598 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01884/0.4779, allocations: 6.544 MB / 408.5 MB, free: 14.05 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002755/0.4807, allocations: 400 kB / 408.9 MB, free: 13.66 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002274/0.481, allocations: 79.73 kB / 408.9 MB, free: 13.58 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001986/0.4812, allocations: 44 kB / 409 MB, free: 13.54 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008405/0.4896, allocations: 2.76 MB / 411.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.4897, allocations: 0 / 411.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.665e-06/0.4897, allocations: 0 / 411.7 MB, free: 10.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.4897, allocations: 0 / 411.7 MB, free: 10.77 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.004046/0.4938, allocations: 1.131 MB / 412.9 MB, free: 9.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.4938, allocations: 12.03 kB / 412.9 MB, free: 9.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002489/0.4963, allocations: 219.3 kB / 413.1 MB, free: 9.363 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008039/0.4972, allocations: 370 kB / 413.5 MB, free: 8.965 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.731e-05/0.4972, allocations: 20.66 kB / 413.5 MB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.132e-05/0.4973, allocations: 32 kB / 413.5 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002414/0.4997, allocations: 0.5901 MB / 414.1 MB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.4998, allocations: 0 / 414.1 MB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.695e-05/0.4999, allocations: 16 kB / 414.1 MB, free: 8.262 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.4999, allocations: 8 kB / 414.1 MB, free: 8.254 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002694/0.5026, allocations: 0.564 MB / 414.7 MB, free: 7.691 MB / 346.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004314/0.5069, allocations: 2.559 MB / 417.3 MB, free: 4.895 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002475/0.5094, allocations: 478.2 kB / 417.7 MB, free: 4.418 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1996/0.709, allocations: 52.02 MB / 469.7 MB, free: 10.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.785e-05/0.7091, allocations: 34.56 kB / 469.8 MB, free: 10.89 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.505e-06/0.7091, allocations: 0 / 469.8 MB, free: 10.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.004426/0.7136, allocations: 0.8215 MB / 470.6 MB, free: 10.06 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.417e-05/0.7137, allocations: 110.8 kB / 470.7 MB, free: 9.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004399/0.7141, allocations: 255.5 kB / 471 MB, free: 9.672 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.851e-05/0.7142, allocations: 29.7 kB / 471 MB, free: 9.637 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.7144, allocations: 270.3 kB / 471.3 MB, free: 9.371 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.7145, allocations: 82.77 kB / 471.3 MB, free: 9.289 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.951e-05/0.7146, allocations: 11.94 kB / 471.3 MB, free: 9.277 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.7147, allocations: 326.8 kB / 471.7 MB, free: 8.949 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006772/0.7154, allocations: 152.5 kB / 471.8 MB, free: 8.797 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007767/0.7162, allocations: 268.7 kB / 472.1 MB, free: 8.48 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007226/0.717, allocations: 176 kB / 472.2 MB, free: 8.309 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/0.717, allocations: 0 / 472.2 MB, free: 8.309 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001792/0.7188, allocations: 457 kB / 472.7 MB, free: 7.855 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/0.7188, allocations: 15.89 kB / 472.7 MB, free: 7.84 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.7189, allocations: 4 kB / 472.7 MB, free: 7.836 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.589e-05/0.7189, allocations: 4 kB / 472.7 MB, free: 7.832 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006624/0.7196, allocations: 100.2 kB / 472.8 MB, free: 7.734 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.461e-05/0.7196, allocations: 8 kB / 472.8 MB, free: 7.727 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000548/0.7202, allocations: 59.66 kB / 472.9 MB, free: 7.668 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.182e-05/0.7202, allocations: 16 kB / 472.9 MB, free: 7.652 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 5 (SourceP1.medium.phase,SinkP1.medium.phase,Opening.y,V1.state_b.phase,V1.state_a.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0002913/0.7205, allocations: 169.6 kB / 473.1 MB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.514e-05/0.7206, allocations: 31.62 kB / 473.1 MB, free: 7.445 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004006/0.7246, allocations: 1.916 MB / 475 MB, free: 5.523 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.491e-05/0.7247, allocations: 31.94 kB / 475 MB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.7248, allocations: 0 / 475 MB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.7248, allocations: 0 / 475 MB, free: 5.492 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.7264, allocations: 1.003 MB / 476 MB, free: 4.434 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.886e-06/0.7264, allocations: 0 / 476 MB, free: 4.434 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005777/0.727, allocations: 83.88 kB / 476.1 MB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.829e-06/0.727, allocations: 3.562 kB / 476.1 MB, free: 4.352 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.273e-05/0.7271, allocations: 8 kB / 476.1 MB, free: 4.344 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.584e-06/0.7271, allocations: 7.953 kB / 476.1 MB, free: 4.336 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.7271, allocations: 3.984 kB / 476.1 MB, free: 4.332 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/0.7295, allocations: 1.088 MB / 477.2 MB, free: 3.227 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/0.7298, allocations: 211.5 kB / 477.4 MB, free: 3 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001038/0.73, allocations: 4 kB / 477.4 MB, free: 2.996 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004876/0.7305, allocations: 39.97 kB / 477.5 MB, free: 2.957 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/0.7306, allocations: 35.91 kB / 477.5 MB, free: 2.922 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.597e-05/0.7306, allocations: 8 kB / 477.5 MB, free: 2.914 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004395/0.7311, allocations: 267.1 kB / 477.8 MB, free: 2.648 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.7311, allocations: 3.938 kB / 477.8 MB, free: 2.645 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003556/0.7347, allocations: 0.9485 MB / 478.7 MB, free: 1.695 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: 19 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse11.phase,$cse11.region,SourceP1.medium.phase,SinkP1.medium.phase,Opening.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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.006567/0.7413, allocations: 1.168 MB / 479.9 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.325/1.066, allocations: 0.6125 MB / 480.5 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.066, allocations: 1.938 kB / 480.5 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001973/1.068, allocations: 0.521 MB / 481 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/1.071, allocations: 170.8 kB / 481.2 MB, free: 114.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005245/1.076, allocations: 1.995 MB / 483.2 MB, free: 113.1 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008207/1.077, allocations: 0.9778 MB / 484.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002673/1.077, allocations: 43.28 kB / 484.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of SimCode: time 1.122e-06/1.077, allocations: 0 / 484.2 MB, free: 112.4 MB / 410.7 MB Notification: Performance of Templates: time 0.06243/1.14, allocations: 25.44 MB / 0.4977 GB, free: 92.94 MB / 410.7 MB