Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_trunk_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.49e-05/4.502e-05, allocations: 4 kB / 292.2 MB, free: 8.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1213, allocations: 50.41 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4377/0.5591, allocations: 81.84 MB / 424.5 MB, free: 12.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.5594, allocations: 74.02 kB / 424.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06987/0.6293, allocations: 16.09 MB / 440.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.228e-06/0.6293, allocations: 0 / 440.6 MB, free: 14.81 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.163e-05/0.6294, allocations: 23.92 kB / 440.7 MB, free: 14.79 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.003177/0.6326, allocations: 1.071 MB / 441.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.157e-05/0.6327, allocations: 8.031 kB / 441.7 MB, free: 13.7 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002672/0.633, allocations: 118.5 kB / 441.8 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003246/0.6333, allocations: 106.9 kB / 441.9 MB, free: 13.5 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001349/0.6347, allocations: 0.5314 MB / 442.5 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003148/0.635, allocations: 148.1 kB / 442.6 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.6352, allocations: 61.84 kB / 442.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001832/0.637, allocations: 0.8011 MB / 443.5 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.787e-05/0.6371, allocations: 0 / 443.5 MB, free: 12.15 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001016/0.6372, allocations: 25.69 kB / 443.5 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.6372, allocations: 16 kB / 443.5 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001473/0.6387, allocations: 0.4945 MB / 444 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005872/0.6446, allocations: 2.126 MB / 446.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001789/0.6465, allocations: 0.9036 MB / 447.1 MB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008098/0.6473, allocations: 329.2 kB / 447.4 MB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.218e-05/0.6474, allocations: 16.77 kB / 447.4 MB, free: 9.168 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.634e-05/0.6475, allocations: 53.84 kB / 447.4 MB, free: 9.117 MB / 362.7 MB Notification: Performance of pre-optimization done (n=74): time 3.526e-06/0.6475, allocations: 0 / 447.4 MB, free: 9.117 MB / 362.7 MB Notification: Performance of matching and sorting (n=74): time 0.003503/0.651, allocations: 0.8527 MB / 448.3 MB, free: 8.449 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004587/0.6515, allocations: 0.8194 MB / 449.1 MB, free: 7.434 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001218/0.6528, allocations: 0.5537 MB / 449.7 MB, free: 7.008 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002318/0.653, allocations: 46.95 kB / 449.7 MB, free: 6.969 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003085/0.6533, allocations: 359.8 kB / 450.1 MB, free: 6.723 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003341/0.6537, allocations: 260.2 kB / 450.3 MB, free: 6.5 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.199e-05/0.6538, allocations: 14.75 kB / 450.3 MB, free: 6.496 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.6539, allocations: 337.2 kB / 450.7 MB, free: 6.168 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006908/0.6546, allocations: 217.3 kB / 450.9 MB, free: 6.043 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001054/0.6557, allocations: 0.4905 MB / 451.4 MB, free: 5.461 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008422/0.6566, allocations: 349.3 kB / 451.7 MB, free: 5.105 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/0.6566, allocations: 0 / 451.7 MB, free: 5.105 MB / 362.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.003565/0.6602, allocations: 0.9494 MB / 452.7 MB, free: 4.117 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.616e-05/0.6603, allocations: 85.09 kB / 452.7 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.6603, allocations: 0 / 452.7 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008236/0.6611, allocations: 203.3 kB / 452.9 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.6625, allocations: 143.8 kB / 453.1 MB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0106/0.6731, allocations: 6.23 MB / 459.3 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.6746, allocations: 111.7 kB / 459.4 MB, free: 12.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.196e-05/0.6747, allocations: 27.98 kB / 459.4 MB, free: 12.77 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {3 3,1 3,1 7,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003149/0.675, allocations: 160.8 kB / 459.6 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/0.6754, allocations: 87.02 kB / 459.7 MB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003849/0.6759, allocations: 96 kB / 459.8 MB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.323e-05/0.6759, allocations: 8 kB / 459.8 MB, free: 12.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.6759, allocations: 4 kB / 459.8 MB, free: 12.4 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003362/0.6793, allocations: 1.158 MB / 461 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005856/0.6852, allocations: 1.843 MB / 462.8 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.051e-05/0.6852, allocations: 0 / 462.8 MB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001446/0.6867, allocations: 151.8 kB / 462.9 MB, free: 9.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006359/0.6874, allocations: 162.5 kB / 463.1 MB, free: 8.902 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.223e-05/0.6875, allocations: 19.94 kB / 463.1 MB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008746/0.6962, allocations: 4.801 MB / 467.9 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.6963, allocations: 0 / 467.9 MB, free: 3.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00447/0.7008, allocations: 1.258 MB / 469.2 MB, free: 2.398 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006792/0.7015, allocations: 243.9 kB / 469.4 MB, free: 2.141 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001816/0.7017, allocations: 16 kB / 469.4 MB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001092/0.7028, allocations: 63.95 kB / 469.5 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002664/0.7031, allocations: 60.69 kB / 469.6 MB, free: 2.004 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.556e-05/0.7032, allocations: 16 kB / 469.6 MB, free: 1.988 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009068/0.7041, allocations: 451.2 kB / 470 MB, free: 1.551 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7041, allocations: 0 / 470 MB, free: 1.551 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00138/0.7055, allocations: 291.7 kB / 470.3 MB, free: 1.266 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (pipe1.T,pipe2.T,pipe3.T,heatCapacitor1.T,heatCapacitor2.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,1 3,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004846/0.7104, allocations: 1.85 MB / 472.1 MB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002737/0.7132, allocations: 1.205 MB / 473.4 MB, free: 14.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/0.7132, allocations: 4 kB / 473.4 MB, free: 14.09 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001993/0.7152, allocations: 0.7073 MB / 474.1 MB, free: 13.36 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001746/0.717, allocations: 218.6 kB / 474.3 MB, free: 13.14 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004641/0.7217, allocations: 1.426 MB / 475.7 MB, free: 11.67 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007097/0.7224, allocations: 0.9635 MB / 476.7 MB, free: 10.68 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007828/0.7232, allocations: 303.3 kB / 477 MB, free: 10.38 MB / 394.7 MB Notification: Performance of SimCode: time 1.353e-06/0.7232, allocations: 0 / 477 MB, free: 10.38 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.311/4.034, allocations: 24.74 MB / 0.4899 GB, free: 1.633 MB / 410.7 MB