Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_twoPhaseOverall_DP,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.389/2.389, allocations: 270 MB / 283.6 MB, free: 3.137 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.304e-05/4.263e-05, allocations: 5.812 kB / 348.5 MB, free: 10.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1466, allocations: 61.89 MB / 410.4 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5433/0.69, allocations: 122.3 MB / 0.5202 GB, free: 13.72 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003668/0.6904, allocations: 93.62 kB / 0.5203 GB, free: 13.63 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2479/0.9383, allocations: 46.43 MB / 0.5656 GB, free: 14.89 MB / 490.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.9384, allocations: 0 / 0.5656 GB, free: 14.89 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.262e-05/0.9385, allocations: 12 kB / 0.5656 GB, free: 14.88 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.006641/0.9451, allocations: 1.393 MB / 0.567 GB, free: 13.44 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.179e-05/0.9452, allocations: 8.031 kB / 0.567 GB, free: 13.43 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004604/0.9457, allocations: 156.1 kB / 0.5671 GB, free: 13.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003972/0.9461, allocations: 106.7 kB / 0.5672 GB, free: 13.16 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001532/0.9477, allocations: 455 kB / 0.5677 GB, free: 12.68 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.9478, allocations: 65.98 kB / 0.5677 GB, free: 12.61 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003145/0.9481, allocations: 83.95 kB / 0.5678 GB, free: 12.53 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004216/0.9524, allocations: 1.404 MB / 0.5692 GB, free: 11.06 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.867e-05/0.9525, allocations: 3.938 kB / 0.5692 GB, free: 11.06 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001921/0.9527, allocations: 36 kB / 0.5692 GB, free: 11.02 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001815/0.9529, allocations: 73.97 kB / 0.5693 GB, free: 10.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004831/0.9577, allocations: 1.413 MB / 0.5707 GB, free: 9.535 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.968, allocations: 3.774 MB / 0.5744 GB, free: 5.633 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002227/0.9703, allocations: 0.7727 MB / 0.5751 GB, free: 4.695 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.9716, allocations: 389.6 kB / 0.5755 GB, free: 4.262 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001184/0.9718, allocations: 20.16 kB / 0.5755 GB, free: 4.242 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.539e-05/0.9718, allocations: 63.06 kB / 0.5756 GB, free: 4.168 MB / 490.7 MB Notification: Performance of pre-optimization done (n=38): time 5.43e-06/0.9719, allocations: 0 / 0.5756 GB, free: 4.168 MB / 490.7 MB Notification: Performance of matching and sorting (n=38): time 0.003626/0.9755, allocations: 0.7129 MB / 0.5763 GB, free: 3.453 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003156/0.9758, allocations: 0.4964 MB / 0.5767 GB, free: 2.84 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002128/0.978, allocations: 0.7807 MB / 0.5775 GB, free: 2.055 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.9781, allocations: 33.7 kB / 0.5775 GB, free: 2.016 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007018/0.9789, allocations: 0.5286 MB / 0.5781 GB, free: 1.477 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002946/0.9792, allocations: 150.1 kB / 0.5782 GB, free: 1.328 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001327/0.9793, allocations: 20 kB / 0.5782 GB, free: 1.309 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002931/0.9796, allocations: 394.9 kB / 0.5786 GB, free: 0.9141 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.9812, allocations: 418.3 kB / 0.579 GB, free: 0.5039 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0023/0.9836, allocations: 1.061 MB / 0.58 GB, free: 15.11 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002009/0.9856, allocations: 0.55 MB / 0.5806 GB, free: 14.56 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.868e-05/0.9857, allocations: 12 kB / 0.5806 GB, free: 14.55 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.005654/0.9913, allocations: 1.378 MB / 0.5819 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 6.056e-05/0.9915, allocations: 19.98 kB / 0.5819 GB, free: 13.14 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.238e-05/0.9915, allocations: 24 kB / 0.582 GB, free: 13.12 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.186e-05/0.9917, allocations: 39.94 kB / 0.582 GB, free: 13.08 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003219/0.9949, allocations: 359.8 kB / 0.5823 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.749e-05/0.995, allocations: 43.86 kB / 0.5824 GB, free: 12.69 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003216/0.9983, allocations: 255 kB / 0.5826 GB, free: 12.44 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004135/0.9987, allocations: 79.97 kB / 0.5827 GB, free: 12.36 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * Number of states: 0 () * Number of discrete variables: 50 (IN_con_2[5].geodeticPressureLoss,IN_con_2[5].massFlowRateCorrection,IN_con_2[5].momentumPressureLoss,IN_con_2[5].voidFractionApproach,IN_con_2[5].frictionalPressureLoss,IN_con_2[4].geodeticPressureLoss,IN_con_2[4].massFlowRateCorrection,IN_con_2[4].momentumPressureLoss,IN_con_2[4].voidFractionApproach,IN_con_2[4].frictionalPressureLoss,IN_con_2[3].geodeticPressureLoss,IN_con_2[3].massFlowRateCorrection,IN_con_2[3].momentumPressureLoss,IN_con_2[3].voidFractionApproach,IN_con_2[3].frictionalPressureLoss,IN_con_2[2].geodeticPressureLoss,IN_con_2[2].massFlowRateCorrection,IN_con_2[2].momentumPressureLoss,IN_con_2[2].voidFractionApproach,IN_con_2[2].frictionalPressureLoss,IN_con_2[1].geodeticPressureLoss,IN_con_2[1].massFlowRateCorrection,IN_con_2[1].momentumPressureLoss,IN_con_2[1].voidFractionApproach,IN_con_2[1].frictionalPressureLoss,IN_con_1[5].geodeticPressureLoss,IN_con_1[5].massFlowRateCorrection,IN_con_1[5].momentumPressureLoss,IN_con_1[5].voidFractionApproach,IN_con_1[5].frictionalPressureLoss,IN_con_1[4].geodeticPressureLoss,IN_con_1[4].massFlowRateCorrection,IN_con_1[4].momentumPressureLoss,IN_con_1[4].voidFractionApproach,IN_con_1[4].frictionalPressureLoss,IN_con_1[3].geodeticPressureLoss,IN_con_1[3].massFlowRateCorrection,IN_con_1[3].momentumPressureLoss,IN_con_1[3].voidFractionApproach,IN_con_1[3].frictionalPressureLoss,IN_con_1[2].geodeticPressureLoss,IN_con_1[2].massFlowRateCorrection,IN_con_1[2].momentumPressureLoss,IN_con_1[2].voidFractionApproach,IN_con_1[2].frictionalPressureLoss,IN_con_1[1].geodeticPressureLoss,IN_con_1[1].massFlowRateCorrection,IN_con_1[1].momentumPressureLoss,IN_con_1[1].voidFractionApproach,IN_con_1[1].frictionalPressureLoss) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (134): * Single equations (assignments): 134 * 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 prepare postOptimizeDAE: time 0.000554/0.9993, allocations: 232.3 kB / 0.5829 GB, free: 12.13 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009095/1, allocations: 86.97 kB / 0.583 GB, free: 12.04 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002511/1.003, allocations: 495.3 kB / 0.5835 GB, free: 11.55 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.986e-05/1.003, allocations: 8 kB / 0.5835 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.418e-05/1.003, allocations: 4 kB / 0.5835 GB, free: 11.54 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.06e-05/1.003, allocations: 15.98 kB / 0.5835 GB, free: 11.52 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004188/1.007, allocations: 0.6998 MB / 0.5842 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.802e-05/1.007, allocations: 4 kB / 0.5842 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002732/1.01, allocations: 235.7 kB / 0.5844 GB, free: 10.54 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.751e-05/1.01, allocations: 8 kB / 0.5844 GB, free: 10.53 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001471/1.01, allocations: 27.97 kB / 0.5845 GB, free: 10.5 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.288e-05/1.01, allocations: 11.94 kB / 0.5845 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/1.01, allocations: 4 kB / 0.5845 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00392/1.014, allocations: 2.256 MB / 0.5867 GB, free: 8.098 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004021/1.015, allocations: 156 kB / 0.5868 GB, free: 7.926 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002716/1.015, allocations: 12 kB / 0.5868 GB, free: 7.914 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003724/1.019, allocations: 163.8 kB / 0.587 GB, free: 7.754 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008321/1.02, allocations: 143.7 kB / 0.5871 GB, free: 7.613 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001406/1.02, allocations: 23.98 kB / 0.5872 GB, free: 7.59 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001644/1.021, allocations: 0.5576 MB / 0.5877 GB, free: 7.035 MB / 0.4948 GB Notification: Performance of sort global known variables: time 9.01e-07/1.021, allocations: 0 / 0.5877 GB, free: 7.035 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.005401/1.027, allocations: 0.5263 MB / 0.5882 GB, free: 6.508 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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.007548/1.034, allocations: 4.462 MB / 0.5926 GB, free: 1.941 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003981/1.038, allocations: 0.9255 MB / 0.5935 GB, free: 1.023 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/1.039, allocations: 4.062 kB / 0.5935 GB, free: 1.02 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.003052/1.042, allocations: 0.7373 MB / 0.5942 GB, free: 288 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002928/1.045, allocations: 104.3 kB / 0.5943 GB, free: 180 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009916/1.055, allocations: 1.755 MB / 0.596 GB, free: 14.32 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001586/1.056, allocations: 1.136 MB / 0.5971 GB, free: 13.16 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.003222/1.059, allocations: 444.8 kB / 0.5975 GB, free: 12.72 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/1.061, allocations: 307.3 kB / 0.5978 GB, free: 12.42 MB / 0.5105 GB Notification: Performance of SimCode: time 1.684e-06/1.061, allocations: 0 / 0.5978 GB, free: 12.42 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4125/1.473, allocations: 22.51 MB / 0.6198 GB, free: 155 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002293/1.474, allocations: 205.5 kB / 0.62 GB, free: 154.8 MB / 0.5105 GB 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_twoPhaseOverall_DP.o ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP.c In file included from ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP.c:7: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_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_twoPhaseOverall_DP_functions.o ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.c In file included from ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.c:2: In file included from ./ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_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_twoPhaseOverall_DP_functions.c:196: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_twoPhaseOverall_DP_functions.h:463: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); ^ 2 warnings and 1 error generated. : recipe for target 'ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.o' failed make: *** [ModelicaTest_4_0_0_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.o] Error 1