Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Re|m_flow.1.|m_flow.2.|m_flow.3.|m_flow.4.|Nu.1.|Nu.2.|Nu.3.|Nu.4.|input_Re.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube") Notification: Performance of loadModel(ModelicaTest): time 2.47/2.47, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.789e-05/2.798e-05, allocations: 4 kB / 309.7 MB, free: 1.305 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3436, allocations: 54.85 MB / 364.6 MB, free: 5.402 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1792/0.5229, allocations: 96.03 MB / 460.6 MB, free: 296 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003146/0.5232, allocations: 92.66 kB / 460.7 MB, free: 204 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05194/0.5752, allocations: 12.33 MB / 473 MB, free: 3.859 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.087e-06/0.5753, allocations: 0 / 473 MB, free: 3.859 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.676e-05/0.5753, allocations: 4 kB / 473 MB, free: 3.855 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.0009638/0.5763, allocations: 0.5801 MB / 473.6 MB, free: 3.23 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.5763, allocations: 8.031 kB / 473.6 MB, free: 3.223 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.899e-05/0.5764, allocations: 39.53 kB / 473.6 MB, free: 3.184 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003489/0.5768, allocations: 230.6 kB / 473.9 MB, free: 2.918 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.536e-05/0.5768, allocations: 28.72 kB / 473.9 MB, free: 2.891 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.185e-05/0.5769, allocations: 32 kB / 473.9 MB, free: 2.859 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006544/0.5776, allocations: 351.7 kB / 474.3 MB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.5776, allocations: 0 / 474.3 MB, free: 2.508 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.778e-05/0.5777, allocations: 19.94 kB / 474.3 MB, free: 2.488 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.5777, allocations: 8 kB / 474.3 MB, free: 2.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004441/0.5781, allocations: 227.1 kB / 474.5 MB, free: 2.258 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001731/0.5799, allocations: 0.8991 MB / 475.4 MB, free: 1.305 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002321/0.5801, allocations: 74.56 kB / 475.5 MB, free: 1.223 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.5803, allocations: 32.91 kB / 475.5 MB, free: 1.188 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.633e-05/0.5803, allocations: 8.031 kB / 475.5 MB, free: 1.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.5804, allocations: 30.56 kB / 475.6 MB, free: 1.141 MB / 394.7 MB Notification: Performance of pre-optimization done (n=9): time 3.042e-06/0.5804, allocations: 0 / 475.6 MB, free: 1.141 MB / 394.7 MB Notification: Performance of matching and sorting (n=9): time 0.0004024/0.5808, allocations: 129.2 kB / 475.7 MB, free: 1.008 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.506e-05/0.5809, allocations: 55.41 kB / 475.7 MB, free: 0.9414 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005229/0.5814, allocations: 351 kB / 476.1 MB, free: 0.5898 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.729e-05/0.5814, allocations: 25.7 kB / 476.1 MB, free: 0.5586 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002275/0.5817, allocations: 289.6 kB / 476.4 MB, free: 280 kB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.609e-05/0.5817, allocations: 35.53 kB / 476.4 MB, free: 244 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.723e-05/0.5818, allocations: 4 kB / 476.4 MB, free: 240 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.582, allocations: 326.8 kB / 476.7 MB, free: 15.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.5821, allocations: 48.02 kB / 476.8 MB, free: 15.86 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003164/0.5824, allocations: 242.4 kB / 477 MB, free: 15.53 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002093/0.5827, allocations: 83.84 kB / 477.1 MB, free: 15.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.323e-06/0.5827, allocations: 8 kB / 477.1 MB, free: 15.44 MB / 410.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006927/0.5834, allocations: 285.4 kB / 477.4 MB, free: 15.15 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.219e-05/0.5834, allocations: 8 kB / 477.4 MB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.5e-05/0.5835, allocations: 35.98 kB / 477.4 MB, free: 15.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/0.5836, allocations: 8 kB / 477.4 MB, free: 15.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/0.5838, allocations: 55.91 kB / 477.5 MB, free: 15.05 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.852e-05/0.5839, allocations: 28.25 kB / 477.5 MB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003579/0.5842, allocations: 63.28 kB / 477.6 MB, free: 14.96 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.5843, allocations: 24 kB / 477.6 MB, free: 14.93 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 5 (m_flow_IN_con_4.N,m_flow_IN_con_4.geometry,m_flow_IN_con_3.geometry,m_flow_IN_con_2.geometry,m_flow_IN_con_1.geometry) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0001307/0.5844, allocations: 124.8 kB / 477.7 MB, free: 14.8 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.286e-05/0.5845, allocations: 31.62 kB / 477.8 MB, free: 14.77 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006007/0.5852, allocations: 184.8 kB / 477.9 MB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.849e-06/0.5852, allocations: 8 kB / 478 MB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.23e-06/0.5852, allocations: 0 / 478 MB, free: 14.58 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.223e-05/0.5852, allocations: 11.92 kB / 478 MB, free: 14.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004674/0.5857, allocations: 273.5 kB / 478.2 MB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.256e-05/0.5858, allocations: 23.92 kB / 478.3 MB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.99e-05/0.5859, allocations: 11.98 kB / 478.3 MB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.177e-06/0.5859, allocations: 0 / 478.3 MB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.5859, allocations: 4 kB / 478.3 MB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.06e-06/0.5859, allocations: 0 / 478.3 MB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.982e-06/0.5859, allocations: 8 kB / 478.3 MB, free: 14.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003944/0.5863, allocations: 223 kB / 478.5 MB, free: 13.97 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001279/0.5865, allocations: 116.6 kB / 478.6 MB, free: 13.84 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.5865, allocations: 4 kB / 478.6 MB, free: 13.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.5868, allocations: 7.984 kB / 478.6 MB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/0.5868, allocations: 8 kB / 478.6 MB, free: 13.82 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.266e-05/0.5869, allocations: 7.984 kB / 478.6 MB, free: 13.81 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003845/0.5873, allocations: 269.2 kB / 478.9 MB, free: 13.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.5873, allocations: 0 / 478.9 MB, free: 13.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008424/0.5881, allocations: 135.9 kB / 479 MB, free: 13.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0006728/0.5888, allocations: 278.8 kB / 479.3 MB, free: 13.14 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0007275/0.5896, allocations: 284.2 kB / 479.6 MB, free: 12.84 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.433e-06/0.5896, allocations: 0 / 479.6 MB, free: 12.84 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003688/0.59, allocations: 170.8 kB / 479.7 MB, free: 12.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003535/0.5903, allocations: 44.47 kB / 479.8 MB, free: 12.61 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009576/0.5913, allocations: 385.8 kB / 480.2 MB, free: 12.2 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000503/0.5918, allocations: 0.7872 MB / 481 MB, free: 11.39 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.495e-05/0.5919, allocations: 23.44 kB / 481 MB, free: 11.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.62e-06/0.5919, allocations: 0 / 481 MB, free: 11.36 MB / 410.7 MB Notification: Performance of Templates: time 0.01685/0.6088, allocations: 9.869 MB / 490.8 MB, free: 1.496 MB / 410.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.HeatTransfer.HeatExchanger.kc_roundTube_res.mat failed! " Variables in the reference:time,Re,m_flow[1],m_flow[2],m_flow[3],m_flow[4],Nu[1],Nu[2],Nu[3],Nu[4],input_Re.y Variables in the result:A_fr,D_c_1,D_c_2,D_c_3,D_c_4,F_p_1,F_p_2,F_p_3,F_p_4,L_2,L_h_2,L_p_2,N_1,N_2,N_3,N_4,Nu[1],Nu[2],Nu[3],Nu[4],P_l_1,P_l_2,P_l_3,P_l_4,P_t_1,P_t_2,P_t_3,P_t_4,Re,S_h_3,S_p_3,cp,delta_f,delta_f_3,eta,input_Re.duration,input_Re.height,input_Re.offset,input_Re.startTime,input_Re.y,lambda,m_flow[1],m_flow[2],m_flow[3],m_flow[4],m_flow_IN_con_1.A_fr,m_flow_IN_con_1.D_c,m_flow_IN_con_1.F_p,m_flow_IN_con_1.L,m_flow_IN_con_1.L_h,m_flow_IN_con_1.L_p,m_flow_IN_con_1.N,m_flow_IN_con_1.P_d,m_flow_IN_con_1.P_l,m_flow_IN_con_1.P_t,m_flow_IN_con_1.S_h,m_flow_IN_con_1.S_p,m_flow_IN_con_1.X_f,m_flow_IN_con_1.delta_f,m_flow_IN_con_1.geometry,m_flow_IN_con_2.A_fr,m_flow_IN_con_2.D_c,m_flow_IN_con_2.F_p,m_flow_IN_con_2.L,m_flow_IN_con_2.L_h,m_flow_IN_con_2.L_p,m_flow_IN_con_2.N,m_flow_IN_con_2.P_d,m_flow_IN_con_2.P_l,m_flow_IN_con_2.P_t,m_flow_IN_con_2.S_h,m_flow_IN_con_2.S_p,m_flow_IN_con_2.X_f,m_flow_IN_con_2.delta_f,m_flow_IN_con_2.geometry,m_flow_IN_con_3.A_fr,m_flow_IN_con_3.D_c,m_flow_IN_con_3.F_p,m_flow_IN_con_3.L,m_flow_IN_con_3.L_h,m_flow_IN_con_3.L_p,m_flow_IN_con_3.N,m_flow_IN_con_3.P_d,m_flow_IN_con_3.P_l,m_flow_IN_con_3.P_t,m_flow_IN_con_3.S_h,m_flow_IN_con_3.S_p,m_flow_IN_con_3.X_f,m_flow_IN_con_3.delta_f,m_flow_IN_con_3.geometry,m_flow_IN_con_4.A_fr,m_flow_IN_con_4.D_c,m_flow_IN_con_4.F_p,m_flow_IN_con_4.L,m_flow_IN_con_4.L_h,m_flow_IN_con_4.L_p,m_flow_IN_con_4.N,m_flow_IN_con_4.P_d,m_flow_IN_con_4.P_l,m_flow_IN_con_4.P_t,m_flow_IN_con_4.S_h,m_flow_IN_con_4.S_p,m_flow_IN_con_4.X_f,m_flow_IN_con_4.delta_f,m_flow_IN_con_4.geometry,m_flow_IN_var_1.cp,m_flow_IN_var_1.eta,m_flow_IN_var_1.lambda,m_flow_IN_var_1.m_flow,m_flow_IN_var_1.rho,m_flow_IN_var_2.cp,m_flow_IN_var_2.eta,m_flow_IN_var_2.lambda,m_flow_IN_var_2.m_flow,m_flow_IN_var_2.rho,m_flow_IN_var_3.cp,m_flow_IN_var_3.eta,m_flow_IN_var_3.lambda,m_flow_IN_var_3.m_flow,m_flow_IN_var_3.rho,m_flow_IN_var_4.cp,m_flow_IN_var_4.eta,m_flow_IN_var_4.lambda,m_flow_IN_var_4.m_flow,m_flow_IN_var_4.rho,n,rho,time