Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.13e-05/4.136e-05, allocations: 0 / 292.7 MB, free: 8.258 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1514, allocations: 50.41 MB / 343.2 MB, free: 5.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5288/0.6803, allocations: 79.48 MB / 422.6 MB, free: 14.41 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003996/0.6808, allocations: 63.41 kB / 422.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04563/0.7264, allocations: 6.023 MB / 428.7 MB, free: 9.332 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.076e-06/0.7265, allocations: 0 / 428.7 MB, free: 9.332 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.332e-05/0.7266, allocations: 8 kB / 428.7 MB, free: 9.324 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.002241/0.7288, allocations: 0.5753 MB / 429.3 MB, free: 8.723 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.825e-05/0.7289, allocations: 8.031 kB / 429.3 MB, free: 8.715 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002794/0.7292, allocations: 69 kB / 429.4 MB, free: 8.652 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002476/0.7295, allocations: 43.53 kB / 429.4 MB, free: 8.609 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.7306, allocations: 292.5 kB / 429.7 MB, free: 8.309 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002557/0.7309, allocations: 55.08 kB / 429.8 MB, free: 8.258 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.731, allocations: 27.11 kB / 429.8 MB, free: 8.238 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.7323, allocations: 320 kB / 430.1 MB, free: 7.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.132e-05/0.7324, allocations: 3.953 kB / 430.1 MB, free: 7.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.421e-05/0.7325, allocations: 10.06 kB / 430.1 MB, free: 7.961 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.166e-05/0.7326, allocations: 4 kB / 430.1 MB, free: 7.957 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000849/0.7334, allocations: 183.2 kB / 430.3 MB, free: 7.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00395/0.7374, allocations: 0.8197 MB / 431.1 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001423/0.7389, allocations: 263.6 kB / 431.4 MB, free: 6.973 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005089/0.7395, allocations: 111.8 kB / 431.5 MB, free: 6.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.007e-05/0.7396, allocations: 7.984 kB / 431.5 MB, free: 6.895 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.865e-05/0.7397, allocations: 42.69 kB / 431.5 MB, free: 6.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 5.15e-06/0.7397, allocations: 0 / 431.5 MB, free: 6.848 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001453/0.7412, allocations: 269.5 kB / 431.8 MB, free: 6.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002332/0.7415, allocations: 319.7 kB / 432.1 MB, free: 6.258 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007014/0.7422, allocations: 245.3 kB / 432.3 MB, free: 6.059 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001497/0.7424, allocations: 29.39 kB / 432.4 MB, free: 6.027 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002431/0.7427, allocations: 176.4 kB / 432.5 MB, free: 5.891 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000215/0.7429, allocations: 104.7 kB / 432.6 MB, free: 5.801 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.488e-05/0.743, allocations: 7.375 kB / 432.7 MB, free: 5.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.7432, allocations: 346 kB / 433 MB, free: 5.465 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.7437, allocations: 79.88 kB / 433.1 MB, free: 5.418 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006301/0.7444, allocations: 186.8 kB / 433.3 MB, free: 5.234 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005531/0.745, allocations: 134.8 kB / 433.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.745, allocations: 0 / 433.4 MB, free: 5.129 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001524/0.7465, allocations: 340.3 kB / 433.7 MB, free: 4.859 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.932e-05/0.7467, allocations: 37.73 kB / 433.8 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.7467, allocations: 0 / 433.8 MB, free: 4.816 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003048/0.747, allocations: 42.78 kB / 433.8 MB, free: 4.781 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/0.7502, allocations: 199.8 kB / 434 MB, free: 4.59 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007265/0.7575, allocations: 2.943 MB / 436.9 MB, free: 1.566 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008311/0.7584, allocations: 43.06 kB / 437 MB, free: 1.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-05/0.7586, allocations: 10.44 kB / 437 MB, free: 1.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002988/0.7589, allocations: 133.9 kB / 437.1 MB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001981/0.7591, allocations: 31.62 kB / 437.1 MB, free: 1.363 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.7593, allocations: 36.33 kB / 437.2 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.7593, allocations: 4 kB / 437.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.7594, allocations: 0 / 437.2 MB, free: 1.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001396/0.7608, allocations: 0.6296 MB / 437.8 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.7619, allocations: 402.2 kB / 438.2 MB, free: 304 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.762, allocations: 3.984 kB / 438.2 MB, free: 300 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004049/0.7661, allocations: 251.2 kB / 438.5 MB, free: 52 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001931/0.7663, allocations: 20.48 kB / 438.5 MB, free: 32 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.403e-05/0.7665, allocations: 13.39 kB / 438.5 MB, free: 24 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006192/0.7727, allocations: 2.772 MB / 441.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.7727, allocations: 4.156 kB / 441.3 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001727/0.7745, allocations: 492.2 kB / 441.7 MB, free: 12.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004173/0.775, allocations: 126.3 kB / 441.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001196/0.7751, allocations: 7.5 kB / 441.9 MB, free: 12.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006273/0.7758, allocations: 25.2 kB / 441.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.776, allocations: 23.47 kB / 441.9 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.558e-05/0.776, allocations: 15.48 kB / 441.9 MB, free: 12.54 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004984/0.7766, allocations: 191.8 kB / 442.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.7766, allocations: 0 / 442.1 MB, free: 12.38 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001188/0.7778, allocations: 109.7 kB / 442.2 MB, free: 12.29 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.002517/0.7804, allocations: 1.056 MB / 443.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003555/0.784, allocations: 0.5213 MB / 443.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/0.7841, allocations: 0 / 443.8 MB, free: 10.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00355/0.7877, allocations: 406.9 kB / 444.2 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.7889, allocations: 77.67 kB / 444.3 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004536/0.7935, allocations: 0.7492 MB / 445 MB, free: 9.703 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006049/0.7942, allocations: 0.7879 MB / 445.8 MB, free: 8.887 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0004565/0.7947, allocations: 34.95 kB / 445.9 MB, free: 8.848 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003283/0.7951, allocations: 105 kB / 446 MB, free: 8.812 MB / 362.7 MB Notification: Performance of SimCode: time 1.674e-06/0.7951, allocations: 0 / 446 MB, free: 8.812 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05619/0.8513, allocations: 8.455 MB / 454.4 MB, free: 0.4922 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003646/0.8518, allocations: 185.7 kB / 454.6 MB, free: 268 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.069/3.92, allocations: 0 / 454.6 MB, free: 268 kB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks_res.mat does not exist to compare? outputFormat=mat