Running command: translateModel(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4400,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.226e-05/3.24e-05, allocations: 4 kB / 292.1 MB, free: 8.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09866, allocations: 50.41 MB / 342.5 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.744/7.843, allocations: 3.026 GB / 3.361 GB, free: 104.8 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.02901/7.872, allocations: 11.17 MB / 3.372 GB, free: 96.51 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6258/8.498, allocations: 113.9 MB / 3.483 GB, free: 70.82 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.179e-06/8.498, allocations: 0 / 3.483 GB, free: 70.82 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.536e-05/8.498, allocations: 3.812 kB / 3.483 GB, free: 70.82 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.00441/8.502, allocations: 1.139 MB / 3.484 GB, free: 70.21 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/8.502, allocations: 10 kB / 3.484 GB, free: 70.21 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001883/8.504, allocations: 190 kB / 3.484 GB, free: 70.2 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/8.505, allocations: 249.9 kB / 3.484 GB, free: 70.01 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.57e-05/8.505, allocations: 20.06 kB / 3.485 GB, free: 70.01 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-05/8.505, allocations: 29.11 kB / 3.485 GB, free: 70 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003556/8.508, allocations: 0.9079 MB / 3.485 GB, free: 69.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.799e-05/8.508, allocations: 1.094 kB / 3.485 GB, free: 69.94 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/8.508, allocations: 9.188 kB / 3.485 GB, free: 69.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/8.508, allocations: 6.031 kB / 3.485 GB, free: 69.94 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003649/8.512, allocations: 0.9497 MB / 3.486 GB, free: 69.94 MB / 442.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.001742/8.514, allocations: 1.346 MB / 3.488 GB, free: 69.02 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00377/8.518, allocations: 0.7252 MB / 3.488 GB, free: 69 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/8.518, allocations: 138.5 kB / 3.489 GB, free: 68.99 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07688/8.595, allocations: 37.37 MB / 3.525 GB, free: 46.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.074e-05/8.595, allocations: 41.59 kB / 3.525 GB, free: 46.38 MB / 442.7 MB Notification: Performance of pre-optimization done (n=33): time 4.274e-06/8.595, allocations: 0 / 3.525 GB, free: 46.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=33): time 0.005581/8.601, allocations: 1.237 MB / 3.526 GB, free: 46.34 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/8.601, allocations: 59.22 kB / 3.526 GB, free: 46.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000102/8.601, allocations: 107.7 kB / 3.526 GB, free: 46.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.421e-05/8.601, allocations: 29.33 kB / 3.526 GB, free: 46.15 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.681e-05/8.601, allocations: 195.9 kB / 3.527 GB, free: 45.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/8.601, allocations: 117 kB / 3.527 GB, free: 45.91 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.427e-05/8.601, allocations: 7.5 kB / 3.527 GB, free: 45.91 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.983e-05/8.601, allocations: 321.7 kB / 3.527 GB, free: 45.6 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006299/8.602, allocations: 314.9 kB / 3.527 GB, free: 45.6 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006761/8.603, allocations: 380.9 kB / 3.528 GB, free: 45.53 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006493/8.603, allocations: 314.1 kB / 3.528 GB, free: 45.52 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.535e-06/8.603, allocations: 3.953 kB / 3.528 GB, free: 45.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001916/8.605, allocations: 0.8123 MB / 3.529 GB, free: 45.47 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/8.605, allocations: 3.906 kB / 3.529 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.236e-06/8.605, allocations: 3.844 kB / 3.529 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/8.605, allocations: 4.188 kB / 3.529 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008721/8.606, allocations: 182.5 kB / 3.529 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/8.606, allocations: 8.938 kB / 3.529 GB, free: 45.47 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005131/8.607, allocations: 34.53 kB / 3.529 GB, free: 45.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001374/8.607, allocations: 71.25 kB / 3.529 GB, free: 45.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 4 (medium.phase,medium.bubble2.phase,medium.bubble.phase,medium.dew.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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.0002087/8.607, allocations: 126.3 kB / 3.529 GB, free: 45.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000137/8.607, allocations: 18.42 kB / 3.529 GB, free: 45.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006579/8.614, allocations: 6.512 MB / 3.536 GB, free: 44.65 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.308e-05/8.614, allocations: 26.22 kB / 3.536 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.639e-06/8.614, allocations: 0 / 3.536 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.025e-05/8.614, allocations: 3.656 kB / 3.536 GB, free: 44.64 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002806/8.617, allocations: 2.894 MB / 3.538 GB, free: 42.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.904e-06/8.617, allocations: 0 / 3.538 GB, free: 42.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008288/8.618, allocations: 135.3 kB / 3.539 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.656e-06/8.618, allocations: 3.969 kB / 3.539 GB, free: 42.76 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.619e-05/8.618, allocations: 19.22 kB / 3.539 GB, free: 42.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.255e-06/8.618, allocations: 3.906 kB / 3.539 GB, free: 42.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.205e-06/8.618, allocations: 0 / 3.539 GB, free: 42.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002596/8.62, allocations: 1.739 MB / 3.54 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/8.621, allocations: 140.9 kB / 3.54 GB, free: 41.74 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.827e-05/8.621, allocations: 9.125 kB / 3.54 GB, free: 41.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004663/8.621, allocations: 33.77 kB / 3.54 GB, free: 41.72 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001188/8.621, allocations: 36.66 kB / 3.541 GB, free: 41.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.929e-05/8.621, allocations: 31.23 kB / 3.541 GB, free: 41.71 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.03e-05/8.621, allocations: 94.27 kB / 3.541 GB, free: 41.62 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.402e-06/8.621, allocations: 0 / 3.541 GB, free: 41.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004038/8.626, allocations: 1.007 MB / 3.542 GB, free: 41.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 13 ($cse1.phase,$cse1.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse8.region3boundary,$cse9.region3boundary,medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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.007487/8.633, allocations: 1.264 MB / 3.543 GB, free: 41.09 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001666/8.635, allocations: 0.8456 MB / 3.544 GB, free: 40.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/8.635, allocations: 3.938 kB / 3.544 GB, free: 40.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008164/8.636, allocations: 0.5609 MB / 3.544 GB, free: 40.48 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000694/8.636, allocations: 77.58 kB / 3.544 GB, free: 40.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001934/8.638, allocations: 1.046 MB / 3.545 GB, free: 39.93 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002995/8.639, allocations: 0.8499 MB / 3.546 GB, free: 39.23 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005153/8.639, allocations: 115.8 kB / 3.546 GB, free: 39.2 MB / 442.7 MB Notification: Performance of SimCode: time 1.94e-06/8.639, allocations: 0 / 3.546 GB, free: 39.2 MB / 442.7 MB Notification: Performance of Templates: time 0.04114/8.68, allocations: 26.07 MB / 3.572 GB, free: 36.17 MB / 442.7 MB