Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.EmptyTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 195 MB / 203.2 MB, free: 13.78 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.846e-05/2.846e-05, allocations: 4 kB / 249.7 MB, free: 15.19 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.341/0.3411, allocations: 44.5 MB / 294.2 MB, free: 14.2 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9523/1.294, allocations: 315.7 MB / 0.5957 GB, free: 113.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002952/1.294, allocations: 74.17 kB / 0.5957 GB, free: 113.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4507/1.745, allocations: 129.3 MB / 0.722 GB, free: 11.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.693e-06/1.745, allocations: 7.938 kB / 0.722 GB, free: 11.98 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.615e-05/1.745, allocations: 19.98 kB / 0.7221 GB, free: 11.96 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003227/1.748, allocations: 1.087 MB / 0.7231 GB, free: 10.82 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.869e-05/1.748, allocations: 8.031 kB / 0.7231 GB, free: 10.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004948/1.749, allocations: 94.97 kB / 0.7232 GB, free: 10.72 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001764/1.75, allocations: 0.6518 MB / 0.7239 GB, free: 10.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001071/1.75, allocations: 88.7 kB / 0.7239 GB, free: 9.934 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/1.751, allocations: 32 kB / 0.724 GB, free: 9.902 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001747/1.752, allocations: 0.7444 MB / 0.7247 GB, free: 9.156 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001732/1.754, allocations: 0.8087 MB / 0.7255 GB, free: 8.316 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.988e-05/1.754, allocations: 3.953 kB / 0.7255 GB, free: 8.312 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/1.754, allocations: 0 / 0.7255 GB, free: 8.312 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/1.754, allocations: 49.28 kB / 0.7255 GB, free: 8.266 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007643/1.762, allocations: 3.167 MB / 0.7286 GB, free: 4.953 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/1.763, allocations: 0.617 MB / 0.7292 GB, free: 4.328 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006753/1.764, allocations: 350.4 kB / 0.7296 GB, free: 3.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003928/1.768, allocations: 2.027 MB / 0.7315 GB, free: 1.758 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.705e-05/1.768, allocations: 39.12 kB / 0.7316 GB, free: 1.711 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 3.036e-06/1.768, allocations: 0 / 0.7316 GB, free: 1.711 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.2709/2.039, allocations: 2.476 MB / 0.734 GB, free: 98.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.16e-05/2.039, allocations: 88.45 kB / 0.7341 GB, free: 97.98 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001028/2.04, allocations: 452.2 kB / 0.7345 GB, free: 97.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001957/2.04, allocations: 27.02 kB / 0.7345 GB, free: 97.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002543/2.041, allocations: 379.1 kB / 0.7349 GB, free: 97.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/2.041, allocations: 221.2 kB / 0.7351 GB, free: 97.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/2.041, allocations: 1.312 kB / 0.7351 GB, free: 97.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.974e-05/2.041, allocations: 342 kB / 0.7354 GB, free: 97.2 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008579/2.042, allocations: 335.5 kB / 0.7358 GB, free: 97.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000938/2.043, allocations: 492.3 kB / 0.7362 GB, free: 97.05 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007528/2.051, allocations: 0.9981 MB / 0.7372 GB, free: 97.04 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.857e-05/2.051, allocations: 1.312 kB / 0.7372 GB, free: 97.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00984/2.06, allocations: 1.643 MB / 0.7388 GB, free: 96.97 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003894/2.061, allocations: 1.575 MB / 0.7404 GB, free: 95.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.834e-05/2.061, allocations: 3.625 kB / 0.7404 GB, free: 95.34 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001403/2.062, allocations: 374.9 kB / 0.7407 GB, free: 95.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001426/2.064, allocations: 160.2 kB / 0.7409 GB, free: 95.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003374/2.067, allocations: 1.222 MB / 0.7421 GB, free: 94.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001238/2.069, allocations: 31.94 kB / 0.7421 GB, free: 94.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/2.069, allocations: 31.12 kB / 0.7421 GB, free: 94.81 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/2.069, allocations: 7.969 kB / 0.7421 GB, free: 94.81 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007973/2.077, allocations: 1.311 MB / 0.7434 GB, free: 94.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.57e-05/2.077, allocations: 4.031 kB / 0.7434 GB, free: 94.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009607/2.078, allocations: 240.3 kB / 0.7436 GB, free: 94.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/2.079, allocations: 168.2 kB / 0.7438 GB, free: 94.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/2.08, allocations: 0.8272 MB / 0.7446 GB, free: 94.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008369/2.081, allocations: 26.53 kB / 0.7446 GB, free: 94.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.674e-05/2.081, allocations: 32.47 kB / 0.7447 GB, free: 94.25 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0003369/2.082, allocations: 134.1 kB / 0.7448 GB, free: 94.14 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003903/2.085, allocations: 1.045 MB / 0.7458 GB, free: 94.06 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001761/2.086, allocations: 68.34 kB / 0.7459 GB, free: 94.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004287/2.09, allocations: 1.185 MB / 0.747 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/2.09, allocations: 7.125 kB / 0.747 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.346e-06/2.09, allocations: 2.25 kB / 0.747 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.178e-05/2.09, allocations: 9.312 kB / 0.7471 GB, free: 93.95 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005907/2.096, allocations: 2.027 MB / 0.749 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/2.096, allocations: 2.625 kB / 0.749 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001033/2.097, allocations: 124.3 kB / 0.7492 GB, free: 93.64 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/2.098, allocations: 366.9 kB / 0.7495 GB, free: 93.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.249e-05/2.098, allocations: 11.58 kB / 0.7495 GB, free: 93.63 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002966/2.101, allocations: 1.213 MB / 0.7507 GB, free: 93.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.586e-06/2.101, allocations: 0 / 0.7507 GB, free: 93.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00508/2.107, allocations: 1.684 MB / 0.7523 GB, free: 92.9 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006543/2.107, allocations: 241.8 kB / 0.7526 GB, free: 92.77 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001999/2.107, allocations: 0 / 0.7526 GB, free: 92.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009978/2.108, allocations: 36.16 kB / 0.7526 GB, free: 92.77 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001862/2.109, allocations: 57.91 kB / 0.7527 GB, free: 92.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001/2.109, allocations: 33.64 kB / 0.7527 GB, free: 92.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005227/2.109, allocations: 338.2 kB / 0.753 GB, free: 92.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.11e-07/2.109, allocations: 0 / 0.753 GB, free: 92.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002384/2.112, allocations: 0.5876 MB / 0.7536 GB, free: 92.68 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.006941/2.119, allocations: 2.715 MB / 0.7562 GB, free: 91.95 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00359/2.122, allocations: 1.281 MB / 0.7575 GB, free: 91.94 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/2.122, allocations: 0 / 0.7575 GB, free: 91.94 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001358/2.124, allocations: 436.3 kB / 0.7579 GB, free: 91.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/2.126, allocations: 313.6 kB / 0.7582 GB, free: 91.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005489/2.132, allocations: 1.641 MB / 0.7598 GB, free: 91.56 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005286/2.132, allocations: 1.008 MB / 0.7608 GB, free: 90.86 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006944/2.133, allocations: 292.2 kB / 0.7611 GB, free: 90.85 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/2.133, allocations: 0 / 0.7611 GB, free: 90.85 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.051/5.184, allocations: 21.9 MB / 0.7825 GB, free: 89.73 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat