Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.201e-05/3.216e-05, allocations: 4 kB / 225.1 MB, free: 2.605 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2643, allocations: 38.77 MB / 263.8 MB, free: 9.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9087/1.173, allocations: 311.3 MB / 0.5617 GB, free: 72.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/1.173, allocations: 78 kB / 0.5617 GB, free: 72.53 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.483/2.657, allocations: 266.8 MB / 0.8223 GB, free: 52.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.105e-06/2.657, allocations: 3.938 kB / 0.8223 GB, free: 52.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001822/2.657, allocations: 38.22 kB / 0.8223 GB, free: 52.29 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.008453/2.665, allocations: 1.802 MB / 0.8241 GB, free: 51.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.366e-05/2.666, allocations: 16.2 kB / 0.8241 GB, free: 51.4 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007698/2.666, allocations: 161 kB / 0.8243 GB, free: 51.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002653/2.669, allocations: 173.2 kB / 0.8244 GB, free: 51.29 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/2.673, allocations: 1.122 MB / 0.8255 GB, free: 50.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002229/2.674, allocations: 174 kB / 0.8257 GB, free: 50.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000471/2.674, allocations: 101.8 kB / 0.8258 GB, free: 50.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005036/2.679, allocations: 1.73 MB / 0.8275 GB, free: 50.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.355e-05/2.679, allocations: 0 / 0.8275 GB, free: 50.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002667/2.679, allocations: 45.7 kB / 0.8275 GB, free: 50.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002451/2.68, allocations: 111.5 kB / 0.8276 GB, free: 50.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005342/2.685, allocations: 1.727 MB / 0.8293 GB, free: 50.67 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01935/2.704, allocations: 6.412 MB / 0.8356 GB, free: 48.64 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002888/2.707, allocations: 1.145 MB / 0.8367 GB, free: 48.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001752/2.709, allocations: 0.6971 MB / 0.8374 GB, free: 48.6 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009181/2.718, allocations: 4.276 MB / 0.8416 GB, free: 46.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.624e-05/2.718, allocations: 54.44 kB / 0.8416 GB, free: 46.2 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001945/2.72, allocations: 209.6 kB / 0.8418 GB, free: 46.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 5.65e-06/2.72, allocations: 0 / 0.8418 GB, free: 46.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.0138/2.734, allocations: 3.776 MB / 0.8455 GB, free: 45.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.714e-05/2.734, allocations: 148 kB / 0.8456 GB, free: 45.43 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002174/2.737, allocations: 1.089 MB / 0.8467 GB, free: 45.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003183/2.737, allocations: 49.23 kB / 0.8467 GB, free: 45.24 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004083/2.737, allocations: 0.5754 MB / 0.8473 GB, free: 44.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004278/2.738, allocations: 386.2 kB / 0.8477 GB, free: 44.69 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001436/2.738, allocations: 26.66 kB / 0.8477 GB, free: 44.69 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/2.738, allocations: 371 kB / 0.8481 GB, free: 44.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001598/2.74, allocations: 0.6212 MB / 0.8487 GB, free: 44.37 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001917/2.742, allocations: 0.9441 MB / 0.8496 GB, free: 44.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001741/2.743, allocations: 0.7444 MB / 0.8503 GB, free: 44 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.466e-06/2.743, allocations: 3.719 kB / 0.8503 GB, free: 44 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005025/2.748, allocations: 1.969 MB / 0.8522 GB, free: 43.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007601/2.749, allocations: 3.486 MB / 0.8556 GB, free: 40.27 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.68e-05/2.749, allocations: 7.656 kB / 0.8556 GB, free: 40.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01263/2.762, allocations: 1.201 MB / 0.8568 GB, free: 40.26 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00237/2.764, allocations: 299.4 kB / 0.8571 GB, free: 40.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003636/2.768, allocations: 1.53 MB / 0.8586 GB, free: 39.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002646/2.771, allocations: 92.84 kB / 0.8587 GB, free: 39.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002384/2.771, allocations: 68.52 kB / 0.8588 GB, free: 39.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/2.771, allocations: 5.812 kB / 0.8588 GB, free: 39.7 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004545/2.776, allocations: 1.735 MB / 0.8605 GB, free: 39.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.183e-05/2.776, allocations: 7.438 kB / 0.8605 GB, free: 39.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01124/2.787, allocations: 0.9478 MB / 0.8614 GB, free: 39.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002627/2.79, allocations: 300.9 kB / 0.8617 GB, free: 39.65 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002584/2.792, allocations: 1.211 MB / 0.8629 GB, free: 39.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/2.794, allocations: 82.41 kB / 0.8629 GB, free: 39.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001884/2.794, allocations: 68.31 kB / 0.863 GB, free: 39.11 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 {8 18} Notification: Performance of prepare postOptimizeDAE: time 0.0005528/2.795, allocations: 206.7 kB / 0.8632 GB, free: 38.99 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004595/2.795, allocations: 142.9 kB / 0.8633 GB, free: 38.92 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006302/2.802, allocations: 1.997 MB / 0.8653 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-05/2.802, allocations: 11.88 kB / 0.8653 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/2.802, allocations: 3.094 kB / 0.8653 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/2.802, allocations: 7.453 kB / 0.8653 GB, free: 38.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008077/2.81, allocations: 3.404 MB / 0.8686 GB, free: 36.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/2.81, allocations: 5.875 kB / 0.8686 GB, free: 36.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001849/2.812, allocations: 201.9 kB / 0.8688 GB, free: 36.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006145/2.818, allocations: 0.933 MB / 0.8697 GB, free: 36.75 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002974/2.818, allocations: 36.28 kB / 0.8698 GB, free: 36.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003096/2.821, allocations: 1.563 MB / 0.8713 GB, free: 35.82 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/2.821, allocations: 3.938 kB / 0.8713 GB, free: 35.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006347/2.828, allocations: 2.709 MB / 0.8739 GB, free: 34.68 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001222/2.829, allocations: 398.7 kB / 0.8743 GB, free: 34.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003318/2.829, allocations: 23.81 kB / 0.8744 GB, free: 34.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/2.831, allocations: 87.92 kB / 0.8744 GB, free: 34.38 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002936/2.832, allocations: 99.5 kB / 0.8745 GB, free: 34.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001701/2.832, allocations: 49.75 kB / 0.8746 GB, free: 34.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001576/2.833, allocations: 0.8303 MB / 0.8754 GB, free: 33.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.61e-07/2.833, allocations: 0 / 0.8754 GB, free: 33.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004576/2.838, allocations: 1.248 MB / 0.8766 GB, free: 32.53 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.009503/2.848, allocations: 4.24 MB / 0.8807 GB, free: 28.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008386/2.856, allocations: 2.466 MB / 0.8832 GB, free: 26.61 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.787e-06/2.856, allocations: 4 kB / 0.8832 GB, free: 26.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002751/2.859, allocations: 0.8041 MB / 0.8839 GB, free: 25.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004787/2.864, allocations: 0.5881 MB / 0.8845 GB, free: 25.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/2.874, allocations: 3.146 MB / 0.8876 GB, free: 22.76 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008645/2.875, allocations: 1.303 MB / 0.8889 GB, free: 21.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001344/2.876, allocations: 0.5695 MB / 0.8894 GB, free: 21.13 MB / 362.7 MB Notification: Performance of SimCode: time 1.273e-06/2.876, allocations: 0 / 0.8894 GB, free: 21.13 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.094/6.97, allocations: 41.76 MB / 0.9302 GB, free: 40.17 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat