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.716/1.716, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.189e-05, allocations: 4 kB / 225.1 MB, free: 2.613 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2542/0.2542, allocations: 38.76 MB / 263.8 MB, free: 9.758 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.889/1.143, allocations: 318.3 MB / 0.5685 GB, free: 65.59 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/1.144, allocations: 92.81 kB / 0.5686 GB, free: 65.55 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8001/1.944, allocations: 164.6 MB / 0.7293 GB, free: 54.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.305e-06/1.944, allocations: 0 / 0.7293 GB, free: 54.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.507e-05/1.944, allocations: 27.84 kB / 0.7293 GB, free: 54.73 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.003555/1.948, allocations: 1.112 MB / 0.7304 GB, free: 53.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/1.948, allocations: 12.03 kB / 0.7304 GB, free: 53.56 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002312/1.948, allocations: 98.5 kB / 0.7305 GB, free: 53.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005427/1.948, allocations: 98.95 kB / 0.7306 GB, free: 53.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002232/1.951, allocations: 0.6678 MB / 0.7313 GB, free: 52.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.788e-05/1.951, allocations: 49.28 kB / 0.7313 GB, free: 52.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001508/1.951, allocations: 55.98 kB / 0.7314 GB, free: 52.55 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/1.953, allocations: 0.8616 MB / 0.7322 GB, free: 51.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.561e-05/1.953, allocations: 7.938 kB / 0.7322 GB, free: 51.62 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001202/1.953, allocations: 27.98 kB / 0.7323 GB, free: 51.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.501e-05/1.953, allocations: 45.28 kB / 0.7323 GB, free: 51.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001961/1.955, allocations: 0.7741 MB / 0.733 GB, free: 50.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007727/1.963, allocations: 3.836 MB / 0.7368 GB, free: 46.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0012/1.964, allocations: 479.7 kB / 0.7373 GB, free: 46.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005199/1.965, allocations: 245.4 kB / 0.7375 GB, free: 45.96 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003528/1.968, allocations: 1.965 MB / 0.7394 GB, free: 43.78 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/1.968, allocations: 38.56 kB / 0.7394 GB, free: 43.73 MB / 362.7 MB Notification: Performance of pre-optimization done (n=37): time 3.336e-06/1.968, allocations: 0 / 0.7394 GB, free: 43.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.003816/1.972, allocations: 1.229 MB / 0.7406 GB, free: 42.45 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.329e-05/1.972, allocations: 140.5 kB / 0.7408 GB, free: 42.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/1.973, allocations: 0.609 MB / 0.7414 GB, free: 41.66 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/1.974, allocations: 33.7 kB / 0.7414 GB, free: 41.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003286/1.974, allocations: 457.4 kB / 0.7418 GB, free: 41.18 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/1.974, allocations: 161.8 kB / 0.742 GB, free: 41.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.07e-05/1.974, allocations: 16 kB / 0.742 GB, free: 41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.465e-05/1.974, allocations: 342.8 kB / 0.7423 GB, free: 40.66 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000611/1.975, allocations: 233.9 kB / 0.7426 GB, free: 40.43 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000753/1.976, allocations: 0.5599 MB / 0.7431 GB, free: 39.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007329/1.976, allocations: 319 kB / 0.7434 GB, free: 39.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/1.976, allocations: 0 / 0.7434 GB, free: 39.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002069/1.978, allocations: 0.8356 MB / 0.7442 GB, free: 38.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007442/1.979, allocations: 3.919 MB / 0.7481 GB, free: 34.35 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/1.979, allocations: 12 kB / 0.7481 GB, free: 34.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00137/1.981, allocations: 120.7 kB / 0.7482 GB, free: 34.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002287/1.983, allocations: 239.6 kB / 0.7484 GB, free: 33.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000998/1.984, allocations: 1.209 MB / 0.7496 GB, free: 32.72 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001319/1.985, allocations: 68 kB / 0.7497 GB, free: 32.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001224/1.986, allocations: 36 kB / 0.7497 GB, free: 32.62 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/1.986, allocations: 8.734 kB / 0.7497 GB, free: 32.61 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001931/1.987, allocations: 0.7834 MB / 0.7505 GB, free: 31.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.504e-05/1.988, allocations: 15.94 kB / 0.7505 GB, free: 31.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/1.989, allocations: 112.9 kB / 0.7506 GB, free: 31.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/1.991, allocations: 219.7 kB / 0.7508 GB, free: 31.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004453/1.991, allocations: 0.5953 MB / 0.7514 GB, free: 30.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009312/1.992, allocations: 59.89 kB / 0.7514 GB, free: 30.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001052/1.992, allocations: 43.98 kB / 0.7515 GB, free: 30.76 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.0002933/1.992, allocations: 168.6 kB / 0.7516 GB, free: 30.59 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/1.993, allocations: 75.14 kB / 0.7517 GB, free: 30.51 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/1.995, allocations: 0.735 MB / 0.7524 GB, free: 29.75 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.464e-05/1.995, allocations: 11.98 kB / 0.7524 GB, free: 29.74 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/1.995, allocations: 8 kB / 0.7524 GB, free: 29.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.995, allocations: 3.984 kB / 0.7524 GB, free: 29.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003413/1.998, allocations: 1.418 MB / 0.7538 GB, free: 28.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/1.998, allocations: 4 kB / 0.7538 GB, free: 28.24 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/2, allocations: 139.8 kB / 0.754 GB, free: 28.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007258/2, allocations: 92.81 kB / 0.7541 GB, free: 28.01 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-05/2.001, allocations: 19.94 kB / 0.7541 GB, free: 27.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007054/2.001, allocations: 1.17 MB / 0.7552 GB, free: 26.77 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.159e-06/2.001, allocations: 12.08 kB / 0.7552 GB, free: 26.76 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002122/2.003, allocations: 0.9962 MB / 0.7562 GB, free: 25.72 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003112/2.004, allocations: 156.1 kB / 0.7564 GB, free: 25.55 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001766/2.004, allocations: 19.98 kB / 0.7564 GB, free: 25.53 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007855/2.005, allocations: 39.83 kB / 0.7564 GB, free: 25.49 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001738/2.005, allocations: 52.48 kB / 0.7565 GB, free: 25.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.89e-05/2.005, allocations: 27.98 kB / 0.7565 GB, free: 25.41 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008602/2.006, allocations: 471.1 kB / 0.7569 GB, free: 24.95 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.006, allocations: 0 / 0.7569 GB, free: 24.95 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002682/2.009, allocations: 0.6323 MB / 0.7576 GB, free: 24.32 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.004411/2.013, allocations: 2.314 MB / 0.7598 GB, free: 21.97 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003663/2.017, allocations: 1.073 MB / 0.7609 GB, free: 20.9 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/2.017, allocations: 0 / 0.7609 GB, free: 20.9 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001167/2.018, allocations: 331 kB / 0.7612 GB, free: 20.58 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002402/2.021, allocations: 279 kB / 0.7614 GB, free: 20.31 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004687/2.025, allocations: 1.514 MB / 0.7629 GB, free: 18.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004887/2.026, allocations: 0.9953 MB / 0.7639 GB, free: 17.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000715/2.027, allocations: 303.3 kB / 0.7642 GB, free: 17.42 MB / 362.7 MB Notification: Performance of SimCode: time 1.443e-06/2.027, allocations: 0 / 0.7642 GB, free: 17.42 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.381/5.407, allocations: 25.24 MB / 0.7888 GB, free: 71.74 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