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.808/1.808, allocations: 171.2 MB / 183.3 MB, free: 12.08 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.811e-05/3.832e-05, allocations: 4 kB / 225.1 MB, free: 2.25 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2688/0.2689, allocations: 38.77 MB / 263.9 MB, free: 9.562 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.053/1.322, allocations: 311.3 MB / 0.5617 GB, free: 72.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000338/1.323, allocations: 78.72 kB / 0.5618 GB, free: 72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.576/2.898, allocations: 266.8 MB / 0.8223 GB, free: 52.6 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.465e-06/2.898, allocations: 0 / 0.8223 GB, free: 52.6 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002142/2.899, allocations: 34.52 kB / 0.8224 GB, free: 52.6 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.008972/2.908, allocations: 1.818 MB / 0.8241 GB, free: 51.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/2.908, allocations: 6.656 kB / 0.8241 GB, free: 51.71 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008188/2.909, allocations: 162.3 kB / 0.8243 GB, free: 51.67 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001245/2.91, allocations: 169.8 kB / 0.8245 GB, free: 51.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004559/2.914, allocations: 1.123 MB / 0.8256 GB, free: 51.25 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002688/2.915, allocations: 177.8 kB / 0.8257 GB, free: 51.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006383/2.915, allocations: 100.5 kB / 0.8258 GB, free: 51.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005401/2.921, allocations: 1.736 MB / 0.8275 GB, free: 50.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.021e-05/2.921, allocations: 3.328 kB / 0.8275 GB, free: 50.98 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002718/2.921, allocations: 45.5 kB / 0.8276 GB, free: 50.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002507/2.921, allocations: 115.4 kB / 0.8277 GB, free: 50.98 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00492/2.926, allocations: 1.724 MB / 0.8294 GB, free: 50.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02029/2.947, allocations: 6.406 MB / 0.8356 GB, free: 48.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002731/2.949, allocations: 1.15 MB / 0.8367 GB, free: 48.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001751/2.951, allocations: 0.6991 MB / 0.8374 GB, free: 48.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00888/2.96, allocations: 4.27 MB / 0.8416 GB, free: 46.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/2.96, allocations: 52.98 kB / 0.8416 GB, free: 46.51 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001695/2.962, allocations: 204.6 kB / 0.8418 GB, free: 46.45 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 4.559e-06/2.962, allocations: 2.312 kB / 0.8418 GB, free: 46.45 MB / 362.7 MB Notification: Performance of matching and sorting (n=112): time 0.0137/2.976, allocations: 3.775 MB / 0.8455 GB, free: 45.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.118e-05/2.976, allocations: 147 kB / 0.8457 GB, free: 45.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002084/2.978, allocations: 1.091 MB / 0.8467 GB, free: 45.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002189/2.978, allocations: 47.55 kB / 0.8468 GB, free: 45.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004897/2.979, allocations: 0.5993 MB / 0.8474 GB, free: 45.3 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004184/2.979, allocations: 384 kB / 0.8477 GB, free: 45.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001472/2.979, allocations: 30.03 kB / 0.8478 GB, free: 45.06 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/2.979, allocations: 366.4 kB / 0.8481 GB, free: 44.75 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001575/2.981, allocations: 0.6248 MB / 0.8487 GB, free: 44.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001784/2.983, allocations: 0.9408 MB / 0.8496 GB, free: 44.39 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001755/2.985, allocations: 0.7421 MB / 0.8504 GB, free: 44.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/2.985, allocations: 3.875 kB / 0.8504 GB, free: 44.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.005327/2.99, allocations: 2.058 MB / 0.8524 GB, free: 44.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008233/2.991, allocations: 3.517 MB / 0.8558 GB, free: 40.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/2.991, allocations: 6.688 kB / 0.8558 GB, free: 40.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01255/3.003, allocations: 1.206 MB / 0.857 GB, free: 40.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002476/3.006, allocations: 298.6 kB / 0.8573 GB, free: 40.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003428/3.009, allocations: 1.522 MB / 0.8588 GB, free: 40.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002499/3.012, allocations: 91 kB / 0.8588 GB, free: 40.04 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002159/3.012, allocations: 69.56 kB / 0.8589 GB, free: 40.04 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/3.012, allocations: 6.25 kB / 0.8589 GB, free: 40.04 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004428/3.017, allocations: 1.734 MB / 0.8606 GB, free: 40 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.638e-05/3.017, allocations: 6.75 kB / 0.8606 GB, free: 40 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01114/3.028, allocations: 0.9696 MB / 0.8616 GB, free: 39.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002456/3.03, allocations: 299.7 kB / 0.8618 GB, free: 39.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002269/3.033, allocations: 1.225 MB / 0.863 GB, free: 39.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002196/3.035, allocations: 86.05 kB / 0.8631 GB, free: 39.44 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001961/3.035, allocations: 65.64 kB / 0.8632 GB, free: 39.44 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.0005661/3.036, allocations: 189.7 kB / 0.8634 GB, free: 39.29 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003593/3.036, allocations: 148.4 kB / 0.8635 GB, free: 39.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006134/3.042, allocations: 2.008 MB / 0.8655 GB, free: 38.48 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.755e-05/3.042, allocations: 11.03 kB / 0.8655 GB, free: 38.48 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.027e-06/3.042, allocations: 3.938 kB / 0.8655 GB, free: 38.48 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.731e-05/3.042, allocations: 7.453 kB / 0.8655 GB, free: 38.48 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008153/3.05, allocations: 3.41 MB / 0.8688 GB, free: 37.07 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/3.05, allocations: 0 / 0.8688 GB, free: 37.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001797/3.052, allocations: 195.6 kB / 0.869 GB, free: 37.06 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006128/3.058, allocations: 0.9387 MB / 0.8699 GB, free: 36.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001759/3.059, allocations: 34.81 kB / 0.87 GB, free: 36.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00311/3.062, allocations: 1.561 MB / 0.8715 GB, free: 35.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/3.062, allocations: 0.5625 kB / 0.8715 GB, free: 35.98 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006368/3.068, allocations: 2.709 MB / 0.8741 GB, free: 34.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/3.069, allocations: 402.4 kB / 0.8745 GB, free: 34.06 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003922/3.07, allocations: 24 kB / 0.8745 GB, free: 34.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002021/3.072, allocations: 89.92 kB / 0.8746 GB, free: 33.97 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003248/3.072, allocations: 101.8 kB / 0.8747 GB, free: 33.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001848/3.072, allocations: 52.45 kB / 0.8748 GB, free: 33.87 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001637/3.074, allocations: 0.8216 MB / 0.8756 GB, free: 33.11 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.31e-07/3.074, allocations: 0 / 0.8756 GB, free: 33.11 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005355/3.079, allocations: 1.243 MB / 0.8768 GB, free: 31.9 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.01021/3.09, allocations: 4.253 MB / 0.8809 GB, free: 28.16 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008819/3.099, allocations: 2.53 MB / 0.8834 GB, free: 25.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.179e-05/3.099, allocations: 4 kB / 0.8834 GB, free: 25.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002877/3.101, allocations: 0.81 MB / 0.8842 GB, free: 25.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005301/3.107, allocations: 0.5911 MB / 0.8848 GB, free: 24.76 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01071/3.118, allocations: 3.102 MB / 0.8878 GB, free: 22.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009613/3.119, allocations: 1.316 MB / 0.8891 GB, free: 20.96 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.004011/3.123, allocations: 0.6714 MB / 0.8898 GB, free: 20.53 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001102/3.124, allocations: 0.5326 MB / 0.8903 GB, free: 20.05 MB / 362.7 MB Notification: Performance of SimCode: time 1.042e-06/3.124, allocations: 0 / 0.8903 GB, free: 20.05 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.428/3.552, allocations: 56.29 MB / 0.9452 GB, free: 45.6 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002227/3.552, allocations: 175.1 kB / 0.9454 GB, free: 45.38 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.115/8.667, allocations: 3.938 kB / 0.9454 GB, free: 45.37 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