Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoTanks,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.084/2.084, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.686e-05/3.665e-05, allocations: 7.984 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1158, allocations: 50.4 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4961/0.612, allocations: 79.52 MB / 422.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/0.6123, allocations: 65.03 kB / 422.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0331/0.6454, allocations: 6.026 MB / 428.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.6455, allocations: 0 / 428.2 MB, free: 9.547 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.213e-05/0.6455, allocations: 11.94 kB / 428.2 MB, free: 9.535 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001476/0.647, allocations: 0.5753 MB / 428.8 MB, free: 8.934 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.646e-05/0.6471, allocations: 8.031 kB / 428.8 MB, free: 8.926 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001597/0.6473, allocations: 66.69 kB / 428.9 MB, free: 8.863 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001492/0.6475, allocations: 43.53 kB / 428.9 MB, free: 8.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006648/0.6482, allocations: 292.9 kB / 429.2 MB, free: 8.523 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001618/0.6483, allocations: 49.58 kB / 429.3 MB, free: 8.477 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.012e-05/0.6484, allocations: 24.06 kB / 429.3 MB, free: 8.461 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009173/0.6494, allocations: 315.2 kB / 429.6 MB, free: 8.195 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.646e-05/0.6494, allocations: 3.953 kB / 429.6 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.6495, allocations: 11.5 kB / 429.6 MB, free: 8.188 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.6495, allocations: 4 kB / 429.6 MB, free: 8.184 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007251/0.6503, allocations: 179.2 kB / 429.8 MB, free: 8.066 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00293/0.6532, allocations: 0.8312 MB / 430.6 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001157/0.6544, allocations: 259.6 kB / 430.9 MB, free: 7.191 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003911/0.6548, allocations: 111.5 kB / 431 MB, free: 7.121 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.596e-05/0.6549, allocations: 8 kB / 431 MB, free: 7.113 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.731e-05/0.655, allocations: 38.88 kB / 431 MB, free: 7.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=29): time 3.687e-06/0.655, allocations: 0 / 431 MB, free: 7.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=29): time 0.001128/0.6561, allocations: 272.1 kB / 431.3 MB, free: 6.863 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002172/0.6563, allocations: 316.4 kB / 431.6 MB, free: 6.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005309/0.6569, allocations: 244.6 kB / 431.8 MB, free: 6.281 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.509e-05/0.657, allocations: 32.58 kB / 431.9 MB, free: 6.25 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.6572, allocations: 236 kB / 432.1 MB, free: 6.051 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.6574, allocations: 103.4 kB / 432.2 MB, free: 5.961 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.6574, allocations: 9.625 kB / 432.2 MB, free: 5.957 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001776/0.6576, allocations: 321.7 kB / 432.5 MB, free: 5.641 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003454/0.658, allocations: 78.81 kB / 432.6 MB, free: 5.594 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005244/0.6585, allocations: 190 kB / 432.8 MB, free: 5.406 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004389/0.659, allocations: 137.2 kB / 432.9 MB, free: 5.301 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.659, allocations: 0 / 432.9 MB, free: 5.301 MB / 346.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001138/0.6602, allocations: 322.4 kB / 433.2 MB, free: 5.047 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.536e-05/0.6602, allocations: 32.83 kB / 433.3 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.6603, allocations: 0 / 433.3 MB, free: 5.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002576/0.6605, allocations: 44.03 kB / 433.3 MB, free: 4.973 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002537/0.6631, allocations: 202.2 kB / 433.5 MB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006105/0.6692, allocations: 2.938 MB / 436.4 MB, free: 1.758 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006318/0.6699, allocations: 42.78 kB / 436.5 MB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.076e-05/0.6699, allocations: 11.88 kB / 436.5 MB, free: 1.711 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002199/0.6702, allocations: 124.5 kB / 436.6 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.6703, allocations: 39.5 kB / 436.7 MB, free: 1.555 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001398/0.6705, allocations: 32.2 kB / 436.7 MB, free: 1.535 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.6705, allocations: 15.92 kB / 436.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6705, allocations: 192 / 436.7 MB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001149/0.6717, allocations: 0.6342 MB / 437.3 MB, free: 0.8398 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008881/0.6726, allocations: 404.5 kB / 437.7 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.6726, allocations: 0 / 437.7 MB, free: 488 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003392/0.676, allocations: 251.7 kB / 438 MB, free: 236 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001337/0.6762, allocations: 24.3 kB / 438 MB, free: 216 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.371e-05/0.6763, allocations: 11.61 kB / 438 MB, free: 208 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005144/0.6814, allocations: 2.765 MB / 440.8 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6815, allocations: 0 / 440.8 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001457/0.6829, allocations: 486.5 kB / 441.3 MB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.6833, allocations: 134 kB / 441.4 MB, free: 12.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/0.6834, allocations: 10.44 kB / 441.4 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005484/0.6839, allocations: 19.06 kB / 441.4 MB, free: 12.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001325/0.6841, allocations: 27.89 kB / 441.4 MB, free: 12.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.6841, allocations: 4 kB / 441.5 MB, free: 12.73 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004174/0.6846, allocations: 199.4 kB / 441.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6846, allocations: 0 / 441.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009578/0.6856, allocations: 117.9 kB / 441.8 MB, free: 12.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (openTank1.m,openTank1.H,openTank2.m,openTank2.H) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.001968/0.6875, allocations: 1.053 MB / 442.8 MB, free: 11.51 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002845/0.6904, allocations: 0.5188 MB / 443.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.6904, allocations: 0 / 443.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002271/0.6927, allocations: 406.5 kB / 443.7 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006824/0.6934, allocations: 77.28 kB / 443.8 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002706/0.6961, allocations: 0.7805 MB / 444.6 MB, free: 9.855 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.6966, allocations: 0.7879 MB / 445.4 MB, free: 9.039 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.6968, allocations: 113 kB / 445.5 MB, free: 8.996 MB / 362.7 MB Notification: Performance of SimCode: time 1.332e-06/0.6969, allocations: 0 / 445.5 MB, free: 8.996 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.814/3.511, allocations: 7.966 MB / 453.4 MB, free: 1.102 MB / 362.7 MB