Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_HeatTransfer_StraightPipe_kc_twoPhaseOverall_KC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.9/1.9, allocations: 209.4 MB / 216.9 MB, free: 6.656 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.552e-05, allocations: 4 kB / 267.6 MB, free: 5.289 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1222/0.1222, allocations: 48.7 MB / 316.3 MB, free: 4.492 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4697/0.592, allocations: 92.28 MB / 408.6 MB, free: 40 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003861/0.5924, allocations: 97.05 kB / 408.7 MB, free: 15.98 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4477:11-4491:77:writable] Error: Got type mismatch error, but matching types Real. This is a ***COMPILER BUG***, please report it to https://trac.openmodelica.org/OpenModelica. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4453:11-4467:78:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4502:11-4516:76:writable] Error: Type mismatch in binding x_flow = x_flow, expected subtype of Real[6], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1673/0.7597, allocations: 37.78 MB / 446.5 MB, free: 13.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.7598, allocations: 4 kB / 446.5 MB, free: 13.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.497e-05/0.7598, allocations: 16 kB / 446.5 MB, free: 13.87 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.002707/0.7626, allocations: 1.176 MB / 447.7 MB, free: 12.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.425e-05/0.7626, allocations: 12.03 kB / 447.7 MB, free: 12.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.7629, allocations: 130.4 kB / 447.8 MB, free: 12.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0011/0.764, allocations: 490.2 kB / 448.3 MB, free: 11.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.201e-05/0.7641, allocations: 32 kB / 448.3 MB, free: 11.95 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001493/0.7643, allocations: 52 kB / 448.4 MB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002455/0.7667, allocations: 1.16 MB / 449.5 MB, free: 10.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002549/0.7693, allocations: 1.157 MB / 450.7 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.7694, allocations: 0 / 450.7 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.839e-05/0.7695, allocations: 0 / 450.7 MB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001116/0.7696, allocations: 66.05 kB / 450.8 MB, free: 9.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006039/0.7756, allocations: 2.676 MB / 453.4 MB, free: 6.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.7773, allocations: 0.6403 MB / 454.1 MB, free: 6.035 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007757/0.7781, allocations: 225.5 kB / 454.3 MB, free: 5.797 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.497e-05/0.7782, allocations: 20.08 kB / 454.3 MB, free: 5.777 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.716e-05/0.7783, allocations: 42.78 kB / 454.4 MB, free: 5.727 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.967e-06/0.7783, allocations: 0 / 454.4 MB, free: 5.727 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.002307/0.7806, allocations: 0.5185 MB / 454.9 MB, free: 5.203 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001281/0.7807, allocations: 187.9 kB / 455.1 MB, free: 4.977 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.7821, allocations: 0.5542 MB / 455.6 MB, free: 4.418 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.135e-05/0.7822, allocations: 25.7 kB / 455.6 MB, free: 4.387 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000662/0.7828, allocations: 0.5977 MB / 456.2 MB, free: 3.781 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001988/0.7831, allocations: 114.6 kB / 456.4 MB, free: 3.668 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-05/0.7831, allocations: 0 / 456.4 MB, free: 3.668 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001916/0.7834, allocations: 338.8 kB / 456.7 MB, free: 3.328 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009156/0.7843, allocations: 225.4 kB / 456.9 MB, free: 3.105 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.7856, allocations: 0.5425 MB / 457.5 MB, free: 2.41 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.7868, allocations: 327.7 kB / 457.8 MB, free: 2.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.845e-05/0.7868, allocations: 4 kB / 457.8 MB, free: 2.086 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003089/0.7899, allocations: 0.7468 MB / 458.5 MB, free: 1.332 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.053e-05/0.79, allocations: 8 kB / 458.5 MB, free: 1.324 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.869e-05/0.79, allocations: 12.88 kB / 458.5 MB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.032e-05/0.7901, allocations: 19.98 kB / 458.6 MB, free: 1.293 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001762/0.7919, allocations: 179.6 kB / 458.7 MB, free: 1.117 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.85e-05/0.7919, allocations: 23.92 kB / 458.8 MB, free: 1.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001628/0.7936, allocations: 83.5 kB / 458.8 MB, free: 1.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001784/0.7938, allocations: 43.98 kB / 458.9 MB, free: 0.9688 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 26 (IN_var_3[6].target,IN_var_3[5].target,IN_var_3[4].target,IN_var_3[3].target,IN_var_3[2].target,IN_var_3[1].target,IN_con_3[6].target,IN_con_3[5].target,IN_con_3[4].target,IN_con_3[3].target,IN_con_3[2].target,IN_con_3[1].target,IN_var_2.target,IN_con_2.target,IN_var_1[6].target,IN_var_1[5].target,IN_var_1[4].target,IN_var_1[3].target,IN_var_1[2].target,IN_var_1[1].target,IN_con_1[6].target,IN_con_1[5].target,IN_con_1[4].target,IN_con_1[3].target,IN_con_1[2].target,IN_con_1[1].target) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (79): * Single equations (assignments): 79 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003689/0.7942, allocations: 154 kB / 459 MB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00242/0.7966, allocations: 0.5236 MB / 459.6 MB, free: 292 kB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004007/0.797, allocations: 67.16 kB / 459.6 MB, free: 224 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002995/0.8001, allocations: 0.6809 MB / 460.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.347e-05/0.8001, allocations: 4 kB / 460.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.518e-06/0.8001, allocations: 0 / 460.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.35e-05/0.8001, allocations: 4 kB / 460.3 MB, free: 15.51 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002474/0.8026, allocations: 0.6498 MB / 461 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.8027, allocations: 3.953 kB / 461 MB, free: 14.82 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001234/0.8039, allocations: 115.9 kB / 461.1 MB, free: 14.71 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.527e-05/0.804, allocations: 4 kB / 461.1 MB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.209e-05/0.8041, allocations: 11.98 kB / 461.1 MB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.411e-05/0.8041, allocations: 7.938 kB / 461.1 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.8041, allocations: 3.938 kB / 461.1 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00248/0.8066, allocations: 1.047 MB / 462.2 MB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006752/0.8073, allocations: 212 kB / 462.4 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002819/0.8076, allocations: 11.94 kB / 462.4 MB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001479/0.8091, allocations: 43.97 kB / 462.4 MB, free: 13.3 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002468/0.8094, allocations: 47.88 kB / 462.5 MB, free: 13.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001007/0.8095, allocations: 12 kB / 462.5 MB, free: 13.24 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001032/0.8105, allocations: 419.1 kB / 462.9 MB, free: 12.84 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.8105, allocations: 0 / 462.9 MB, free: 12.84 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00279/0.8133, allocations: 342.8 kB / 463.2 MB, free: 12.5 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003998/0.8174, allocations: 2.147 MB / 465.4 MB, free: 10.31 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002239/0.8196, allocations: 0.5445 MB / 465.9 MB, free: 9.766 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.8197, allocations: 0 / 465.9 MB, free: 9.766 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009933/0.8207, allocations: 243.7 kB / 466.1 MB, free: 9.527 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001775/0.8225, allocations: 112.2 kB / 466.3 MB, free: 9.422 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007039/0.8295, allocations: 1.631 MB / 467.9 MB, free: 7.727 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001588/0.8312, allocations: 1.174 MB / 469.1 MB, free: 6.523 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001349/0.8325, allocations: 391.3 kB / 469.4 MB, free: 6.141 MB / 394.7 MB Notification: Performance of SimCode: time 1.432e-06/0.8326, allocations: 0 / 469.4 MB, free: 6.141 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.731/3.563, allocations: 17.63 MB / 487.1 MB, free: 4.508 MB / 410.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_twoPhaseOverall_KC_res.mat does not exist to compare? outputFormat=mat