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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.051/2.051, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.585e-05/1.598e-05, allocations: 4 kB / 271.4 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2797, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.4327, allocations: 92.03 MB / 412.1 MB, free: 4.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003474/0.4331, allocations: 103.9 kB / 412.2 MB, free: 4.266 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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/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/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.4381/0.8712, allocations: 37.8 MB / 450 MB, free: 106.8 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.502e-06/0.8712, allocations: 3.688 kB / 450 MB, free: 106.8 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.132e-05/0.8713, allocations: 14.34 kB / 450 MB, free: 106.8 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.001886/0.8732, allocations: 1.185 MB / 451.2 MB, free: 106.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.8733, allocations: 11.98 kB / 451.2 MB, free: 106.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/0.8735, allocations: 129.1 kB / 451.3 MB, free: 106.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008509/0.8744, allocations: 492.1 kB / 451.8 MB, free: 105.9 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.902e-05/0.8744, allocations: 32.59 kB / 451.8 MB, free: 105.9 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001351/0.8746, allocations: 57.86 kB / 451.9 MB, free: 105.9 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002034/0.8766, allocations: 1.153 MB / 453 MB, free: 105.9 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00205/0.8787, allocations: 1.159 MB / 454.2 MB, free: 105.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.848e-05/0.8788, allocations: 0 / 454.2 MB, free: 105.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.145e-05/0.8789, allocations: 1.156 kB / 454.2 MB, free: 105.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.684e-05/0.879, allocations: 56.39 kB / 454.3 MB, free: 105.8 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004908/0.8839, allocations: 2.684 MB / 456.9 MB, free: 105 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.885, allocations: 0.6453 MB / 457.6 MB, free: 104.8 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003939/0.8854, allocations: 218.2 kB / 457.8 MB, free: 104.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.982e-05/0.8855, allocations: 14.38 kB / 457.8 MB, free: 104.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.8855, allocations: 46.64 kB / 457.9 MB, free: 104.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 3.881e-06/0.8856, allocations: 0 / 457.9 MB, free: 104.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=32): time 0.001309/0.8869, allocations: 0.5114 MB / 458.4 MB, free: 104.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.8869, allocations: 189.9 kB / 458.6 MB, free: 104.4 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007209/0.8877, allocations: 0.5592 MB / 459.1 MB, free: 104.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.865e-05/0.8877, allocations: 25.7 kB / 459.1 MB, free: 104.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002868/0.888, allocations: 0.5903 MB / 459.7 MB, free: 103.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001081/0.8881, allocations: 114 kB / 459.8 MB, free: 103.8 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.133e-05/0.8882, allocations: 0 / 459.8 MB, free: 103.8 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.31e-05/0.8883, allocations: 338 kB / 460.2 MB, free: 103.5 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004931/0.8888, allocations: 232.9 kB / 460.4 MB, free: 103.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006129/0.8894, allocations: 0.5375 MB / 460.9 MB, free: 103.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.8901, allocations: 326.4 kB / 461.3 MB, free: 103.1 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/0.8901, allocations: 6.688 kB / 461.3 MB, free: 103.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001643/0.8917, allocations: 0.7567 MB / 462 MB, free: 103.1 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.456e-05/0.8918, allocations: 7.844 kB / 462 MB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.761e-05/0.8918, allocations: 11.81 kB / 462 MB, free: 103.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.269e-05/0.8919, allocations: 23.5 kB / 462.1 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008314/0.8927, allocations: 171.6 kB / 462.2 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.998e-05/0.8927, allocations: 22.8 kB / 462.3 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009125/0.8937, allocations: 83.52 kB / 462.3 MB, free: 103 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/0.8938, allocations: 49.84 kB / 462.4 MB, free: 103 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.0002192/0.894, allocations: 144.3 kB / 462.5 MB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002602/0.8943, allocations: 80.55 kB / 462.6 MB, free: 102.9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001619/0.8959, allocations: 0.6726 MB / 463.3 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.303e-06/0.896, allocations: 3.969 kB / 463.3 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.896, allocations: 3.688 kB / 463.3 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.585e-06/0.896, allocations: 3.844 kB / 463.3 MB, free: 102.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001488/0.8975, allocations: 0.6376 MB / 463.9 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.064e-06/0.8975, allocations: 5.766 kB / 463.9 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006803/0.8982, allocations: 120.1 kB / 464 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.472e-06/0.8982, allocations: 3.688 kB / 464 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-05/0.8983, allocations: 15.56 kB / 464.1 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.213e-06/0.8983, allocations: 7.797 kB / 464.1 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.116e-06/0.8983, allocations: 1.5 kB / 464.1 MB, free: 102.6 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001282/0.8996, allocations: 1.039 MB / 465.1 MB, free: 102 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000391/0.9001, allocations: 217 kB / 465.3 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.9002, allocations: 0 / 465.3 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008206/0.901, allocations: 51.94 kB / 465.4 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.9012, allocations: 45.19 kB / 465.4 MB, free: 101.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.421e-05/0.9013, allocations: 17.28 kB / 465.4 MB, free: 101.8 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005292/0.9018, allocations: 416.4 kB / 465.8 MB, free: 101.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.15e-07/0.9018, allocations: 3.875 kB / 465.8 MB, free: 101.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001701/0.9035, allocations: 351.3 kB / 466.2 MB, free: 101.6 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.0006289/0.9042, allocations: 316.2 kB / 466.5 MB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.9054, allocations: 0.5423 MB / 467 MB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.026e-06/0.9054, allocations: 7.156 kB / 467 MB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005001/0.9059, allocations: 238.9 kB / 467.3 MB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.907, allocations: 112.7 kB / 467.4 MB, free: 101.4 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002775/0.9098, allocations: 1.351 MB / 468.7 MB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007765/0.9106, allocations: 1.189 MB / 469.9 MB, free: 100.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004031/0.911, allocations: 75.75 kB / 470 MB, free: 100.2 MB / 378.7 MB Notification: Performance of SimCode: time 1.702e-06/0.911, allocations: 1.156 kB / 470 MB, free: 100.2 MB / 378.7 MB Notification: Performance of Templates: time 0.01963/0.9307, allocations: 13.08 MB / 483.1 MB, free: 90.19 MB / 378.7 MB