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.013/2.013, allocations: 209.3 MB / 221.9 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.496e-05/3.52e-05, allocations: 4 kB / 273.1 MB, free: 3.664 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08647/0.08653, allocations: 48.69 MB / 321.8 MB, free: 2.871 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.195/6.281, allocations: 2.477 GB / 2.791 GB, free: 115.9 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/6.282, allocations: 83.89 kB / 2.791 GB, free: 115.9 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9123/7.194, allocations: 211.5 MB / 2.998 GB, free: 63.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.798e-06/7.194, allocations: 0 / 2.998 GB, free: 63.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.978e-05/7.194, allocations: 9.094 kB / 2.998 GB, free: 63.16 MB / 426.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.004489/7.199, allocations: 1.144 MB / 2.999 GB, free: 62.51 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.398e-05/7.199, allocations: 14.22 kB / 2.999 GB, free: 62.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002383/7.201, allocations: 208.1 kB / 2.999 GB, free: 62.48 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007667/7.202, allocations: 390.6 kB / 2.999 GB, free: 62.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/7.202, allocations: 24.69 kB / 2.999 GB, free: 62.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.314e-05/7.202, allocations: 31.09 kB / 3 GB, free: 62.18 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001636/7.204, allocations: 0.5718 MB / 3 GB, free: 61.91 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/7.204, allocations: 3.938 kB / 3 GB, free: 61.9 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.436e-05/7.204, allocations: 15.81 kB / 3 GB, free: 61.89 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/7.204, allocations: 7.688 kB / 3 GB, free: 61.89 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/7.205, allocations: 488.9 kB / 3.001 GB, free: 61.76 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.00284/7.208, allocations: 2.533 MB / 3.003 GB, free: 59.6 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001468/7.21, allocations: 411.8 kB / 3.003 GB, free: 59.47 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002391/7.21, allocations: 126.1 kB / 3.004 GB, free: 59.42 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1175/7.327, allocations: 51.59 MB / 3.054 GB, free: 29.79 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.797e-05/7.328, allocations: 41.8 kB / 3.054 GB, free: 29.74 MB / 426.7 MB Notification: Performance of pre-optimization done (n=25): time 3.148e-06/7.328, allocations: 0 / 3.054 GB, free: 29.74 MB / 426.7 MB Notification: Performance of matching and sorting (n=25): time 0.002464/7.33, allocations: 0.6109 MB / 3.055 GB, free: 29.56 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.143e-05/7.33, allocations: 110.8 kB / 3.055 GB, free: 29.43 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/7.33, allocations: 250.5 kB / 3.055 GB, free: 29.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/7.331, allocations: 33.67 kB / 3.055 GB, free: 29.25 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001179/7.331, allocations: 271.3 kB / 3.055 GB, free: 29.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.593e-05/7.331, allocations: 77.97 kB / 3.055 GB, free: 28.95 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.109e-05/7.331, allocations: 7.469 kB / 3.055 GB, free: 28.95 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.011e-05/7.331, allocations: 326 kB / 3.056 GB, free: 28.62 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002301/7.331, allocations: 87.55 kB / 3.056 GB, free: 28.59 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002555/7.331, allocations: 218.1 kB / 3.056 GB, free: 28.39 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002456/7.332, allocations: 122.2 kB / 3.056 GB, free: 28.34 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.526e-06/7.332, allocations: 0 / 3.056 GB, free: 28.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0007052/7.332, allocations: 330.3 kB / 3.056 GB, free: 28.21 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.159e-05/7.332, allocations: 3.719 kB / 3.056 GB, free: 28.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.227e-05/7.332, allocations: 10.86 kB / 3.056 GB, free: 28.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/7.332, allocations: 3.5 kB / 3.056 GB, free: 28.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004835/7.333, allocations: 93.66 kB / 3.056 GB, free: 28.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/7.333, allocations: 10.75 kB / 3.056 GB, free: 28.19 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004739/7.333, allocations: 65.17 kB / 3.056 GB, free: 28.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-05/7.333, allocations: 19.45 kB / 3.057 GB, free: 28.16 MB / 426.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.0001128/7.334, allocations: 120.5 kB / 3.057 GB, free: 28.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.236e-05/7.334, allocations: 41.72 kB / 3.057 GB, free: 28.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00219/7.336, allocations: 1.847 MB / 3.058 GB, free: 27.12 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.341e-05/7.336, allocations: 30.25 kB / 3.059 GB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.724e-06/7.336, allocations: 0 / 3.059 GB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.52e-06/7.336, allocations: 3.562 kB / 3.059 GB, free: 27.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001133/7.337, allocations: 0.9837 MB / 3.059 GB, free: 26.53 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.728e-06/7.337, allocations: 0 / 3.059 GB, free: 26.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004115/7.338, allocations: 81.97 kB / 3.06 GB, free: 26.53 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.784e-06/7.338, allocations: 0 / 3.06 GB, free: 26.53 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/7.338, allocations: 7.75 kB / 3.06 GB, free: 26.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.554e-06/7.338, allocations: 4 kB / 3.06 GB, free: 26.52 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/7.338, allocations: 3.953 kB / 3.06 GB, free: 26.52 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/7.339, allocations: 0.9694 MB / 3.061 GB, free: 26.01 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002104/7.339, allocations: 207.7 kB / 3.061 GB, free: 25.83 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/7.339, allocations: 6.406 kB / 3.061 GB, free: 25.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004119/7.34, allocations: 47.91 kB / 3.061 GB, free: 25.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.487e-05/7.34, allocations: 34 kB / 3.061 GB, free: 25.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/7.34, allocations: 11.81 kB / 3.061 GB, free: 25.8 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003354/7.34, allocations: 254.6 kB / 3.061 GB, free: 25.68 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.24e-07/7.34, allocations: 0 / 3.061 GB, free: 25.68 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003948/7.344, allocations: 1.003 MB / 3.062 GB, free: 25.47 MB / 426.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,$cse3.region3boundary,$cse4.region3boundary,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.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.007483/7.352, allocations: 1.378 MB / 3.063 GB, free: 25.12 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009061/7.353, allocations: 0.4993 MB / 3.064 GB, free: 24.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.872e-06/7.353, allocations: 320 / 3.064 GB, free: 24.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005269/7.353, allocations: 472.9 kB / 3.064 GB, free: 24.69 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/7.354, allocations: 178.5 kB / 3.064 GB, free: 24.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4383/7.793, allocations: 75.02 MB / 3.138 GB, free: 71.74 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/7.793, allocations: 0.9817 MB / 3.139 GB, free: 71.04 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/7.793, allocations: 41.16 kB / 3.139 GB, free: 71.04 MB / 442.7 MB Notification: Performance of SimCode: time 2.23e-06/7.793, allocations: 0 / 3.139 GB, free: 71.04 MB / 442.7 MB Notification: Performance of Templates: time 0.04271/7.836, allocations: 25.96 MB / 3.164 GB, free: 69.38 MB / 442.7 MB