Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.922/1.922, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.516e-05/2.526e-05, allocations: 4 kB / 249.7 MB, free: 15.2 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3007/0.3008, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.979/8.28, allocations: 2.844 GB / 3.131 GB, free: 99.64 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0323/8.312, allocations: 10.77 MB / 3.142 GB, free: 98.67 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4894/8.802, allocations: 110.5 MB / 3.25 GB, free: 19.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.493e-06/8.802, allocations: 0 / 3.25 GB, free: 19.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.383e-05/8.802, allocations: 4 kB / 3.25 GB, free: 19.06 MB / 410.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.0054/8.807, allocations: 1.137 MB / 3.251 GB, free: 17.88 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/8.807, allocations: 8.031 kB / 3.251 GB, free: 17.87 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00188/8.809, allocations: 191.5 kB / 3.251 GB, free: 17.68 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003119/8.81, allocations: 254.8 kB / 3.251 GB, free: 17.39 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/8.81, allocations: 8 kB / 3.251 GB, free: 17.39 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.639e-05/8.81, allocations: 12 kB / 3.251 GB, free: 17.38 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007425/8.81, allocations: 340.7 kB / 3.251 GB, free: 17.04 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005453/8.811, allocations: 282.6 kB / 3.252 GB, free: 16.75 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.628e-05/8.811, allocations: 4 kB / 3.252 GB, free: 16.74 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.273e-05/8.811, allocations: 0 / 3.252 GB, free: 16.74 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/8.811, allocations: 11.89 kB / 3.252 GB, free: 16.73 MB / 410.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.001813/8.813, allocations: 1.299 MB / 3.253 GB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/8.813, allocations: 251 kB / 3.253 GB, free: 15.05 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002636/8.814, allocations: 133.4 kB / 3.253 GB, free: 14.91 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4006/9.214, allocations: 37.34 MB / 3.29 GB, free: 53.05 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/9.214, allocations: 45.69 kB / 3.29 GB, free: 53.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 4.328e-06/9.214, allocations: 0 / 3.29 GB, free: 53.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.006714/9.221, allocations: 0.7863 MB / 3.291 GB, free: 52.98 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/9.221, allocations: 55.31 kB / 3.291 GB, free: 52.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001169/9.221, allocations: 108.5 kB / 3.291 GB, free: 52.83 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00013/9.222, allocations: 25.7 kB / 3.291 GB, free: 52.8 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.306e-05/9.222, allocations: 186.7 kB / 3.291 GB, free: 52.64 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002047/9.222, allocations: 108.5 kB / 3.291 GB, free: 52.58 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/9.222, allocations: 3.969 kB / 3.291 GB, free: 52.58 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.993e-05/9.222, allocations: 326.2 kB / 3.291 GB, free: 52.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009345/9.223, allocations: 303.9 kB / 3.292 GB, free: 52.27 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001005/9.224, allocations: 372.7 kB / 3.292 GB, free: 52.19 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004964/9.229, allocations: 428.7 kB / 3.292 GB, free: 52.19 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.099e-06/9.229, allocations: 0 / 3.292 GB, free: 52.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.007336/9.236, allocations: 0.9112 MB / 3.293 GB, free: 52.14 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.626e-05/9.236, allocations: 3.594 kB / 3.293 GB, free: 52.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/9.236, allocations: 3.875 kB / 3.293 GB, free: 52.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.699e-05/9.236, allocations: 3.938 kB / 3.293 GB, free: 52.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001793/9.238, allocations: 185.6 kB / 3.294 GB, free: 52.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.244e-05/9.238, allocations: 3.969 kB / 3.294 GB, free: 52.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/9.239, allocations: 36.25 kB / 3.294 GB, free: 52.13 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002337/9.24, allocations: 64.25 kB / 3.294 GB, free: 52.13 MB / 410.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.0003149/9.24, allocations: 114.6 kB / 3.294 GB, free: 52.02 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.007082/9.247, allocations: 0.8794 MB / 3.295 GB, free: 51.98 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002124/9.247, allocations: 11.28 kB / 3.295 GB, free: 51.97 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/9.26, allocations: 6.513 MB / 3.301 GB, free: 51.8 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.886e-05/9.26, allocations: 25.72 kB / 3.301 GB, free: 51.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/9.26, allocations: 0 / 3.301 GB, free: 51.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.267e-05/9.26, allocations: 3.75 kB / 3.301 GB, free: 51.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004324/9.265, allocations: 2.81 MB / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/9.265, allocations: 0 / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001722/9.266, allocations: 132.1 kB / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/9.266, allocations: 3.938 kB / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000111/9.267, allocations: 21.45 kB / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.143e-06/9.267, allocations: 3.875 kB / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/9.267, allocations: 3.562 kB / 3.304 GB, free: 50.99 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005452/9.272, allocations: 1.748 MB / 3.306 GB, free: 50.76 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/9.272, allocations: 144 kB / 3.306 GB, free: 50.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/9.272, allocations: 0 / 3.306 GB, free: 50.64 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009767/9.273, allocations: 22.92 kB / 3.306 GB, free: 50.64 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/9.274, allocations: 41.58 kB / 3.306 GB, free: 50.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/9.274, allocations: 22.53 kB / 3.306 GB, free: 50.64 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.461e-05/9.274, allocations: 90.02 kB / 3.306 GB, free: 50.57 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/9.274, allocations: 0 / 3.306 GB, free: 50.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00607/9.28, allocations: 0.986 MB / 3.307 GB, free: 50.56 MB / 410.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.01221/9.292, allocations: 3.474 MB / 3.31 GB, free: 49.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001816/9.294, allocations: 0.8335 MB / 3.311 GB, free: 49.79 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/9.294, allocations: 0 / 3.311 GB, free: 49.79 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008672/9.295, allocations: 0.5502 MB / 3.312 GB, free: 49.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009558/9.296, allocations: 68.38 kB / 3.312 GB, free: 49.79 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005393/9.301, allocations: 1.459 MB / 3.313 GB, free: 49.46 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/9.302, allocations: 0.8508 MB / 3.314 GB, free: 48.76 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007802/9.302, allocations: 229.5 kB / 3.314 GB, free: 48.75 MB / 410.7 MB Notification: Performance of SimCode: time 1.903e-06/9.302, allocations: 0 / 3.314 GB, free: 48.75 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.37/12.67, allocations: 28.32 MB / 3.342 GB, free: 46.18 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat