Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_overall_DPMFLOW,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.488/2.488, allocations: 270 MB / 283.6 MB, free: 3.125 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.729e-05/3.743e-05, allocations: 4 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1354, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5976/0.7331, allocations: 103.6 MB / 0.5019 GB, free: 484 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003622/0.7335, allocations: 100.5 kB / 0.502 GB, free: 384 kB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 4.0.0/Fluid/Dissipation.mo:6002:11-6008:61:writable] Error: Type mismatch in binding roughness = roughness, expected subtype of enumeration(Neglected, Considered)[4], got type enumeration(Neglected, Considered). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 4.0.0/Fluid/Dissipation.mo:6010:11-6013:69:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 4.0.0/Fluid/Dissipation.mo:6016:11-6022:59:writable] Error: Type mismatch in binding roughness = roughness, expected subtype of enumeration(Neglected, Considered)[4], got type enumeration(Neglected, Considered). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 4.0.0/Fluid/Dissipation.mo:6024:11-6027:67:writable] Error: Type mismatch in binding eta = eta, expected subtype of Real[4], got type Real. Notification: Performance of FrontEnd - DAE generated: time 0.09228/0.8258, allocations: 18.19 MB / 0.5198 GB, free: 14.08 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.8259, allocations: 0 / 0.5198 GB, free: 14.08 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.8259, allocations: 4 kB / 0.5198 GB, free: 14.08 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001468/0.8274, allocations: 0.637 MB / 0.5204 GB, free: 13.4 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.831e-05/0.8274, allocations: 8.031 kB / 0.5204 GB, free: 13.39 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001198/0.8276, allocations: 78.52 kB / 0.5205 GB, free: 13.3 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.947e-05/0.8277, allocations: 27.62 kB / 0.5205 GB, free: 13.28 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000371/0.828, allocations: 238.6 kB / 0.5207 GB, free: 13 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.722e-05/0.8281, allocations: 28.77 kB / 0.5207 GB, free: 12.98 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.554e-05/0.8282, allocations: 31.98 kB / 0.5208 GB, free: 12.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/0.8292, allocations: 434 kB / 0.5212 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.517e-05/0.8293, allocations: 0 / 0.5212 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.747e-05/0.8293, allocations: 8 kB / 0.5212 GB, free: 12.51 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.978e-05/0.8294, allocations: 48.75 kB / 0.5212 GB, free: 12.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.8306, allocations: 0.5091 MB / 0.5217 GB, free: 11.95 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003084/0.8337, allocations: 1.353 MB / 0.5231 GB, free: 10.48 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000801/0.8345, allocations: 254.6 kB / 0.5233 GB, free: 10.22 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002314/0.8348, allocations: 92.75 kB / 0.5234 GB, free: 10.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.294e-05/0.8348, allocations: 11.94 kB / 0.5234 GB, free: 10.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.8349, allocations: 34.52 kB / 0.5234 GB, free: 10.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=25): time 2.555e-06/0.8349, allocations: 0 / 0.5234 GB, free: 10.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=25): time 0.0006678/0.8356, allocations: 219.3 kB / 0.5236 GB, free: 9.852 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.221e-05/0.8356, allocations: 55.41 kB / 0.5237 GB, free: 9.785 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.8358, allocations: 129.9 kB / 0.5238 GB, free: 9.648 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.8358, allocations: 29.7 kB / 0.5238 GB, free: 9.613 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001427/0.836, allocations: 196.2 kB / 0.524 GB, free: 9.414 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.8361, allocations: 86.75 kB / 0.5241 GB, free: 9.328 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.374e-05/0.8361, allocations: 4 kB / 0.5241 GB, free: 9.324 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001355/0.8363, allocations: 322.8 kB / 0.5244 GB, free: 9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002164/0.8365, allocations: 75.83 kB / 0.5245 GB, free: 8.926 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002885/0.8368, allocations: 158.2 kB / 0.5247 GB, free: 8.734 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003001/0.8371, allocations: 103 kB / 0.5248 GB, free: 8.637 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.582e-06/0.8371, allocations: 4 kB / 0.5248 GB, free: 8.633 MB / 442.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0007512/0.8379, allocations: 285.4 kB / 0.525 GB, free: 8.348 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.838, allocations: 15.89 kB / 0.525 GB, free: 8.332 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.838, allocations: 0 / 0.525 GB, free: 8.332 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.838, allocations: 4 kB / 0.525 GB, free: 8.328 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/0.8391, allocations: 131.8 kB / 0.5252 GB, free: 8.199 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001495/0.8406, allocations: 2.372 MB / 0.5275 GB, free: 5.734 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003702/0.841, allocations: 35.67 kB / 0.5275 GB, free: 5.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.426e-05/0.8411, allocations: 15.98 kB / 0.5275 GB, free: 5.684 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (roughness) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001376/0.8412, allocations: 120.9 kB / 0.5277 GB, free: 5.559 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.263e-05/0.8413, allocations: 11.91 kB / 0.5277 GB, free: 5.547 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001183/0.8425, allocations: 349.4 kB / 0.528 GB, free: 5.199 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.8425, allocations: 0 / 0.528 GB, free: 5.199 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.8425, allocations: 0 / 0.528 GB, free: 5.199 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.8425, allocations: 7.984 kB / 0.528 GB, free: 5.191 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006021/0.8431, allocations: 341.2 kB / 0.5283 GB, free: 4.809 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.8432, allocations: 4 kB / 0.5283 GB, free: 4.805 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009867/0.8442, allocations: 115.9 kB / 0.5284 GB, free: 4.691 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-05/0.8442, allocations: 11.92 kB / 0.5285 GB, free: 4.68 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.944e-05/0.8442, allocations: 7.938 kB / 0.5285 GB, free: 4.672 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001594/0.8458, allocations: 2.36 MB / 0.5308 GB, free: 2.219 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.8459, allocations: 4.062 kB / 0.5308 GB, free: 2.215 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007298/0.8466, allocations: 343.2 kB / 0.5311 GB, free: 1.863 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.897e-05/0.8467, allocations: 92.86 kB / 0.5312 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.145e-05/0.8468, allocations: 0 / 0.5312 GB, free: 1.754 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002758/0.8471, allocations: 15.98 kB / 0.5312 GB, free: 1.738 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.897e-05/0.8472, allocations: 23.97 kB / 0.5312 GB, free: 1.715 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-05/0.8472, allocations: 12 kB / 0.5312 GB, free: 1.703 MB / 442.7 MB Notification: Performance of sorting global known variables: time 9.692e-05/0.8473, allocations: 107.8 kB / 0.5313 GB, free: 1.598 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.8473, allocations: 0 / 0.5313 GB, free: 1.598 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001138/0.8485, allocations: 259.3 kB / 0.5316 GB, free: 1.344 MB / 442.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * 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: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002045/0.8505, allocations: 1.171 MB / 0.5327 GB, free: 156 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001084/0.8517, allocations: 248.5 kB / 0.533 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.8517, allocations: 0 / 0.533 GB, free: 15.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006299/0.8523, allocations: 143.8 kB / 0.5331 GB, free: 15.77 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002724/0.8526, allocations: 12.69 kB / 0.5331 GB, free: 15.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.8545, allocations: 0.5842 MB / 0.5337 GB, free: 15.14 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.855, allocations: 0.8023 MB / 0.5345 GB, free: 14.31 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0005745/0.8556, allocations: 109.8 kB / 0.5346 GB, free: 14.2 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002086/0.8558, allocations: 83.41 kB / 0.5347 GB, free: 14.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.122e-06/0.8558, allocations: 0 / 0.5347 GB, free: 14.12 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04165/0.8974, allocations: 8.388 MB / 0.5428 GB, free: 5.883 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000342/0.8979, allocations: 230.9 kB / 0.5431 GB, free: 5.652 MB / 458.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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW.o ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW.c In file included from ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW.c:7: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.o ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c In file included from ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c:2: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c:246:455: 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 = (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_lam_max, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__laminar__DP(threadData, _IN_con_lam, _IN_var, _m_flow)) + (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_con, _IN_var, _m_flow)); ^~~~~~~ ./ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.h:385: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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.c:581:455: 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 = (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_lam_min, _Re_turb, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__laminar__MFLOW(threadData, _IN_con_lam, _IN_var, _dp)) + (omc_Modelica_Fluid_Dissipation_Utilities_Functions_General_Stepsmoother(threadData, _Re_turb, _Re_lam_min, _Re)) * (omc_Modelica_Fluid_Dissipation_PressureLoss_StraightPipe_dp__turbulent__MFLOW(threadData, _IN_con, _IN_var, _dp)); ^~~~~~~ ./ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.h:411: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_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.o' failed make: *** [ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_overall_DPMFLOW_functions.o] Error 1