Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.428/2.428, allocations: 270.1 MB / 283.6 MB, free: 3.109 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.373e-05/5.377e-05, allocations: 0 / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1422/0.1423, allocations: 61.88 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5521/0.6945, allocations: 111.5 MB / 0.5097 GB, free: 8.52 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000381/0.6949, allocations: 99.92 kB / 0.5098 GB, free: 8.422 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Fluid/Dissipation.mo:4871:11-4872: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 trunk/Fluid/Dissipation.mo:4893:11-4894: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 trunk/Fluid/Dissipation.mo:4853:11-4869: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 trunk/Fluid/Dissipation.mo:4875:11-4891: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.1384/0.8333, allocations: 28.51 MB / 0.5376 GB, free: 11.59 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.8334, allocations: 3.938 kB / 0.5376 GB, free: 11.59 MB / 458.7 MB Notification: Performance of Transformations before backend: time 2.129e-05/0.8334, allocations: 8 kB / 0.5376 GB, free: 11.58 MB / 458.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.002977/0.8364, allocations: 0.9041 MB / 0.5385 GB, free: 10.63 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.8365, allocations: 12.03 kB / 0.5385 GB, free: 10.62 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003116/0.8368, allocations: 143.9 kB / 0.5386 GB, free: 10.47 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002055/0.837, allocations: 71.06 kB / 0.5387 GB, free: 10.4 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007809/0.8378, allocations: 358 kB / 0.5391 GB, free: 10.01 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.181e-05/0.8379, allocations: 61.98 kB / 0.5391 GB, free: 9.949 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001861/0.8381, allocations: 72 kB / 0.5392 GB, free: 9.879 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00267/0.8408, allocations: 1.147 MB / 0.5403 GB, free: 8.723 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.8408, allocations: 4 kB / 0.5403 GB, free: 8.719 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001335/0.841, allocations: 31.98 kB / 0.5403 GB, free: 8.688 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001345/0.8411, allocations: 73.95 kB / 0.5404 GB, free: 8.617 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003954/0.8451, allocations: 1.659 MB / 0.542 GB, free: 6.957 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008/0.8532, allocations: 2.975 MB / 0.5449 GB, free: 3.832 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001397/0.8546, allocations: 403.6 kB / 0.5453 GB, free: 3.426 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003476/0.855, allocations: 133.4 kB / 0.5454 GB, free: 3.293 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.174e-05/0.8551, allocations: 8.219 kB / 0.5455 GB, free: 3.285 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.249e-05/0.8551, allocations: 38.84 kB / 0.5455 GB, free: 3.238 MB / 458.7 MB Notification: Performance of pre-optimization done (n=34): time 3.106e-06/0.8551, allocations: 0 / 0.5455 GB, free: 3.238 MB / 458.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009646/0.8561, allocations: 323.7 kB / 0.5458 GB, free: 2.918 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.059e-05/0.8562, allocations: 55.41 kB / 0.5459 GB, free: 2.852 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.8565, allocations: 189.6 kB / 0.546 GB, free: 2.656 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.06e-05/0.8565, allocations: 29.7 kB / 0.5461 GB, free: 2.621 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002718/0.8568, allocations: 382.2 kB / 0.5464 GB, free: 2.238 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001394/0.857, allocations: 122.3 kB / 0.5465 GB, free: 2.117 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.731e-05/0.857, allocations: 8 kB / 0.5465 GB, free: 2.109 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.8571, allocations: 338.8 kB / 0.5469 GB, free: 1.77 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003667/0.8575, allocations: 129.1 kB / 0.547 GB, free: 1.641 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005097/0.858, allocations: 325.3 kB / 0.5473 GB, free: 1.238 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005399/0.8586, allocations: 193.9 kB / 0.5475 GB, free: 1.051 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.672e-06/0.8586, allocations: 0 / 0.5475 GB, free: 1.051 MB / 458.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001298/0.8599, allocations: 0.4935 MB / 0.548 GB, free: 0.5508 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.86, allocations: 11.94 kB / 0.548 GB, free: 0.5391 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.951e-05/0.86, allocations: 8 kB / 0.548 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.412e-05/0.8601, allocations: 8 kB / 0.548 GB, free: 0.5234 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002038/0.8621, allocations: 207.8 kB / 0.5482 GB, free: 328 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002294/0.8644, allocations: 2.997 MB / 0.5511 GB, free: 13.21 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000602/0.8651, allocations: 59.52 kB / 0.5512 GB, free: 13.15 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.996e-05/0.8652, allocations: 31.98 kB / 0.5512 GB, free: 13.12 MB / 474.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.0002139/0.8654, allocations: 140.9 kB / 0.5513 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.777e-05/0.8655, allocations: 23.77 kB / 0.5514 GB, free: 12.95 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002036/0.8676, allocations: 0.5346 MB / 0.5519 GB, free: 12.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.154e-05/0.8676, allocations: 8 kB / 0.5519 GB, free: 12.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.8676, allocations: 3.938 kB / 0.5519 GB, free: 12.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.8677, allocations: 7.969 kB / 0.5519 GB, free: 12.39 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/0.8704, allocations: 1.146 MB / 0.553 GB, free: 11.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.8705, allocations: 0 / 0.553 GB, free: 11.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001298/0.8718, allocations: 179.8 kB / 0.5532 GB, free: 10.99 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-05/0.8718, allocations: 4 kB / 0.5532 GB, free: 10.98 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-05/0.8719, allocations: 15.98 kB / 0.5532 GB, free: 10.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001952/0.8738, allocations: 2.958 MB / 0.5561 GB, free: 7.895 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.157e-06/0.8739, allocations: 7.938 kB / 0.5561 GB, free: 7.887 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.875, allocations: 0.5508 MB / 0.5567 GB, free: 7.246 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001062/0.8751, allocations: 100.8 kB / 0.5568 GB, free: 7.129 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.545e-05/0.8752, allocations: 8 kB / 0.5568 GB, free: 7.121 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003655/0.8756, allocations: 19.98 kB / 0.5568 GB, free: 7.102 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001227/0.8757, allocations: 47.84 kB / 0.5568 GB, free: 7.055 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.298e-05/0.8758, allocations: 20 kB / 0.5568 GB, free: 7.035 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001626/0.876, allocations: 131.5 kB / 0.557 GB, free: 6.906 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.876, allocations: 0 / 0.557 GB, free: 6.906 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001658/0.8776, allocations: 390.5 kB / 0.5573 GB, free: 6.523 MB / 474.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.002831/0.8805, allocations: 1.944 MB / 0.5592 GB, free: 4.496 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.8821, allocations: 409.8 kB / 0.5596 GB, free: 4.098 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.8821, allocations: 0 / 0.5596 GB, free: 4.098 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009202/0.8831, allocations: 221.1 kB / 0.5598 GB, free: 3.883 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003716/0.8835, allocations: 20.19 kB / 0.5599 GB, free: 3.859 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/0.8868, allocations: 1.107 MB / 0.5609 GB, free: 2.688 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007558/0.8876, allocations: 1.011 MB / 0.5619 GB, free: 1.652 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0009254/0.8885, allocations: 170.5 kB / 0.5621 GB, free: 1.488 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004293/0.889, allocations: 207.3 kB / 0.5623 GB, free: 1.285 MB / 474.7 MB Notification: Performance of SimCode: time 1.573e-06/0.889, allocations: 4 kB / 0.5623 GB, free: 1.281 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05074/0.9398, allocations: 12.4 MB / 0.5744 GB, free: 5.07 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003682/0.9402, allocations: 241 kB / 0.5746 GB, free: 4.762 MB / 490.7 MB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Os -march=native -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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.o ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c In file included from ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c:7: In file included from ./ModelicaTest_trunk_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 -Os -march=native -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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c In file included from ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o] Error 1