Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.688/1.688, allocations: 171.2 MB / 178.8 MB, free: 172 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.416e-05/2.412e-05, allocations: 4 kB / 219.6 MB, free: 7.324 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.264, allocations: 38.77 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8966/1.161, allocations: 317.6 MB / 0.5625 GB, free: 76.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/1.161, allocations: 91.05 kB / 0.5626 GB, free: 76.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8645/2.025, allocations: 163.5 MB / 0.7222 GB, free: 69.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.344e-06/2.026, allocations: 0 / 0.7222 GB, free: 69.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.924e-05/2.026, allocations: 19.94 kB / 0.7222 GB, free: 69.91 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.004243/2.03, allocations: 1.108 MB / 0.7233 GB, free: 68.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/2.03, allocations: 8.031 kB / 0.7233 GB, free: 68.75 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007649/2.031, allocations: 98.95 kB / 0.7234 GB, free: 68.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002586/2.033, allocations: 0.6663 MB / 0.7241 GB, free: 67.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.878e-05/2.033, allocations: 31.98 kB / 0.7241 GB, free: 67.93 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001809/2.034, allocations: 32 kB / 0.7241 GB, free: 67.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002444/2.036, allocations: 0.6975 MB / 0.7248 GB, free: 67.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002337/2.039, allocations: 0.7812 MB / 0.7256 GB, free: 66.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.849e-05/2.039, allocations: 3.938 kB / 0.7256 GB, free: 66.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001595/2.039, allocations: 4 kB / 0.7256 GB, free: 66.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001309/2.039, allocations: 41.3 kB / 0.7256 GB, free: 66.32 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009647/2.049, allocations: 3.732 MB / 0.7293 GB, free: 62.36 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/2.05, allocations: 467.2 kB / 0.7297 GB, free: 61.9 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006954/2.051, allocations: 225.5 kB / 0.7299 GB, free: 61.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00469/2.056, allocations: 1.944 MB / 0.7318 GB, free: 59.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.172e-05/2.056, allocations: 38.56 kB / 0.7319 GB, free: 59.49 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 4.018e-06/2.056, allocations: 0 / 0.7319 GB, free: 59.49 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0143/2.07, allocations: 1.688 MB / 0.7335 GB, free: 57.75 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.839e-05/2.07, allocations: 132.5 kB / 0.7336 GB, free: 57.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00118/2.071, allocations: 0.5189 MB / 0.7342 GB, free: 57.06 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.189e-05/2.071, allocations: 33.7 kB / 0.7342 GB, free: 57.02 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004086/2.072, allocations: 465 kB / 0.7346 GB, free: 56.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001943/2.072, allocations: 145.9 kB / 0.7348 GB, free: 56.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.28e-05/2.072, allocations: 0 / 0.7348 GB, free: 56.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/2.072, allocations: 342.8 kB / 0.7351 GB, free: 56.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007763/2.073, allocations: 230.5 kB / 0.7353 GB, free: 55.85 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001006/2.074, allocations: 0.5292 MB / 0.7358 GB, free: 55.17 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01087/2.085, allocations: 0.9191 MB / 0.7367 GB, free: 54.25 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/2.085, allocations: 4 kB / 0.7367 GB, free: 54.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.01252/2.097, allocations: 1.386 MB / 0.7381 GB, free: 52.85 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001015/2.099, allocations: 3.913 MB / 0.7419 GB, free: 48.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.965e-05/2.099, allocations: 12 kB / 0.7419 GB, free: 48.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004221/2.099, allocations: 56.77 kB / 0.742 GB, free: 48.56 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003212/2.102, allocations: 239.6 kB / 0.7422 GB, free: 48.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002221/2.104, allocations: 1.29 MB / 0.7435 GB, free: 46.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/2.106, allocations: 51.97 kB / 0.7435 GB, free: 46.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001397/2.106, allocations: 39.98 kB / 0.7435 GB, free: 46.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/2.106, allocations: 7.594 kB / 0.7436 GB, free: 46.89 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01213/2.119, allocations: 1.287 MB / 0.7448 GB, free: 45.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/2.119, allocations: 12.28 kB / 0.7448 GB, free: 45.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002899/2.119, allocations: 64.77 kB / 0.7449 GB, free: 45.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002348/2.121, allocations: 223.7 kB / 0.7451 GB, free: 45.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001243/2.123, allocations: 0.6381 MB / 0.7457 GB, free: 44.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/2.124, allocations: 40.03 kB / 0.7458 GB, free: 44.6 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001309/2.124, allocations: 43.98 kB / 0.7458 GB, free: 44.56 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (98): * Single equations (assignments): 96 * 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 prepare postOptimizeDAE: time 0.0003303/2.124, allocations: 136.7 kB / 0.7459 GB, free: 44.42 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.005/2.129, allocations: 0.6374 MB / 0.7466 GB, free: 43.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002069/2.13, allocations: 71.16 kB / 0.7466 GB, free: 43.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004508/2.134, allocations: 0.7805 MB / 0.7474 GB, free: 42.91 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/2.134, allocations: 8 kB / 0.7474 GB, free: 42.9 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.069e-05/2.134, allocations: 3.953 kB / 0.7474 GB, free: 42.89 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.428e-05/2.134, allocations: 3.984 kB / 0.7474 GB, free: 42.89 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005957/2.14, allocations: 1.387 MB / 0.7488 GB, free: 41.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/2.14, allocations: 0 / 0.7488 GB, free: 41.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001544/2.142, allocations: 143.8 kB / 0.7489 GB, free: 41.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000204/2.142, allocations: 44.88 kB / 0.7489 GB, free: 41.28 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/2.142, allocations: 15.92 kB / 0.7489 GB, free: 41.26 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009544/2.143, allocations: 1.213 MB / 0.7501 GB, free: 40 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.391e-06/2.143, allocations: 4.031 kB / 0.7501 GB, free: 40 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002702/2.146, allocations: 1.043 MB / 0.7512 GB, free: 38.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002335/2.146, allocations: 160.1 kB / 0.7513 GB, free: 38.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001986/2.146, allocations: 4 kB / 0.7513 GB, free: 38.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007036/2.147, allocations: 28.03 kB / 0.7513 GB, free: 38.7 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/2.147, allocations: 56.48 kB / 0.7514 GB, free: 38.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.519e-05/2.147, allocations: 19.98 kB / 0.7514 GB, free: 38.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005884/2.148, allocations: 387.2 kB / 0.7518 GB, free: 38.25 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.7e-07/2.148, allocations: 0 / 0.7518 GB, free: 38.25 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002441/2.15, allocations: 0.5893 MB / 0.7524 GB, free: 37.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[2],tank1.aboveLevel[1]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.004651/2.155, allocations: 2.353 MB / 0.7547 GB, free: 35.32 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002976/2.158, allocations: 1 MB / 0.7556 GB, free: 34.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.809e-06/2.158, allocations: 4.062 kB / 0.7556 GB, free: 34.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009265/2.159, allocations: 317.9 kB / 0.7559 GB, free: 34 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002133/2.161, allocations: 270.7 kB / 0.7562 GB, free: 33.74 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003824/2.165, allocations: 1.44 MB / 0.7576 GB, free: 32.24 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005171/2.165, allocations: 0.9952 MB / 0.7586 GB, free: 31.22 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005967/2.166, allocations: 303.3 kB / 0.7589 GB, free: 30.92 MB / 362.7 MB Notification: Performance of SimCode: time 9.42e-07/2.166, allocations: 0 / 0.7589 GB, free: 30.92 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.188/5.354, allocations: 25.01 MB / 0.7833 GB, free: 5.883 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat