Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cp_1.1.|cp_1.2.|cp_1.3.|cp_1.4.|cp_1.5.|cp_1.6.|eta_l_1.1.|eta_l_1.2.|eta_l_1.3.|eta_l_1.4.|eta_l_1.5.|eta_l_1.6.|eta_g_1.1.|eta_g_1.2.|eta_g_1.3.|eta_g_1.4.|eta_g_1.5.|eta_g_1.6.|lambda_1.1.|lambda_1.2.|lambda_1.3.|lambda_1.4.|lambda_1.5.|lambda_1.6.|rho_l_1.1.|rho_l_1.2.|rho_l_1.3.|rho_l_1.4.|rho_l_1.5.|rho_l_1.6.|rho_g_1.1.|rho_g_1.2.|rho_g_1.3.|rho_g_1.4.|rho_g_1.5.|rho_g_1.6.|M_1.1.|M_1.2.|M_1.3.|M_1.4.|M_1.5.|M_1.6.|dh_lg_1.1.|dh_lg_1.2.|dh_lg_1.3.|dh_lg_1.4.|dh_lg_1.5.|dh_lg_1.6.|qdot_A_1.1.|qdot_A_1.2.|qdot_A_1.3.|qdot_A_1.4.|qdot_A_1.5.|qdot_A_1.6.|p_1.1.|p_1.2.|p_1.3.|p_1.4.|p_1.5.|p_1.6.|p_crit_1.1.|p_crit_1.2.|p_crit_1.3.|p_crit_1.4.|p_crit_1.5.|p_crit_1.6.|m_flow_1.1.|m_flow_1.2.|m_flow_1.3.|m_flow_1.4.|m_flow_1.5.|m_flow_1.6.|mdot_A1.1.|mdot_A1.2.|mdot_A1.3.|mdot_A1.4.|mdot_A1.5.|mdot_A1.6.|m_flow_2|cp_3.1.|cp_3.2.|cp_3.3.|cp_3.4.|cp_3.5.|cp_3.6.|eta_l_3.1.|eta_l_3.2.|eta_l_3.3.|eta_l_3.4.|eta_l_3.5.|eta_l_3.6.|lambda_3.1.|lambda_3.2.|lambda_3.3.|lambda_3.4.|lambda_3.5.|lambda_3.6.|rho_l_3.1.|rho_l_3.2.|rho_l_3.3.|rho_l_3.4.|rho_l_3.5.|rho_l_3.6.|p_3.1.|p_3.2.|p_3.3.|p_3.4.|p_3.5.|p_3.6.|p_crit_3.1.|p_crit_3.2.|p_crit_3.3.|p_crit_3.4.|p_crit_3.5.|p_crit_3.6.|m_flow_3.1.|m_flow_3.2.|m_flow_3.3.|m_flow_3.4.|m_flow_3.5.|m_flow_3.6.|x_flow|Nu_1.1.|Nu_1.2.|Nu_1.3.|Nu_1.4.|Nu_1.5.|Nu_1.6.|NU_2|Nu_3.1.|Nu_3.2.|Nu_3.3.|Nu_3.4.|Nu_3.5.|Nu_3.6.|kc_1.1.|kc_1.2.|kc_1.3.|kc_1.4.|kc_1.5.|kc_1.6.|kc_2|kc_3.1.|kc_3.2.|kc_3.3.|kc_3.4.|kc_3.5.|kc_3.6.|input_x_0.y|input_x_1.y|input_x_2.y|input_mflow_0.y|input_mflow_1.y|input_mflow_2.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC") Notification: Performance of loadModel(ModelicaTest): time 1.961/1.961, allocations: 209.3 MB / 222.4 MB, free: 7.711 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.982e-05/2.996e-05, allocations: 4 kB / 277.9 MB, free: 15.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0874/0.08747, allocations: 48.71 MB / 326.6 MB, free: 14.46 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3619/0.4494, allocations: 92.69 MB / 419.3 MB, free: 14.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003012/0.4498, allocations: 96.47 kB / 419.4 MB, free: 14.88 MB / 330.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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@2/OpenModelica/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@2/OpenModelica/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.156/0.6058, allocations: 38.25 MB / 457.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.6059, allocations: 0 / 457.6 MB, free: 13.88 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.79e-05/0.6059, allocations: 16 kB / 457.6 MB, free: 13.86 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: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.002203/0.6081, allocations: 1.179 MB / 458.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.6082, allocations: 8.031 kB / 458.8 MB, free: 12.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002716/0.6085, allocations: 130.4 kB / 458.9 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009156/0.6094, allocations: 489.8 kB / 459.4 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.886e-05/0.6095, allocations: 73.06 kB / 459.5 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.6097, allocations: 95.44 kB / 459.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002362/0.612, allocations: 1.295 MB / 460.9 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.996e-05/0.6121, allocations: 4 kB / 460.9 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001044/0.6122, allocations: 38.31 kB / 460.9 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.46e-05/0.6123, allocations: 60.83 kB / 461 MB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002235/0.6146, allocations: 1.243 MB / 462.2 MB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005918/0.6205, allocations: 3.098 MB / 465.3 MB, free: 7.379 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.622, allocations: 0.6643 MB / 466 MB, free: 6.715 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005417/0.6226, allocations: 235.6 kB / 466.2 MB, free: 6.492 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.661e-05/0.6227, allocations: 19.84 kB / 466.2 MB, free: 6.477 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/0.6227, allocations: 38.73 kB / 466.3 MB, free: 6.434 MB / 362.7 MB Notification: Performance of pre-optimization done (n=32): time 3.96e-06/0.6227, allocations: 0 / 466.3 MB, free: 6.434 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001675/0.6244, allocations: 0.5853 MB / 466.9 MB, free: 5.891 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001204/0.6246, allocations: 187.9 kB / 467 MB, free: 5.664 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002041/0.6266, allocations: 1.172 MB / 468.2 MB, free: 4.711 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.221e-05/0.6267, allocations: 34.27 kB / 468.3 MB, free: 4.676 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004838/0.6272, allocations: 0.4993 MB / 468.8 MB, free: 4.234 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001571/0.6274, allocations: 118.4 kB / 468.9 MB, free: 4.117 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.942e-05/0.6274, allocations: 12 kB / 468.9 MB, free: 4.105 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001816/0.6276, allocations: 342.9 kB / 469.2 MB, free: 3.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006393/0.6283, allocations: 237.4 kB / 469.4 MB, free: 3.531 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008967/0.6292, allocations: 0.5558 MB / 470 MB, free: 2.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007759/0.63, allocations: 339.7 kB / 470.3 MB, free: 2.488 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/0.63, allocations: 4 kB / 470.3 MB, free: 2.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002075/0.6321, allocations: 0.8368 MB / 471.2 MB, free: 1.641 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.113e-05/0.6322, allocations: 12 kB / 471.2 MB, free: 1.629 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.832e-05/0.6322, allocations: 8 kB / 471.2 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.166e-05/0.6322, allocations: 20 kB / 471.2 MB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008794/0.6331, allocations: 172 kB / 471.4 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.328e-05/0.6332, allocations: 23.92 kB / 471.4 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001155/0.6343, allocations: 166.5 kB / 471.6 MB, free: 1.246 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.6345, allocations: 43.98 kB / 471.6 MB, free: 1.203 MB / 362.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.0002613/0.6348, allocations: 162.9 kB / 471.8 MB, free: 1.039 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003505/0.6351, allocations: 118.5 kB / 471.9 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002094/0.6372, allocations: 0.7428 MB / 472.6 MB, free: 172 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.569e-05/0.6373, allocations: 7.984 kB / 472.6 MB, free: 164 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.485e-06/0.6373, allocations: 4 kB / 472.6 MB, free: 160 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.045e-06/0.6373, allocations: 3.984 kB / 472.6 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001881/0.6392, allocations: 0.7218 MB / 473.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.585e-06/0.6392, allocations: 0 / 473.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006922/0.6399, allocations: 115.8 kB / 473.5 MB, free: 15.26 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-05/0.64, allocations: 7.953 kB / 473.5 MB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-05/0.6401, allocations: 19.98 kB / 473.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.153e-06/0.6401, allocations: 11.92 kB / 473.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.469e-06/0.6401, allocations: 4 kB / 473.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001789/0.6419, allocations: 1.11 MB / 474.6 MB, free: 14.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006551/0.6426, allocations: 279.3 kB / 474.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002073/0.6428, allocations: 8 kB / 474.9 MB, free: 13.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009441/0.6438, allocations: 55.91 kB / 475 MB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.6439, allocations: 35.95 kB / 475 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.904e-05/0.644, allocations: 19.98 kB / 475 MB, free: 13.64 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001656/0.6457, allocations: 0.906 MB / 475.9 MB, free: 12.73 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.027e-06/0.6457, allocations: 0 / 475.9 MB, free: 12.73 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001659/0.6474, allocations: 319.8 kB / 476.2 MB, free: 12.41 MB / 378.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.0007419/0.6481, allocations: 301.1 kB / 476.5 MB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.6497, allocations: 0.5799 MB / 477.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.064e-06/0.6497, allocations: 384 / 477.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006684/0.6504, allocations: 247.7 kB / 477.4 MB, free: 11.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/0.6522, allocations: 237 kB / 477.6 MB, free: 11.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003445/0.6556, allocations: 1.503 MB / 479.1 MB, free: 9.504 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/0.6568, allocations: 1.184 MB / 480.3 MB, free: 8.289 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005082/0.6573, allocations: 91.41 kB / 480.4 MB, free: 8.199 MB / 378.7 MB Notification: Performance of SimCode: time 2.036e-06/0.6573, allocations: 0 / 480.4 MB, free: 8.199 MB / 378.7 MB Notification: Performance of Templates: time 0.03106/0.6884, allocations: 16.32 MB / 496.7 MB, free: 7.914 MB / 394.7 MB