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_laminar_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_laminar_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_laminar_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.35/2.35, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004343/0.0004344, allocations: 8 kB / 282.6 MB, free: 9.57 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.3991, allocations: 48.71 MB / 331.3 MB, free: 6.531 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW): time 0.002479/0.4017, allocations: 1.44 MB / 332.7 MB, free: 5.785 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001495/0.4032, allocations: 0.7257 MB / 333.5 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.437e-05/0.4033, allocations: 0.9688 kB / 333.5 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002381/0.4036, allocations: 30.31 kB / 333.5 MB, free: 5.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003281/0.4039, allocations: 58.81 kB / 333.6 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002298/0.4042, allocations: 51.8 kB / 333.6 MB, free: 5.211 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001637/0.4043, allocations: 82.81 kB / 333.7 MB, free: 5.172 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.542e-05/0.4044, allocations: 12.75 kB / 333.7 MB, free: 5.164 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001447/0.4046, allocations: 45.58 kB / 333.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000144/0.4047, allocations: 56.77 kB / 333.8 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.272e-05/0.4048, allocations: 3.812 kB / 333.8 MB, free: 5.129 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002386/0.405, allocations: 75.8 kB / 333.9 MB, free: 5.105 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.863e-05/0.4051, allocations: 29.97 kB / 333.9 MB, free: 5.094 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.256e-05/0.4051, allocations: 32.52 kB / 333.9 MB, free: 5.062 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.4054, allocations: 96 kB / 334 MB, free: 5.035 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.4054, allocations: 0 / 334 MB, free: 5.035 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4054, allocations: 0 / 334 MB, free: 5.035 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.698e-06/0.4054, allocations: 4 kB / 334 MB, free: 5.031 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.0005987/0.406, allocations: 386.8 kB / 334.4 MB, free: 4.652 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/0.4061, allocations: 10.61 kB / 334.4 MB, free: 4.652 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.326e-05/0.4062, allocations: 49.52 kB / 334.5 MB, free: 4.602 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004284/0.4066, allocations: 29.28 kB / 334.5 MB, free: 4.598 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001937/0.4068, allocations: 194.4 kB / 334.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.4068, allocations: 9.688 kB / 334.7 MB, free: 4.379 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.465e-05/0.4069, allocations: 10.94 kB / 334.7 MB, free: 4.375 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005362/0.4074, allocations: 181.7 kB / 334.9 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.4075, allocations: 0 / 334.9 MB, free: 4.281 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.348e-05/0.4075, allocations: 9.359 kB / 334.9 MB, free: 4.273 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.4076, allocations: 15.08 kB / 334.9 MB, free: 4.27 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005764/0.4081, allocations: 145 kB / 335.1 MB, free: 4.234 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.4093, allocations: 0.6442 MB / 335.7 MB, free: 3.668 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005205/0.4098, allocations: 118.2 kB / 335.8 MB, free: 3.621 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.807e-05/0.4099, allocations: 9 kB / 335.8 MB, free: 3.613 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.912e-05/0.4099, allocations: 32.67 kB / 335.9 MB, free: 3.574 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 2.715e-06/0.4099, allocations: 4 kB / 335.9 MB, free: 3.57 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0007138/0.4107, allocations: 146.4 kB / 336 MB, free: 3.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.742e-05/0.4107, allocations: 56.56 kB / 336.1 MB, free: 3.453 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.4108, allocations: 125.2 kB / 336.2 MB, free: 3.344 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.483e-05/0.4109, allocations: 26.8 kB / 336.2 MB, free: 3.312 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.848e-05/0.4109, allocations: 187 kB / 336.4 MB, free: 3.133 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.411, allocations: 29.89 kB / 336.4 MB, free: 3.109 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.648e-06/0.411, allocations: 5.188 kB / 336.4 MB, free: 3.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.345e-05/0.4111, allocations: 315.1 kB / 336.7 MB, free: 2.793 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002057/0.4113, allocations: 46.09 kB / 336.8 MB, free: 2.781 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.4115, allocations: 101.5 kB / 336.9 MB, free: 2.695 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002316/0.4118, allocations: 57.75 kB / 336.9 MB, free: 2.68 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.4118, allocations: 0 / 336.9 MB, free: 2.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000597/0.4124, allocations: 162.8 kB / 337.1 MB, free: 2.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.4124, allocations: 6.625 kB / 337.1 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.4124, allocations: 2.281 kB / 337.1 MB, free: 2.613 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.24e-05/0.4125, allocations: 7.5 kB / 337.1 MB, free: 2.609 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003271/0.4128, allocations: 48.25 kB / 337.2 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.4128, allocations: 2.375 kB / 337.2 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001754/0.413, allocations: 21.34 kB / 337.2 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.864e-05/0.4131, allocations: 6.078 kB / 337.2 MB, free: 2.594 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.000127/0.4132, allocations: 138.3 kB / 337.3 MB, free: 2.461 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.877e-05/0.4132, allocations: 11.41 kB / 337.3 MB, free: 2.453 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005187/0.4138, allocations: 135.8 kB / 337.5 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.511e-06/0.4138, allocations: 1.312 kB / 337.5 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.4138, allocations: 4 kB / 337.5 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.4138, allocations: 2.078 kB / 337.5 MB, free: 2.387 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.4141, allocations: 189.6 kB / 337.7 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.4141, allocations: 12.86 kB / 337.7 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002581/0.4144, allocations: 28.88 kB / 337.7 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.432e-06/0.4144, allocations: 1.797 kB / 337.7 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.4144, allocations: 4 kB / 337.7 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4144, allocations: 1.906 kB / 337.7 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.4144, allocations: 0 / 337.7 MB, free: 2.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.4149, allocations: 221.1 kB / 337.9 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.317e-05/0.415, allocations: 88.34 kB / 338 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.769e-05/0.415, allocations: 1.531 kB / 338 MB, free: 1.914 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001575/0.4152, allocations: 12.64 kB / 338 MB, free: 1.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.532e-05/0.4152, allocations: 9.266 kB / 338 MB, free: 1.906 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.4153, allocations: 5.5 kB / 338 MB, free: 1.902 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.152e-05/0.4153, allocations: 96.78 kB / 338.1 MB, free: 1.82 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.4153, allocations: 0 / 338.1 MB, free: 1.82 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003714/0.4157, allocations: 28.19 kB / 338.2 MB, free: 1.812 MB / 266.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 (8): * 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): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007209/0.4165, allocations: 0.7546 MB / 338.9 MB, free: 1.129 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004847/0.417, allocations: 112.4 kB / 339 MB, free: 1.098 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.417, allocations: 0 / 339 MB, free: 1.098 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002172/0.4172, allocations: 46.88 kB / 339.1 MB, free: 1.082 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.4174, allocations: 5.344 kB / 339.1 MB, free: 1.078 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001609/0.4191, allocations: 0.7909 MB / 339.9 MB, free: 432 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002821/0.4194, allocations: 0.7139 MB / 340.6 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.293e-05/0.4195, allocations: 33.58 kB / 340.6 MB, free: 15.68 MB / 282.7 MB Notification: Performance of SimCode: time 1.323e-06/0.4195, allocations: 0 / 340.6 MB, free: 15.68 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.494/2.914, allocations: 1.752 MB / 342.4 MB, free: 14.8 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_laminar_DPMFLOW_res.mat failed! " Variables in the reference:time,MIN,A_cross,roughness,d_hyd,K[1],L,eta,rho,input_mdot[1],input_dp[1],M_FLOW[1],DP[1],velocity[1],Re[1],DP_plot[1],zeta_TOT[1],lambda_FRI[1],input_DP.y Variables in the result:A_cross,DP[1],DP_plot[1],K[1],L,MIN,M_FLOW[1],Re[1],d_hyd,dp_IN_con[1].L,dp_IN_con[1].d_hyd,dp_IN_var[1].eta,dp_IN_var[1].rho,eta,input_DP.duration,input_DP.height,input_DP.offset,input_DP.startTime,input_DP.y,input_dp[1],input_mdot[1],lambda_FRI[1],m_flow_IN_con[1].L,m_flow_IN_con[1].d_hyd,m_flow_IN_var[1].eta,m_flow_IN_var[1].rho,n,rho,roughness,time,velocity[1],zeta_TOT[1]