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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.448/2.448, allocations: 269 MB / 284.1 MB, free: 3.566 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.059e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1441/0.1442, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete): time 0.3824/0.5267, allocations: 23.03 MB / 434 MB, free: 2.691 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01999/0.5467, allocations: 10.67 MB / 444.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005692/0.5473, allocations: 12.03 kB / 444.6 MB, free: 11.44 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007832/0.5481, allocations: 183.8 kB / 444.8 MB, free: 11.33 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01096/0.5591, allocations: 2.527 MB / 447.3 MB, free: 10.07 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006915/0.5661, allocations: 1.688 MB / 449 MB, free: 9.105 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.001186/0.5673, allocations: 432.1 kB / 449.5 MB, free: 8.859 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004116/0.5677, allocations: 163 kB / 449.6 MB, free: 8.809 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001032/0.5688, allocations: 363.3 kB / 450 MB, free: 8.586 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003668/0.5691, allocations: 182 kB / 450.1 MB, free: 8.492 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01997/0.5891, allocations: 6.551 MB / 456.7 MB, free: 5.457 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002876/0.5921, allocations: 402.5 kB / 457.1 MB, free: 5.457 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002242/0.5923, allocations: 72.38 kB / 457.2 MB, free: 5.406 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003114/0.5926, allocations: 45.28 kB / 457.2 MB, free: 5.406 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008546/0.6012, allocations: 2.764 MB / 460 MB, free: 3.785 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.057e-06/0.6013, allocations: 3.938 kB / 460 MB, free: 3.781 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.295e-06/0.6013, allocations: 0 / 460 MB, free: 3.781 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.49e-05/0.6013, allocations: 4 kB / 460 MB, free: 3.777 MB / 362.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.004664/0.606, allocations: 1.116 MB / 461.1 MB, free: 2.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.606, allocations: 13.33 kB / 461.1 MB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0025/0.6085, allocations: 219.2 kB / 461.3 MB, free: 2.871 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007667/0.6093, allocations: 349.2 kB / 461.7 MB, free: 2.547 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.002e-05/0.6094, allocations: 30.19 kB / 461.7 MB, free: 2.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.234e-05/0.6095, allocations: 32.19 kB / 461.7 MB, free: 2.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.6119, allocations: 0.5993 MB / 462.3 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.681e-05/0.6119, allocations: 0 / 462.3 MB, free: 2.133 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.345e-05/0.612, allocations: 15.27 kB / 462.3 MB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.612, allocations: 6.5 kB / 462.3 MB, free: 2.121 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002633/0.6147, allocations: 0.5705 MB / 462.9 MB, free: 1.855 MB / 362.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.004799/0.6195, allocations: 2.638 MB / 465.6 MB, free: 15.36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002632/0.6222, allocations: 496.4 kB / 466 MB, free: 15.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08849/0.7107, allocations: 24.43 MB / 490.5 MB, free: 4.879 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.271e-05/0.7108, allocations: 34.55 kB / 490.5 MB, free: 4.836 MB / 394.7 MB Notification: Performance of pre-optimization done (n=25): time 3.407e-06/0.7108, allocations: 4 kB / 490.5 MB, free: 4.832 MB / 394.7 MB Notification: Performance of matching and sorting (n=25): time 0.004762/0.7156, allocations: 0.8442 MB / 491.3 MB, free: 3.98 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.257e-05/0.7157, allocations: 106.8 kB / 491.5 MB, free: 3.852 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006967/0.7164, allocations: 275.6 kB / 491.7 MB, free: 3.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.318e-05/0.7165, allocations: 29.7 kB / 491.8 MB, free: 3.535 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002547/0.7168, allocations: 250.7 kB / 492 MB, free: 3.289 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.717, allocations: 86.83 kB / 492.1 MB, free: 3.203 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.896e-05/0.717, allocations: 4 kB / 492.1 MB, free: 3.199 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.7172, allocations: 322.8 kB / 492.4 MB, free: 2.875 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001026/0.7183, allocations: 155.8 kB / 492.6 MB, free: 2.723 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.7194, allocations: 246.9 kB / 492.8 MB, free: 2.441 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001078/0.7205, allocations: 170.9 kB / 493 MB, free: 2.277 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.7205, allocations: 0 / 493 MB, free: 2.277 MB / 394.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.002474/0.723, allocations: 433 kB / 493.4 MB, free: 1.848 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.427e-05/0.7231, allocations: 10.61 kB / 493.4 MB, free: 1.84 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.414e-05/0.7231, allocations: 4 kB / 493.4 MB, free: 1.836 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.448e-05/0.7232, allocations: 4 kB / 493.4 MB, free: 1.832 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008718/0.7241, allocations: 96.19 kB / 493.5 MB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.337e-05/0.7241, allocations: 4 kB / 493.5 MB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008437/0.725, allocations: 51.72 kB / 493.5 MB, free: 1.684 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.371e-05/0.7251, allocations: 19.98 kB / 493.6 MB, free: 1.664 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * 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 (35): * Single equations (assignments): 35 * 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.0003759/0.7255, allocations: 161.7 kB / 493.7 MB, free: 1.496 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.7256, allocations: 35.56 kB / 493.8 MB, free: 1.461 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006036/0.7317, allocations: 1.94 MB / 495.7 MB, free: 15.5 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-05/0.7318, allocations: 27.95 kB / 495.7 MB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.023e-05/0.7319, allocations: 3.938 kB / 495.7 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.7319, allocations: 3.984 kB / 495.7 MB, free: 15.47 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02112/0.753, allocations: 1.004 MB / 496.7 MB, free: 14.42 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.7531, allocations: 7.984 kB / 496.7 MB, free: 14.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008435/0.754, allocations: 87.88 kB / 496.8 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.027e-06/0.754, allocations: 0 / 496.8 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-05/0.754, allocations: 8 kB / 496.8 MB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.697e-06/0.7541, allocations: 3.953 kB / 496.8 MB, free: 14.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.186e-06/0.7541, allocations: 7.984 kB / 496.9 MB, free: 14.3 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01685/0.771, allocations: 1.093 MB / 497.9 MB, free: 13.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004776/0.7715, allocations: 231.3 kB / 498.2 MB, free: 12.95 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.7717, allocations: 8 kB / 498.2 MB, free: 12.94 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007994/0.7725, allocations: 39.97 kB / 498.2 MB, free: 12.9 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.7727, allocations: 39.77 kB / 498.3 MB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.213e-05/0.7728, allocations: 15.98 kB / 498.3 MB, free: 12.85 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008152/0.7736, allocations: 323.1 kB / 498.6 MB, free: 12.53 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.7736, allocations: 0 / 498.6 MB, free: 12.53 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01866/0.7923, allocations: 0.9447 MB / 499.5 MB, free: 11.59 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.0106/0.803, allocations: 1.182 MB / 0.489 GB, free: 10.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002617/0.8056, allocations: 0.6146 MB / 0.4896 GB, free: 9.781 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.8057, allocations: 0 / 0.4896 GB, free: 9.781 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.8069, allocations: 0.5243 MB / 0.4901 GB, free: 9.254 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.8088, allocations: 199.5 kB / 0.4903 GB, free: 9.066 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003651/0.8125, allocations: 1.903 MB / 0.4921 GB, free: 7.125 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006747/0.8132, allocations: 0.9836 MB / 0.4931 GB, free: 6.113 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002148/0.8134, allocations: 43.38 kB / 0.4931 GB, free: 6.07 MB / 410.7 MB Notification: Performance of SimCode: time 1.062e-06/0.8134, allocations: 4 kB / 0.4931 GB, free: 6.066 MB / 410.7 MB Notification: Performance of Templates: time 0.06185/0.8753, allocations: 25.66 MB / 0.5182 GB, free: 12.41 MB / 442.7 MB