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.PressureLoss.Bend.dp_edgedOverall_DPMFLOW.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|delta.1.|delta.2.|delta.3.|delta.4.|eta|rho|input_mdot.1.|input_mdot.2.|input_mdot.3.|input_mdot.4.|input_dp.1.|input_dp.2.|input_dp.3.|input_dp.4.|M_FLOW.1.|M_FLOW.2.|M_FLOW.3.|M_FLOW.4.|DP.1.|DP.2.|DP.3.|DP.4.|DP_plot.1.|DP_plot.2.|DP_plot.3.|DP_plot.4.|velocity.1.|velocity.2.|velocity.3.|velocity.4.|Re.1.|Re.2.|Re.3.|Re.4.|zeta_TOT.1.|zeta_TOT.2.|zeta_TOT.3.|zeta_TOT.4.|input_DP.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW") Notification: Performance of loadModel(ModelicaTest): time 2.257/2.257, allocations: 235.1 MB / 243 MB, free: 9.578 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.415e-05/1.406e-05, allocations: 0 / 303.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2734, allocations: 54.86 MB / 358.1 MB, free: 14.84 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.178/0.4515, allocations: 92.29 MB / 450.4 MB, free: 2.418 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003163/0.4518, allocations: 95.92 kB / 450.4 MB, free: 2.324 MB / 378.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:4809:11-4812:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Fluid/Dissipation.mo:4822:11-4825:59:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.06766/0.5195, allocations: 15.01 MB / 465.5 MB, free: 3.211 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.957e-06/0.5195, allocations: 0 / 465.5 MB, free: 3.211 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.625e-05/0.5196, allocations: 4 kB / 465.5 MB, free: 3.207 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: 75 * Number of variables: 75 Notification: Performance of Generate backend data structure: time 0.0009991/0.5206, allocations: 0.5506 MB / 466 MB, free: 2.613 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.5206, allocations: 8.031 kB / 466 MB, free: 2.605 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.358e-05/0.5207, allocations: 31.56 kB / 466 MB, free: 2.574 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003438/0.5211, allocations: 234.7 kB / 466.3 MB, free: 2.305 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.5211, allocations: 8 kB / 466.3 MB, free: 2.297 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.617e-05/0.5212, allocations: 12 kB / 466.3 MB, free: 2.285 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006165/0.5218, allocations: 309.2 kB / 466.6 MB, free: 1.984 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.5224, allocations: 320.9 kB / 466.9 MB, free: 1.66 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.268e-05/0.5225, allocations: 4 kB / 466.9 MB, free: 1.656 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.97e-05/0.5225, allocations: 0 / 466.9 MB, free: 1.656 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.736e-05/0.5226, allocations: 32.77 kB / 466.9 MB, free: 1.625 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001834/0.5244, allocations: 0.9649 MB / 467.9 MB, free: 0.5703 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006362/0.5251, allocations: 246.7 kB / 468.2 MB, free: 328 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001724/0.5253, allocations: 85.88 kB / 468.2 MB, free: 240 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.5253, allocations: 8.25 kB / 468.2 MB, free: 232 kB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.5254, allocations: 38.75 kB / 468.3 MB, free: 184 kB / 394.7 MB Notification: Performance of pre-optimization done (n=21): time 2.438e-06/0.5254, allocations: 0 / 468.3 MB, free: 184 kB / 394.7 MB Notification: Performance of matching and sorting (n=21): time 0.2573/0.7827, allocations: 192.7 kB / 468.5 MB, free: 99.5 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.615e-05/0.7828, allocations: 54 kB / 468.5 MB, free: 99.43 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.7829, allocations: 114 kB / 468.6 MB, free: 99.34 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 4.185e-05/0.783, allocations: 28.23 kB / 468.7 MB, free: 99.31 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.26e-05/0.7831, allocations: 226.6 kB / 468.9 MB, free: 99.16 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.502e-05/0.7832, allocations: 71.62 kB / 469 MB, free: 99.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.65e-05/0.7832, allocations: 0 / 469 MB, free: 99.12 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.014e-05/0.7833, allocations: 323.9 kB / 469.3 MB, free: 98.81 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001748/0.7835, allocations: 61.08 kB / 469.3 MB, free: 98.81 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.7837, allocations: 89.53 kB / 469.4 MB, free: 98.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.7839, allocations: 76.23 kB / 469.5 MB, free: 98.79 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.736e-06/0.7839, allocations: 1.984 kB / 469.5 MB, free: 98.79 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006071/0.7845, allocations: 208.2 kB / 469.7 MB, free: 98.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.468e-05/0.7846, allocations: 8.719 kB / 469.7 MB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.978e-06/0.7846, allocations: 1.062 kB / 469.7 MB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.196e-05/0.7846, allocations: 2.219 kB / 469.7 MB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006284/0.7853, allocations: 89.86 kB / 469.8 MB, free: 98.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00113/0.7864, allocations: 2.388 MB / 472.2 MB, free: 96.41 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002243/0.7867, allocations: 20.36 kB / 472.2 MB, free: 96.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.296e-05/0.7867, allocations: 15.84 kB / 472.2 MB, free: 96.41 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 9.363e-05/0.7869, allocations: 106.4 kB / 472.3 MB, free: 96.3 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.079e-05/0.7869, allocations: 16.89 kB / 472.3 MB, free: 96.29 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008003/0.7877, allocations: 306.2 kB / 472.6 MB, free: 96.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.329e-06/0.7878, allocations: 2.75 kB / 472.6 MB, free: 96.24 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.7878, allocations: 2.625 kB / 472.6 MB, free: 96.24 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.807e-06/0.7878, allocations: 2.109 kB / 472.6 MB, free: 96.24 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004038/0.7882, allocations: 261.8 kB / 472.9 MB, free: 96.08 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.126e-06/0.7882, allocations: 0.8125 kB / 472.9 MB, free: 96.08 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00061/0.7889, allocations: 94.78 kB / 473 MB, free: 96.08 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.569e-06/0.7889, allocations: 1.469 kB / 473 MB, free: 96.08 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.94e-05/0.7889, allocations: 8.547 kB / 473 MB, free: 96.07 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001015/0.79, allocations: 2.386 MB / 475.4 MB, free: 93.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.642e-06/0.79, allocations: 0.5938 kB / 475.4 MB, free: 93.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005757/0.7906, allocations: 322.5 kB / 475.7 MB, free: 93.59 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/0.7907, allocations: 126.6 kB / 475.8 MB, free: 93.49 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.568e-05/0.7908, allocations: 0.6562 kB / 475.8 MB, free: 93.49 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.791, allocations: 11.91 kB / 475.8 MB, free: 93.49 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.682e-05/0.7911, allocations: 21.42 kB / 475.9 MB, free: 93.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/0.7911, allocations: 8.297 kB / 475.9 MB, free: 93.49 MB / 394.7 MB Notification: Performance of sorting global known variables: time 6.205e-05/0.7912, allocations: 93.22 kB / 476 MB, free: 93.41 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-07/0.7912, allocations: 1.125 kB / 476 MB, free: 93.41 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000764/0.792, allocations: 179.8 kB / 476.1 MB, free: 93.41 MB / 394.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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005892/0.7926, allocations: 268.2 kB / 476.4 MB, free: 93.32 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0007162/0.7933, allocations: 209.5 kB / 476.6 MB, free: 93.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.117e-06/0.7933, allocations: 0 / 476.6 MB, free: 93.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004853/0.7938, allocations: 138.6 kB / 476.7 MB, free: 93.31 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002466/0.7941, allocations: 11.75 kB / 476.8 MB, free: 93.31 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008283/0.7949, allocations: 378.6 kB / 477.1 MB, free: 93.15 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.7952, allocations: 0.7893 MB / 477.9 MB, free: 92.45 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001082/0.7954, allocations: 25.28 kB / 477.9 MB, free: 92.45 MB / 394.7 MB Notification: Performance of SimCode: time 1.492e-06/0.7954, allocations: 0 / 477.9 MB, free: 92.45 MB / 394.7 MB Notification: Performance of Templates: time 0.01238/0.8078, allocations: 8.166 MB / 486.1 MB, free: 91.88 MB / 394.7 MB "Error: Could not read variable MIN in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW_res.mat. Warning: Get data of variable MIN from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW_res.mat failed! Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Bend.dp_edgedOverall_DPMFLOW_res.mat failed! " Variables in the reference:time,delta[1],delta[2],delta[3],delta[4],eta,rho,input_mdot[1],input_mdot[2],input_mdot[3],input_mdot[4],input_dp[1],input_dp[2],input_dp[3],input_dp[4],M_FLOW[1],M_FLOW[2],M_FLOW[3],M_FLOW[4],DP[1],DP[2],DP[3],DP[4],DP_plot[1],DP_plot[2],DP_plot[3],DP_plot[4],velocity[1],velocity[2],velocity[3],velocity[4],Re[1],Re[2],Re[3],Re[4],zeta_TOT[1],zeta_TOT[2],zeta_TOT[3],zeta_TOT[4],input_DP.y Variables in the result:A_cross,DP[1],DP[2],DP[3],DP[4],DP_plot[1],DP_plot[2],DP_plot[3],DP_plot[4],K,M_FLOW[1],M_FLOW[2],M_FLOW[3],M_FLOW[4],Re[1],Re[2],Re[3],Re[4],_D_cse1,_D_cse2,_D_cse3,_D_cse4,d_hyd,delta[1],delta[2],delta[3],delta[4],dp_IN_con[1].K,dp_IN_con[1].d_hyd,dp_IN_con[1].delta,dp_IN_con[2].K,dp_IN_con[2].d_hyd,dp_IN_con[2].delta,dp_IN_con[3].K,dp_IN_con[3].d_hyd,dp_IN_con[3].delta,dp_IN_con[4].K,dp_IN_con[4].d_hyd,dp_IN_con[4].delta,dp_IN_var[1].eta,dp_IN_var[1].rho,dp_IN_var[2].eta,dp_IN_var[2].rho,dp_IN_var[3].eta,dp_IN_var[3].rho,dp_IN_var[4].eta,dp_IN_var[4].rho,eta,input_DP.duration,input_DP.height,input_DP.offset,input_DP.startTime,input_DP.y,input_dp[1],input_dp[2],input_dp[3],input_dp[4],input_mdot[1],input_mdot[2],input_mdot[3],input_mdot[4],m_flow_IN_con[1].K,m_flow_IN_con[1].d_hyd,m_flow_IN_con[1].delta,m_flow_IN_con[2].K,m_flow_IN_con[2].d_hyd,m_flow_IN_con[2].delta,m_flow_IN_con[3].K,m_flow_IN_con[3].d_hyd,m_flow_IN_con[3].delta,m_flow_IN_con[4].K,m_flow_IN_con[4].d_hyd,m_flow_IN_con[4].delta,m_flow_IN_var[1].eta,m_flow_IN_var[1].rho,m_flow_IN_var[2].eta,m_flow_IN_var[2].rho,m_flow_IN_var[3].eta,m_flow_IN_var[3].rho,m_flow_IN_var[4].eta,m_flow_IN_var[4].rho,n,rho,time,velocity[1],velocity[2],velocity[3],velocity[4],zeta_TOT[1],zeta_TOT[2],zeta_TOT[3],zeta_TOT[4]