Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.091/2.091, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.243e-05/3.256e-05, allocations: 0 / 292.7 MB, free: 8.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.131, allocations: 50.4 MB / 343.1 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.359/9.49, allocations: 3.026 GB / 3.361 GB, free: 3.715 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.3346/9.825, allocations: 11.15 MB / 3.372 GB, free: 133.5 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5153/10.34, allocations: 114 MB / 3.484 GB, free: 72.97 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.563e-06/10.34, allocations: 0 / 3.484 GB, free: 72.97 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.512e-05/10.34, allocations: 8 kB / 3.484 GB, free: 72.96 MB / 458.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.005681/10.35, allocations: 1.141 MB / 3.485 GB, free: 71.77 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/10.35, allocations: 12.03 kB / 3.485 GB, free: 71.76 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.9e-05/10.35, allocations: 54.55 kB / 3.485 GB, free: 71.7 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001924/10.35, allocations: 187.5 kB / 3.485 GB, free: 71.52 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003328/10.35, allocations: 254.8 kB / 3.485 GB, free: 71.23 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.875e-05/10.35, allocations: 20.44 kB / 3.485 GB, free: 71.21 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.01e-05/10.35, allocations: 23.95 kB / 3.485 GB, free: 71.18 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004332/10.35, allocations: 0.9043 MB / 3.486 GB, free: 70.26 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/10.35, allocations: 0 / 3.486 GB, free: 70.26 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.562e-05/10.35, allocations: 12 kB / 3.486 GB, free: 70.25 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.432e-05/10.35, allocations: 4 kB / 3.486 GB, free: 70.25 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004557/10.36, allocations: 0.9493 MB / 3.487 GB, free: 69.3 MB / 458.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.002066/10.36, allocations: 1.351 MB / 3.488 GB, free: 67.8 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003814/10.36, allocations: 0.729 MB / 3.489 GB, free: 67.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00032/10.36, allocations: 137.4 kB / 3.489 GB, free: 66.93 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1162/10.48, allocations: 37.35 MB / 3.526 GB, free: 25.13 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/10.48, allocations: 42.84 kB / 3.526 GB, free: 25.08 MB / 458.7 MB Notification: Performance of pre-optimization done (n=33): time 3.727e-06/10.48, allocations: 0 / 3.526 GB, free: 25.08 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.007719/10.49, allocations: 1.242 MB / 3.527 GB, free: 23.83 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.061e-05/10.49, allocations: 51.41 kB / 3.527 GB, free: 23.77 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/10.49, allocations: 117.1 kB / 3.527 GB, free: 23.65 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/10.49, allocations: 29.7 kB / 3.527 GB, free: 23.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.125e-05/10.49, allocations: 116.4 kB / 3.527 GB, free: 23.5 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002364/10.49, allocations: 118.3 kB / 3.527 GB, free: 23.38 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001285/10.49, allocations: 11.94 kB / 3.527 GB, free: 23.37 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 9.132e-05/10.49, allocations: 326.8 kB / 3.528 GB, free: 23.04 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00112/10.49, allocations: 311.9 kB / 3.528 GB, free: 22.73 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/10.49, allocations: 379.6 kB / 3.528 GB, free: 22.34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001141/10.49, allocations: 315.7 kB / 3.529 GB, free: 22.03 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/10.49, allocations: 0 / 3.529 GB, free: 22.03 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.003595/10.5, allocations: 0.8175 MB / 3.529 GB, free: 21.2 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.704e-05/10.5, allocations: 8 kB / 3.529 GB, free: 21.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/10.5, allocations: 0 / 3.529 GB, free: 21.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-05/10.5, allocations: 4 kB / 3.529 GB, free: 21.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/10.5, allocations: 183.7 kB / 3.53 GB, free: 21.01 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/10.5, allocations: 4 kB / 3.53 GB, free: 21.01 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001132/10.5, allocations: 44.06 kB / 3.53 GB, free: 20.96 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002594/10.5, allocations: 55.94 kB / 3.53 GB, free: 20.91 MB / 458.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.0003721/10.5, allocations: 128.9 kB / 3.53 GB, free: 20.78 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002418/10.5, allocations: 15.81 kB / 3.53 GB, free: 20.76 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/10.51, allocations: 6.507 MB / 3.536 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.433e-05/10.51, allocations: 27.95 kB / 3.536 GB, free: 14.22 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.959e-06/10.51, allocations: 4 kB / 3.536 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/10.51, allocations: 4 kB / 3.536 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004537/10.52, allocations: 2.899 MB / 3.539 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/10.52, allocations: 0 / 3.539 GB, free: 11.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001809/10.52, allocations: 131.8 kB / 3.539 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.458e-05/10.52, allocations: 0 / 3.539 GB, free: 10.98 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001208/10.52, allocations: 31.91 kB / 3.539 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.925e-06/10.52, allocations: 0 / 3.539 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/10.52, allocations: 0 / 3.539 GB, free: 10.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004673/10.52, allocations: 1.75 MB / 3.541 GB, free: 9.18 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/10.52, allocations: 136.3 kB / 3.541 GB, free: 9.027 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001312/10.52, allocations: 8 kB / 3.541 GB, free: 9.02 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000941/10.52, allocations: 23.92 kB / 3.541 GB, free: 8.996 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/10.53, allocations: 39.94 kB / 3.541 GB, free: 8.957 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/10.53, allocations: 28.03 kB / 3.541 GB, free: 8.93 MB / 458.7 MB Notification: Performance of sorting global known variables: time 8.006e-05/10.53, allocations: 91.28 kB / 3.541 GB, free: 8.84 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.926e-06/10.53, allocations: 0 / 3.541 GB, free: 8.84 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006533/10.53, allocations: 1.007 MB / 3.542 GB, free: 7.832 MB / 458.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.01806/10.55, allocations: 3.45 MB / 3.546 GB, free: 4.352 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00292/10.55, allocations: 0.8489 MB / 3.546 GB, free: 3.504 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.803e-06/10.55, allocations: 0 / 3.546 GB, free: 3.504 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/10.55, allocations: 0.5594 MB / 3.547 GB, free: 2.945 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0013/10.56, allocations: 76.62 kB / 3.547 GB, free: 2.871 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007626/10.56, allocations: 1.461 MB / 3.548 GB, free: 1.363 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004038/10.56, allocations: 0.8571 MB / 3.549 GB, free: 496 kB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.371/10.93, allocations: 2.734 MB / 3.552 GB, free: 95.33 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/10.94, allocations: 214.9 kB / 3.552 GB, free: 95.33 MB / 458.7 MB Notification: Performance of SimCode: time 2.033e-06/10.94, allocations: 0 / 3.552 GB, free: 95.33 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1342/11.07, allocations: 36.68 MB / 3.588 GB, free: 94.76 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002083/11.07, allocations: 161.7 kB / 3.588 GB, free: 94.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.17/15.24, allocations: 0 / 3.588 GB, free: 94.54 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat