Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.Channel.dp_internalFlowOverall_DPMFLOW,fileNamePrefix="ModelicaTest_3_2_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.461/2.461, allocations: 235 MB / 247.2 MB, free: 14.38 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.437e-05, allocations: 0 / 305.1 MB, free: 5.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4772/0.4772, allocations: 54.85 MB / 359.9 MB, free: 3.199 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1891/0.6664, allocations: 105.2 MB / 465.1 MB, free: 7.695 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003808/0.6669, allocations: 100.9 kB / 465.2 MB, free: 7.598 MB / 394.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2/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.2/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.2/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.1462/0.8131, allocations: 27.81 MB / 493 MB, free: 11.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.993e-06/0.8131, allocations: 0 / 493 MB, free: 11.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.255e-05/0.8131, allocations: 8 kB / 493 MB, free: 11.5 MB / 426.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.002795/0.816, allocations: 0.9019 MB / 493.9 MB, free: 10.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.3e-05/0.8161, allocations: 12.03 kB / 493.9 MB, free: 10.54 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002956/0.8164, allocations: 144 kB / 494.1 MB, free: 10.39 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002208/0.8166, allocations: 79.05 kB / 494.1 MB, free: 10.31 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008008/0.8174, allocations: 342.1 kB / 494.5 MB, free: 9.938 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.387e-05/0.8175, allocations: 61.98 kB / 494.5 MB, free: 9.879 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001992/0.8177, allocations: 76 kB / 494.6 MB, free: 9.805 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002758/0.8205, allocations: 1.143 MB / 495.7 MB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.902e-05/0.8206, allocations: 0 / 495.7 MB, free: 8.652 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001357/0.8207, allocations: 35.98 kB / 495.8 MB, free: 8.617 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001429/0.8209, allocations: 73.95 kB / 495.9 MB, free: 8.547 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00395/0.8248, allocations: 1.663 MB / 497.5 MB, free: 6.883 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007497/0.8324, allocations: 2.966 MB / 0.4888 GB, free: 3.766 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001314/0.8337, allocations: 403.5 kB / 0.4891 GB, free: 3.359 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003385/0.8341, allocations: 133.3 kB / 0.4893 GB, free: 3.227 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.138e-05/0.8342, allocations: 16.27 kB / 0.4893 GB, free: 3.211 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.757e-05/0.8342, allocations: 34.84 kB / 0.4893 GB, free: 3.168 MB / 426.7 MB Notification: Performance of pre-optimization done (n=34): time 3.417e-06/0.8342, allocations: 0 / 0.4893 GB, free: 3.168 MB / 426.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009487/0.8352, allocations: 323.7 kB / 0.4896 GB, free: 2.848 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.8352, allocations: 55.41 kB / 0.4897 GB, free: 2.781 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002619/0.8355, allocations: 189.5 kB / 0.4899 GB, free: 2.586 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.8356, allocations: 33.7 kB / 0.4899 GB, free: 2.547 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000286/0.8359, allocations: 386.2 kB / 0.4903 GB, free: 2.16 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001555/0.836, allocations: 126.2 kB / 0.4904 GB, free: 2.035 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/0.8361, allocations: 12 kB / 0.4904 GB, free: 2.023 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001446/0.8362, allocations: 334.8 kB / 0.4907 GB, free: 1.688 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.8366, allocations: 137 kB / 0.4908 GB, free: 1.555 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005119/0.8371, allocations: 317.3 kB / 0.4911 GB, free: 1.152 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000491/0.8376, allocations: 192.5 kB / 0.4913 GB, free: 0.9648 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.814e-06/0.8377, allocations: 4 kB / 0.4913 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001266/0.8389, allocations: 0.4927 MB / 0.4918 GB, free: 472 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.299e-05/0.839, allocations: 8.875 kB / 0.4918 GB, free: 464 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.839, allocations: 8 kB / 0.4918 GB, free: 456 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.939e-05/0.839, allocations: 16 kB / 0.4918 GB, free: 440 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.8405, allocations: 203.8 kB / 0.492 GB, free: 236 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002038/0.8426, allocations: 2.997 MB / 0.495 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005517/0.8432, allocations: 55.67 kB / 0.495 GB, free: 13.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.459e-05/0.8433, allocations: 35.98 kB / 0.4951 GB, free: 13.03 MB / 442.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.0002005/0.8435, allocations: 144.7 kB / 0.4952 GB, free: 12.88 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.949e-05/0.8436, allocations: 19.72 kB / 0.4952 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001982/0.8456, allocations: 0.5348 MB / 0.4957 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.02e-05/0.8456, allocations: 4 kB / 0.4957 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/0.8456, allocations: 3.953 kB / 0.4957 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.8456, allocations: 0 / 0.4957 GB, free: 12.32 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00278/0.8484, allocations: 1.141 MB / 0.4969 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.068e-05/0.8485, allocations: 8 kB / 0.4969 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/0.8497, allocations: 176.1 kB / 0.497 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.749e-05/0.8498, allocations: 4 kB / 0.497 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.502e-05/0.8499, allocations: 19.98 kB / 0.4971 GB, free: 10.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001972/0.8518, allocations: 2.954 MB / 0.4999 GB, free: 7.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.8519, allocations: 8.094 kB / 0.4999 GB, free: 7.812 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.853, allocations: 0.5582 MB / 0.5005 GB, free: 7.164 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001048/0.8531, allocations: 108.8 kB / 0.5006 GB, free: 7.039 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.69e-05/0.8532, allocations: 11.94 kB / 0.5006 GB, free: 7.027 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003577/0.8536, allocations: 19.98 kB / 0.5006 GB, free: 7.008 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/0.8537, allocations: 31.97 kB / 0.5007 GB, free: 6.977 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.665e-05/0.8538, allocations: 19.98 kB / 0.5007 GB, free: 6.957 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001639/0.8539, allocations: 140.5 kB / 0.5008 GB, free: 6.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.854, allocations: 4 kB / 0.5008 GB, free: 6.816 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001638/0.8556, allocations: 378.6 kB / 0.5012 GB, free: 6.445 MB / 442.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.002884/0.8585, allocations: 1.947 MB / 0.5031 GB, free: 4.418 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001596/0.8602, allocations: 404.5 kB / 0.5035 GB, free: 4.023 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.8602, allocations: 0 / 0.5035 GB, free: 4.023 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000905/0.8611, allocations: 220.9 kB / 0.5037 GB, free: 3.809 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.8615, allocations: 27.94 kB / 0.5037 GB, free: 3.777 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003333/0.8649, allocations: 1.115 MB / 0.5048 GB, free: 2.598 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007645/0.8657, allocations: 1.003 MB / 0.5058 GB, free: 1.562 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0009264/0.8666, allocations: 166.6 kB / 0.5059 GB, free: 1.402 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004159/0.8671, allocations: 207.3 kB / 0.5061 GB, free: 1.199 MB / 442.7 MB Notification: Performance of SimCode: time 1.222e-06/0.8671, allocations: 0 / 0.5061 GB, free: 1.199 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04849/0.9156, allocations: 12.42 MB / 0.5183 GB, free: 4.863 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002976/0.9159, allocations: 235 kB / 0.5185 GB, free: 4.551 MB / 458.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_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.o ModelicaTest_3_2_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c In file included from ModelicaTest_3_2_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW.c:7: In file included from ./ModelicaTest_3_2_2_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_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o ModelicaTest_3_2_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c In file included from ModelicaTest_3_2_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_3_2_2_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_2_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_2_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_2_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_2_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_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_3_2_2_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_Channel_dp_internalFlowOverall_DPMFLOW_functions.o] Error 1