Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_General_dp_idealGas_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.364/2.364, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004257/0.0004259, allocations: 11.94 kB / 314.4 MB, free: 9.492 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3423/0.3428, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW): time 0.002554/0.3454, allocations: 1.423 MB / 370.7 MB, free: 9.285 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001945/0.3474, allocations: 0.8978 MB / 371.6 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.695e-05/0.3475, allocations: 0 / 371.6 MB, free: 8.383 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000267/0.3477, allocations: 47.8 kB / 371.7 MB, free: 8.336 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.348, allocations: 51.83 kB / 371.7 MB, free: 8.285 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003934/0.3484, allocations: 95.69 kB / 371.8 MB, free: 8.191 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000262/0.3487, allocations: 155.7 kB / 372 MB, free: 8.039 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.95e-05/0.3487, allocations: 17.67 kB / 372 MB, free: 8.023 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.3489, allocations: 71.7 kB / 372 MB, free: 7.953 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001668/0.3491, allocations: 91.61 kB / 372.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.949e-05/0.3491, allocations: 4 kB / 372.1 MB, free: 7.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005034/0.3496, allocations: 199.7 kB / 372.3 MB, free: 7.664 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.796e-05/0.3498, allocations: 55.81 kB / 372.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.044e-05/0.3498, allocations: 57.58 kB / 372.4 MB, free: 7.547 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000395/0.3502, allocations: 188.6 kB / 372.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.605e-06/0.3503, allocations: 0 / 372.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3503, allocations: 0 / 372.6 MB, free: 7.363 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.3503, allocations: 0 / 372.6 MB, free: 7.363 MB / 298.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.0009427/0.3512, allocations: 0.5067 MB / 373.1 MB, free: 6.809 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.3513, allocations: 12.03 kB / 373.1 MB, free: 6.797 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.058e-05/0.3514, allocations: 58.53 kB / 373.2 MB, free: 6.73 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001272/0.3527, allocations: 139.4 kB / 373.3 MB, free: 6.594 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004263/0.3531, allocations: 250.7 kB / 373.6 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.3531, allocations: 12.44 kB / 373.6 MB, free: 6.297 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.538e-05/0.3532, allocations: 27.94 kB / 373.6 MB, free: 6.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001051/0.3543, allocations: 433.9 kB / 374 MB, free: 5.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.3543, allocations: 3.938 kB / 374 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.682e-05/0.3544, allocations: 12 kB / 374.1 MB, free: 5.805 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-05/0.3544, allocations: 28.48 kB / 374.1 MB, free: 5.773 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3557, allocations: 401.9 kB / 374.5 MB, free: 5.379 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00302/0.3587, allocations: 1.481 MB / 376 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.3591, allocations: 102.4 kB / 376.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.742e-05/0.3592, allocations: 0 / 376.1 MB, free: 3.676 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.792e-05/0.3592, allocations: 38.56 kB / 376.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.432e-06/0.3592, allocations: 0 / 376.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.000968/0.3602, allocations: 209.4 kB / 376.3 MB, free: 3.418 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.3603, allocations: 51.41 kB / 376.4 MB, free: 3.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005144/0.3608, allocations: 326.6 kB / 376.7 MB, free: 3.027 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.3608, allocations: 25.7 kB / 376.7 MB, free: 2.996 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001644/0.361, allocations: 237.7 kB / 376.9 MB, free: 2.762 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.025e-05/0.3611, allocations: 23.66 kB / 377 MB, free: 2.738 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.14e-05/0.3611, allocations: 4 kB / 377 MB, free: 2.734 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3612, allocations: 322.8 kB / 377.3 MB, free: 2.41 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.3616, allocations: 79.81 kB / 377.3 MB, free: 2.332 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003685/0.362, allocations: 126.6 kB / 377.5 MB, free: 2.188 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003645/0.3623, allocations: 87.94 kB / 377.6 MB, free: 2.102 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.895e-06/0.3624, allocations: 0 / 377.6 MB, free: 2.102 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0008615/0.3632, allocations: 241.3 kB / 377.8 MB, free: 1.859 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.3633, allocations: 4.188 kB / 377.8 MB, free: 1.855 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.3633, allocations: 8 kB / 377.8 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.46e-05/0.3633, allocations: 0 / 377.8 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/0.366, allocations: 111.9 kB / 377.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/0.3688, allocations: 1.852 MB / 379.8 MB, free: 15.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004956/0.3694, allocations: 27.88 kB / 379.8 MB, free: 15.79 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.377e-05/0.3694, allocations: 15.98 kB / 379.8 MB, free: 15.77 MB / 314.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 () * Number of clocked 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.0002288/0.3697, allocations: 152.4 kB / 380 MB, free: 15.62 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.3e-05/0.3697, allocations: 27.67 kB / 380 MB, free: 15.59 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008613/0.3706, allocations: 211.1 kB / 380.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.3706, allocations: 0 / 380.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3706, allocations: 0 / 380.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.3707, allocations: 0 / 380.2 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004651/0.3711, allocations: 281.4 kB / 380.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3712, allocations: 4 kB / 380.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002185/0.3734, allocations: 103.8 kB / 380.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-06/0.3734, allocations: 3.953 kB / 380.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.3734, allocations: 0 / 380.6 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001669/0.3751, allocations: 1.793 MB / 382.4 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.3751, allocations: 3.938 kB / 382.4 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007252/0.3759, allocations: 263.3 kB / 382.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001084/0.376, allocations: 104.8 kB / 382.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.3761, allocations: 3.953 kB / 382.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003449/0.3764, allocations: 15.98 kB / 382.8 MB, free: 12.66 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.184e-05/0.3765, allocations: 11.97 kB / 382.8 MB, free: 12.65 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.066e-05/0.3765, allocations: 8 kB / 382.8 MB, free: 12.64 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003901/0.3769, allocations: 245.9 kB / 383 MB, free: 12.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.3769, allocations: 0 / 383 MB, free: 12.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000466/0.3774, allocations: 63.94 kB / 383.1 MB, free: 12.34 MB / 314.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 () * Number of clocked 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.001135/0.3786, allocations: 0.8097 MB / 383.9 MB, free: 11.51 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00411/0.3827, allocations: 264 kB / 384.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3827, allocations: 384 / 384.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.3845, allocations: 131.8 kB / 384.3 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004383/0.385, allocations: 47.56 kB / 384.3 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003907/0.3889, allocations: 1.651 MB / 386 MB, free: 9.355 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004269/0.3894, allocations: 0.7791 MB / 386.7 MB, free: 8.551 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.3896, allocations: 71.41 kB / 386.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of SimCode: time 1.352e-06/0.3896, allocations: 0 / 386.8 MB, free: 8.48 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.686/3.076, allocations: 7.496 MB / 394.3 MB, free: 0.9883 MB / 314.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.General.dp_idealGas_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.2_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,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