Running command: "" <> buildModelFMU(Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates,fileNamePrefix="Modelica_3_2_2_cs_Modelica_Media_Examples_TwoPhaseWater_TestTwoPhaseStates",fmuType="cs",version="2.0",platforms={"dynamic"}) Notification: Performance of loadModel(Modelica): time 2.247/2.247, allocations: 195 MB / 202.9 MB, free: 6.727 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.008e-05/3.014e-05, allocations: 4.188 kB / 249.8 MB, free: 5.238 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 44.5 MB / 294.3 MB, free: 10.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 9.898/9.999, allocations: 2.844 GB / 3.131 GB, free: 81.93 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.03862/10.04, allocations: 10.78 MB / 3.142 GB, free: 73.79 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9848/11.02, allocations: 110.5 MB / 3.25 GB, free: 77.2 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.314e-06/11.02, allocations: 0 / 3.25 GB, free: 77.2 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.756e-05/11.02, allocations: 3.719 kB / 3.25 GB, free: 77.2 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.00631/11.03, allocations: 1.141 MB / 3.251 GB, free: 76.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/11.03, allocations: 11.62 kB / 3.251 GB, free: 76.52 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0026/11.03, allocations: 184 kB / 3.251 GB, free: 76.51 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004762/11.03, allocations: 259.4 kB / 3.251 GB, free: 76.3 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.968e-05/11.03, allocations: 7.219 kB / 3.251 GB, free: 76.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.7e-05/11.03, allocations: 13.44 kB / 3.251 GB, free: 76.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009471/11.03, allocations: 342.1 kB / 3.252 GB, free: 76.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007006/11.03, allocations: 281.6 kB / 3.252 GB, free: 76.24 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.091e-05/11.03, allocations: 0 / 3.252 GB, free: 76.24 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/11.03, allocations: 5.719 kB / 3.252 GB, free: 76.24 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.381e-05/11.03, allocations: 11.8 kB / 3.252 GB, free: 76.23 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.002351/11.04, allocations: 1.29 MB / 3.253 GB, free: 75.34 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006604/11.04, allocations: 255 kB / 3.253 GB, free: 75.31 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003265/11.04, allocations: 133.1 kB / 3.253 GB, free: 75.3 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1399/11.18, allocations: 37.35 MB / 3.29 GB, free: 51.53 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.766e-05/11.18, allocations: 37.34 kB / 3.29 GB, free: 51.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=33): time 3.436e-06/11.18, allocations: 0 / 3.29 GB, free: 51.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.005566/11.18, allocations: 0.7923 MB / 3.291 GB, free: 51.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/11.18, allocations: 56.03 kB / 3.291 GB, free: 51.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/11.18, allocations: 111.3 kB / 3.291 GB, free: 51.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001347/11.18, allocations: 25.7 kB / 3.291 GB, free: 51.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.233e-05/11.18, allocations: 114.2 kB / 3.291 GB, free: 51.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002026/11.18, allocations: 119.5 kB / 3.291 GB, free: 51.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/11.18, allocations: 0 / 3.291 GB, free: 51.08 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.585e-05/11.18, allocations: 325.1 kB / 3.291 GB, free: 50.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00083/11.19, allocations: 303.5 kB / 3.292 GB, free: 50.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008998/11.19, allocations: 381.5 kB / 3.292 GB, free: 50.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003756/11.19, allocations: 417.8 kB / 3.292 GB, free: 50.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.667e-06/11.19, allocations: 7.938 kB / 3.292 GB, free: 50.68 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.005715/11.2, allocations: 0.9001 MB / 3.293 GB, free: 50.63 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.227e-05/11.2, allocations: 7.188 kB / 3.293 GB, free: 50.63 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.239e-05/11.2, allocations: 1.625 kB / 3.293 GB, free: 50.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.885e-05/11.2, allocations: 3.188 kB / 3.293 GB, free: 50.63 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001664/11.2, allocations: 176 kB / 3.294 GB, free: 50.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.553e-05/11.2, allocations: 14.86 kB / 3.294 GB, free: 50.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00102/11.2, allocations: 33.69 kB / 3.294 GB, free: 50.61 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000208/11.2, allocations: 63.62 kB / 3.294 GB, free: 50.61 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.0003055/11.2, allocations: 108.4 kB / 3.294 GB, free: 50.51 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005661/11.2, allocations: 0.8774 MB / 3.295 GB, free: 50.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/11.21, allocations: 23.5 kB / 3.295 GB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01066/11.22, allocations: 6.51 MB / 3.301 GB, free: 50.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.026e-05/11.22, allocations: 29.36 kB / 3.301 GB, free: 50.24 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.468e-06/11.22, allocations: 1.312 kB / 3.301 GB, free: 50.24 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.479e-05/11.22, allocations: 0 / 3.301 GB, free: 50.24 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003669/11.22, allocations: 2.809 MB / 3.304 GB, free: 48.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.607e-05/11.22, allocations: 7.578 kB / 3.304 GB, free: 48.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/11.22, allocations: 122.2 kB / 3.304 GB, free: 48.58 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/11.22, allocations: 6.156 kB / 3.304 GB, free: 48.58 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001089/11.22, allocations: 23.55 kB / 3.304 GB, free: 48.57 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/11.22, allocations: 3.953 kB / 3.304 GB, free: 48.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/11.22, allocations: 0 / 3.304 GB, free: 48.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004624/11.23, allocations: 1.752 MB / 3.306 GB, free: 47.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/11.23, allocations: 139.1 kB / 3.306 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/11.23, allocations: 3.75 kB / 3.306 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008347/11.23, allocations: 20.62 kB / 3.306 GB, free: 47.56 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001955/11.23, allocations: 41.05 kB / 3.306 GB, free: 47.55 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001266/11.23, allocations: 24.3 kB / 3.306 GB, free: 47.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 7.459e-05/11.23, allocations: 93.48 kB / 3.306 GB, free: 47.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.61e-07/11.23, allocations: 0 / 3.306 GB, free: 47.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005604/11.23, allocations: 0.9821 MB / 3.307 GB, free: 47.26 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.0153/11.25, allocations: 3.477 MB / 3.31 GB, free: 45.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002233/11.25, allocations: 0.826 MB / 3.311 GB, free: 45.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.634e-06/11.25, allocations: 5.969 kB / 3.311 GB, free: 45.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001105/11.25, allocations: 0.5495 MB / 3.312 GB, free: 45 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/11.25, allocations: 83.52 kB / 3.312 GB, free: 44.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006411/11.26, allocations: 1.413 MB / 3.313 GB, free: 44.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003472/11.26, allocations: 0.8554 MB / 3.314 GB, free: 43.57 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.005086/11.27, allocations: 2.743 MB / 3.317 GB, free: 43.43 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009164/11.27, allocations: 217.1 kB / 3.317 GB, free: 43.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.293e-06/11.27, allocations: 0 / 3.317 GB, free: 43.3 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1103/11.38, allocations: 33.89 MB / 3.35 GB, free: 24.59 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform dynamic using cached values: time 0.0003276/11.38, allocations: 161.5 kB / 3.35 GB, free: 24.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform dynamic: time 5.102/16.48, allocations: 0 / 3.35 GB, free: 24.38 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cs_Modelica.Media.Examples.TwoPhaseWater.TestTwoPhaseStates_res.mat does not exist to compare? outputFormat=mat