Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.023/2.023, allocations: 209.3 MB / 221.9 MB, free: 1.938 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.834e-05/3.854e-05, allocations: 4 kB / 273.1 MB, free: 0.6406 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1141, allocations: 48.69 MB / 321.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.056/1.17, allocations: 323.8 MB / 0.6305 GB, free: 24.82 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003184/1.17, allocations: 87.94 kB / 0.6306 GB, free: 24.73 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.791/1.961, allocations: 141.4 MB / 0.7687 GB, free: 54.31 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.535e-06/1.961, allocations: 0 / 0.7687 GB, free: 54.31 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.636e-05/1.962, allocations: 20 kB / 0.7687 GB, free: 54.29 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.003872/1.965, allocations: 1.174 MB / 0.7699 GB, free: 53.07 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.34e-05/1.965, allocations: 8.031 kB / 0.7699 GB, free: 53.06 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002806/1.966, allocations: 106.5 kB / 0.77 GB, free: 52.95 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006084/1.966, allocations: 106.9 kB / 0.7701 GB, free: 52.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/1.969, allocations: 0.6985 MB / 0.7708 GB, free: 52.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/1.969, allocations: 108.7 kB / 0.7709 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001649/1.969, allocations: 59.92 kB / 0.7709 GB, free: 51.92 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0023/1.971, allocations: 0.9997 MB / 0.7719 GB, free: 50.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.436e-05/1.971, allocations: 4 kB / 0.7719 GB, free: 50.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001319/1.971, allocations: 24 kB / 0.7719 GB, free: 50.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001047/1.972, allocations: 49.28 kB / 0.772 GB, free: 50.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/1.974, allocations: 0.8834 MB / 0.7728 GB, free: 49.92 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009339/1.983, allocations: 4.002 MB / 0.7767 GB, free: 45.72 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001541/1.985, allocations: 0.6178 MB / 0.7773 GB, free: 45.09 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008631/1.986, allocations: 378 kB / 0.7777 GB, free: 44.72 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004857/1.991, allocations: 2.369 MB / 0.78 GB, free: 42.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009128/1.991, allocations: 441.6 kB / 0.7804 GB, free: 41.64 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 4.148e-06/1.992, allocations: 0 / 0.7804 GB, free: 41.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.006119/1.998, allocations: 1.996 MB / 0.7824 GB, free: 39.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/1.998, allocations: 170.2 kB / 0.7825 GB, free: 39.37 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/1.999, allocations: 0.6796 MB / 0.7832 GB, free: 38.68 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/1.999, allocations: 33.7 kB / 0.7832 GB, free: 38.64 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003154/2, allocations: 457.6 kB / 0.7837 GB, free: 38.19 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002078/2, allocations: 165.7 kB / 0.7838 GB, free: 38.03 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.628e-05/2, allocations: 20 kB / 0.7839 GB, free: 38.01 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.056e-05/2, allocations: 342.8 kB / 0.7842 GB, free: 37.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008435/2.001, allocations: 349.6 kB / 0.7845 GB, free: 37.32 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009833/2.002, allocations: 0.6227 MB / 0.7851 GB, free: 36.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009584/2.003, allocations: 452.8 kB / 0.7856 GB, free: 36.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/2.003, allocations: 0 / 0.7856 GB, free: 36.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003174/2.006, allocations: 1.209 MB / 0.7867 GB, free: 34.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007643/2.007, allocations: 3.424 MB / 0.7901 GB, free: 31.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/2.007, allocations: 12 kB / 0.7901 GB, free: 31.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001513/2.008, allocations: 345.4 kB / 0.7904 GB, free: 30.84 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001231/2.01, allocations: 167.7 kB / 0.7906 GB, free: 30.68 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001735/2.012, allocations: 1.432 MB / 0.792 GB, free: 29.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/2.013, allocations: 55.95 kB / 0.792 GB, free: 29.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001662/2.013, allocations: 39.98 kB / 0.7921 GB, free: 29.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/2.013, allocations: 7.938 kB / 0.7921 GB, free: 29.09 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00292/2.016, allocations: 1.113 MB / 0.7932 GB, free: 27.97 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.208e-05/2.016, allocations: 11.98 kB / 0.7932 GB, free: 27.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000968/2.017, allocations: 257.9 kB / 0.7934 GB, free: 27.7 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001193/2.018, allocations: 159.7 kB / 0.7936 GB, free: 27.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/2.021, allocations: 2.328 MB / 0.7958 GB, free: 25.05 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/2.022, allocations: 43.98 kB / 0.7959 GB, free: 25.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001156/2.022, allocations: 39.98 kB / 0.7959 GB, free: 24.97 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003737/2.022, allocations: 202.3 kB / 0.7961 GB, free: 24.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002471/2.023, allocations: 86.97 kB / 0.7962 GB, free: 24.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003204/2.026, allocations: 1.072 MB / 0.7973 GB, free: 23.58 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.25e-05/2.026, allocations: 8 kB / 0.7973 GB, free: 23.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/2.026, allocations: 0 / 0.7973 GB, free: 23.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/2.026, allocations: 3.984 kB / 0.7973 GB, free: 23.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004412/2.03, allocations: 1.866 MB / 0.7991 GB, free: 21.63 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/2.03, allocations: 4 kB / 0.7991 GB, free: 21.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007501/2.031, allocations: 75.89 kB / 0.7992 GB, free: 21.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00129/2.033, allocations: 329.4 kB / 0.7995 GB, free: 21.22 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001233/2.033, allocations: 19.94 kB / 0.7995 GB, free: 21.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001602/2.034, allocations: 1.421 MB / 0.8009 GB, free: 19.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/2.034, allocations: 0 / 0.8009 GB, free: 19.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003534/2.038, allocations: 1.527 MB / 0.8024 GB, free: 18.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007428/2.039, allocations: 244 kB / 0.8026 GB, free: 17.92 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001952/2.039, allocations: 16 kB / 0.8026 GB, free: 17.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009471/2.04, allocations: 47.88 kB / 0.8027 GB, free: 17.86 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/2.04, allocations: 48.36 kB / 0.8027 GB, free: 17.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/2.04, allocations: 23.98 kB / 0.8027 GB, free: 17.79 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000962/2.041, allocations: 0.5264 MB / 0.8033 GB, free: 17.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.4e-07/2.041, allocations: 3.938 kB / 0.8033 GB, free: 17.26 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003296/2.044, allocations: 0.6479 MB / 0.8039 GB, free: 16.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 1 * 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 {2 1,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.005583/2.05, allocations: 2.497 MB / 0.8063 GB, free: 14.08 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004131/2.054, allocations: 1.533 MB / 0.8078 GB, free: 12.52 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/2.054, allocations: 7.938 kB / 0.8078 GB, free: 12.51 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001374/2.056, allocations: 447.4 kB / 0.8083 GB, free: 12.06 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00223/2.058, allocations: 277.9 kB / 0.8085 GB, free: 11.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00654/2.065, allocations: 1.738 MB / 0.8102 GB, free: 10 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000609/2.065, allocations: 1.017 MB / 0.8112 GB, free: 8.957 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007935/2.066, allocations: 299.3 kB / 0.8115 GB, free: 8.664 MB / 426.7 MB Notification: Performance of SimCode: time 2.114e-06/2.066, allocations: 0 / 0.8115 GB, free: 8.664 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.644/5.71, allocations: 25.51 MB / 0.8364 GB, free: 88.55 MB / 426.7 MB