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.175/2.175, allocations: 209.3 MB / 221.9 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 5.091e-05/5.104e-05, allocations: 4 kB / 273.2 MB, free: 0.6367 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 48.7 MB / 321.9 MB, free: 15.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.075/1.186, allocations: 323.8 MB / 0.6305 GB, free: 24.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/1.186, allocations: 81.27 kB / 0.6306 GB, free: 24.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7955/1.982, allocations: 141.4 MB / 0.7687 GB, free: 54 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/1.982, allocations: 0 / 0.7687 GB, free: 54 MB / 426.7 MB Notification: Performance of Transformations before backend: time 9.716e-05/1.982, allocations: 20 kB / 0.7687 GB, free: 53.98 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.00447/1.986, allocations: 1.171 MB / 0.7699 GB, free: 52.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.538e-05/1.986, allocations: 12.03 kB / 0.7699 GB, free: 52.75 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004318/1.987, allocations: 106.5 kB / 0.77 GB, free: 52.64 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007084/1.988, allocations: 110.9 kB / 0.7701 GB, free: 52.53 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002595/1.99, allocations: 0.7024 MB / 0.7708 GB, free: 51.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/1.99, allocations: 104.7 kB / 0.7709 GB, free: 51.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002589/1.991, allocations: 55.98 kB / 0.7709 GB, free: 51.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002611/1.993, allocations: 0.9855 MB / 0.7719 GB, free: 50.58 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.465e-05/1.993, allocations: 3.938 kB / 0.7719 GB, free: 50.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001594/1.994, allocations: 27.98 kB / 0.7719 GB, free: 50.55 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001135/1.994, allocations: 49.28 kB / 0.772 GB, free: 50.5 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002359/1.996, allocations: 0.8731 MB / 0.7728 GB, free: 49.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01026/2.006, allocations: 4.002 MB / 0.7767 GB, free: 45.43 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/2.008, allocations: 0.6169 MB / 0.7773 GB, free: 44.8 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008646/2.009, allocations: 378 kB / 0.7777 GB, free: 44.43 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004889/2.014, allocations: 2.362 MB / 0.78 GB, free: 41.82 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009352/2.015, allocations: 433.7 kB / 0.7804 GB, free: 41.37 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 4.038e-06/2.015, allocations: 0 / 0.7804 GB, free: 41.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.0062/2.021, allocations: 2.004 MB / 0.7824 GB, free: 39.29 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.305e-05/2.021, allocations: 170.2 kB / 0.7825 GB, free: 39.09 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001258/2.022, allocations: 0.6796 MB / 0.7832 GB, free: 38.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001943/2.023, allocations: 33.7 kB / 0.7832 GB, free: 38.36 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003357/2.023, allocations: 457.6 kB / 0.7837 GB, free: 37.91 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002294/2.023, allocations: 161.8 kB / 0.7838 GB, free: 37.75 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.713e-05/2.023, allocations: 20 kB / 0.7839 GB, free: 37.73 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.97e-05/2.023, allocations: 346.8 kB / 0.7842 GB, free: 37.38 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008405/2.024, allocations: 345.6 kB / 0.7845 GB, free: 37.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009554/2.025, allocations: 0.6176 MB / 0.7851 GB, free: 36.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009755/2.026, allocations: 452.8 kB / 0.7855 GB, free: 35.85 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.404e-06/2.026, allocations: 0 / 0.7855 GB, free: 35.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.003164/2.029, allocations: 1.189 MB / 0.7867 GB, free: 34.64 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007466/2.03, allocations: 3.432 MB / 0.7901 GB, free: 30.94 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.111e-05/2.03, allocations: 12 kB / 0.7901 GB, free: 30.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001539/2.032, allocations: 333.5 kB / 0.7904 GB, free: 30.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/2.033, allocations: 163.7 kB / 0.7905 GB, free: 30.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001737/2.035, allocations: 1.436 MB / 0.792 GB, free: 28.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001384/2.036, allocations: 56 kB / 0.792 GB, free: 28.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001745/2.037, allocations: 43.98 kB / 0.792 GB, free: 28.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/2.037, allocations: 4 kB / 0.7921 GB, free: 28.84 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002886/2.039, allocations: 1.082 MB / 0.7931 GB, free: 27.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/2.04, allocations: 8 kB / 0.7931 GB, free: 27.74 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009771/2.041, allocations: 257.9 kB / 0.7934 GB, free: 27.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00119/2.042, allocations: 159.7 kB / 0.7935 GB, free: 27.33 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002484/2.044, allocations: 2.324 MB / 0.7958 GB, free: 24.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001078/2.045, allocations: 59.75 kB / 0.7958 GB, free: 24.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001543/2.046, allocations: 39.98 kB / 0.7959 GB, free: 24.75 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.0004253/2.046, allocations: 197.7 kB / 0.7961 GB, free: 24.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/2.046, allocations: 83 kB / 0.7961 GB, free: 24.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003313/2.05, allocations: 1.076 MB / 0.7972 GB, free: 23.36 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.214e-05/2.05, allocations: 4 kB / 0.7972 GB, free: 23.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/2.05, allocations: 0 / 0.7972 GB, free: 23.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.071e-05/2.05, allocations: 7.984 kB / 0.7972 GB, free: 23.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004352/2.054, allocations: 1.866 MB / 0.799 GB, free: 21.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/2.054, allocations: 0 / 0.799 GB, free: 21.41 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007744/2.055, allocations: 75.89 kB / 0.7991 GB, free: 21.34 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00131/2.056, allocations: 337.4 kB / 0.7994 GB, free: 21 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/2.056, allocations: 15.98 kB / 0.7994 GB, free: 20.98 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/2.058, allocations: 1.421 MB / 0.8008 GB, free: 19.51 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.269e-06/2.058, allocations: 8.016 kB / 0.8008 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00347/2.062, allocations: 1.519 MB / 0.8023 GB, free: 17.96 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006934/2.062, allocations: 248 kB / 0.8026 GB, free: 17.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002014/2.063, allocations: 8 kB / 0.8026 GB, free: 17.69 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009913/2.064, allocations: 47.88 kB / 0.8026 GB, free: 17.64 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001875/2.064, allocations: 52.36 kB / 0.8027 GB, free: 17.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/2.064, allocations: 27.98 kB / 0.8027 GB, free: 17.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009451/2.065, allocations: 0.5108 MB / 0.8032 GB, free: 17.06 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.21e-07/2.065, allocations: 0 / 0.8032 GB, free: 17.06 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003135/2.068, allocations: 0.6556 MB / 0.8038 GB, free: 16.4 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.005365/2.073, allocations: 2.516 MB / 0.8063 GB, free: 13.86 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004196/2.078, allocations: 1.506 MB / 0.8078 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/2.078, allocations: 0 / 0.8078 GB, free: 12.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001425/2.079, allocations: 450.1 kB / 0.8082 GB, free: 11.87 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00235/2.082, allocations: 267 kB / 0.8084 GB, free: 11.61 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006125/2.088, allocations: 1.722 MB / 0.8101 GB, free: 9.832 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005592/2.088, allocations: 1.025 MB / 0.8111 GB, free: 8.781 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006874/2.089, allocations: 299.3 kB / 0.8114 GB, free: 8.488 MB / 426.7 MB Notification: Performance of SimCode: time 1.803e-06/2.089, allocations: 0 / 0.8114 GB, free: 8.488 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.645/5.734, allocations: 25.49 MB / 0.8363 GB, free: 88.59 MB / 426.7 MB