Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.738/2.738, allocations: 270 MB / 282.6 MB, free: 1.934 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.46e-05/3.484e-05, allocations: 4 kB / 347.1 MB, free: 3.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4295/0.4296, allocations: 61.86 MB / 408.9 MB, free: 10.82 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.26/1.69, allocations: 336.4 MB / 0.7278 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002692/1.69, allocations: 91.89 kB / 0.7279 GB, free: 142.3 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.5226/2.213, allocations: 146 MB / 0.8705 GB, free: 51.38 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.375e-06/2.213, allocations: 4 kB / 0.8705 GB, free: 51.38 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001124/2.213, allocations: 20 kB / 0.8705 GB, free: 51.36 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.004833/2.218, allocations: 1.187 MB / 0.8717 GB, free: 50.12 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.582e-05/2.218, allocations: 8.031 kB / 0.8717 GB, free: 50.11 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000374/2.218, allocations: 106.5 kB / 0.8718 GB, free: 50 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006457/2.219, allocations: 110.8 kB / 0.8719 GB, free: 49.89 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002337/2.221, allocations: 0.6752 MB / 0.8726 GB, free: 49.18 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001492/2.222, allocations: 108.7 kB / 0.8727 GB, free: 49.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001981/2.222, allocations: 52 kB / 0.8727 GB, free: 49 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002445/2.224, allocations: 1.01 MB / 0.8737 GB, free: 47.95 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.214e-05/2.224, allocations: 0 / 0.8737 GB, free: 47.95 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001384/2.224, allocations: 31.98 kB / 0.8737 GB, free: 47.91 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001133/2.225, allocations: 57.23 kB / 0.8738 GB, free: 47.86 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002134/2.227, allocations: 0.8848 MB / 0.8747 GB, free: 46.97 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00937/2.236, allocations: 4.017 MB / 0.8786 GB, free: 42.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/2.238, allocations: 0.6492 MB / 0.8792 GB, free: 42.11 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008505/2.239, allocations: 410.2 kB / 0.8796 GB, free: 41.71 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00479/2.243, allocations: 2.42 MB / 0.882 GB, free: 39.04 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001028/2.244, allocations: 0.4992 MB / 0.8825 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 3.878e-06/2.244, allocations: 0 / 0.8825 GB, free: 38.51 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.006198/2.251, allocations: 2.123 MB / 0.8845 GB, free: 36.31 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.652e-05/2.251, allocations: 243.8 kB / 0.8848 GB, free: 36.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001383/2.252, allocations: 0.7346 MB / 0.8855 GB, free: 35.27 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001435/2.252, allocations: 37.7 kB / 0.8855 GB, free: 35.23 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003158/2.253, allocations: 430.3 kB / 0.8859 GB, free: 34.8 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/2.253, allocations: 173.5 kB / 0.8861 GB, free: 34.63 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-05/2.253, allocations: 16 kB / 0.8861 GB, free: 34.62 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.927e-05/2.253, allocations: 346.8 kB / 0.8864 GB, free: 34.27 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000883/2.254, allocations: 369.3 kB / 0.8868 GB, free: 33.91 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00102/2.255, allocations: 0.5866 MB / 0.8874 GB, free: 33.21 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001018/2.256, allocations: 456.6 kB / 0.8878 GB, free: 32.76 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.303e-06/2.256, allocations: 4 kB / 0.8878 GB, free: 32.76 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003155/2.259, allocations: 1.209 MB / 0.889 GB, free: 31.53 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005307/2.26, allocations: 2.461 MB / 0.8914 GB, free: 28.87 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/2.26, allocations: 23.86 kB / 0.8914 GB, free: 28.85 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001421/2.261, allocations: 333.4 kB / 0.8917 GB, free: 28.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/2.262, allocations: 151.7 kB / 0.8919 GB, free: 28.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/2.264, allocations: 1.44 MB / 0.8933 GB, free: 26.88 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/2.266, allocations: 52 kB / 0.8933 GB, free: 26.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001328/2.266, allocations: 43.98 kB / 0.8934 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/2.266, allocations: 4 kB / 0.8934 GB, free: 26.78 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003067/2.269, allocations: 1.161 MB / 0.8945 GB, free: 25.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.441e-05/2.269, allocations: 16.02 kB / 0.8945 GB, free: 25.59 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/2.27, allocations: 309.5 kB / 0.8948 GB, free: 25.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001134/2.271, allocations: 151.9 kB / 0.895 GB, free: 25.13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/2.273, allocations: 1.417 MB / 0.8963 GB, free: 23.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001082/2.274, allocations: 56.03 kB / 0.8964 GB, free: 23.61 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001243/2.274, allocations: 39.98 kB / 0.8964 GB, free: 23.57 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * 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.0003812/2.274, allocations: 195 kB / 0.8966 GB, free: 23.36 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002931/2.275, allocations: 94.86 kB / 0.8967 GB, free: 23.27 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003751/2.278, allocations: 1.12 MB / 0.8978 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.19e-05/2.279, allocations: 8 kB / 0.8978 GB, free: 22.12 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/2.279, allocations: 3.953 kB / 0.8978 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/2.279, allocations: 0 / 0.8978 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004563/2.283, allocations: 1.977 MB / 0.8997 GB, free: 20.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/2.283, allocations: 4 kB / 0.8998 GB, free: 20.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007611/2.284, allocations: 79.89 kB / 0.8998 GB, free: 19.99 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001271/2.285, allocations: 329.5 kB / 0.9001 GB, free: 19.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.714e-05/2.285, allocations: 23.92 kB / 0.9002 GB, free: 19.64 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001617/2.287, allocations: 1.433 MB / 0.9016 GB, free: 18.15 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/2.287, allocations: 0 / 0.9016 GB, free: 18.15 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003638/2.291, allocations: 1.599 MB / 0.9031 GB, free: 16.52 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006954/2.291, allocations: 271.9 kB / 0.9034 GB, free: 16.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002245/2.292, allocations: 12 kB / 0.9034 GB, free: 16.23 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001084/2.293, allocations: 51.92 kB / 0.9034 GB, free: 16.18 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001789/2.293, allocations: 52.36 kB / 0.9035 GB, free: 16.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.972e-05/2.293, allocations: 27.98 kB / 0.9035 GB, free: 16.1 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001029/2.294, allocations: 0.5733 MB / 0.9041 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of sort global known variables: time 5.51e-07/2.294, allocations: 0 / 0.9041 GB, free: 15.53 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002693/2.297, allocations: 0.6947 MB / 0.9048 GB, free: 14.83 MB / 0.5261 GB 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: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * 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,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.005489/2.302, allocations: 2.609 MB / 0.9073 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00435/2.307, allocations: 1.496 MB / 0.9088 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/2.307, allocations: 0 / 0.9088 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001512/2.308, allocations: 492.8 kB / 0.9092 GB, free: 10.19 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002703/2.311, allocations: 323.3 kB / 0.9095 GB, free: 9.875 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005454/2.316, allocations: 1.689 MB / 0.9112 GB, free: 8.141 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005757/2.317, allocations: 1.029 MB / 0.9122 GB, free: 7.082 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007554/2.318, allocations: 311.2 kB / 0.9125 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of SimCode: time 1.633e-06/2.318, allocations: 0 / 0.9125 GB, free: 6.777 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.791/6.109, allocations: 26.82 MB / 0.9387 GB, free: 128.4 MB / 0.5261 GB