Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_overall",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.986/1.986, allocations: 209.3 MB / 221.9 MB, free: 1.945 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.325e-05/3.33e-05, allocations: 4 kB / 273.2 MB, free: 0.6289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1074, allocations: 48.7 MB / 321.9 MB, free: 15.83 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4489/0.5563, allocations: 87.73 MB / 409.6 MB, free: 2.172 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000377/0.5568, allocations: 87.94 kB / 409.7 MB, free: 2.086 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1125/0.6694, allocations: 24.04 MB / 433.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.6694, allocations: 0 / 433.7 MB, free: 9.859 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.924e-05/0.6694, allocations: 4 kB / 433.7 MB, free: 9.855 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.001676/0.6711, allocations: 0.7441 MB / 434.5 MB, free: 9.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/0.6712, allocations: 12.03 kB / 434.5 MB, free: 9.055 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001891/0.6714, allocations: 102.5 kB / 434.6 MB, free: 8.945 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000143/0.6716, allocations: 55.3 kB / 434.6 MB, free: 8.891 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006158/0.6722, allocations: 302.3 kB / 434.9 MB, free: 8.555 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.591e-05/0.6723, allocations: 45.31 kB / 435 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.6724, allocations: 55.98 kB / 435 MB, free: 8.453 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001691/0.6741, allocations: 0.7229 MB / 435.7 MB, free: 7.711 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.6741, allocations: 4 kB / 435.7 MB, free: 7.707 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-05/0.6742, allocations: 20 kB / 435.8 MB, free: 7.688 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-05/0.6743, allocations: 33.23 kB / 435.8 MB, free: 7.656 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.6756, allocations: 0.4891 MB / 436.3 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003873/0.6794, allocations: 1.704 MB / 438 MB, free: 5.398 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007383/0.6802, allocations: 267.6 kB / 438.3 MB, free: 5.109 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003561/0.6806, allocations: 122.4 kB / 438.4 MB, free: 4.98 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.43e-05/0.6807, allocations: 15.97 kB / 438.4 MB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.6808, allocations: 34.56 kB / 438.4 MB, free: 4.922 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 3.496e-06/0.6808, allocations: 0 / 438.4 MB, free: 4.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=20): time 0.001135/0.6819, allocations: 324.9 kB / 438.7 MB, free: 4.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.998e-05/0.682, allocations: 110.8 kB / 438.8 MB, free: 4.465 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.6831, allocations: 0.5707 MB / 439.4 MB, free: 3.887 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.065e-05/0.6832, allocations: 25.7 kB / 439.4 MB, free: 3.855 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.6835, allocations: 321.7 kB / 439.8 MB, free: 3.539 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001026/0.6836, allocations: 71 kB / 439.8 MB, free: 3.469 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.306e-05/0.6837, allocations: 8 kB / 439.8 MB, free: 3.461 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.6838, allocations: 334.8 kB / 440.2 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004876/0.6843, allocations: 168.9 kB / 440.3 MB, free: 2.961 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007046/0.685, allocations: 421.5 kB / 440.7 MB, free: 2.426 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006611/0.6857, allocations: 239.9 kB / 441 MB, free: 2.191 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.6857, allocations: 0 / 441 MB, free: 2.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001674/0.6874, allocations: 0.6014 MB / 441.6 MB, free: 1.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.202e-05/0.6875, allocations: 8 kB / 441.6 MB, free: 1.578 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001631/0.6877, allocations: 51.97 kB / 441.6 MB, free: 1.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.577e-05/0.6877, allocations: 12 kB / 441.6 MB, free: 1.516 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/0.6883, allocations: 84.47 kB / 441.7 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.106e-05/0.6883, allocations: 23.89 kB / 441.7 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007979/0.6891, allocations: 87.25 kB / 441.8 MB, free: 1.324 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.122e-05/0.6892, allocations: 35.98 kB / 441.9 MB, free: 1.289 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 24 (m_flow_IN_con_4[3].target,m_flow_IN_con_4[3].roughness,m_flow_IN_con_4[2].target,m_flow_IN_con_4[2].roughness,m_flow_IN_con_4[1].target,m_flow_IN_con_4[1].roughness,m_flow_IN_con_3[3].target,m_flow_IN_con_3[3].roughness,m_flow_IN_con_3[2].target,m_flow_IN_con_3[2].roughness,m_flow_IN_con_3[1].target,m_flow_IN_con_3[1].roughness,m_flow_IN_con_2[3].target,m_flow_IN_con_2[3].roughness,m_flow_IN_con_2[2].target,m_flow_IN_con_2[2].roughness,m_flow_IN_con_2[1].target,m_flow_IN_con_2[1].roughness,m_flow_IN_con_1[3].target,m_flow_IN_con_1[3].roughness,m_flow_IN_con_1[2].target,m_flow_IN_con_1[2].roughness,m_flow_IN_con_1[1].target,m_flow_IN_con_1[1].roughness) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000217/0.6895, allocations: 159.8 kB / 442 MB, free: 1.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001922/0.6897, allocations: 51.34 kB / 442.1 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001497/0.6912, allocations: 453.2 kB / 442.5 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2e-05/0.6912, allocations: 8 kB / 442.5 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.6912, allocations: 7.875 kB / 442.5 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.6913, allocations: 3.953 kB / 442.5 MB, free: 0.5977 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001003/0.6923, allocations: 405.4 kB / 442.9 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001253/0.6924, allocations: 39.97 kB / 443 MB, free: 116 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003259/0.6928, allocations: 35.97 kB / 443 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-06/0.6928, allocations: 0 / 443 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.859e-05/0.6928, allocations: 15.98 kB / 443 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.6929, allocations: 0 / 443 MB, free: 64 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.6929, allocations: 7.938 kB / 443 MB, free: 56 kB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001151/0.694, allocations: 0.5869 MB / 443.6 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003935/0.6944, allocations: 184.3 kB / 443.8 MB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001176/0.6946, allocations: 4 kB / 443.8 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005806/0.6952, allocations: 27.97 kB / 443.8 MB, free: 15.21 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.6953, allocations: 19.97 kB / 443.8 MB, free: 15.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.529e-05/0.6954, allocations: 12 kB / 443.9 MB, free: 15.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000829/0.6962, allocations: 445.5 kB / 444.3 MB, free: 14.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6962, allocations: 0 / 444.3 MB, free: 14.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001218/0.6975, allocations: 199.9 kB / 444.5 MB, free: 14.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (17): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002214/0.6997, allocations: 1.446 MB / 445.9 MB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001394/0.7011, allocations: 0.6926 MB / 446.6 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7012, allocations: 0 / 446.6 MB, free: 12.31 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006486/0.7018, allocations: 456.3 kB / 447.1 MB, free: 11.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009613/0.7028, allocations: 114.3 kB / 447.2 MB, free: 11.68 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003427/0.7063, allocations: 0.9349 MB / 448.1 MB, free: 10.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006059/0.7069, allocations: 0.8974 MB / 449 MB, free: 9.773 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003346/0.7073, allocations: 151.3 kB / 449.2 MB, free: 9.625 MB / 378.7 MB Notification: Performance of SimCode: time 1.553e-06/0.7073, allocations: 4 kB / 449.2 MB, free: 9.621 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.704/3.411, allocations: 12.49 MB / 461.7 MB, free: 13.16 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_overall_res.mat does not exist to compare? outputFormat=mat