Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.762/1.762, allocations: 171.2 MB / 178.8 MB, free: 160 kB / 138.7 MB Notification: Performance of FrontEnd - loaded program: time 2.442e-05/2.452e-05, allocations: 4 kB / 219.6 MB, free: 7.316 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2626/0.2626, allocations: 38.78 MB / 258.3 MB, free: 12.05 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9399/1.203, allocations: 313.3 MB / 0.5582 GB, free: 80.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000295/1.203, allocations: 85.11 kB / 0.5583 GB, free: 80.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9333/2.136, allocations: 188.9 MB / 0.7428 GB, free: 48.71 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.744e-06/2.136, allocations: 0 / 0.7428 GB, free: 48.71 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.569e-05/2.136, allocations: 32 kB / 0.7428 GB, free: 48.68 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.004212/2.141, allocations: 1.293 MB / 0.7441 GB, free: 47.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/2.141, allocations: 12.03 kB / 0.7441 GB, free: 47.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007381/2.141, allocations: 112 kB / 0.7442 GB, free: 47.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002462/2.144, allocations: 0.7716 MB / 0.7449 GB, free: 46.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.66e-05/2.144, allocations: 31.94 kB / 0.745 GB, free: 46.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001595/2.144, allocations: 39.94 kB / 0.745 GB, free: 46.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002022/2.146, allocations: 0.8889 MB / 0.7459 GB, free: 45.46 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001947/2.148, allocations: 0.9421 MB / 0.7468 GB, free: 44.47 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.524e-05/2.148, allocations: 11.84 kB / 0.7468 GB, free: 44.46 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/2.148, allocations: 0 / 0.7468 GB, free: 44.46 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001341/2.148, allocations: 65.27 kB / 0.7469 GB, free: 44.39 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008893/2.157, allocations: 4.269 MB / 0.751 GB, free: 39.91 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/2.159, allocations: 0.5158 MB / 0.7515 GB, free: 39.38 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000552/2.159, allocations: 282.1 kB / 0.7518 GB, free: 39.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003373/2.163, allocations: 1.961 MB / 0.7537 GB, free: 36.95 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/2.163, allocations: 34.89 kB / 0.7538 GB, free: 36.9 MB / 362.7 MB Notification: Performance of pre-optimization done (n=40): time 4.208e-06/2.163, allocations: 0 / 0.7538 GB, free: 36.9 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.008288/2.171, allocations: 1.732 MB / 0.7555 GB, free: 35.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.631e-05/2.171, allocations: 158.2 kB / 0.7556 GB, free: 34.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001155/2.172, allocations: 0.6131 MB / 0.7562 GB, free: 34.3 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/2.172, allocations: 37.64 kB / 0.7562 GB, free: 34.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00038/2.173, allocations: 0.5161 MB / 0.7567 GB, free: 33.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/2.173, allocations: 157.8 kB / 0.7569 GB, free: 33.58 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.881e-05/2.173, allocations: 0 / 0.7569 GB, free: 33.58 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.96e-05/2.173, allocations: 346.8 kB / 0.7572 GB, free: 33.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006543/2.174, allocations: 286.5 kB / 0.7575 GB, free: 32.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008081/2.175, allocations: 0.6332 MB / 0.7581 GB, free: 32.15 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/2.186, allocations: 1.376 MB / 0.7595 GB, free: 30.77 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.526e-05/2.186, allocations: 0 / 0.7595 GB, free: 30.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.01271/2.198, allocations: 1.952 MB / 0.7614 GB, free: 28.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008383/2.199, allocations: 4.442 MB / 0.7657 GB, free: 24.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.864e-05/2.199, allocations: 15.94 kB / 0.7657 GB, free: 24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009665/2.2, allocations: 161.6 kB / 0.7659 GB, free: 23.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/2.202, allocations: 187.7 kB / 0.7661 GB, free: 23.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/2.204, allocations: 1.487 MB / 0.7675 GB, free: 22.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00147/2.206, allocations: 43.95 kB / 0.7675 GB, free: 22.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/2.206, allocations: 47.98 kB / 0.7676 GB, free: 22.03 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/2.206, allocations: 4 kB / 0.7676 GB, free: 22.02 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01215/2.218, allocations: 1.818 MB / 0.7694 GB, free: 20.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.486e-05/2.218, allocations: 15.95 kB / 0.7694 GB, free: 20.18 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007566/2.219, allocations: 141.6 kB / 0.7695 GB, free: 20.04 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001293/2.22, allocations: 191.7 kB / 0.7697 GB, free: 19.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002238/2.223, allocations: 1.378 MB / 0.771 GB, free: 18.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001129/2.224, allocations: 55.88 kB / 0.7711 GB, free: 18.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001264/2.224, allocations: 44 kB / 0.7711 GB, free: 18.32 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * 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 (109): * Single equations (assignments): 107 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002951/2.224, allocations: 140.7 kB / 0.7713 GB, free: 18.18 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003071/2.227, allocations: 0.6811 MB / 0.7719 GB, free: 17.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/2.228, allocations: 86.92 kB / 0.772 GB, free: 17.39 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003195/2.231, allocations: 0.7885 MB / 0.7728 GB, free: 16.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/2.231, allocations: 7.938 kB / 0.7728 GB, free: 16.58 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/2.231, allocations: 0 / 0.7728 GB, free: 16.58 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.968e-06/2.231, allocations: 3.984 kB / 0.7728 GB, free: 16.58 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004348/2.235, allocations: 1.497 MB / 0.7743 GB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.057e-06/2.235, allocations: 4 kB / 0.7743 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000695/2.236, allocations: 79.89 kB / 0.7743 GB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008872/2.237, allocations: 149.6 kB / 0.7745 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.02e-05/2.237, allocations: 8 kB / 0.7745 GB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001945/2.239, allocations: 1.389 MB / 0.7759 GB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/2.239, allocations: 0 / 0.7759 GB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003004/2.242, allocations: 1.103 MB / 0.7769 GB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003613/2.242, allocations: 168 kB / 0.7771 GB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002356/2.243, allocations: 4 kB / 0.7771 GB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008257/2.244, allocations: 31.88 kB / 0.7771 GB, free: 12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/2.244, allocations: 60.56 kB / 0.7772 GB, free: 11.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.656e-05/2.244, allocations: 15.98 kB / 0.7772 GB, free: 11.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007853/2.245, allocations: 467.1 kB / 0.7776 GB, free: 11.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.81e-07/2.245, allocations: 0 / 0.7776 GB, free: 11.47 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003311/2.248, allocations: 0.7531 MB / 0.7784 GB, free: 10.72 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005778/2.254, allocations: 2.478 MB / 0.7808 GB, free: 8.254 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003191/2.257, allocations: 1.135 MB / 0.7819 GB, free: 7.125 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/2.257, allocations: 0 / 0.7819 GB, free: 7.125 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007872/2.258, allocations: 299.1 kB / 0.7822 GB, free: 6.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002533/2.26, allocations: 306.6 kB / 0.7825 GB, free: 6.535 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/2.266, allocations: 1.72 MB / 0.7842 GB, free: 4.758 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005595/2.266, allocations: 1.049 MB / 0.7852 GB, free: 3.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007066/2.267, allocations: 323.3 kB / 0.7855 GB, free: 3.367 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/2.267, allocations: 4 kB / 0.7855 GB, free: 3.363 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.575/5.843, allocations: 28.88 MB / 0.8137 GB, free: 65.02 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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat