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.1_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.075/2.075, allocations: 209.3 MB / 224.4 MB, free: 0.5234 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.099e-05/3.109e-05, allocations: 4 kB / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3909/0.391, allocations: 48.71 MB / 324.9 MB, free: 2.887 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.04001/0.4311, allocations: 22.76 MB / 347.6 MB, free: 3.664 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02053/0.4517, allocations: 10.57 MB / 358.2 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005356/0.4523, allocations: 15.84 kB / 358.2 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007858/0.4531, allocations: 187 kB / 358.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0109/0.464, allocations: 2.492 MB / 360.9 MB, free: 9.086 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007077/0.4711, allocations: 1.65 MB / 362.5 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001131/0.4722, allocations: 421.4 kB / 363 MB, free: 7.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003992/0.4727, allocations: 160.9 kB / 363.1 MB, free: 7.309 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001079/0.4737, allocations: 359.3 kB / 363.5 MB, free: 7.082 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003929/0.4742, allocations: 180.3 kB / 363.6 MB, free: 6.988 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01927/0.4934, allocations: 6.436 MB / 370.1 MB, free: 2.297 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002955/0.4965, allocations: 392 kB / 370.5 MB, free: 1.914 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002243/0.4967, allocations: 75.73 kB / 370.5 MB, free: 1.84 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003219/0.497, allocations: 44 kB / 370.6 MB, free: 1.797 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008353/0.5054, allocations: 2.712 MB / 373.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.5055, allocations: 4 kB / 373.3 MB, free: 15.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.635e-06/0.5055, allocations: 4 kB / 373.3 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.418e-05/0.5055, allocations: 0 / 373.3 MB, free: 15.07 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.003899/0.5094, allocations: 1.107 MB / 374.4 MB, free: 13.92 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.5095, allocations: 8.031 kB / 374.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00248/0.512, allocations: 203.2 kB / 374.6 MB, free: 13.71 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008024/0.5128, allocations: 358.2 kB / 375 MB, free: 13.32 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.156e-05/0.5129, allocations: 32.61 kB / 375 MB, free: 13.29 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.459e-05/0.513, allocations: 28 kB / 375 MB, free: 13.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002422/0.5154, allocations: 0.6017 MB / 375.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.5155, allocations: 3.984 kB / 375.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.235e-05/0.5156, allocations: 12 kB / 375.6 MB, free: 12.61 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.392e-05/0.5156, allocations: 8 kB / 375.6 MB, free: 12.6 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002655/0.5183, allocations: 0.5563 MB / 376.2 MB, free: 12.04 MB / 314.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.004193/0.5225, allocations: 2.562 MB / 378.8 MB, free: 9.238 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002561/0.5251, allocations: 486.1 kB / 379.2 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2196/0.7447, allocations: 51.95 MB / 431.2 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.206e-05/0.7449, allocations: 38.5 kB / 431.2 MB, free: 15.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=25): time 3.166e-06/0.7449, allocations: 0 / 431.2 MB, free: 15.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=25): time 0.004478/0.7494, allocations: 0.8247 MB / 432.1 MB, free: 14.45 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.7495, allocations: 106.8 kB / 432.2 MB, free: 14.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004392/0.7499, allocations: 251.6 kB / 432.4 MB, free: 14.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.857e-05/0.75, allocations: 29.7 kB / 432.4 MB, free: 14.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002091/0.7502, allocations: 266.3 kB / 432.7 MB, free: 13.77 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.7504, allocations: 86.83 kB / 432.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.7504, allocations: 8 kB / 432.8 MB, free: 13.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.7506, allocations: 330.8 kB / 433.1 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000688/0.7513, allocations: 152.5 kB / 433.3 MB, free: 13.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007863/0.7521, allocations: 272.5 kB / 433.5 MB, free: 12.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007249/0.7528, allocations: 175.8 kB / 433.7 MB, free: 12.7 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.695e-06/0.7528, allocations: 4 kB / 433.7 MB, free: 12.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001987/0.7548, allocations: 457.7 kB / 434.1 MB, free: 12.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.052e-05/0.7549, allocations: 8 kB / 434.2 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/0.7549, allocations: 8 kB / 434.2 MB, free: 12.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.302e-05/0.755, allocations: 4.469 kB / 434.2 MB, free: 12.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006687/0.7556, allocations: 107.8 kB / 434.3 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.537e-05/0.7557, allocations: 4 kB / 434.3 MB, free: 12.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005586/0.7562, allocations: 59.72 kB / 434.3 MB, free: 12.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.53e-05/0.7563, allocations: 19.98 kB / 434.4 MB, free: 12.04 MB / 378.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.0002904/0.7566, allocations: 161.7 kB / 434.5 MB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.894e-05/0.7567, allocations: 31.62 kB / 434.5 MB, free: 11.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004052/0.7608, allocations: 1.927 MB / 436.5 MB, free: 9.895 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.843e-05/0.7609, allocations: 27.95 kB / 436.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/0.7609, allocations: 0 / 436.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.311e-05/0.7609, allocations: 0 / 436.5 MB, free: 9.867 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001606/0.7626, allocations: 0.9997 MB / 437.5 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.7626, allocations: 0 / 437.5 MB, free: 8.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006026/0.7632, allocations: 87.88 kB / 437.6 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.005e-06/0.7632, allocations: 0 / 437.6 MB, free: 8.734 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.7633, allocations: 8 kB / 437.6 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.361e-06/0.7633, allocations: 0 / 437.6 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.7633, allocations: 0 / 437.6 MB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.7658, allocations: 1.096 MB / 438.7 MB, free: 7.613 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003015/0.7661, allocations: 211.5 kB / 438.9 MB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.7663, allocations: 4 kB / 438.9 MB, free: 7.383 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005065/0.7668, allocations: 43.91 kB / 438.9 MB, free: 7.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001429/0.7669, allocations: 35.89 kB / 439 MB, free: 7.305 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.722e-05/0.767, allocations: 19.98 kB / 439 MB, free: 7.285 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00046/0.7675, allocations: 255.1 kB / 439.2 MB, free: 7.035 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.7675, allocations: 0 / 439.2 MB, free: 7.035 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003781/0.7713, allocations: 0.9368 MB / 440.2 MB, free: 6.098 MB / 378.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.007002/0.7783, allocations: 1.161 MB / 441.3 MB, free: 4.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00203/0.7804, allocations: 0.6188 MB / 442 MB, free: 4.309 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.73e-06/0.7804, allocations: 3.938 kB / 442 MB, free: 4.305 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/0.7817, allocations: 0.5173 MB / 442.5 MB, free: 3.789 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001641/0.7833, allocations: 180.9 kB / 442.7 MB, free: 3.617 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003947/0.7873, allocations: 2 MB / 444.7 MB, free: 1.582 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007243/0.7881, allocations: 0.9758 MB / 445.6 MB, free: 0.5781 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002202/0.7883, allocations: 39.44 kB / 445.7 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of SimCode: time 1.203e-06/0.7883, allocations: 0 / 445.7 MB, free: 0.5391 MB / 378.7 MB Notification: Performance of Templates: time 0.062/0.8504, allocations: 25.27 MB / 470.9 MB, free: 7.25 MB / 410.7 MB