Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Vessels_TestSimpleTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.402/2.402, allocations: 235 MB / 247.6 MB, free: 14.56 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.596e-05/3.594e-05, allocations: 4 kB / 305 MB, free: 5.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4454/0.4454, allocations: 54.86 MB / 359.9 MB, free: 2.227 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.836/1.281, allocations: 330.2 MB / 0.6739 GB, free: 2.852 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/1.282, allocations: 84.58 kB / 0.674 GB, free: 2.809 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9536/2.235, allocations: 141.5 MB / 0.8122 GB, free: 102.3 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.695e-06/2.235, allocations: 0 / 0.8122 GB, free: 102.3 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001038/2.236, allocations: 23.98 kB / 0.8123 GB, free: 102.2 MB / 490.7 MB 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.00452/2.24, allocations: 1.175 MB / 0.8134 GB, free: 101 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/2.24, allocations: 12.03 kB / 0.8134 GB, free: 101 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003877/2.241, allocations: 110.5 kB / 0.8135 GB, free: 100.9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006855/2.241, allocations: 102.9 kB / 0.8136 GB, free: 100.8 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002653/2.244, allocations: 0.7139 MB / 0.8143 GB, free: 100 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/2.244, allocations: 112.7 kB / 0.8144 GB, free: 99.9 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003083/2.245, allocations: 55.98 kB / 0.8145 GB, free: 99.84 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002631/2.247, allocations: 0.9895 MB / 0.8154 GB, free: 98.81 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.851e-05/2.247, allocations: 7.938 kB / 0.8154 GB, free: 98.8 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001702/2.247, allocations: 31.92 kB / 0.8155 GB, free: 98.77 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001096/2.248, allocations: 49.28 kB / 0.8155 GB, free: 98.72 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002435/2.25, allocations: 0.8809 MB / 0.8164 GB, free: 97.84 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/2.26, allocations: 4.003 MB / 0.8203 GB, free: 93.65 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001519/2.262, allocations: 0.6213 MB / 0.8209 GB, free: 93.02 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008307/2.263, allocations: 386.3 kB / 0.8213 GB, free: 92.64 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004962/2.268, allocations: 2.377 MB / 0.8236 GB, free: 90.01 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009092/2.269, allocations: 431.4 kB / 0.824 GB, free: 89.57 MB / 490.7 MB Notification: Performance of pre-optimization done (n=47): time 4.027e-06/2.269, allocations: 4 kB / 0.824 GB, free: 89.56 MB / 490.7 MB Notification: Performance of matching and sorting (n=52): time 0.00591/2.275, allocations: 1.969 MB / 0.8259 GB, free: 87.52 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.457e-05/2.275, allocations: 166.6 kB / 0.8261 GB, free: 87.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001357/2.276, allocations: 0.6758 MB / 0.8267 GB, free: 86.63 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/2.276, allocations: 37.7 kB / 0.8268 GB, free: 86.59 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003257/2.277, allocations: 457.7 kB / 0.8272 GB, free: 86.14 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002345/2.277, allocations: 177.5 kB / 0.8274 GB, free: 85.96 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/2.277, allocations: 16 kB / 0.8274 GB, free: 85.95 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.337e-05/2.277, allocations: 338.8 kB / 0.8277 GB, free: 85.61 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008568/2.278, allocations: 353.6 kB / 0.8281 GB, free: 85.26 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000981/2.279, allocations: 0.6288 MB / 0.8287 GB, free: 84.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/2.28, allocations: 448.6 kB / 0.8291 GB, free: 84.06 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/2.28, allocations: 4 kB / 0.8291 GB, free: 84.06 MB / 490.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.003114/2.283, allocations: 1.146 MB / 0.8302 GB, free: 82.89 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007735/2.284, allocations: 3.436 MB / 0.8336 GB, free: 79.18 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.056e-05/2.284, allocations: 8 kB / 0.8336 GB, free: 79.18 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/2.286, allocations: 333.5 kB / 0.8339 GB, free: 78.84 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001256/2.287, allocations: 167.7 kB / 0.8341 GB, free: 78.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001791/2.289, allocations: 1.44 MB / 0.8355 GB, free: 77.19 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00144/2.29, allocations: 51.91 kB / 0.8355 GB, free: 77.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001521/2.29, allocations: 43.98 kB / 0.8356 GB, free: 77.09 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/2.29, allocations: 8.125 kB / 0.8356 GB, free: 77.09 MB / 490.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002794/2.293, allocations: 1.044 MB / 0.8366 GB, free: 76.03 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.892e-05/2.293, allocations: 8 kB / 0.8366 GB, free: 76.02 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009716/2.294, allocations: 249.6 kB / 0.8368 GB, free: 75.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/2.295, allocations: 163.7 kB / 0.837 GB, free: 75.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002378/2.298, allocations: 2.324 MB / 0.8393 GB, free: 73.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001077/2.299, allocations: 51.98 kB / 0.8393 GB, free: 73.08 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/2.299, allocations: 43.98 kB / 0.8394 GB, free: 73.04 MB / 490.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: 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 (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.0003869/2.3, allocations: 194.4 kB / 0.8395 GB, free: 72.83 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/2.3, allocations: 86.97 kB / 0.8396 GB, free: 72.75 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003049/2.303, allocations: 1.03 MB / 0.8406 GB, free: 71.68 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.418e-06/2.303, allocations: 8 kB / 0.8406 GB, free: 71.68 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/2.303, allocations: 0 / 0.8406 GB, free: 71.68 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.042e-05/2.303, allocations: 3.984 kB / 0.8406 GB, free: 71.67 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00424/2.307, allocations: 1.84 MB / 0.8424 GB, free: 69.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/2.307, allocations: 0 / 0.8424 GB, free: 69.77 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007544/2.308, allocations: 75.89 kB / 0.8425 GB, free: 69.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001285/2.309, allocations: 337.4 kB / 0.8428 GB, free: 69.36 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000136/2.31, allocations: 19.98 kB / 0.8429 GB, free: 69.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/2.311, allocations: 1.425 MB / 0.8442 GB, free: 67.86 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.247e-06/2.311, allocations: 0 / 0.8442 GB, free: 67.86 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003386/2.315, allocations: 1.489 MB / 0.8457 GB, free: 66.34 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007538/2.315, allocations: 252.1 kB / 0.8459 GB, free: 66.07 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/2.316, allocations: 12 kB / 0.846 GB, free: 66.06 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009869/2.317, allocations: 39.88 kB / 0.846 GB, free: 66.02 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002086/2.317, allocations: 56.3 kB / 0.846 GB, free: 65.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/2.317, allocations: 27.98 kB / 0.8461 GB, free: 65.94 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001001/2.318, allocations: 0.5225 MB / 0.8466 GB, free: 65.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.318, allocations: 0 / 0.8466 GB, free: 65.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003059/2.321, allocations: 0.6596 MB / 0.8472 GB, free: 64.77 MB / 490.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: 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 (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.005392/2.327, allocations: 2.511 MB / 0.8497 GB, free: 62.24 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.004187/2.331, allocations: 1.556 MB / 0.8512 GB, free: 60.65 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/2.331, allocations: 0 / 0.8512 GB, free: 60.65 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00146/2.332, allocations: 468.9 kB / 0.8516 GB, free: 60.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002437/2.335, allocations: 279.1 kB / 0.8519 GB, free: 59.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/2.341, allocations: 1.745 MB / 0.8536 GB, free: 58.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000572/2.342, allocations: 1.025 MB / 0.8546 GB, free: 57.06 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006914/2.342, allocations: 307.3 kB / 0.8549 GB, free: 56.76 MB / 490.7 MB Notification: Performance of SimCode: time 1.413e-06/2.342, allocations: 0 / 0.8549 GB, free: 56.76 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.483/5.825, allocations: 25.65 MB / 0.88 GB, free: 31.12 MB / 490.7 MB