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.082/2.082, allocations: 209.4 MB / 216.9 MB, free: 6.66 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.596e-05/2.592e-05, allocations: 0 / 267.6 MB, free: 5.324 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 48.7 MB / 316.3 MB, free: 4.531 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.008/1.118, allocations: 323.4 MB / 0.6247 GB, free: 0.5625 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/1.119, allocations: 83.95 kB / 0.6248 GB, free: 0.5195 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8611/1.98, allocations: 140.3 MB / 0.7618 GB, free: 53.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.615e-06/1.98, allocations: 0 / 0.7618 GB, free: 53.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001221/1.98, allocations: 22.42 kB / 0.7618 GB, free: 53.11 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.005821/1.986, allocations: 1.17 MB / 0.7629 GB, free: 51.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.524e-05/1.986, allocations: 12.03 kB / 0.7629 GB, free: 51.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001226/1.987, allocations: 114.9 kB / 0.7631 GB, free: 51.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003485/1.991, allocations: 0.7022 MB / 0.7637 GB, free: 51.04 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/1.991, allocations: 84.7 kB / 0.7638 GB, free: 50.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003168/1.991, allocations: 32 kB / 0.7639 GB, free: 50.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003147/1.994, allocations: 0.8146 MB / 0.7647 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003086/1.997, allocations: 0.923 MB / 0.7656 GB, free: 49.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.605e-05/1.998, allocations: 4 kB / 0.7656 GB, free: 49.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/1.998, allocations: 4 kB / 0.7656 GB, free: 49.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000112/1.998, allocations: 49.28 kB / 0.7656 GB, free: 49.07 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008884/2.007, allocations: 3.856 MB / 0.7694 GB, free: 45.04 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001299/2.008, allocations: 0.5896 MB / 0.7699 GB, free: 44.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007145/2.009, allocations: 370 kB / 0.7703 GB, free: 44.07 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004766/2.014, allocations: 2.33 MB / 0.7726 GB, free: 41.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000809/2.014, allocations: 417.7 kB / 0.773 GB, free: 41.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 4.258e-06/2.014, allocations: 0 / 0.773 GB, free: 41.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.01096/2.025, allocations: 2.445 MB / 0.7754 GB, free: 38.55 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.41e-05/2.026, allocations: 166.2 kB / 0.7755 GB, free: 38.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009245/2.026, allocations: 0.5425 MB / 0.7761 GB, free: 37.8 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001609/2.027, allocations: 29.7 kB / 0.7761 GB, free: 37.77 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003254/2.027, allocations: 473.2 kB / 0.7765 GB, free: 37.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001989/2.027, allocations: 157.8 kB / 0.7767 GB, free: 37.15 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.157e-05/2.027, allocations: 0 / 0.7767 GB, free: 37.15 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.993e-05/2.027, allocations: 342.8 kB / 0.777 GB, free: 36.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000736/2.028, allocations: 334 kB / 0.7773 GB, free: 36.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000888/2.029, allocations: 0.6149 MB / 0.7779 GB, free: 35.73 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007254/2.036, allocations: 1.036 MB / 0.7789 GB, free: 34.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.552e-05/2.036, allocations: 4 kB / 0.7789 GB, free: 34.69 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.009591/2.046, allocations: 1.757 MB / 0.7807 GB, free: 32.92 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006972/2.047, allocations: 3.429 MB / 0.784 GB, free: 29.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.998e-05/2.047, allocations: 15.98 kB / 0.784 GB, free: 29.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001162/2.048, allocations: 317.5 kB / 0.7843 GB, free: 28.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001236/2.049, allocations: 171.7 kB / 0.7845 GB, free: 28.72 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003078/2.052, allocations: 1.632 MB / 0.7861 GB, free: 27.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001316/2.054, allocations: 31.89 kB / 0.7861 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001336/2.054, allocations: 48.05 kB / 0.7862 GB, free: 26.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.085e-05/2.054, allocations: 4 kB / 0.7862 GB, free: 26.95 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007726/2.062, allocations: 1.471 MB / 0.7876 GB, free: 25.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/2.062, allocations: 12.06 kB / 0.7876 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008598/2.063, allocations: 246 kB / 0.7878 GB, free: 25.22 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/2.064, allocations: 163.7 kB / 0.788 GB, free: 25.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002274/2.066, allocations: 2.276 MB / 0.7902 GB, free: 22.64 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009781/2.067, allocations: 28.08 kB / 0.7903 GB, free: 22.62 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001088/2.067, allocations: 47.98 kB / 0.7903 GB, free: 22.57 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.0003698/2.068, allocations: 178.4 kB / 0.7905 GB, free: 22.38 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004306/2.072, allocations: 1.068 MB / 0.7915 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/2.072, allocations: 75.16 kB / 0.7916 GB, free: 21.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004762/2.077, allocations: 1.182 MB / 0.7927 GB, free: 20.03 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.17e-05/2.077, allocations: 8 kB / 0.7927 GB, free: 20.02 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/2.077, allocations: 0 / 0.7927 GB, free: 20.02 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.848e-06/2.077, allocations: 7.984 kB / 0.7928 GB, free: 20.01 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005743/2.083, allocations: 1.912 MB / 0.7946 GB, free: 18.05 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.258e-06/2.083, allocations: 12 kB / 0.7946 GB, free: 18.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007222/2.084, allocations: 75.89 kB / 0.7947 GB, free: 17.96 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/2.085, allocations: 301.5 kB / 0.795 GB, free: 17.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.491e-05/2.085, allocations: 15.98 kB / 0.795 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002919/2.088, allocations: 1.604 MB / 0.7966 GB, free: 15.99 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.135e-06/2.088, allocations: 3.984 kB / 0.7966 GB, free: 15.98 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004933/2.093, allocations: 1.631 MB / 0.7982 GB, free: 14.33 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006473/2.093, allocations: 228.1 kB / 0.7984 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002254/2.094, allocations: 4 kB / 0.7984 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008957/2.094, allocations: 32.03 kB / 0.7984 GB, free: 14.05 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/2.095, allocations: 48.36 kB / 0.7985 GB, free: 14.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.461e-05/2.095, allocations: 27.98 kB / 0.7985 GB, free: 13.98 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006622/2.095, allocations: 415.1 kB / 0.7989 GB, free: 13.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.232e-06/2.095, allocations: 0 / 0.7989 GB, free: 13.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002754/2.098, allocations: 0.6205 MB / 0.7995 GB, free: 12.96 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.00689/2.105, allocations: 2.606 MB / 0.802 GB, free: 10.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003683/2.109, allocations: 1.467 MB / 0.8035 GB, free: 8.828 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.049e-06/2.109, allocations: 0 / 0.8035 GB, free: 8.828 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001282/2.11, allocations: 440.8 kB / 0.8039 GB, free: 8.387 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/2.112, allocations: 251.7 kB / 0.8041 GB, free: 8.141 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005911/2.118, allocations: 1.648 MB / 0.8057 GB, free: 6.438 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005875/2.119, allocations: 1.024 MB / 0.8067 GB, free: 5.387 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007006/2.12, allocations: 299.3 kB / 0.807 GB, free: 5.094 MB / 426.7 MB Notification: Performance of SimCode: time 1.021e-06/2.12, allocations: 0 / 0.807 GB, free: 5.094 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.83/5.95, allocations: 25.12 MB / 0.8316 GB, free: 91.94 MB / 426.7 MB