Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.107/2.107, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004289/0.000429, allocations: 12 kB / 283.1 MB, free: 9.66 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3732/0.3736, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1782/0.5518, allocations: 92.79 MB / 424.6 MB, free: 1.617 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003866/0.5523, allocations: 99.94 kB / 424.7 MB, free: 1.52 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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/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.174/0.7263, allocations: 38.19 MB / 462.9 MB, free: 10.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.7264, allocations: 0 / 462.9 MB, free: 10.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.72e-05/0.7264, allocations: 16 kB / 462.9 MB, free: 10.84 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.003331/0.7298, allocations: 1.289 MB / 464.2 MB, free: 9.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.7298, allocations: 8.031 kB / 464.2 MB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000354/0.7302, allocations: 134.3 kB / 464.4 MB, free: 9.359 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001193/0.7314, allocations: 498.1 kB / 464.8 MB, free: 8.832 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.49e-05/0.7315, allocations: 77.94 kB / 464.9 MB, free: 8.754 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001996/0.7317, allocations: 95.98 kB / 465 MB, free: 8.66 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003731/0.7355, allocations: 1.388 MB / 466.4 MB, free: 7.234 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.756e-05/0.7356, allocations: 3.938 kB / 466.4 MB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001185/0.7357, allocations: 36 kB / 466.4 MB, free: 7.195 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.7358, allocations: 66.08 kB / 466.5 MB, free: 7.129 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004244/0.7401, allocations: 1.41 MB / 467.9 MB, free: 5.711 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007934/0.7481, allocations: 3.105 MB / 471 MB, free: 2.52 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002497/0.7506, allocations: 0.7419 MB / 471.8 MB, free: 1.723 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.606e-05/0.7507, allocations: 8.219 kB / 471.8 MB, free: 1.715 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/0.7508, allocations: 38.8 kB / 471.8 MB, free: 1.668 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 2.815e-06/0.7508, allocations: 3.938 kB / 471.8 MB, free: 1.664 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.006272/0.7571, allocations: 1.002 MB / 472.8 MB, free: 0.6562 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001641/0.7573, allocations: 191.8 kB / 473 MB, free: 436 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3265/1.084, allocations: 1.337 MB / 474.3 MB, free: 111.8 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001135/1.084, allocations: 31.23 kB / 474.4 MB, free: 111.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004628/1.084, allocations: 0.5007 MB / 474.9 MB, free: 111.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/1.085, allocations: 117.8 kB / 475 MB, free: 111.6 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/1.085, allocations: 11.5 kB / 475 MB, free: 111.6 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.95e-05/1.085, allocations: 337.4 kB / 475.3 MB, free: 111.3 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001449/1.086, allocations: 327.5 kB / 475.6 MB, free: 111.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/1.088, allocations: 0.6422 MB / 476.3 MB, free: 110.9 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001686/1.09, allocations: 414.6 kB / 476.7 MB, free: 110.9 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.73e-05/1.09, allocations: 3.25 kB / 476.7 MB, free: 110.9 MB / 394.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.003977/1.094, allocations: 0.9883 MB / 477.7 MB, free: 110.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.955e-05/1.094, allocations: 11.81 kB / 477.7 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-05/1.094, allocations: 10.78 kB / 477.7 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.782e-05/1.094, allocations: 17.52 kB / 477.7 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/1.095, allocations: 174.6 kB / 477.9 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.745e-05/1.095, allocations: 28.55 kB / 477.9 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001556/1.097, allocations: 170.4 kB / 478.1 MB, free: 110.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001782/1.097, allocations: 41.69 kB / 478.1 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.0009093/1.098, allocations: 379.6 kB / 478.5 MB, free: 110.7 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/1.099, allocations: 116.2 kB / 478.6 MB, free: 110.6 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002619/1.101, allocations: 0.7769 MB / 479.4 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.465e-05/1.101, allocations: 7.219 kB / 479.4 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/1.101, allocations: 2.156 kB / 479.4 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.101, allocations: 6.141 kB / 479.4 MB, free: 110.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001999/1.103, allocations: 0.7133 MB / 480.1 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/1.103, allocations: 6.859 kB / 480.1 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009966/1.104, allocations: 118.2 kB / 480.2 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.477e-05/1.104, allocations: 2.562 kB / 480.2 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.882e-05/1.104, allocations: 17.75 kB / 480.3 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.758e-06/1.105, allocations: 7.266 kB / 480.3 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.598e-06/1.105, allocations: 1.344 kB / 480.3 MB, free: 110.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/1.108, allocations: 1.205 MB / 481.5 MB, free: 109.7 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007891/1.108, allocations: 278.6 kB / 481.7 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003856/1.109, allocations: 10.53 kB / 481.8 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001227/1.11, allocations: 48.66 kB / 481.8 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001924/1.11, allocations: 41.8 kB / 481.8 MB, free: 109.6 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-05/1.11, allocations: 21.02 kB / 481.9 MB, free: 109.6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002107/1.113, allocations: 0.9195 MB / 482.8 MB, free: 109.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.62e-07/1.113, allocations: 1.188 kB / 482.8 MB, free: 109.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002113/1.115, allocations: 315.2 kB / 483.1 MB, free: 109.4 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.001083/1.116, allocations: 305.5 kB / 483.4 MB, free: 109.4 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003136/1.119, allocations: 0.746 MB / 484.1 MB, free: 109.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.096e-06/1.119, allocations: 3.562 kB / 484.1 MB, free: 109.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/1.12, allocations: 328.5 kB / 484.5 MB, free: 109.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002233/1.123, allocations: 248.5 kB / 484.7 MB, free: 109.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005378/1.128, allocations: 2.192 MB / 486.9 MB, free: 108.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009325/1.129, allocations: 1.175 MB / 488.1 MB, free: 107.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006537/1.13, allocations: 95.31 kB / 488.2 MB, free: 107.7 MB / 394.7 MB Notification: Performance of SimCode: time 1.262e-06/1.13, allocations: 0 / 488.2 MB, free: 107.7 MB / 394.7 MB Notification: Performance of Templates: time 0.03425/1.164, allocations: 16.34 MB / 0.4927 GB, free: 103.8 MB / 394.7 MB