Running command: translateModel(ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Valves.TestValveDiscrete") Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 270 MB / 282.7 MB, free: 1.762 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.245e-05/3.257e-05, allocations: 4 kB / 347 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3279/0.3279, allocations: 61.88 MB / 408.8 MB, free: 10.76 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 6.395/6.723, allocations: 2.759 GB / 3.159 GB, free: 46.49 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/6.723, allocations: 83.95 kB / 3.159 GB, free: 46.41 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.9394/7.663, allocations: 218.8 MB / 3.373 GB, free: 41.73 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.867e-06/7.663, allocations: 0 / 3.373 GB, free: 41.73 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.535e-05/7.663, allocations: 8 kB / 3.373 GB, free: 41.72 MB / 0.5261 GB 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.004077/7.667, allocations: 1.169 MB / 3.374 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 3.988e-05/7.667, allocations: 8.031 kB / 3.374 GB, free: 40.5 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/7.669, allocations: 223.8 kB / 3.374 GB, free: 40.28 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006519/7.67, allocations: 366.5 kB / 3.374 GB, free: 39.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.46e-05/7.67, allocations: 24.78 kB / 3.374 GB, free: 39.85 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/7.67, allocations: 28 kB / 3.374 GB, free: 39.82 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001589/7.672, allocations: 0.5793 MB / 3.375 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.609e-05/7.672, allocations: 4 kB / 3.375 GB, free: 39.2 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.312e-05/7.672, allocations: 12 kB / 3.375 GB, free: 39.19 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.191e-05/7.672, allocations: 8 kB / 3.375 GB, free: 39.18 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001474/7.673, allocations: 488.7 kB / 3.375 GB, free: 38.7 MB / 0.5261 GB 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.002975/7.676, allocations: 2.601 MB / 3.378 GB, free: 35.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001484/7.678, allocations: 426.9 kB / 3.378 GB, free: 35.44 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/7.678, allocations: 129.3 kB / 3.378 GB, free: 35.31 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04758/7.726, allocations: 24.16 MB / 3.402 GB, free: 8.266 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.431e-05/7.726, allocations: 38.5 kB / 3.402 GB, free: 8.219 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=25): time 3.996e-06/7.726, allocations: 0 / 3.402 GB, free: 8.219 MB / 0.5261 GB Notification: Performance of matching and sorting (n=25): time 0.002451/7.728, allocations: 0.6274 MB / 3.403 GB, free: 7.586 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.579e-05/7.728, allocations: 106.8 kB / 3.403 GB, free: 7.457 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003434/7.729, allocations: 278.6 kB / 3.403 GB, free: 7.176 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.426e-05/7.729, allocations: 33.7 kB / 3.403 GB, free: 7.137 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/7.729, allocations: 246.5 kB / 3.403 GB, free: 6.895 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/7.729, allocations: 78.77 kB / 3.403 GB, free: 6.816 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.183e-05/7.729, allocations: 12 kB / 3.403 GB, free: 6.805 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 5.566e-05/7.729, allocations: 318.8 kB / 3.404 GB, free: 6.484 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/7.729, allocations: 95.84 kB / 3.404 GB, free: 6.391 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002451/7.729, allocations: 183.1 kB / 3.404 GB, free: 6.172 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002255/7.73, allocations: 109.2 kB / 3.404 GB, free: 6.066 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.434e-06/7.73, allocations: 0 / 3.404 GB, free: 6.066 MB / 0.5261 GB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0009285/7.731, allocations: 305 kB / 3.404 GB, free: 5.766 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/7.731, allocations: 5.562 kB / 3.404 GB, free: 5.762 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.106e-05/7.731, allocations: 4 kB / 3.404 GB, free: 5.758 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.316e-05/7.731, allocations: 4.312 kB / 3.404 GB, free: 5.754 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004774/7.731, allocations: 95.81 kB / 3.404 GB, free: 5.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/7.731, allocations: 4 kB / 3.404 GB, free: 5.656 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004593/7.732, allocations: 67.55 kB / 3.404 GB, free: 5.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.252e-05/7.732, allocations: 19.98 kB / 3.405 GB, free: 5.57 MB / 0.5261 GB 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.0001136/7.732, allocations: 124.9 kB / 3.405 GB, free: 5.441 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.505e-05/7.732, allocations: 35.53 kB / 3.405 GB, free: 5.406 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00219/7.734, allocations: 1.853 MB / 3.406 GB, free: 3.535 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-05/7.734, allocations: 35.94 kB / 3.407 GB, free: 3.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.905e-06/7.734, allocations: 0 / 3.407 GB, free: 3.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/7.734, allocations: 3.984 kB / 3.407 GB, free: 3.496 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/7.735, allocations: 1.007 MB / 3.407 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.033e-06/7.736, allocations: 0 / 3.407 GB, free: 2.441 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004145/7.736, allocations: 83.94 kB / 3.408 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.988e-06/7.736, allocations: 0 / 3.408 GB, free: 2.359 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.789e-05/7.736, allocations: 11.98 kB / 3.408 GB, free: 2.348 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.465e-06/7.736, allocations: 0 / 3.408 GB, free: 2.348 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.15e-06/7.736, allocations: 3.938 kB / 3.408 GB, free: 2.344 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001239/7.737, allocations: 0.9791 MB / 3.409 GB, free: 1.344 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/7.737, allocations: 219.6 kB / 3.409 GB, free: 1.109 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.086e-05/7.738, allocations: 4 kB / 3.409 GB, free: 1.105 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004245/7.738, allocations: 47.95 kB / 3.409 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.691e-05/7.738, allocations: 27.95 kB / 3.409 GB, free: 1.031 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.408e-05/7.738, allocations: 12 kB / 3.409 GB, free: 1.02 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0004172/7.739, allocations: 325.2 kB / 3.409 GB, free: 0.6992 MB / 0.5261 GB Notification: Performance of sort global known variables: time 7.99e-07/7.739, allocations: 0 / 3.409 GB, free: 0.6992 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.3143/8.053, allocations: 1.007 MB / 3.41 GB, free: 99.25 MB / 0.5261 GB 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.008186/8.061, allocations: 1.362 MB / 3.411 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001063/8.062, allocations: 0.4937 MB / 3.412 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.615e-06/8.062, allocations: 0 / 3.412 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006138/8.063, allocations: 471.8 kB / 3.412 GB, free: 99.15 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001312/8.064, allocations: 209.9 kB / 3.413 GB, free: 99.14 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/8.066, allocations: 1.155 MB / 3.414 GB, free: 98.87 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/8.067, allocations: 0.9807 MB / 3.415 GB, free: 98.16 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001599/8.067, allocations: 42.33 kB / 3.415 GB, free: 98.16 MB / 0.5261 GB Notification: Performance of SimCode: time 1.697e-06/8.067, allocations: 0 / 3.415 GB, free: 98.16 MB / 0.5261 GB Notification: Performance of Templates: time 0.04347/8.11, allocations: 26.38 MB / 3.44 GB, free: 96.96 MB / 0.5261 GB