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 2.012/2.012, allocations: 209.3 MB / 224.9 MB, free: 280 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004343/0.0004345, allocations: 11.98 kB / 282.6 MB, free: 9.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2812, allocations: 48.7 MB / 331.3 MB, free: 6.508 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1371/0.4183, allocations: 92.8 MB / 424.1 MB, free: 1.582 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003264/0.4187, allocations: 99.92 kB / 424.2 MB, free: 1.484 MB / 346.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.1559/0.5747, allocations: 38.19 MB / 462.4 MB, free: 10.83 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.657e-06/0.5747, allocations: 0 / 462.4 MB, free: 10.83 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.951e-05/0.5748, allocations: 16 kB / 462.4 MB, free: 10.82 MB / 394.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.00245/0.5772, allocations: 1.285 MB / 463.7 MB, free: 9.477 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.5773, allocations: 8.031 kB / 463.7 MB, free: 9.469 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002982/0.5776, allocations: 134.3 kB / 463.8 MB, free: 9.336 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009411/0.5786, allocations: 494.2 kB / 464.3 MB, free: 8.809 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.589e-05/0.5787, allocations: 74 kB / 464.4 MB, free: 8.738 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001774/0.5789, allocations: 96 kB / 464.5 MB, free: 8.645 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0029/0.5818, allocations: 1.384 MB / 465.9 MB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.63e-05/0.5818, allocations: 0 / 465.9 MB, free: 7.227 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001156/0.582, allocations: 43.98 kB / 465.9 MB, free: 7.184 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.676e-05/0.5821, allocations: 62.08 kB / 466 MB, free: 7.121 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003124/0.5852, allocations: 1.417 MB / 467.4 MB, free: 5.695 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00614/0.5914, allocations: 3.101 MB / 470.5 MB, free: 2.504 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.5934, allocations: 0.7381 MB / 471.2 MB, free: 1.711 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.057e-05/0.5935, allocations: 20.16 kB / 471.2 MB, free: 1.691 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.133e-05/0.5935, allocations: 34.8 kB / 471.3 MB, free: 1.648 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 4.162e-06/0.5935, allocations: 0 / 471.3 MB, free: 1.648 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.003316/0.5969, allocations: 1.018 MB / 472.3 MB, free: 0.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.597, allocations: 188 kB / 472.5 MB, free: 408 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2639/0.861, allocations: 1.185 MB / 473.7 MB, free: 111.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.379e-05/0.8611, allocations: 30.92 kB / 473.7 MB, free: 111.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.8615, allocations: 0.4978 MB / 474.2 MB, free: 111.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000134/0.8616, allocations: 120.2 kB / 474.3 MB, free: 111.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.514e-05/0.8617, allocations: 10.88 kB / 474.3 MB, free: 111.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.783e-05/0.8618, allocations: 337.5 kB / 474.6 MB, free: 111.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009591/0.8627, allocations: 324.5 kB / 475 MB, free: 111.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.8638, allocations: 0.6424 MB / 475.6 MB, free: 110.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.8649, allocations: 409.8 kB / 476 MB, free: 110.9 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/0.8649, allocations: 4.281 kB / 476 MB, free: 110.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.00264/0.8676, allocations: 0.9954 MB / 477 MB, free: 110.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.8676, allocations: 10.5 kB / 477 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.112e-05/0.8677, allocations: 11.53 kB / 477 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.762e-05/0.8677, allocations: 17.03 kB / 477 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007709/0.8685, allocations: 173.8 kB / 477.2 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.079e-05/0.8686, allocations: 21.95 kB / 477.2 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001062/0.8696, allocations: 167.2 kB / 477.4 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/0.8698, allocations: 46.06 kB / 477.4 MB, free: 110.8 MB / 394.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 () * Number of clocked 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.0006038/0.8704, allocations: 362 kB / 477.8 MB, free: 110.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003078/0.8707, allocations: 126.6 kB / 477.9 MB, free: 110.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001928/0.8726, allocations: 0.7827 MB / 478.7 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.1e-05/0.8727, allocations: 5.031 kB / 478.7 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.8727, allocations: 1.062 kB / 478.7 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.857e-06/0.8727, allocations: 2.625 kB / 478.7 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001558/0.8743, allocations: 0.7161 MB / 479.4 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.849e-06/0.8743, allocations: 4.219 kB / 479.4 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005856/0.8749, allocations: 117.6 kB / 479.5 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.025e-05/0.8749, allocations: 5 kB / 479.6 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-05/0.875, allocations: 20.11 kB / 479.6 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.986e-06/0.875, allocations: 2.906 kB / 479.6 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.158e-06/0.875, allocations: 2.25 kB / 479.6 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002028/0.8771, allocations: 1.274 MB / 480.9 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005299/0.8776, allocations: 275.2 kB / 481.1 MB, free: 109.5 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001962/0.8778, allocations: 7.875 kB / 481.1 MB, free: 109.5 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008694/0.8787, allocations: 55.77 kB / 481.2 MB, free: 109.5 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001332/0.8789, allocations: 41.75 kB / 481.2 MB, free: 109.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.259e-05/0.8789, allocations: 20.77 kB / 481.2 MB, free: 109.5 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001465/0.8804, allocations: 0.9221 MB / 482.2 MB, free: 109.3 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.93e-07/0.8804, allocations: 2.516 kB / 482.2 MB, free: 109.3 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001582/0.882, allocations: 312.3 kB / 482.5 MB, free: 109.3 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 () * Number of clocked 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.0006081/0.8827, allocations: 308.3 kB / 482.8 MB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002021/0.8847, allocations: 0.7413 MB / 483.5 MB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.705e-06/0.8847, allocations: 3.094 kB / 483.5 MB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009219/0.8857, allocations: 332.4 kB / 483.8 MB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.8872, allocations: 238.3 kB / 484.1 MB, free: 109.2 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003477/0.8907, allocations: 2.194 MB / 486.3 MB, free: 108.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007777/0.8915, allocations: 1.179 MB / 487.4 MB, free: 107.6 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004442/0.892, allocations: 96.53 kB / 487.5 MB, free: 107.6 MB / 394.7 MB Notification: Performance of SimCode: time 1.606e-06/0.892, allocations: 0 / 487.5 MB, free: 107.6 MB / 394.7 MB Notification: Performance of Templates: time 0.02592/0.9179, allocations: 16.34 MB / 0.4921 GB, free: 103.7 MB / 394.7 MB