Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.694e-05/3.709e-05, allocations: 0 / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09389/0.09397, allocations: 44.5 MB / 299.9 MB, free: 6.543 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.5334, allocations: 77.16 MB / 377.1 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00027/0.5337, allocations: 72.55 kB / 377.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07298/0.6067, allocations: 15.66 MB / 392.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.6068, allocations: 0 / 392.8 MB, free: 11.14 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.682e-05/0.6069, allocations: 19.14 kB / 392.8 MB, free: 11.14 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 0.00395/0.6108, allocations: 1.046 MB / 393.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.214e-05/0.6109, allocations: 7.75 kB / 393.9 MB, free: 10.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004037/0.6113, allocations: 108.6 kB / 394 MB, free: 10.43 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000433/0.6118, allocations: 108.3 kB / 394.1 MB, free: 10.38 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001833/0.6136, allocations: 0.5168 MB / 394.6 MB, free: 10.09 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003979/0.6141, allocations: 148.7 kB / 394.8 MB, free: 10 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002251/0.6143, allocations: 59.61 kB / 394.8 MB, free: 9.996 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/0.6167, allocations: 0.7869 MB / 395.6 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.709e-05/0.6167, allocations: 0 / 395.6 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001449/0.6169, allocations: 27 kB / 395.6 MB, free: 9.68 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.567e-05/0.6169, allocations: 19.52 kB / 395.6 MB, free: 9.676 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002043/0.619, allocations: 0.4966 MB / 396.1 MB, free: 9.668 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00724/0.6263, allocations: 2.085 MB / 398.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002314/0.6287, allocations: 0.9239 MB / 399.2 MB, free: 8.621 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001124/0.6298, allocations: 322.6 kB / 399.5 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001266/0.63, allocations: 19.02 kB / 399.5 MB, free: 8.613 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.788e-05/0.6301, allocations: 49.84 kB / 399.5 MB, free: 8.57 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 4.979e-06/0.6301, allocations: 0 / 399.5 MB, free: 8.57 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.004781/0.6349, allocations: 0.8797 MB / 400.4 MB, free: 8.43 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002625/0.6352, allocations: 0.8247 MB / 401.2 MB, free: 7.426 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001371/0.6366, allocations: 0.5225 MB / 401.8 MB, free: 7.301 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002918/0.6369, allocations: 43.98 kB / 401.8 MB, free: 7.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003194/0.6372, allocations: 358.8 kB / 402.2 MB, free: 7.066 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003709/0.6376, allocations: 253.1 kB / 402.4 MB, free: 6.906 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.498e-05/0.6377, allocations: 13.66 kB / 402.4 MB, free: 6.906 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001048/0.6379, allocations: 337.4 kB / 402.7 MB, free: 6.59 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009272/0.6388, allocations: 220.6 kB / 403 MB, free: 6.586 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001244/0.6401, allocations: 491.5 kB / 403.4 MB, free: 6.316 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.6413, allocations: 347.8 kB / 403.8 MB, free: 6.199 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/0.6413, allocations: 3.75 kB / 403.8 MB, free: 6.199 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004856/0.6462, allocations: 0.9754 MB / 404.8 MB, free: 5.984 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.948e-05/0.6463, allocations: 84.89 kB / 404.8 MB, free: 5.891 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.6463, allocations: 3.938 kB / 404.8 MB, free: 5.887 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001363/0.6477, allocations: 221.6 kB / 405.1 MB, free: 5.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001689/0.6494, allocations: 145.8 kB / 405.2 MB, free: 5.832 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01219/0.6617, allocations: 6.216 MB / 411.4 MB, free: 16.63 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/0.6632, allocations: 110.7 kB / 411.5 MB, free: 16.6 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.6634, allocations: 24.77 kB / 411.6 MB, free: 16.6 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 62 * 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.0003016/0.6637, allocations: 161 kB / 411.7 MB, free: 16.48 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002428/0.664, allocations: 85.58 kB / 411.8 MB, free: 16.44 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002711/0.6643, allocations: 90.52 kB / 411.9 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.867e-06/0.6643, allocations: 11.69 kB / 411.9 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.6643, allocations: 0 / 411.9 MB, free: 16.41 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003214/0.6675, allocations: 1.175 MB / 413.1 MB, free: 15.77 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005474/0.6731, allocations: 1.863 MB / 414.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.229e-05/0.6731, allocations: 0 / 414.9 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001441/0.6746, allocations: 152.5 kB / 415.1 MB, free: 14.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000725/0.6754, allocations: 162.3 kB / 415.2 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001305/0.6755, allocations: 19.73 kB / 415.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008112/0.6836, allocations: 4.783 MB / 420 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.6837, allocations: 0 / 420 MB, free: 10.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0041/0.6878, allocations: 1.278 MB / 421.3 MB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003799/0.6882, allocations: 168.2 kB / 421.5 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002143/0.6885, allocations: 14.47 kB / 421.5 MB, free: 10.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009501/0.6894, allocations: 64.95 kB / 421.6 MB, free: 10.31 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002484/0.6897, allocations: 66.47 kB / 421.6 MB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001032/0.6898, allocations: 26.7 kB / 421.7 MB, free: 10.28 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007543/0.6906, allocations: 420.2 kB / 422.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.362e-06/0.6906, allocations: 3.844 kB / 422.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001298/0.6919, allocations: 284 kB / 422.3 MB, free: 10.14 MB / 330.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.004633/0.6966, allocations: 1.87 MB / 424.2 MB, free: 9.25 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002684/0.6993, allocations: 1.238 MB / 425.5 MB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.196e-06/0.6994, allocations: 8 kB / 425.5 MB, free: 8.543 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001885/0.7013, allocations: 0.725 MB / 426.2 MB, free: 8.148 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001704/0.703, allocations: 206.7 kB / 426.4 MB, free: 8.094 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004468/0.7075, allocations: 1.428 MB / 427.8 MB, free: 7.352 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/0.7082, allocations: 0.9508 MB / 428.8 MB, free: 6.539 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007021/0.7089, allocations: 296.1 kB / 429.1 MB, free: 6.5 MB / 330.7 MB Notification: Performance of SimCode: time 1.392e-06/0.7089, allocations: 0 / 429.1 MB, free: 6.5 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.418/4.127, allocations: 24.14 MB / 453.2 MB, free: 6.793 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat