Running command: "" <> buildModelFMU(Modelica.Thermal.FluidHeatFlow.Examples.TwoMass,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Thermal_FluidHeatFlow_Examples_TwoMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.76/1.76, allocations: 171.2 MB / 183.8 MB, free: 12.03 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.002e-05/4.014e-05, allocations: 4 kB / 225.1 MB, free: 2.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3196/0.3197, allocations: 38.77 MB / 263.8 MB, free: 9.855 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.4541, allocations: 71.83 MB / 335.7 MB, free: 1.914 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.4544, allocations: 67.97 kB / 335.7 MB, free: 1.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07263/0.5271, allocations: 15.6 MB / 351.3 MB, free: 2.137 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5271, allocations: 0 / 351.3 MB, free: 2.137 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.201e-05/0.5272, allocations: 16 kB / 351.3 MB, free: 2.121 MB / 298.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.003176/0.5304, allocations: 1.053 MB / 352.4 MB, free: 1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.607e-05/0.5305, allocations: 8.031 kB / 352.4 MB, free: 0.9922 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003185/0.5308, allocations: 115.6 kB / 352.5 MB, free: 0.8711 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.5311, allocations: 106.8 kB / 352.6 MB, free: 0.7656 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001357/0.5325, allocations: 0.5078 MB / 353.1 MB, free: 224 kB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003258/0.5329, allocations: 154.7 kB / 353.3 MB, free: 48 kB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001847/0.5331, allocations: 60.27 kB / 353.3 MB, free: 15.98 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001889/0.535, allocations: 0.7808 MB / 354.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.213e-05/0.535, allocations: 3.938 kB / 354.1 MB, free: 15.1 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001126/0.5352, allocations: 28 kB / 354.1 MB, free: 15.07 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.5352, allocations: 16 kB / 354.2 MB, free: 15.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001548/0.5368, allocations: 0.5011 MB / 354.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005891/0.5427, allocations: 2.076 MB / 356.7 MB, free: 12.39 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001917/0.5447, allocations: 0.915 MB / 357.7 MB, free: 11.39 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008677/0.5456, allocations: 331 kB / 358 MB, free: 11.06 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001053/0.5457, allocations: 16.75 kB / 358 MB, free: 11.05 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.818e-05/0.5458, allocations: 47.34 kB / 358 MB, free: 10.99 MB / 314.7 MB Notification: Performance of pre-optimization done (n=74): time 4.138e-06/0.5458, allocations: 0 / 358 MB, free: 10.99 MB / 314.7 MB Notification: Performance of matching and sorting (n=74): time 0.003804/0.5496, allocations: 0.8812 MB / 358.9 MB, free: 10.09 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004709/0.5501, allocations: 0.8235 MB / 359.7 MB, free: 9.07 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001164/0.5513, allocations: 0.523 MB / 360.3 MB, free: 8.543 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002331/0.5516, allocations: 45.7 kB / 360.3 MB, free: 8.492 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003383/0.5519, allocations: 359.4 kB / 360.7 MB, free: 8.141 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003411/0.5523, allocations: 252.2 kB / 360.9 MB, free: 7.891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.529e-05/0.5524, allocations: 16 kB / 360.9 MB, free: 7.875 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.5525, allocations: 338.8 kB / 361.3 MB, free: 7.535 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007028/0.5533, allocations: 217.6 kB / 361.5 MB, free: 7.324 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.5544, allocations: 500 kB / 362 MB, free: 6.738 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000853/0.5552, allocations: 352.3 kB / 362.3 MB, free: 6.379 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.5553, allocations: 3.938 kB / 362.3 MB, free: 6.375 MB / 314.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.003862/0.5591, allocations: 0.9805 MB / 363.3 MB, free: 5.355 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001176/0.5593, allocations: 89.11 kB / 363.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.5593, allocations: 0 / 363.4 MB, free: 5.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.5605, allocations: 203.3 kB / 363.6 MB, free: 5.039 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001337/0.5618, allocations: 147.8 kB / 363.7 MB, free: 4.895 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2478/0.8096, allocations: 6.208 MB / 369.9 MB, free: 85.72 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/0.8115, allocations: 116.8 kB / 370 MB, free: 85.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/0.8117, allocations: 24.25 kB / 370.1 MB, free: 85.72 MB / 314.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.0003644/0.8121, allocations: 159.7 kB / 370.2 MB, free: 85.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003224/0.8124, allocations: 85.72 kB / 370.3 MB, free: 85.61 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003499/0.8128, allocations: 87.84 kB / 370.4 MB, free: 85.6 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/0.8128, allocations: 7.094 kB / 370.4 MB, free: 85.6 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.897e-06/0.8129, allocations: 4.141 kB / 370.4 MB, free: 85.6 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004785/0.8176, allocations: 1.174 MB / 371.6 MB, free: 85.04 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006847/0.8245, allocations: 1.851 MB / 373.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/0.8246, allocations: 0 / 373.4 MB, free: 84.7 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.8264, allocations: 153 kB / 373.6 MB, free: 84.7 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009103/0.8273, allocations: 165.8 kB / 373.7 MB, free: 84.67 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.159e-05/0.8274, allocations: 19.72 kB / 373.8 MB, free: 84.67 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009533/0.837, allocations: 4.78 MB / 378.5 MB, free: 80.83 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.837, allocations: 1.688 kB / 378.5 MB, free: 80.83 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005461/0.8425, allocations: 1.279 MB / 379.8 MB, free: 80.61 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003367/0.8429, allocations: 164.1 kB / 380 MB, free: 80.47 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002648/0.8432, allocations: 25.19 kB / 380 MB, free: 80.47 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001288/0.8445, allocations: 57.12 kB / 380.1 MB, free: 80.47 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/0.8448, allocations: 59.44 kB / 380.1 MB, free: 80.47 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.842e-05/0.8449, allocations: 25.34 kB / 380.1 MB, free: 80.47 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009931/0.8459, allocations: 423.2 kB / 380.5 MB, free: 80.37 MB / 314.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.8459, allocations: 2.375 kB / 380.6 MB, free: 80.37 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001767/0.8477, allocations: 288.8 kB / 380.8 MB, free: 80.36 MB / 314.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.005204/0.8529, allocations: 1.867 MB / 382.7 MB, free: 79.41 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002645/0.8556, allocations: 1.227 MB / 383.9 MB, free: 78.53 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.8556, allocations: 6.25 kB / 383.9 MB, free: 78.53 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002385/0.858, allocations: 0.7351 MB / 384.7 MB, free: 78.06 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002168/0.8602, allocations: 190.3 kB / 384.9 MB, free: 78.01 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006742/0.867, allocations: 1.477 MB / 386.3 MB, free: 77.37 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006273/0.8677, allocations: 0.9557 MB / 387.3 MB, free: 76.66 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008594/0.8686, allocations: 288.2 kB / 387.6 MB, free: 76.45 MB / 314.7 MB Notification: Performance of SimCode: time 2.254e-06/0.8686, allocations: 0 / 387.6 MB, free: 76.45 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.291/4.159, allocations: 23.95 MB / 411.5 MB, free: 56.73 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Thermal.FluidHeatFlow.Examples.TwoMass_res.mat does not exist to compare? outputFormat=mat