Running command: "" <> buildModelFMU(Modelica.Media.Examples.WaterIF97,fileNamePrefix="Modelica_trunk_Modelica_Media_Examples_WaterIF97",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.079/2.079, allocations: 225.8 MB / 239.4 MB, free: 1.25 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.822e-05/4.83e-05, allocations: 4 kB / 292.7 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.121, allocations: 50.4 MB / 343.1 MB, free: 9.012 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.428/8.549, allocations: 2.787 GB / 3.122 GB, free: 67.55 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/8.55, allocations: 66.78 kB / 3.122 GB, free: 67.52 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8144/9.364, allocations: 108.1 MB / 3.228 GB, free: 103.2 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.813e-06/9.364, allocations: 0 / 3.228 GB, free: 103.2 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.354e-05/9.364, allocations: 0 / 3.228 GB, free: 103.2 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.008838/9.373, allocations: 1.152 MB / 3.229 GB, free: 102.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/9.373, allocations: 7.938 kB / 3.229 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.535e-05/9.373, allocations: 50.14 kB / 3.229 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007112/9.374, allocations: 55.73 kB / 3.229 GB, free: 102.5 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/9.374, allocations: 227.6 kB / 3.229 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/9.374, allocations: 14.11 kB / 3.229 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.155e-05/9.374, allocations: 14.91 kB / 3.229 GB, free: 102.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001559/9.376, allocations: 375.5 kB / 3.23 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.775e-05/9.376, allocations: 0 / 3.23 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.501e-05/9.376, allocations: 7.594 kB / 3.23 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.719e-06/9.376, allocations: 2.812 kB / 3.23 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001487/9.378, allocations: 306.5 kB / 3.23 GB, free: 102.2 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.00197/9.38, allocations: 1.189 MB / 3.231 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009656/9.381, allocations: 256.3 kB / 3.231 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002251/9.381, allocations: 90.17 kB / 3.231 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1534/9.534, allocations: 47.36 MB / 3.278 GB, free: 71.18 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.187e-05/9.534, allocations: 42.06 kB / 3.278 GB, free: 71.13 MB / 458.7 MB Notification: Performance of pre-optimization done (n=23): time 2.956e-06/9.534, allocations: 0 / 3.278 GB, free: 71.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=33): time 0.009163/9.544, allocations: 1.422 MB / 3.279 GB, free: 70.8 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.907e-05/9.544, allocations: 114.2 kB / 3.279 GB, free: 70.66 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001197/9.544, allocations: 112.5 kB / 3.279 GB, free: 70.57 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.855e-05/9.544, allocations: 29.2 kB / 3.279 GB, free: 70.54 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.245e-05/9.544, allocations: 111.3 kB / 3.279 GB, free: 70.44 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001149/9.544, allocations: 118.8 kB / 3.279 GB, free: 70.36 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.492e-05/9.544, allocations: 3.438 kB / 3.279 GB, free: 70.36 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.071e-05/9.544, allocations: 325.2 kB / 3.28 GB, free: 70.05 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003023/9.545, allocations: 113.4 kB / 3.28 GB, free: 70.04 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/9.545, allocations: 164.6 kB / 3.28 GB, free: 69.98 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/9.545, allocations: 129.8 kB / 3.28 GB, free: 69.97 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/9.545, allocations: 0 / 3.28 GB, free: 69.97 MB / 458.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001112/9.546, allocations: 356.4 kB / 3.281 GB, free: 69.91 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/9.546, allocations: 7.594 kB / 3.281 GB, free: 69.91 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/9.546, allocations: 8.094 kB / 3.281 GB, free: 69.91 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003437/9.547, allocations: 29.3 kB / 3.281 GB, free: 69.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008579/9.548, allocations: 94.59 kB / 3.281 GB, free: 69.89 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004351/9.548, allocations: 0.5507 MB / 3.281 GB, free: 69.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005633/9.549, allocations: 26.64 kB / 3.281 GB, free: 69.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.766e-05/9.549, allocations: 22.5 kB / 3.281 GB, free: 69.36 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.0001636/9.549, allocations: 126.4 kB / 3.281 GB, free: 69.25 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/9.549, allocations: 18.55 kB / 3.281 GB, free: 69.24 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002523/9.552, allocations: 1.437 MB / 3.283 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.393e-05/9.552, allocations: 18.92 kB / 3.283 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/9.552, allocations: 0 / 3.283 GB, free: 69.05 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/9.552, allocations: 11.44 kB / 3.283 GB, free: 69.04 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003642/9.555, allocations: 1.959 MB / 3.285 GB, free: 68.19 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/9.556, allocations: 0 / 3.285 GB, free: 68.19 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008354/9.556, allocations: 89.98 kB / 3.285 GB, free: 68.18 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004879/9.557, allocations: 72.91 kB / 3.285 GB, free: 68.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.806e-05/9.557, allocations: 15.55 kB / 3.285 GB, free: 68.15 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003852/9.557, allocations: 0.587 MB / 3.285 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/9.557, allocations: 0 / 3.285 GB, free: 67.59 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002372/9.56, allocations: 1.69 MB / 3.287 GB, free: 66.56 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001206/9.56, allocations: 128 kB / 3.287 GB, free: 66.43 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.653e-05/9.56, allocations: 11.89 kB / 3.287 GB, free: 66.43 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006439/9.561, allocations: 30.97 kB / 3.287 GB, free: 66.41 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/9.561, allocations: 31.05 kB / 3.287 GB, free: 66.41 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.461e-05/9.561, allocations: 19.47 kB / 3.287 GB, free: 66.41 MB / 458.7 MB Notification: Performance of sorting global known variables: time 7.51e-05/9.561, allocations: 87 kB / 3.287 GB, free: 66.33 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.31e-07/9.561, allocations: 0 / 3.287 GB, free: 66.33 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005232/9.566, allocations: 0.9663 MB / 3.288 GB, free: 66.13 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.01257/9.579, allocations: 3.769 MB / 3.292 GB, free: 63.97 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001534/9.581, allocations: 0.5519 MB / 3.293 GB, free: 63.76 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.304e-06/9.581, allocations: 4.062 kB / 3.293 GB, free: 63.75 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009663/9.582, allocations: 482.9 kB / 3.293 GB, free: 63.53 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/9.583, allocations: 73.48 kB / 3.293 GB, free: 63.52 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006788/9.589, allocations: 1.478 MB / 3.295 GB, free: 62.75 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003166/9.59, allocations: 0.8238 MB / 3.295 GB, free: 62.04 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0007005/9.591, allocations: 137.4 kB / 3.295 GB, free: 62.02 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003498/9.591, allocations: 131.4 kB / 3.296 GB, free: 61.92 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/9.591, allocations: 0 / 3.296 GB, free: 61.92 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1078/9.699, allocations: 32.14 MB / 3.327 GB, free: 43.47 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003383/9.699, allocations: 160.6 kB / 3.327 GB, free: 43.25 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.554/14.25, allocations: 0 / 3.327 GB, free: 43.25 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Media.Examples.WaterIF97_res.mat does not exist to compare? outputFormat=mat