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_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.372/2.372, allocations: 234.9 MB / 249.4 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.314e-05/3.334e-05, allocations: 0 / 308 MB, free: 15.34 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3907/0.3908, allocations: 54.86 MB / 362.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.0408/0.4317, allocations: 22.92 MB / 385.8 MB, free: 6.816 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02182/0.4535, allocations: 10.66 MB / 396.5 MB, free: 12.13 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007127/0.4543, allocations: 15.88 kB / 396.5 MB, free: 12.11 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009436/0.4553, allocations: 183.1 kB / 396.6 MB, free: 11.93 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01063/0.4659, allocations: 2.516 MB / 399.2 MB, free: 9.41 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006601/0.4726, allocations: 1.674 MB / 400.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001033/0.4736, allocations: 440.3 kB / 401.3 MB, free: 7.301 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003844/0.474, allocations: 155.9 kB / 401.4 MB, free: 7.148 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001024/0.4751, allocations: 358.9 kB / 401.8 MB, free: 6.797 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.4755, allocations: 187.4 kB / 402 MB, free: 6.613 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0195/0.495, allocations: 6.54 MB / 408.5 MB, free: 68 kB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003166/0.4982, allocations: 404 kB / 408.9 MB, free: 15.67 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000254/0.4985, allocations: 79.67 kB / 409 MB, free: 15.59 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002253/0.4988, allocations: 44 kB / 409 MB, free: 15.55 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008754/0.5075, allocations: 2.76 MB / 411.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.5076, allocations: 0 / 411.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.106e-06/0.5076, allocations: 0 / 411.8 MB, free: 12.79 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.413e-05/0.5076, allocations: 0 / 411.8 MB, free: 12.79 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.004067/0.5117, allocations: 1.124 MB / 412.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.549e-05/0.5118, allocations: 8.031 kB / 412.9 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002607/0.5144, allocations: 227.3 kB / 413.1 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008518/0.5153, allocations: 366 kB / 413.5 MB, free: 10.99 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.039e-05/0.5154, allocations: 28.66 kB / 413.5 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.06e-05/0.5155, allocations: 24 kB / 413.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.5179, allocations: 0.5979 MB / 414.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.518, allocations: 0 / 414.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.16e-05/0.5181, allocations: 12 kB / 414.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.407e-05/0.5181, allocations: 8 kB / 414.1 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002756/0.5208, allocations: 0.5601 MB / 414.7 MB, free: 9.715 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.004507/0.5254, allocations: 2.566 MB / 417.3 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002586/0.528, allocations: 486.1 kB / 417.8 MB, free: 6.426 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2028/0.7308, allocations: 52.02 MB / 469.8 MB, free: 12.95 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.892e-05/0.7309, allocations: 34.56 kB / 469.8 MB, free: 12.91 MB / 410.7 MB Notification: Performance of pre-optimization done (n=25): time 2.625e-06/0.7309, allocations: 4 kB / 469.8 MB, free: 12.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=25): time 0.004457/0.7354, allocations: 0.8137 MB / 470.6 MB, free: 12.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.557e-05/0.7356, allocations: 110.8 kB / 470.7 MB, free: 11.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004683/0.736, allocations: 263.5 kB / 471 MB, free: 11.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.499e-05/0.7361, allocations: 25.7 kB / 471 MB, free: 11.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002299/0.7363, allocations: 219.9 kB / 471.2 MB, free: 11.44 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001136/0.7365, allocations: 82.75 kB / 471.3 MB, free: 11.36 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.7365, allocations: 8 kB / 471.3 MB, free: 11.35 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.7367, allocations: 342.8 kB / 471.6 MB, free: 11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007124/0.7374, allocations: 152.5 kB / 471.8 MB, free: 10.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008676/0.7383, allocations: 268.7 kB / 472.1 MB, free: 10.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007887/0.7391, allocations: 180 kB / 472.2 MB, free: 10.36 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.7392, allocations: 0 / 472.2 MB, free: 10.36 MB / 410.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.001894/0.7411, allocations: 476.7 kB / 472.7 MB, free: 9.887 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.7411, allocations: 11.95 kB / 472.7 MB, free: 9.875 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.7411, allocations: 4 kB / 472.7 MB, free: 9.871 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.573e-05/0.7412, allocations: 4 kB / 472.7 MB, free: 9.867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006651/0.7418, allocations: 108.2 kB / 472.8 MB, free: 9.762 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.567e-05/0.7419, allocations: 7.938 kB / 472.8 MB, free: 9.754 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.7424, allocations: 55.72 kB / 472.9 MB, free: 9.699 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.393e-05/0.7425, allocations: 16 kB / 472.9 MB, free: 9.684 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.0003337/0.7429, allocations: 173.6 kB / 473.1 MB, free: 9.504 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.807e-05/0.743, allocations: 31.62 kB / 473.1 MB, free: 9.473 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/0.7473, allocations: 1.919 MB / 475 MB, free: 7.547 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.994e-05/0.7474, allocations: 31.94 kB / 475.1 MB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.7474, allocations: 0 / 475.1 MB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.796e-06/0.7475, allocations: 0 / 475.1 MB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001722/0.7492, allocations: 0.9958 MB / 476 MB, free: 6.465 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.7492, allocations: 3.938 kB / 476.1 MB, free: 6.461 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005775/0.7498, allocations: 75.94 kB / 476.1 MB, free: 6.387 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.066e-06/0.7498, allocations: 4 kB / 476.1 MB, free: 6.383 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.342e-05/0.7499, allocations: 11.98 kB / 476.1 MB, free: 6.371 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.816e-06/0.7499, allocations: 7.953 kB / 476.2 MB, free: 6.363 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.7499, allocations: 0 / 476.2 MB, free: 6.363 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002618/0.7525, allocations: 1.085 MB / 477.2 MB, free: 5.262 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003385/0.7529, allocations: 211.5 kB / 477.4 MB, free: 5.035 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.753, allocations: 16 kB / 477.5 MB, free: 5.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005105/0.7536, allocations: 39.88 kB / 477.5 MB, free: 4.98 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001401/0.7537, allocations: 31.91 kB / 477.5 MB, free: 4.949 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.338e-05/0.7538, allocations: 16 kB / 477.5 MB, free: 4.934 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0004923/0.7543, allocations: 259.1 kB / 477.8 MB, free: 4.676 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.545e-06/0.7543, allocations: 0 / 477.8 MB, free: 4.676 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003916/0.7582, allocations: 0.9485 MB / 478.7 MB, free: 3.727 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.0069/0.7652, allocations: 1.163 MB / 479.9 MB, free: 2.566 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002085/0.7673, allocations: 0.6194 MB / 480.5 MB, free: 1.949 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.774e-06/0.7673, allocations: 4 kB / 480.5 MB, free: 1.945 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001211/0.7686, allocations: 0.5243 MB / 481.1 MB, free: 1.418 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001631/0.7702, allocations: 173.7 kB / 481.2 MB, free: 1.25 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.7743, allocations: 1.974 MB / 483.2 MB, free: 15.24 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007972/0.7751, allocations: 0.9797 MB / 484.2 MB, free: 14.24 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0009087/0.7761, allocations: 260.6 kB / 484.4 MB, free: 13.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00017/0.7762, allocations: 47.36 kB / 484.5 MB, free: 13.94 MB / 426.7 MB Notification: Performance of SimCode: time 1.193e-06/0.7763, allocations: 4 kB / 484.5 MB, free: 13.93 MB / 426.7 MB Notification: Performance of Templates: time 0.3815/1.158, allocations: 28.69 MB / 0.5011 GB, free: 122 MB / 426.7 MB