Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.764/1.764, allocations: 171.3 MB / 178.4 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.457e-05, allocations: 8 kB / 219.6 MB, free: 6.945 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2762, allocations: 38.76 MB / 258.3 MB, free: 12.2 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.916/1.192, allocations: 310.6 MB / 0.5556 GB, free: 82.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003114/1.193, allocations: 76.03 kB / 0.5557 GB, free: 82.87 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.485/2.678, allocations: 265.1 MB / 0.8145 GB, free: 50.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.014e-06/2.678, allocations: 0 / 0.8145 GB, free: 50.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002231/2.678, allocations: 45.5 kB / 0.8146 GB, free: 50.06 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008449/2.687, allocations: 1.808 MB / 0.8164 GB, free: 49.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/2.687, allocations: 7.781 kB / 0.8164 GB, free: 49.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/2.688, allocations: 177.4 kB / 0.8165 GB, free: 49.15 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003834/2.692, allocations: 1.12 MB / 0.8176 GB, free: 48.81 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001657/2.692, allocations: 136 kB / 0.8178 GB, free: 48.72 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002874/2.692, allocations: 59.81 kB / 0.8178 GB, free: 48.72 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0041/2.697, allocations: 1.595 MB / 0.8194 GB, free: 48.71 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004293/2.701, allocations: 1.608 MB / 0.8209 GB, free: 48.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.628e-05/2.701, allocations: 0 / 0.8209 GB, free: 48.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002356/2.701, allocations: 3.094 kB / 0.8209 GB, free: 48.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002496/2.702, allocations: 113.1 kB / 0.8211 GB, free: 48.53 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01815/2.72, allocations: 6.16 MB / 0.8271 GB, free: 46.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002543/2.722, allocations: 1.115 MB / 0.8282 GB, free: 46.57 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001537/2.724, allocations: 0.6812 MB / 0.8288 GB, free: 46.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008797/2.733, allocations: 4.205 MB / 0.8329 GB, free: 44.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/2.733, allocations: 44.53 kB / 0.833 GB, free: 44.17 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001622/2.734, allocations: 174.7 kB / 0.8331 GB, free: 44.13 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.56e-06/2.734, allocations: 0 / 0.8331 GB, free: 44.13 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.0197/2.754, allocations: 4.13 MB / 0.8372 GB, free: 43.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.181e-05/2.754, allocations: 141.5 kB / 0.8373 GB, free: 43.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/2.756, allocations: 0.8149 MB / 0.8381 GB, free: 43.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003851/2.756, allocations: 31.89 kB / 0.8381 GB, free: 43.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004932/2.757, allocations: 0.6048 MB / 0.8387 GB, free: 42.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005485/2.757, allocations: 378.3 kB / 0.8391 GB, free: 42.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001543/2.758, allocations: 0 / 0.8391 GB, free: 42.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001211/2.758, allocations: 358.2 kB / 0.8394 GB, free: 42.41 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/2.759, allocations: 0.6095 MB / 0.84 GB, free: 42.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001664/2.761, allocations: 0.928 MB / 0.8409 GB, free: 42.05 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0182/2.779, allocations: 2.329 MB / 0.8432 GB, free: 42.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.879e-05/2.779, allocations: 3.703 kB / 0.8432 GB, free: 42.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.02221/2.801, allocations: 3.569 MB / 0.8467 GB, free: 41.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008585/2.802, allocations: 3.49 MB / 0.8501 GB, free: 38.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.726e-05/2.802, allocations: 11.72 kB / 0.8501 GB, free: 38.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01119/2.814, allocations: 1.074 MB / 0.8512 GB, free: 38.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002452/2.816, allocations: 296.7 kB / 0.8514 GB, free: 38.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006315/2.823, allocations: 1.896 MB / 0.8533 GB, free: 37.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002561/2.825, allocations: 61.86 kB / 0.8534 GB, free: 37.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003176/2.825, allocations: 70.7 kB / 0.8534 GB, free: 37.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/2.826, allocations: 10.16 kB / 0.8534 GB, free: 37.7 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02383/2.849, allocations: 2.956 MB / 0.8563 GB, free: 37.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-05/2.849, allocations: 10.59 kB / 0.8563 GB, free: 37.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01407/2.864, allocations: 0.9165 MB / 0.8572 GB, free: 37.64 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003332/2.867, allocations: 305.8 kB / 0.8575 GB, free: 37.64 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003426/2.87, allocations: 1.274 MB / 0.8588 GB, free: 37.11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002908/2.873, allocations: 59.94 kB / 0.8588 GB, free: 37.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000357/2.874, allocations: 69.59 kB / 0.8589 GB, free: 37.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 152 * 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 {9 17} Notification: Performance of prepare postOptimizeDAE: time 0.0008033/2.875, allocations: 137.2 kB / 0.859 GB, free: 36.99 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01059/2.885, allocations: 1.82 MB / 0.8608 GB, free: 36.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006963/2.886, allocations: 125.1 kB / 0.8609 GB, free: 36.79 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/2.898, allocations: 2.14 MB / 0.863 GB, free: 36.68 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.296e-05/2.898, allocations: 14.77 kB / 0.863 GB, free: 36.68 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/2.898, allocations: 6.438 kB / 0.863 GB, free: 36.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.416e-05/2.898, allocations: 3.797 kB / 0.863 GB, free: 36.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0146/2.913, allocations: 3.455 MB / 0.8664 GB, free: 36.34 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-05/2.913, allocations: 0 / 0.8664 GB, free: 36.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00177/2.914, allocations: 194.3 kB / 0.8666 GB, free: 36.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004808/2.919, allocations: 0.8011 MB / 0.8674 GB, free: 36.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001562/2.919, allocations: 17.7 kB / 0.8674 GB, free: 36.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005467/2.925, allocations: 1.879 MB / 0.8692 GB, free: 35.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.164e-06/2.925, allocations: 7.562 kB / 0.8692 GB, free: 35.77 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00893/2.934, allocations: 2.865 MB / 0.872 GB, free: 35.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/2.935, allocations: 369 kB / 0.8724 GB, free: 35.36 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004209/2.936, allocations: 2.281 kB / 0.8724 GB, free: 35.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/2.938, allocations: 70 kB / 0.8724 GB, free: 35.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003468/2.938, allocations: 102.9 kB / 0.8725 GB, free: 35.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001851/2.938, allocations: 49.89 kB / 0.8726 GB, free: 35.34 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001143/2.939, allocations: 0.6013 MB / 0.8732 GB, free: 35.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.034e-06/2.939, allocations: 0 / 0.8732 GB, free: 35.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005163/2.945, allocations: 1.159 MB / 0.8743 GB, free: 35.03 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level,tank3.medium.T,tank3.level) * Number of discrete variables: 6 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1],tank3.regularFlow[1],tank3.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 95 * 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 {9 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.01225/2.957, allocations: 4.365 MB / 0.8786 GB, free: 34.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.007331/2.964, allocations: 2.44 MB / 0.881 GB, free: 33.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.397e-06/2.964, allocations: 7.469 kB / 0.881 GB, free: 33.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002552/2.967, allocations: 0.7793 MB / 0.8817 GB, free: 33.93 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004286/2.971, allocations: 0.5206 MB / 0.8822 GB, free: 33.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01202/2.983, allocations: 2.952 MB / 0.8851 GB, free: 32.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/2.985, allocations: 1.318 MB / 0.8864 GB, free: 31.8 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006172/2.991, allocations: 0.5769 MB / 0.887 GB, free: 31.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00173/2.993, allocations: 0.5247 MB / 0.8875 GB, free: 31.33 MB / 362.7 MB Notification: Performance of SimCode: time 1.423e-06/2.993, allocations: 0 / 0.8875 GB, free: 31.33 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3996/3.393, allocations: 49.71 MB / 0.936 GB, free: 45.8 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002132/3.393, allocations: 132 kB / 0.9361 GB, free: 45.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.801/8.194, allocations: 6.375 kB / 0.9362 GB, free: 45.61 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat