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 2.001/2.001, allocations: 209.4 MB / 216.9 MB, free: 6.73 MB / 186.8 MB Notification: Performance of FrontEnd - loaded program: time 2.682e-05/2.706e-05, allocations: 4 kB / 267.6 MB, free: 5.371 MB / 218.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1034, allocations: 48.7 MB / 316.3 MB, free: 4.57 MB / 266.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4271/0.5306, allocations: 87.3 MB / 403.6 MB, free: 5.273 MB / 330.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003826/0.531, allocations: 98.36 kB / 403.7 MB, free: 5.215 MB / 330.8 MB Notification: Performance of FrontEnd - DAE generated: time 0.1082/0.6392, allocations: 23.79 MB / 427.5 MB, free: 1.289 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.635e-06/0.6393, allocations: 0 / 427.5 MB, free: 1.289 MB / 346.8 MB Notification: Performance of Transformations before backend: time 2.148e-05/0.6393, allocations: 4 kB / 427.5 MB, free: 1.285 MB / 346.8 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.00179/0.6411, allocations: 0.7425 MB / 428.3 MB, free: 0.5312 MB / 346.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.958e-05/0.6412, allocations: 12.03 kB / 428.3 MB, free: 0.5195 MB / 346.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.6414, allocations: 51.34 kB / 428.3 MB, free: 480 kB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006452/0.6421, allocations: 306.4 kB / 428.6 MB, free: 132 kB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.71e-05/0.6421, allocations: 20 kB / 428.6 MB, free: 112 kB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001001/0.6422, allocations: 28 kB / 428.7 MB, free: 84 kB / 346.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001138/0.6434, allocations: 458.3 kB / 429.1 MB, free: 15.63 MB / 362.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001455/0.6449, allocations: 0.65 MB / 429.8 MB, free: 14.96 MB / 362.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.6449, allocations: 3.938 kB / 429.8 MB, free: 14.96 MB / 362.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.146e-05/0.645, allocations: 8 kB / 429.8 MB, free: 14.95 MB / 362.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.206e-05/0.6451, allocations: 21.31 kB / 429.8 MB, free: 14.93 MB / 362.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003604/0.6487, allocations: 1.527 MB / 431.3 MB, free: 13.35 MB / 362.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006477/0.6494, allocations: 271.7 kB / 431.6 MB, free: 13.06 MB / 362.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000326/0.6497, allocations: 114.5 kB / 431.7 MB, free: 12.94 MB / 362.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.388e-05/0.6498, allocations: 12.08 kB / 431.7 MB, free: 12.93 MB / 362.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/0.6499, allocations: 46.48 kB / 431.8 MB, free: 12.87 MB / 362.8 MB Notification: Performance of pre-optimization done (n=20): time 3.637e-06/0.6499, allocations: 0 / 431.8 MB, free: 12.87 MB / 362.8 MB Notification: Performance of matching and sorting (n=20): time 0.0009813/0.6509, allocations: 296.8 kB / 432 MB, free: 12.58 MB / 362.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.103e-05/0.6509, allocations: 106.8 kB / 432.2 MB, free: 12.45 MB / 362.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004893/0.6514, allocations: 304.8 kB / 432.4 MB, free: 12.15 MB / 362.8 MB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/0.6515, allocations: 25.7 kB / 432.5 MB, free: 12.12 MB / 362.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.000268/0.6518, allocations: 365.8 kB / 432.8 MB, free: 11.76 MB / 362.8 MB Notification: Performance of collectInitialBindings (initialization): time 9.523e-05/0.6519, allocations: 71.02 kB / 432.9 MB, free: 11.69 MB / 362.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.844e-05/0.6519, allocations: 0 / 432.9 MB, free: 11.69 MB / 362.8 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.6521, allocations: 338.9 kB / 433.2 MB, free: 11.35 MB / 362.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004125/0.6525, allocations: 149 kB / 433.4 MB, free: 11.21 MB / 362.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006201/0.6532, allocations: 412.4 kB / 433.8 MB, free: 10.68 MB / 362.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006152/0.6538, allocations: 227.7 kB / 434 MB, free: 10.46 MB / 362.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.009e-05/0.6538, allocations: 4 kB / 434 MB, free: 10.45 MB / 362.8 MB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001477/0.6553, allocations: 0.5367 MB / 434.5 MB, free: 9.91 MB / 362.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.761e-05/0.6554, allocations: 16 kB / 434.6 MB, free: 9.895 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001524/0.6555, allocations: 43.97 kB / 434.6 MB, free: 9.852 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.722e-05/0.6556, allocations: 19.98 kB / 434.6 MB, free: 9.832 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005342/0.6561, allocations: 75.83 kB / 434.7 MB, free: 9.758 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.476e-05/0.6562, allocations: 19.92 kB / 434.7 MB, free: 9.738 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005963/0.6568, allocations: 47.73 kB / 434.8 MB, free: 9.691 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.368e-05/0.6569, allocations: 47.88 kB / 434.8 MB, free: 9.645 MB / 362.8 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.0002018/0.6571, allocations: 139.8 kB / 434.9 MB, free: 9.5 MB / 362.8 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009432/0.658, allocations: 297 kB / 435.2 MB, free: 9.203 MB / 362.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.6582, allocations: 27.72 kB / 435.3 MB, free: 9.176 MB / 362.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001333/0.6595, allocations: 426 kB / 435.7 MB, free: 8.75 MB / 362.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.072e-05/0.6596, allocations: 11.92 kB / 435.7 MB, free: 8.738 MB / 362.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.6596, allocations: 7.953 kB / 435.7 MB, free: 8.73 MB / 362.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.6596, allocations: 4 kB / 435.7 MB, free: 8.727 MB / 362.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000928/0.6606, allocations: 365.8 kB / 436.1 MB, free: 8.332 MB / 362.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001318/0.6607, allocations: 35.97 kB / 436.1 MB, free: 8.297 MB / 362.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003169/0.661, allocations: 35.91 kB / 436.1 MB, free: 8.262 MB / 362.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.078e-05/0.6611, allocations: 3.984 kB / 436.1 MB, free: 8.258 MB / 362.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-05/0.6611, allocations: 8 kB / 436.1 MB, free: 8.25 MB / 362.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.102e-06/0.6611, allocations: 4 kB / 436.1 MB, free: 8.246 MB / 362.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.6611, allocations: 4 kB / 436.1 MB, free: 8.242 MB / 362.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.6622, allocations: 0.5587 MB / 436.7 MB, free: 7.656 MB / 362.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.6625, allocations: 148.8 kB / 436.9 MB, free: 7.492 MB / 362.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.494e-05/0.6626, allocations: 3.984 kB / 436.9 MB, free: 7.488 MB / 362.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004681/0.663, allocations: 23.98 kB / 436.9 MB, free: 7.465 MB / 362.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.6632, allocations: 31.91 kB / 436.9 MB, free: 7.434 MB / 362.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.73e-05/0.6632, allocations: 11.98 kB / 436.9 MB, free: 7.422 MB / 362.8 MB Notification: Performance of sorting global known variables: time 0.0003301/0.6636, allocations: 212.6 kB / 437.1 MB, free: 7.219 MB / 362.8 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6636, allocations: 0 / 437.1 MB, free: 7.219 MB / 362.8 MB Notification: Performance of remove unused functions: time 0.001291/0.6649, allocations: 215.3 kB / 437.3 MB, free: 7.008 MB / 362.8 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.00211/0.667, allocations: 1.429 MB / 438.8 MB, free: 5.547 MB / 362.8 MB Notification: Performance of simCode: created initialization part: time 0.001325/0.6684, allocations: 0.66 MB / 439.4 MB, free: 4.812 MB / 362.8 MB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.6684, allocations: 2.562 kB / 439.4 MB, free: 4.812 MB / 362.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0005663/0.669, allocations: 452.3 kB / 439.9 MB, free: 4.297 MB / 362.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005803/0.6696, allocations: 28.89 kB / 439.9 MB, free: 4.27 MB / 362.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/0.6729, allocations: 0.8625 MB / 440.8 MB, free: 3.355 MB / 362.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006248/0.6736, allocations: 0.9004 MB / 441.7 MB, free: 2.43 MB / 362.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.674, allocations: 139.4 kB / 441.8 MB, free: 2.293 MB / 362.8 MB Notification: Performance of SimCode: time 8.92e-07/0.674, allocations: 3.938 kB / 441.8 MB, free: 2.289 MB / 362.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.624/3.298, allocations: 10.52 MB / 452.3 MB, free: 7.754 MB / 378.8 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