Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives.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.TestComponents.Fittings.TestPressureLossDerivatives,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Fittings_TestPressureLossDerivatives",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.983/1.983, allocations: 209.3 MB / 224.8 MB, free: 0.6055 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004344/0.0004346, allocations: 8 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3505, allocations: 48.7 MB / 331.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives): time 0.002397/0.3529, allocations: 1.125 MB / 332.4 MB, free: 5.949 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002945/0.3559, allocations: 1.262 MB / 333.7 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.624e-05/0.356, allocations: 1.188 kB / 333.7 MB, free: 5.082 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002274/0.3562, allocations: 25.3 kB / 333.7 MB, free: 5.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.3565, allocations: 38.2 kB / 333.7 MB, free: 5.047 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007954/0.3573, allocations: 165.8 kB / 333.9 MB, free: 4.965 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001343/0.3575, allocations: 40.36 kB / 333.9 MB, free: 4.945 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.324e-05/0.3576, allocations: 7.594 kB / 333.9 MB, free: 4.941 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.507e-05/0.3577, allocations: 26.27 kB / 334 MB, free: 4.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.527e-05/0.3578, allocations: 25.66 kB / 334 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.3578, allocations: 1.656 kB / 334 MB, free: 4.918 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.3589, allocations: 307.9 kB / 334.3 MB, free: 4.824 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.997e-05/0.3589, allocations: 2.5 kB / 334.3 MB, free: 4.824 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.509e-05/0.359, allocations: 39.55 kB / 334.3 MB, free: 4.785 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006391/0.3596, allocations: 172.7 kB / 334.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.886e-06/0.3597, allocations: 1.25 kB / 334.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3597, allocations: 0 / 334.5 MB, free: 4.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.3597, allocations: 3.938 kB / 334.5 MB, free: 4.746 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006614/0.3604, allocations: 402.8 kB / 334.9 MB, free: 4.348 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.662e-05/0.3605, allocations: 9.938 kB / 334.9 MB, free: 4.348 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.208e-05/0.3605, allocations: 40.41 kB / 335 MB, free: 4.301 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.26e-05/0.3606, allocations: 7.516 kB / 335 MB, free: 4.297 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001401/0.3607, allocations: 180.4 kB / 335.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.685e-05/0.3608, allocations: 1.219 kB / 335.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.21e-05/0.3608, allocations: 2.688 kB / 335.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002141/0.361, allocations: 70.33 kB / 335.2 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.3611, allocations: 0 / 335.2 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.653e-05/0.3611, allocations: 5.375 kB / 335.2 MB, free: 4.031 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.3611, allocations: 5.438 kB / 335.2 MB, free: 4.027 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001909/0.3613, allocations: 53.62 kB / 335.3 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002728/0.3616, allocations: 187.2 kB / 335.5 MB, free: 3.805 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001651/0.3618, allocations: 62.69 kB / 335.5 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.387e-05/0.3619, allocations: 18.81 kB / 335.5 MB, free: 3.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.3619, allocations: 35.11 kB / 335.6 MB, free: 3.715 MB / 266.7 MB Notification: Performance of pre-optimization done (n=8): time 2.154e-06/0.362, allocations: 1.531 kB / 335.6 MB, free: 3.715 MB / 266.7 MB Notification: Performance of matching and sorting (n=12): time 0.04769/0.4097, allocations: 1.402 MB / 337 MB, free: 3.215 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.4097, allocations: 54.22 kB / 337 MB, free: 3.152 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.4099, allocations: 128.9 kB / 337.1 MB, free: 3.031 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.755e-05/0.41, allocations: 25.7 kB / 337.2 MB, free: 3 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.41, allocations: 155.9 kB / 337.3 MB, free: 2.848 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.383e-05/0.4101, allocations: 47.84 kB / 337.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/0.4102, allocations: 1.656 kB / 337.4 MB, free: 2.805 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.642e-05/0.4103, allocations: 324.2 kB / 337.7 MB, free: 2.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009743/0.4113, allocations: 162.7 kB / 337.8 MB, free: 2.395 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009788/0.4123, allocations: 166.4 kB / 338 MB, free: 2.305 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.4134, allocations: 162.9 kB / 338.2 MB, free: 2.223 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.4134, allocations: 3.938 kB / 338.2 MB, free: 2.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.002283/0.4157, allocations: 404.1 kB / 338.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.4157, allocations: 4.469 kB / 338.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.4158, allocations: 0 / 338.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.683e-05/0.4158, allocations: 1.031 kB / 338.6 MB, free: 1.988 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008876/0.4167, allocations: 53.92 kB / 338.6 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.4167, allocations: 4 kB / 338.6 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006768/0.4174, allocations: 13.7 kB / 338.6 MB, free: 1.957 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.355e-05/0.4175, allocations: 14.09 kB / 338.7 MB, free: 1.949 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (data.zeta1_at_a,data.zeta2_at_a,data.zetaLaminarKnown) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001713/0.4177, allocations: 121.4 kB / 338.8 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.937e-05/0.4178, allocations: 6.25 kB / 338.8 MB, free: 1.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002308/0.4201, allocations: 312.9 kB / 339.1 MB, free: 1.637 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.4201, allocations: 5.375 kB / 339.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4201, allocations: 0 / 339.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.52e-06/0.4201, allocations: 0 / 339.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003697/0.4239, allocations: 0.6524 MB / 339.7 MB, free: 1.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.4239, allocations: 5.031 kB / 339.8 MB, free: 1.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006614/0.4246, allocations: 56.95 kB / 339.8 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.4246, allocations: 3.031 kB / 339.8 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.4246, allocations: 7.016 kB / 339.8 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.4247, allocations: 3.031 kB / 339.8 MB, free: 1.055 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.4247, allocations: 12.03 kB / 339.8 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001566/0.4263, allocations: 366.8 kB / 340.2 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001349/0.4264, allocations: 107.5 kB / 340.3 MB, free: 0.6602 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.423e-05/0.4265, allocations: 10.11 kB / 340.3 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005514/0.4271, allocations: 17.67 kB / 340.3 MB, free: 0.6445 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.873e-05/0.4271, allocations: 9.359 kB / 340.3 MB, free: 0.6406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.257e-05/0.4272, allocations: 21.38 kB / 340.4 MB, free: 0.625 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.639e-05/0.4273, allocations: 97.42 kB / 340.4 MB, free: 0.543 MB / 266.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.4273, allocations: 0 / 340.4 MB, free: 0.543 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0009677/0.4282, allocations: 165.3 kB / 340.6 MB, free: 0.5117 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (12): * Single equations (assignments): 12 * 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.00287/0.4311, allocations: 1.046 MB / 341.7 MB, free: 15.65 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.4328, allocations: 315 kB / 342 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.4328, allocations: 0 / 342 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006916/0.4335, allocations: 123.7 kB / 342.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003257/0.4339, allocations: 21.86 kB / 342.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003899/0.4378, allocations: 0.7012 MB / 342.8 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/0.4382, allocations: 0.6975 MB / 343.5 MB, free: 14.12 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002937/0.4385, allocations: 54.2 kB / 343.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of SimCode: time 1.442e-06/0.4385, allocations: 0 / 343.6 MB, free: 14.08 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.477/2.916, allocations: 5.003 MB / 348.6 MB, free: 11.35 MB / 282.7 MB "Error: Could not read variable _derdummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable _derdummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable _dummy in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable _dummy from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable d2mu in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable d2mu from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable t2d in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable t2d from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! Error: Could not read variable t2p in file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat. Warning: Get data of variable t2p from file ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Fittings.TestPressureLossDerivatives_res.mat failed! " Variables in the reference:time,rho_a,rho_b,mu_a,mu_b,dp,m_flow1,m_flow2,der_m_flow1 Variables in the result:data.D_Re,data.Re_turbulent,data.c0,data.diameter_a,data.diameter_b,data.zeta1,data.zeta1_at_a,data.zeta2,data.zeta2_at_a,data.zetaLaminarKnown,der(dp),der(m_flow1),der(rho_a),der(rho_b),der_m_flow1,diameter_a,diameter_b,dp,dp_small,m_flow1,m_flow2,mu_a,mu_b,rho_a,rho_b,time