Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.014/2.014, allocations: 209.3 MB / 221.5 MB, free: 1.934 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4.558e-05/4.571e-05, allocations: 4 kB / 273.2 MB, free: 140 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 48.7 MB / 321.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4481/0.5587, allocations: 98.53 MB / 420.4 MB, free: 7.031 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004102/0.5591, allocations: 95.94 kB / 420.5 MB, free: 6.938 MB / 346.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4955:11-4956:126:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4977:11-4978:120:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4937:11-4953:48:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/Fluid/Dissipation.mo:4959:11-4975:59:writable] Error: Type mismatch in binding K = K, expected subtype of Real[5], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.1604/0.7195, allocations: 27.8 MB / 448.3 MB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.7196, allocations: 0 / 448.3 MB, free: 10.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.041e-05/0.7196, allocations: 12 kB / 448.3 MB, free: 10.82 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 240 * Number of variables: 240 Notification: Performance of Generate backend data structure: time 0.002678/0.7223, allocations: 0.9079 MB / 449.2 MB, free: 9.859 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.7224, allocations: 8.031 kB / 449.2 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002758/0.7227, allocations: 143.9 kB / 449.4 MB, free: 9.703 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002084/0.7229, allocations: 79.02 kB / 449.4 MB, free: 9.625 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008013/0.7237, allocations: 350.1 kB / 449.8 MB, free: 9.242 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-05/0.7238, allocations: 58 kB / 449.8 MB, free: 9.188 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002072/0.724, allocations: 79.98 kB / 449.9 MB, free: 9.109 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00285/0.7269, allocations: 1.151 MB / 451.1 MB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.83e-05/0.7269, allocations: 0 / 451.1 MB, free: 7.953 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001316/0.7271, allocations: 32 kB / 451.1 MB, free: 7.922 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001427/0.7272, allocations: 69.95 kB / 451.2 MB, free: 7.852 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003952/0.7312, allocations: 1.671 MB / 452.8 MB, free: 6.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007709/0.739, allocations: 2.971 MB / 455.8 MB, free: 3.059 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.7403, allocations: 407.8 kB / 456.2 MB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003445/0.7407, allocations: 129.4 kB / 456.3 MB, free: 2.52 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.233e-05/0.7408, allocations: 12.25 kB / 456.4 MB, free: 2.508 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.7408, allocations: 38.84 kB / 456.4 MB, free: 2.461 MB / 378.7 MB Notification: Performance of pre-optimization done (n=34): time 3.637e-06/0.7408, allocations: 4 kB / 456.4 MB, free: 2.457 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.001011/0.7419, allocations: 331.3 kB / 456.7 MB, free: 2.129 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.922e-05/0.7419, allocations: 55.41 kB / 456.8 MB, free: 2.062 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.7422, allocations: 181.6 kB / 457 MB, free: 1.875 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.895e-05/0.7423, allocations: 33.69 kB / 457 MB, free: 1.836 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003041/0.7426, allocations: 382.2 kB / 457.4 MB, free: 1.453 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.7428, allocations: 118.3 kB / 457.5 MB, free: 1.336 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.643e-05/0.7428, allocations: 8 kB / 457.5 MB, free: 1.328 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001754/0.743, allocations: 338.8 kB / 457.8 MB, free: 0.9883 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003725/0.7434, allocations: 137 kB / 457.9 MB, free: 0.8516 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005487/0.7439, allocations: 322.4 kB / 458.3 MB, free: 464 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005112/0.7445, allocations: 200.4 kB / 458.5 MB, free: 264 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.7445, allocations: 4 kB / 458.5 MB, free: 260 kB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001372/0.7459, allocations: 0.5009 MB / 459 MB, free: 15.75 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.7459, allocations: 8 kB / 459 MB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.371e-05/0.7459, allocations: 4 kB / 459 MB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.852e-05/0.746, allocations: 12 kB / 459 MB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.7475, allocations: 212.2 kB / 459.2 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002324/0.7499, allocations: 3 MB / 462.2 MB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005837/0.7505, allocations: 59.83 kB / 462.3 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.301e-05/0.7506, allocations: 39.92 kB / 462.3 MB, free: 12.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * Number of states: 0 () * Number of discrete variables: 6 (roughness,geometry[5],geometry[4],geometry[3],geometry[2],geometry[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002125/0.7508, allocations: 140.7 kB / 462.4 MB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.085e-05/0.7509, allocations: 23.72 kB / 462.5 MB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002053/0.753, allocations: 0.5385 MB / 463 MB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.753, allocations: 7.984 kB / 463 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.7531, allocations: 0 / 463 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.7531, allocations: 4 kB / 463 MB, free: 11.58 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002845/0.7559, allocations: 1.161 MB / 464.2 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-06/0.756, allocations: 0 / 464.2 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001352/0.7574, allocations: 171.8 kB / 464.3 MB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.55e-05/0.7574, allocations: 7.938 kB / 464.3 MB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.172e-05/0.7575, allocations: 20.23 kB / 464.4 MB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002131/0.7597, allocations: 2.957 MB / 467.3 MB, free: 7.066 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.446e-06/0.7597, allocations: 4.031 kB / 467.3 MB, free: 7.062 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.7608, allocations: 0.5544 MB / 467.9 MB, free: 6.418 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001018/0.7609, allocations: 104.8 kB / 468 MB, free: 6.297 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.917e-05/0.761, allocations: 15.95 kB / 468 MB, free: 6.281 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003557/0.7613, allocations: 19.98 kB / 468 MB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.7615, allocations: 35.95 kB / 468 MB, free: 6.227 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.549e-05/0.7616, allocations: 16 kB / 468.1 MB, free: 6.211 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001606/0.7617, allocations: 127.2 kB / 468.2 MB, free: 6.086 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.7618, allocations: 4 kB / 468.2 MB, free: 6.082 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001596/0.7634, allocations: 374.6 kB / 468.6 MB, free: 5.715 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 5 * 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: 5 {1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002901/0.7663, allocations: 1.962 MB / 470.5 MB, free: 3.672 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00161/0.7679, allocations: 425.1 kB / 470.9 MB, free: 3.258 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.88e-06/0.768, allocations: 0 / 470.9 MB, free: 3.258 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009199/0.7689, allocations: 219.7 kB / 471.1 MB, free: 3.043 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.7693, allocations: 20.75 kB / 471.2 MB, free: 3.02 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003408/0.7727, allocations: 1.111 MB / 472.3 MB, free: 1.844 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008671/0.7736, allocations: 1.003 MB / 473.3 MB, free: 0.8164 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0009739/0.7746, allocations: 166.5 kB / 473.4 MB, free: 0.6562 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004524/0.7751, allocations: 211.3 kB / 473.7 MB, free: 460 kB / 394.7 MB Notification: Performance of SimCode: time 1.143e-06/0.7751, allocations: 3.938 kB / 473.7 MB, free: 456 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05157/0.8267, allocations: 12.45 MB / 486.1 MB, free: 4.102 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000369/0.8271, allocations: 236.3 kB / 486.3 MB, free: 3.789 MB / 410.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.o ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c In file included from ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c:7: In file included from ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -c -o ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c In file included from ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:321:452: error: passing 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__overall__IN__con' to parameter of incompatible type 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con' _DP = (0.5) * ((omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_lam_max, _Re)) * ((_CF_lam) * ((_IN_con._L) * ((real_int_pow(threadData, _d_hyd, -2)) * ((_velocity) * (_IN_var._eta)))))) + (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_max, _Re_lam_min, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__DP(threadData, _IN_2_con, _IN_2_var, _m_flow_turb)); ^~~~~~~~~ ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.h:381:192: note: passing argument to parameter '_IN_con' here modelica_real omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__DP(threadData_t *threadData, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con _IN_con, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__var _IN_var, modelica_real _m_flow); ^ ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:927:499: error: passing 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__overall__IN__con' to parameter of incompatible type 'Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con' _M_FLOW = (2.0) * ((omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_turb, _Re)) * ((_IN_var._rho) * ((_A_cross) * ((_dp) * (((tmp69 * tmp69)) / tmp70))))) + (1.273239544735163) * ((omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_turb, _Re_lam_min, _Re)) * ((_A_cross) * ((real_int_pow(threadData, _d_hyd, -2)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__MFLOW(threadData, _IN_2_con, _IN_2_var, _dp))))); ^~~~~~~~~ ./ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.h:407:195: note: passing argument to parameter '_IN_con' here modelica_real omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__MFLOW(threadData_t *threadData, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__con _IN_con, Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__IN__var _IN_var, modelica_real _dp); ^ 2 warnings and 2 errors generated. : recipe for target 'ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_3_2_1_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o] Error 1