Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_4_0_0_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.019/2.019, allocations: 225.8 MB / 238.8 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.292e-05/4.302e-05, allocations: 4 kB / 292.2 MB, free: 8.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1273, allocations: 50.4 MB / 342.6 MB, free: 5.848 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.813/8.941, allocations: 2.787 GB / 3.122 GB, free: 64.41 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/8.941, allocations: 68.59 kB / 3.122 GB, free: 64.37 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9019/9.843, allocations: 108.1 MB / 3.227 GB, free: 101.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.482e-06/9.843, allocations: 0 / 3.227 GB, free: 101.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.345e-05/9.843, allocations: 3.062 kB / 3.227 GB, free: 101.7 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.00943/9.852, allocations: 1.151 MB / 3.229 GB, free: 101 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/9.852, allocations: 7.469 kB / 3.229 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.655e-05/9.853, allocations: 51.53 kB / 3.229 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006589/9.853, allocations: 55.19 kB / 3.229 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/9.854, allocations: 220.4 kB / 3.229 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.511e-05/9.854, allocations: 18.61 kB / 3.229 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/9.854, allocations: 10.62 kB / 3.229 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001424/9.855, allocations: 377.1 kB / 3.229 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.996e-05/9.855, allocations: 6.562 kB / 3.229 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.012e-05/9.855, allocations: 6.312 kB / 3.229 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/9.855, allocations: 3.969 kB / 3.229 GB, free: 100.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001361/9.857, allocations: 304.9 kB / 3.23 GB, free: 100.7 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.001653/9.858, allocations: 1.194 MB / 3.231 GB, free: 99.68 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008302/9.859, allocations: 255.2 kB / 3.231 GB, free: 99.6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002049/9.859, allocations: 100.7 kB / 3.231 GB, free: 99.57 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1482/10.01, allocations: 47.36 MB / 3.277 GB, free: 69.46 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/10.01, allocations: 34.56 kB / 3.277 GB, free: 69.43 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 2.454e-06/10.01, allocations: 0 / 3.277 GB, free: 69.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.00899/10.02, allocations: 1.426 MB / 3.279 GB, free: 69.09 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/10.02, allocations: 116.8 kB / 3.279 GB, free: 68.96 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/10.02, allocations: 104.1 kB / 3.279 GB, free: 68.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/10.02, allocations: 32.2 kB / 3.279 GB, free: 68.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/10.02, allocations: 108.1 kB / 3.279 GB, free: 68.73 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001124/10.02, allocations: 121.1 kB / 3.279 GB, free: 68.66 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.893e-05/10.02, allocations: 3.375 kB / 3.279 GB, free: 68.66 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.634e-05/10.02, allocations: 330.4 kB / 3.28 GB, free: 68.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002879/10.02, allocations: 109.8 kB / 3.28 GB, free: 68.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003268/10.02, allocations: 165.1 kB / 3.28 GB, free: 68.28 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003293/10.02, allocations: 122.8 kB / 3.28 GB, free: 68.27 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/10.02, allocations: 0 / 3.28 GB, free: 68.27 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001059/10.02, allocations: 363.6 kB / 3.28 GB, free: 68.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/10.02, allocations: 12.02 kB / 3.28 GB, free: 68.2 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/10.02, allocations: 7.812 kB / 3.28 GB, free: 68.2 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003334/10.02, allocations: 31.27 kB / 3.28 GB, free: 68.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008303/10.02, allocations: 96.7 kB / 3.28 GB, free: 68.19 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003713/10.02, allocations: 0.5558 MB / 3.281 GB, free: 67.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005643/10.02, allocations: 25.92 kB / 3.281 GB, free: 67.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/10.02, allocations: 15.66 kB / 3.281 GB, free: 67.66 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001563/10.02, allocations: 129.6 kB / 3.281 GB, free: 67.54 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001175/10.02, allocations: 19.7 kB / 3.281 GB, free: 67.53 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00244/10.02, allocations: 1.429 MB / 3.283 GB, free: 67.16 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.312e-05/10.02, allocations: 18.84 kB / 3.283 GB, free: 67.15 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/10.02, allocations: 0 / 3.283 GB, free: 67.15 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/10.02, allocations: 3.969 kB / 3.283 GB, free: 67.15 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003524/10.03, allocations: 1.959 MB / 3.284 GB, free: 66.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/10.03, allocations: 0 / 3.284 GB, free: 66.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008148/10.03, allocations: 91.47 kB / 3.285 GB, free: 66.09 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004956/10.03, allocations: 67.59 kB / 3.285 GB, free: 66.07 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.951e-05/10.03, allocations: 15.64 kB / 3.285 GB, free: 66.06 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003878/10.03, allocations: 0.5863 MB / 3.285 GB, free: 65.51 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/10.03, allocations: 0 / 3.285 GB, free: 65.51 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/10.03, allocations: 1.684 MB / 3.287 GB, free: 64.48 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/10.03, allocations: 123.5 kB / 3.287 GB, free: 64.36 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.047e-05/10.03, allocations: 22.73 kB / 3.287 GB, free: 64.35 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006322/10.03, allocations: 26.59 kB / 3.287 GB, free: 64.34 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/10.03, allocations: 33.31 kB / 3.287 GB, free: 64.33 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.117e-05/10.03, allocations: 18.92 kB / 3.287 GB, free: 64.33 MB / 458.7 MB Notification: Performance of sorting global known variables: time 6.771e-05/10.03, allocations: 90.03 kB / 3.287 GB, free: 64.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.41e-07/10.03, allocations: 4.281 kB / 3.287 GB, free: 64.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005252/10.04, allocations: 0.9702 MB / 3.288 GB, free: 64.05 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01364/10.05, allocations: 3.783 MB / 3.292 GB, free: 61.86 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/10.05, allocations: 0.5411 MB / 3.292 GB, free: 61.66 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/10.05, allocations: 0 / 3.292 GB, free: 61.66 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009211/10.05, allocations: 496.2 kB / 3.293 GB, free: 61.43 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009935/10.06, allocations: 68.66 kB / 3.293 GB, free: 61.41 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00741/10.06, allocations: 1.467 MB / 3.294 GB, free: 60.64 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004541/10.06, allocations: 0.8304 MB / 3.295 GB, free: 59.87 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001029/10.06, allocations: 135.5 kB / 3.295 GB, free: 59.78 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005354/10.07, allocations: 130.7 kB / 3.295 GB, free: 59.67 MB / 458.7 MB Notification: Performance of SimCode: time 1.743e-06/10.07, allocations: 0 / 3.295 GB, free: 59.67 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1144/10.18, allocations: 32.14 MB / 3.327 GB, free: 40.81 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002349/10.18, allocations: 163 kB / 3.327 GB, free: 40.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.076/14.26, allocations: 0 / 3.327 GB, free: 40.59 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat