Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.ThreeTanks,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_Tanks_ThreeTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.077/2.077, allocations: 225.8 MB / 238.8 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.501e-05/3.502e-05, allocations: 4 kB / 292.2 MB, free: 8.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.128/0.1281, allocations: 50.41 MB / 342.6 MB, free: 5.816 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.135/1.263, allocations: 321.9 MB / 0.649 GB, free: 34.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/1.263, allocations: 78.77 kB / 0.649 GB, free: 34.06 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.767/3.031, allocations: 274.5 MB / 0.9171 GB, free: 75.7 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.574e-06/3.031, allocations: 0 / 0.9171 GB, free: 75.7 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001649/3.031, allocations: 41.41 kB / 0.9171 GB, free: 75.69 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: 261 * Number of variables: 261 Notification: Performance of Generate backend data structure: time 0.008443/3.04, allocations: 1.822 MB / 0.9189 GB, free: 74.88 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.346e-05/3.04, allocations: 10.72 kB / 0.9189 GB, free: 74.88 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006877/3.04, allocations: 161.4 kB / 0.9191 GB, free: 74.84 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00101/3.041, allocations: 171.8 kB / 0.9192 GB, free: 74.77 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004263/3.046, allocations: 1.126 MB / 0.9203 GB, free: 74.43 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002091/3.046, allocations: 172.8 kB / 0.9205 GB, free: 74.34 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003612/3.046, allocations: 100.4 kB / 0.9206 GB, free: 74.34 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004467/3.051, allocations: 1.725 MB / 0.9223 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.839e-05/3.051, allocations: 11.03 kB / 0.9223 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002553/3.051, allocations: 43.66 kB / 0.9223 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002612/3.051, allocations: 107.2 kB / 0.9224 GB, free: 74.16 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004788/3.056, allocations: 1.725 MB / 0.9241 GB, free: 74.15 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01895/3.075, allocations: 6.367 MB / 0.9303 GB, free: 72.16 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002685/3.078, allocations: 1.148 MB / 0.9315 GB, free: 72.12 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001617/3.08, allocations: 0.7012 MB / 0.9321 GB, free: 72.12 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009318/3.089, allocations: 4.253 MB / 0.9363 GB, free: 69.77 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/3.089, allocations: 49.92 kB / 0.9363 GB, free: 69.73 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001798/3.091, allocations: 219.2 kB / 0.9365 GB, free: 69.66 MB / 458.7 MB Notification: Performance of pre-optimization done (n=97): time 5.76e-06/3.091, allocations: 0 / 0.9365 GB, free: 69.66 MB / 458.7 MB Notification: Performance of matching and sorting (n=112): time 0.01425/3.105, allocations: 3.773 MB / 0.9402 GB, free: 69.11 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.317e-05/3.105, allocations: 142.2 kB / 0.9404 GB, free: 68.95 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002217/3.108, allocations: 1.092 MB / 0.9414 GB, free: 68.79 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004176/3.108, allocations: 45.02 kB / 0.9415 GB, free: 68.76 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005263/3.109, allocations: 0.6006 MB / 0.9421 GB, free: 68.52 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004816/3.109, allocations: 391 kB / 0.9424 GB, free: 68.28 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/3.109, allocations: 32.03 kB / 0.9425 GB, free: 68.28 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000121/3.109, allocations: 360.7 kB / 0.9428 GB, free: 67.97 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001631/3.111, allocations: 0.6245 MB / 0.9434 GB, free: 67.96 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001826/3.113, allocations: 0.9481 MB / 0.9443 GB, free: 67.61 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001841/3.115, allocations: 0.7498 MB / 0.9451 GB, free: 67.59 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.084e-05/3.115, allocations: 3.031 kB / 0.9451 GB, free: 67.59 MB / 458.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.006116/3.121, allocations: 2.046 MB / 0.9471 GB, free: 67.45 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009937/3.122, allocations: 3.518 MB / 0.9505 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.912e-05/3.122, allocations: 10.47 kB / 0.9505 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01324/3.135, allocations: 1.206 MB / 0.9517 GB, free: 63.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00249/3.138, allocations: 299.3 kB / 0.952 GB, free: 63.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003678/3.142, allocations: 1.52 MB / 0.9535 GB, free: 63.26 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002822/3.144, allocations: 93.86 kB / 0.9536 GB, free: 63.25 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002613/3.145, allocations: 73.95 kB / 0.9536 GB, free: 63.25 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.583e-05/3.145, allocations: 3.719 kB / 0.9536 GB, free: 63.25 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004989/3.15, allocations: 1.825 MB / 0.9554 GB, free: 63.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.774e-05/3.15, allocations: 12.72 kB / 0.9554 GB, free: 63.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01194/3.162, allocations: 1.06 MB / 0.9565 GB, free: 63.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00251/3.164, allocations: 303 kB / 0.9568 GB, free: 63.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002999/3.167, allocations: 1.365 MB / 0.9581 GB, free: 62.66 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003334/3.171, allocations: 90.27 kB / 0.9582 GB, free: 62.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004139/3.171, allocations: 64.83 kB / 0.9582 GB, free: 62.66 MB / 458.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.000842/3.172, allocations: 192 kB / 0.9584 GB, free: 62.55 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000648/3.173, allocations: 145.9 kB / 0.9586 GB, free: 62.47 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006281/3.179, allocations: 2.001 MB / 0.9605 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.942e-05/3.179, allocations: 13.91 kB / 0.9605 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/3.179, allocations: 0 / 0.9605 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.973e-05/3.179, allocations: 7.312 kB / 0.9605 GB, free: 62.36 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008564/3.188, allocations: 3.412 MB / 0.9639 GB, free: 61.98 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.057e-05/3.188, allocations: 0 / 0.9639 GB, free: 61.98 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001779/3.19, allocations: 190.1 kB / 0.964 GB, free: 61.98 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006381/3.196, allocations: 0.9419 MB / 0.965 GB, free: 61.96 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003347/3.196, allocations: 34.75 kB / 0.965 GB, free: 61.96 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003175/3.2, allocations: 1.558 MB / 0.9665 GB, free: 61.42 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/3.2, allocations: 0 / 0.9665 GB, free: 61.42 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006776/3.206, allocations: 2.703 MB / 0.9692 GB, free: 61.16 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001328/3.208, allocations: 400 kB / 0.9695 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003688/3.208, allocations: 30.39 kB / 0.9696 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002009/3.21, allocations: 79.23 kB / 0.9696 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003171/3.211, allocations: 102.6 kB / 0.9697 GB, free: 60.98 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001862/3.211, allocations: 53.41 kB / 0.9698 GB, free: 60.98 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001668/3.212, allocations: 0.8242 MB / 0.9706 GB, free: 60.86 MB / 458.7 MB Notification: Performance of sort global known variables: time 5.61e-07/3.212, allocations: 6.094 kB / 0.9706 GB, free: 60.86 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005632/3.218, allocations: 1.247 MB / 0.9718 GB, free: 60.65 MB / 458.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.01041/3.229, allocations: 4.252 MB / 0.976 GB, free: 59.62 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009591/3.238, allocations: 2.572 MB / 0.9785 GB, free: 58.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.241e-05/3.238, allocations: 3.75 kB / 0.9785 GB, free: 58.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002974/3.241, allocations: 0.8161 MB / 0.9793 GB, free: 58.73 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005237/3.247, allocations: 0.6062 MB / 0.9799 GB, free: 58.6 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/3.258, allocations: 3.089 MB / 0.9829 GB, free: 57.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009597/3.259, allocations: 1.322 MB / 0.9842 GB, free: 56.69 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.004181/3.264, allocations: 0.6738 MB / 0.9848 GB, free: 56.66 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001202/3.265, allocations: 0.5291 MB / 0.9854 GB, free: 56.27 MB / 458.7 MB Notification: Performance of SimCode: time 3.286e-06/3.265, allocations: 0 / 0.9854 GB, free: 56.27 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1455/3.41, allocations: 56.71 MB / 1.041 GB, free: 16.11 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000299/3.411, allocations: 182.6 kB / 1.041 GB, free: 15.88 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.626/9.037, allocations: 0.9375 kB / 1.041 GB, free: 15.88 MB / 458.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Fluid.Examples.Tanks.ThreeTanks_res.mat does not exist to compare? outputFormat=mat