Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.StraightPipe.kc_twoPhaseOverall_KC") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.004193/0.004198, allocations: 347.7 kB / 15.94 MB, free: 6.219 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.852/3.852, allocations: 341.5 MB / 358.2 MB, free: 12.54 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003611/0.003611, allocations: 218.1 kB / 397.9 MB, free: 4.895 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.6207/0.6207, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007103/0.0007106, allocations: 8 kB / 0.5592 GB, free: 53.42 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.09966, allocations: 48.71 MB / 0.6068 GB, free: 4.613 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5377/0.6375, allocations: 92.79 MB / 0.6974 GB, free: 19.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003771/0.6379, allocations: 95.94 kB / 0.6975 GB, free: 19.8 MB / 362.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/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/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/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.1709/0.8088, allocations: 38.22 MB / 0.7348 GB, free: 13.62 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.8089, allocations: 0 / 0.7348 GB, free: 13.62 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.531e-05/0.8089, allocations: 16 kB / 0.7348 GB, free: 13.61 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.003424/0.8124, allocations: 1.281 MB / 0.7361 GB, free: 12.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.897e-05/0.8125, allocations: 8.031 kB / 0.7361 GB, free: 12.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004214/0.8129, allocations: 134.4 kB / 0.7362 GB, free: 12.14 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.8141, allocations: 0.4902 MB / 0.7367 GB, free: 11.61 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.573e-05/0.8142, allocations: 75.5 kB / 0.7367 GB, free: 11.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001976/0.8144, allocations: 92 kB / 0.7368 GB, free: 11.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003679/0.8181, allocations: 1.396 MB / 0.7382 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.261e-05/0.8182, allocations: 0 / 0.7382 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001218/0.8183, allocations: 40 kB / 0.7382 GB, free: 9.977 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001159/0.8184, allocations: 62.08 kB / 0.7383 GB, free: 9.914 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004107/0.8226, allocations: 1.413 MB / 0.7397 GB, free: 8.492 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0077/0.8303, allocations: 3.056 MB / 0.7427 GB, free: 5.352 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.8329, allocations: 0.7375 MB / 0.7434 GB, free: 4.562 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001308/0.8343, allocations: 317.4 kB / 0.7437 GB, free: 4.234 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.068e-05/0.8344, allocations: 12.16 kB / 0.7437 GB, free: 4.223 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.555e-05/0.8345, allocations: 46.78 kB / 0.7437 GB, free: 4.168 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 3.406e-06/0.8345, allocations: 0 / 0.7437 GB, free: 4.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=32): time 0.004464/0.839, allocations: 1.002 MB / 0.7447 GB, free: 3.16 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001337/0.8391, allocations: 192 kB / 0.7449 GB, free: 2.93 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003034/0.8422, allocations: 1.346 MB / 0.7462 GB, free: 1.566 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001225/0.8424, allocations: 32.14 kB / 0.7462 GB, free: 1.531 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007355/0.8431, allocations: 0.5395 MB / 0.7468 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.8434, allocations: 118.4 kB / 0.7469 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.037e-05/0.8435, allocations: 12 kB / 0.7469 GB, free: 0.8594 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001924/0.8437, allocations: 334 kB / 0.7472 GB, free: 0.5273 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001486/0.8452, allocations: 325 kB / 0.7475 GB, free: 216 kB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001779/0.847, allocations: 0.6442 MB / 0.7481 GB, free: 15.41 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001685/0.8488, allocations: 423.5 kB / 0.7485 GB, free: 15 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.687e-05/0.8488, allocations: 7.953 kB / 0.7486 GB, free: 14.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.004178/0.853, allocations: 1.075 MB / 0.7496 GB, free: 13.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.92e-05/0.8531, allocations: 12 kB / 0.7496 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.36e-05/0.8531, allocations: 12.39 kB / 0.7496 GB, free: 13.89 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.307e-05/0.8532, allocations: 24 kB / 0.7497 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001302/0.8545, allocations: 175.7 kB / 0.7498 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.868e-05/0.8546, allocations: 23.88 kB / 0.7498 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001583/0.8562, allocations: 162.5 kB / 0.75 GB, free: 13.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001971/0.8564, allocations: 47.98 kB / 0.75 GB, free: 13.46 MB / 410.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.0009948/0.8574, allocations: 365.7 kB / 0.7504 GB, free: 13.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004136/0.8579, allocations: 118.5 kB / 0.7505 GB, free: 12.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002744/0.8606, allocations: 0.7696 MB / 0.7513 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.116e-05/0.8607, allocations: 4.562 kB / 0.7513 GB, free: 12.21 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.8607, allocations: 4 kB / 0.7513 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.328e-05/0.8608, allocations: 3.984 kB / 0.7513 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002277/0.8631, allocations: 0.7141 MB / 0.752 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.574e-05/0.8631, allocations: 4.812 kB / 0.752 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001051/0.8642, allocations: 119.8 kB / 0.7521 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.8643, allocations: 0 / 0.7521 GB, free: 11.31 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-05/0.8644, allocations: 20 kB / 0.7521 GB, free: 11.29 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.408e-05/0.8644, allocations: 7.938 kB / 0.7521 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.8644, allocations: 5.375 kB / 0.7521 GB, free: 11.28 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003469/0.8679, allocations: 1.201 MB / 0.7533 GB, free: 10.05 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008715/0.8688, allocations: 259.4 kB / 0.7535 GB, free: 9.781 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003087/0.8692, allocations: 15.94 kB / 0.7536 GB, free: 9.766 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001308/0.8705, allocations: 55.95 kB / 0.7536 GB, free: 9.711 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002138/0.8707, allocations: 31.91 kB / 0.7536 GB, free: 9.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.294e-05/0.8708, allocations: 23.98 kB / 0.7537 GB, free: 9.656 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002292/0.8731, allocations: 0.9235 MB / 0.7546 GB, free: 8.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.8732, allocations: 0 / 0.7546 GB, free: 8.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002185/0.8754, allocations: 315.8 kB / 0.7549 GB, free: 8.422 MB / 410.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.001097/0.8765, allocations: 304.3 kB / 0.7552 GB, free: 8.121 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003322/0.8799, allocations: 0.7449 MB / 0.7559 GB, free: 7.379 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.075e-06/0.88, allocations: 0 / 0.7559 GB, free: 7.379 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.8815, allocations: 336 kB / 0.7562 GB, free: 7.051 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002728/0.8843, allocations: 248.7 kB / 0.7564 GB, free: 6.809 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00579/0.8901, allocations: 2.153 MB / 0.7585 GB, free: 4.609 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001196/0.8914, allocations: 1.18 MB / 0.7597 GB, free: 3.402 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00188/0.8933, allocations: 406.6 kB / 0.7601 GB, free: 3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004431/0.8938, allocations: 83.42 kB / 0.7602 GB, free: 2.918 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/0.8938, allocations: 0 / 0.7602 GB, free: 2.918 MB / 410.7 MB Notification: Performance of Templates: time 0.3549/1.249, allocations: 15.82 MB / 0.7756 GB, free: 113.3 MB / 410.7 MB