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.PressureLoss.General.dp_idealGas_DPMFLOW.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.PressureLoss.General.dp_idealGas_DPMFLOW,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|frac_KmToRs.1.|frac_KmToRs.2.|frac_KmToRs.3.|dp_nom.1.|dp_nom.2.|dp_nom.3.|p_2.1.|p_2.2.|p_2.3.|m_flow_nom.1.|m_flow_nom.2.|m_flow_nom.3.|Km.1.|Km.2.|Km.3.|input_mdot.1.|input_mdot.2.|input_mdot.3.|input_dp.1.|input_dp.2.|input_dp.3.|M_FLOW.1.|M_FLOW.2.|M_FLOW.3.|DP.1.|DP.2.|DP.3.|DP_plot.1.|DP_plot.2.|DP_plot.3.|input_DP.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW") Notification: Performance of loadModel(ModelicaTest): time 1.944/1.944, allocations: 209.4 MB / 217.3 MB, free: 4.18 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.302e-05/1.304e-05, allocations: 0 / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2624, allocations: 48.7 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1737/0.4361, allocations: 77.95 MB / 398 MB, free: 2.504 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005095/0.4367, allocations: 103.9 kB / 398.1 MB, free: 2.402 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04137/0.4781, allocations: 5.711 MB / 403.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4782, allocations: 0 / 403.8 MB, free: 12.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.558e-05/0.4782, allocations: 7.938 kB / 403.8 MB, free: 12.6 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001074/0.4793, allocations: 490.2 kB / 404.3 MB, free: 12.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.432e-05/0.4794, allocations: 8.031 kB / 404.3 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002264/0.4817, allocations: 167.5 kB / 404.5 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000622/0.4823, allocations: 250.6 kB / 404.7 MB, free: 11.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.197e-05/0.4824, allocations: 12 kB / 404.7 MB, free: 11.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.572e-05/0.4825, allocations: 15.94 kB / 404.7 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001189/0.4837, allocations: 320.8 kB / 405 MB, free: 11.28 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001229/0.485, allocations: 388.4 kB / 405.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.485, allocations: 0 / 405.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.356e-05/0.4851, allocations: 4 kB / 405.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.223e-05/0.4852, allocations: 24.48 kB / 405.4 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004255/0.4895, allocations: 1.626 MB / 407.1 MB, free: 9.098 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003845/0.4899, allocations: 90.41 kB / 407.2 MB, free: 9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001934/0.4902, allocations: 36.83 kB / 407.2 MB, free: 8.961 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.4902, allocations: 4 kB / 407.2 MB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.824e-05/0.4903, allocations: 30.56 kB / 407.2 MB, free: 8.918 MB / 346.7 MB Notification: Performance of pre-optimization done (n=7): time 4.727e-06/0.4903, allocations: 7.938 kB / 407.2 MB, free: 8.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=7): time 0.0006425/0.491, allocations: 105.5 kB / 407.3 MB, free: 8.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.491, allocations: 51.41 kB / 407.4 MB, free: 8.738 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004377/0.4915, allocations: 193.7 kB / 407.6 MB, free: 8.539 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.4916, allocations: 25.7 kB / 407.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002377/0.4918, allocations: 246.1 kB / 407.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.542e-05/0.4919, allocations: 39.58 kB / 407.9 MB, free: 8.227 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.492, allocations: 0 / 407.9 MB, free: 8.227 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.4922, allocations: 314.8 kB / 408.2 MB, free: 7.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002633/0.4925, allocations: 47.97 kB / 408.2 MB, free: 7.863 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003319/0.4928, allocations: 102 kB / 408.3 MB, free: 7.742 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003231/0.4932, allocations: 78.14 kB / 408.4 MB, free: 7.668 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.4932, allocations: 0 / 408.4 MB, free: 7.668 MB / 346.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008627/0.4941, allocations: 177.4 kB / 408.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.4942, allocations: 4.781 kB / 408.6 MB, free: 7.484 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.41e-05/0.4942, allocations: 4.188 kB / 408.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.17e-05/0.4942, allocations: 4 kB / 408.6 MB, free: 7.477 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002947/0.4972, allocations: 123.9 kB / 408.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003243/0.5005, allocations: 1.844 MB / 410.6 MB, free: 5.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005248/0.501, allocations: 31.72 kB / 410.6 MB, free: 5.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.038e-05/0.5011, allocations: 4 kB / 410.6 MB, free: 5.406 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002016/0.5013, allocations: 121 kB / 410.7 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001088/0.5015, allocations: 7.906 kB / 410.7 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008039/0.5023, allocations: 163.2 kB / 410.9 MB, free: 5.109 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.122e-06/0.5023, allocations: 4 kB / 410.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.443e-06/0.5024, allocations: 0 / 410.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.738e-06/0.5024, allocations: 0 / 410.9 MB, free: 5.105 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006556/0.503, allocations: 230.1 kB / 411.1 MB, free: 4.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.642e-06/0.5031, allocations: 4 kB / 411.1 MB, free: 4.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002299/0.5054, allocations: 108.6 kB / 411.2 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.972e-06/0.5054, allocations: 3.938 kB / 411.2 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.5055, allocations: 0 / 411.2 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.508, allocations: 1.797 MB / 413 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.4e-06/0.508, allocations: 288 / 413 MB, free: 2.863 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006746/0.5087, allocations: 223.3 kB / 413.2 MB, free: 2.629 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.5089, allocations: 100.8 kB / 413.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.773e-05/0.509, allocations: 0 / 413.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004366/0.5094, allocations: 7.984 kB / 413.4 MB, free: 2.504 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.666e-05/0.5095, allocations: 7.984 kB / 413.4 MB, free: 2.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.742e-05/0.5096, allocations: 4 kB / 413.4 MB, free: 2.492 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003203/0.5099, allocations: 159.2 kB / 413.5 MB, free: 2.336 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.554e-06/0.5099, allocations: 0 / 413.5 MB, free: 2.336 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009/0.5109, allocations: 75.69 kB / 413.6 MB, free: 2.262 MB / 346.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 (11): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003659/0.5113, allocations: 129.2 kB / 413.7 MB, free: 2.125 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002735/0.514, allocations: 191.8 kB / 413.9 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.5141, allocations: 0 / 413.9 MB, free: 1.938 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00163/0.5157, allocations: 87.84 kB / 414 MB, free: 1.852 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004338/0.5162, allocations: 13.55 kB / 414 MB, free: 1.84 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001479/0.5177, allocations: 331 kB / 414.3 MB, free: 1.488 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006889/0.5184, allocations: 0.7826 MB / 415.1 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.5186, allocations: 15.44 kB / 415.1 MB, free: 0.668 MB / 346.7 MB Notification: Performance of SimCode: time 2.033e-06/0.5186, allocations: 0 / 415.1 MB, free: 0.668 MB / 346.7 MB Notification: Performance of Templates: time 0.01809/0.5367, allocations: 5.88 MB / 421 MB, free: 10.79 MB / 362.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat failed! " Variables in the reference:time,frac_KmToRs[1],frac_KmToRs[2],frac_KmToRs[3],dp_nom[1],dp_nom[2],dp_nom[3],p_2[1],p_2[2],p_2[3],m_flow_nom[1],m_flow_nom[2],m_flow_nom[3],Km[1],Km[2],Km[3],input_mdot[1],input_mdot[2],input_mdot[3],input_dp[1],input_dp[2],input_dp[3],M_FLOW[1],M_FLOW[2],M_FLOW[3],DP[1],DP[2],DP[3],DP_plot[1],DP_plot[2],DP_plot[3],input_DP.y Variables in the result:DP[1],DP[2],DP[3],DP_plot[1],DP_plot[2],DP_plot[3],Km[1],Km[2],Km[3],M_FLOW[1],M_FLOW[2],M_FLOW[3],R_s,T_m,_D_cse1,_D_cse2,_D_cse3,_D_cse4,dp_IN_con[1].Km,dp_IN_con[1].R_s,dp_IN_con[1].dp_smooth,dp_IN_con[1].exp,dp_IN_con[2].Km,dp_IN_con[2].R_s,dp_IN_con[2].dp_smooth,dp_IN_con[2].exp,dp_IN_con[3].Km,dp_IN_con[3].R_s,dp_IN_con[3].dp_smooth,dp_IN_con[3].exp,dp_IN_var[1].T_m,dp_IN_var[1].p_m,dp_IN_var[1].rho_m,dp_IN_var[2].T_m,dp_IN_var[2].p_m,dp_IN_var[2].rho_m,dp_IN_var[3].T_m,dp_IN_var[3].p_m,dp_IN_var[3].rho_m,dp_nom[1],dp_nom[2],dp_nom[3],exp,frac_KmToRs[1],frac_KmToRs[2],frac_KmToRs[3],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_mdot[1],input_mdot[2],input_mdot[3],m_flow_IN_con[1].Km,m_flow_IN_con[1].R_s,m_flow_IN_con[1].dp_smooth,m_flow_IN_con[1].exp,m_flow_IN_con[2].Km,m_flow_IN_con[2].R_s,m_flow_IN_con[2].dp_smooth,m_flow_IN_con[2].exp,m_flow_IN_con[3].Km,m_flow_IN_con[3].R_s,m_flow_IN_con[3].dp_smooth,m_flow_IN_con[3].exp,m_flow_IN_var[1].T_m,m_flow_IN_var[1].p_m,m_flow_IN_var[1].rho_m,m_flow_IN_var[2].T_m,m_flow_IN_var[2].p_m,m_flow_IN_var[2].rho_m,m_flow_IN_var[3].T_m,m_flow_IN_var[3].p_m,m_flow_IN_var[3].rho_m,m_flow_nom[1],m_flow_nom[2],m_flow_nom[3],n,p_1,p_2[1],p_2[2],p_2[3],p_m,rho_m,time