Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.072/2.072, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004547/0.0004547, allocations: 16 kB / 282.6 MB, free: 9.562 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4173/0.4178, allocations: 48.7 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW): time 0.002835/0.4207, allocations: 1.459 MB / 332.8 MB, free: 5.758 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0049/0.4257, allocations: 2.477 MB / 335.2 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.4259, allocations: 5.125 kB / 335.2 MB, free: 4.055 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002853/0.4262, allocations: 39.42 kB / 335.3 MB, free: 4.031 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000357/0.4266, allocations: 61.5 kB / 335.3 MB, free: 3.996 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002776/0.4294, allocations: 0.626 MB / 336 MB, free: 3.746 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003751/0.4298, allocations: 161 kB / 336.1 MB, free: 3.668 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.4299, allocations: 32.95 kB / 336.2 MB, free: 3.652 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002135/0.4301, allocations: 82.52 kB / 336.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001852/0.4303, allocations: 98.5 kB / 336.3 MB, free: 3.574 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.4304, allocations: 6.469 kB / 336.3 MB, free: 3.574 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00309/0.4335, allocations: 1.195 MB / 337.5 MB, free: 3.051 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001581/0.4337, allocations: 64.33 kB / 337.6 MB, free: 3.012 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.4338, allocations: 59.83 kB / 337.7 MB, free: 2.965 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001826/0.4357, allocations: 0.5362 MB / 338.2 MB, free: 2.695 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.4357, allocations: 3.938 kB / 338.2 MB, free: 2.691 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4357, allocations: 5.094 kB / 338.2 MB, free: 2.688 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.4357, allocations: 0 / 338.2 MB, free: 2.688 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001336/0.4371, allocations: 0.6158 MB / 338.8 MB, free: 2.125 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.129e-05/0.4371, allocations: 9.812 kB / 338.8 MB, free: 2.125 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.4373, allocations: 73.62 kB / 338.9 MB, free: 2.059 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.799e-05/0.4374, allocations: 33.05 kB / 338.9 MB, free: 2.039 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.4377, allocations: 240.7 kB / 339.2 MB, free: 1.793 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.074e-05/0.4377, allocations: 23 kB / 339.2 MB, free: 1.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.187e-05/0.4378, allocations: 29.69 kB / 339.2 MB, free: 1.766 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.4389, allocations: 464.7 kB / 339.7 MB, free: 1.52 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.439, allocations: 5.062 kB / 339.7 MB, free: 1.516 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.233e-05/0.439, allocations: 14.08 kB / 339.7 MB, free: 1.504 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.332e-05/0.4391, allocations: 47.09 kB / 339.7 MB, free: 1.492 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.4405, allocations: 0.5626 MB / 340.3 MB, free: 1.246 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002849/0.4434, allocations: 1.336 MB / 341.6 MB, free: 156 kB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008343/0.4443, allocations: 272.8 kB / 341.9 MB, free: 28 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.135e-05/0.4444, allocations: 12.61 kB / 341.9 MB, free: 20 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.472e-05/0.4445, allocations: 39.88 kB / 342 MB, free: 15.97 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 2.735e-06/0.4445, allocations: 0 / 342 MB, free: 15.97 MB / 282.7 MB Notification: Performance of matching and sorting (n=25): time 0.001341/0.4458, allocations: 342.3 kB / 342.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.833e-05/0.4459, allocations: 53.97 kB / 342.3 MB, free: 15.75 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.4461, allocations: 145.1 kB / 342.5 MB, free: 15.62 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.4461, allocations: 30.89 kB / 342.5 MB, free: 15.59 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001732/0.4463, allocations: 257.1 kB / 342.8 MB, free: 15.35 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001138/0.4465, allocations: 89.95 kB / 342.9 MB, free: 15.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.448e-05/0.4465, allocations: 5.562 kB / 342.9 MB, free: 15.27 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.4467, allocations: 326.8 kB / 343.2 MB, free: 14.94 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003578/0.447, allocations: 90.8 kB / 343.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004258/0.4475, allocations: 184.2 kB / 343.4 MB, free: 14.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004835/0.448, allocations: 114.2 kB / 343.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.63e-06/0.448, allocations: 5.156 kB / 343.6 MB, free: 14.71 MB / 282.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001079/0.4491, allocations: 329.5 kB / 343.9 MB, free: 14.55 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.4491, allocations: 13.91 kB / 343.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.4492, allocations: 7.469 kB / 343.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.405e-05/0.4492, allocations: 4.844 kB / 343.9 MB, free: 14.54 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009353/0.4501, allocations: 120.6 kB / 344 MB, free: 14.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001731/0.4519, allocations: 2.369 MB / 346.4 MB, free: 12.11 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003587/0.4523, allocations: 32.8 kB / 346.4 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.822e-05/0.4524, allocations: 20.27 kB / 346.4 MB, free: 12.08 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * 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): 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 0.0003106/0.4527, allocations: 177.1 kB / 346.6 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.03e-05/0.4528, allocations: 13.72 kB / 346.6 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.4543, allocations: 381.4 kB / 347 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.4543, allocations: 2.938 kB / 347 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.4543, allocations: 0 / 347 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.393e-05/0.4543, allocations: 7.938 kB / 347 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006707/0.455, allocations: 331.8 kB / 347.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.4551, allocations: 1.469 kB / 347.3 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008638/0.4559, allocations: 109.4 kB / 347.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.996e-06/0.456, allocations: 5.375 kB / 347.5 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.456, allocations: 8.969 kB / 347.5 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001687/0.4577, allocations: 2.366 MB / 349.8 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.4578, allocations: 1.438 kB / 349.8 MB, free: 8.973 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.4588, allocations: 377.8 kB / 350.2 MB, free: 8.734 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.695e-05/0.459, allocations: 98 kB / 350.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.458e-05/0.4591, allocations: 5.156 kB / 350.3 MB, free: 8.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.4593, allocations: 15.58 kB / 350.3 MB, free: 8.613 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.091e-05/0.4594, allocations: 18.25 kB / 350.3 MB, free: 8.605 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.135e-05/0.4595, allocations: 15.83 kB / 350.4 MB, free: 8.598 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001078/0.4596, allocations: 97.41 kB / 350.4 MB, free: 8.516 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4596, allocations: 4 kB / 350.4 MB, free: 8.512 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001162/0.4608, allocations: 242.5 kB / 350.7 MB, free: 8.414 MB / 282.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 (29): * Single equations (assignments): 25 * 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.002411/0.4632, allocations: 1.157 MB / 351.8 MB, free: 7.512 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00147/0.4648, allocations: 300.6 kB / 352.1 MB, free: 7.406 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.4648, allocations: 0 / 352.1 MB, free: 7.406 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008575/0.4657, allocations: 186.4 kB / 352.3 MB, free: 7.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003387/0.4661, allocations: 14.78 kB / 352.3 MB, free: 7.328 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00404/0.4701, allocations: 1.555 MB / 353.9 MB, free: 6.223 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005395/0.4707, allocations: 0.8065 MB / 354.7 MB, free: 5.469 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000278/0.471, allocations: 96.02 kB / 354.8 MB, free: 5.391 MB / 282.7 MB Notification: Performance of SimCode: time 1.502e-06/0.471, allocations: 0 / 354.8 MB, free: 5.391 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.03/3.501, allocations: 10.89 MB / 365.7 MB, free: 11.35 MB / 298.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW_res.mat failed! " Variables in the reference:time,MIN,A_cross,roughness,d_hyd,K[1],K[2],K[3],K[4],L,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],velocity[1],velocity[2],velocity[3],velocity[4],Re[1],Re[2],Re[3],Re[4],DP_plot[1],DP_plot[2],DP_plot[3],DP_plot[4],zeta_TOT[1],zeta_TOT[2],zeta_TOT[3],zeta_TOT[4],lambda_FRI[1],lambda_FRI[2],lambda_FRI[3],lambda_FRI[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[1],K[2],K[3],K[4],L,MIN,M_FLOW[1],M_FLOW[2],M_FLOW[3],M_FLOW[4],Re[1],Re[2],Re[3],Re[4],d_hyd,dp_IN_con[1].K,dp_IN_con[1].L,dp_IN_con[1].d_hyd,dp_IN_con[1].roughness,dp_IN_con[2].K,dp_IN_con[2].L,dp_IN_con[2].d_hyd,dp_IN_con[2].roughness,dp_IN_con[3].K,dp_IN_con[3].L,dp_IN_con[3].d_hyd,dp_IN_con[3].roughness,dp_IN_con[4].K,dp_IN_con[4].L,dp_IN_con[4].d_hyd,dp_IN_con[4].roughness,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],lambda_FRI[1],lambda_FRI[2],lambda_FRI[3],lambda_FRI[4],m_flow_IN_con[1].K,m_flow_IN_con[1].L,m_flow_IN_con[1].d_hyd,m_flow_IN_con[1].roughness,m_flow_IN_con[2].K,m_flow_IN_con[2].L,m_flow_IN_con[2].d_hyd,m_flow_IN_con[2].roughness,m_flow_IN_con[3].K,m_flow_IN_con[3].L,m_flow_IN_con[3].d_hyd,m_flow_IN_con[3].roughness,m_flow_IN_con[4].K,m_flow_IN_con[4].L,m_flow_IN_con[4].d_hyd,m_flow_IN_con[4].roughness,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,roughness,time,velocity[1],velocity[2],velocity[3],velocity[4],zeta_TOT[1],zeta_TOT[2],zeta_TOT[3],zeta_TOT[4]