Running command: "" <> buildModelFMU(ModelicaTest.Fluid.Dissipation.Verifications.PressureLoss.StraightPipe.dp_twoPhaseOverall_DP,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.391/2.391, allocations: 270 MB / 283.6 MB, free: 3.094 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.911e-05/4.918e-05, allocations: 4 kB / 348.5 MB, free: 10.68 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1333, allocations: 61.88 MB / 410.4 MB, free: 12.86 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6104/0.7437, allocations: 122.3 MB / 0.5202 GB, free: 13.59 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003685/0.7442, allocations: 97.19 kB / 0.5203 GB, free: 13.5 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2329/0.9771, allocations: 46.43 MB / 0.5656 GB, free: 14.76 MB / 490.7 MB Notification: Performance of FrontEnd: time 3.967e-06/0.9771, allocations: 4 kB / 0.5656 GB, free: 14.76 MB / 490.7 MB Notification: Performance of Transformations before backend: time 2.782e-05/0.9772, allocations: 12 kB / 0.5656 GB, free: 14.75 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.004536/0.9817, allocations: 1.395 MB / 0.567 GB, free: 13.3 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.796e-05/0.9818, allocations: 8.031 kB / 0.567 GB, free: 13.29 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002703/0.9821, allocations: 160.2 kB / 0.5671 GB, free: 13.13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002324/0.9823, allocations: 102.7 kB / 0.5672 GB, free: 13.03 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009735/0.9833, allocations: 451 kB / 0.5677 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.086e-05/0.9834, allocations: 62 kB / 0.5677 GB, free: 12.49 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001921/0.9836, allocations: 87.95 kB / 0.5678 GB, free: 12.4 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002977/0.9866, allocations: 1.4 MB / 0.5692 GB, free: 10.94 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.742e-05/0.9866, allocations: 3.938 kB / 0.5692 GB, free: 10.93 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001283/0.9868, allocations: 35.98 kB / 0.5692 GB, free: 10.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.9869, allocations: 73.95 kB / 0.5693 GB, free: 10.82 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003193/0.9901, allocations: 1.413 MB / 0.5707 GB, free: 9.41 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007027/0.9971, allocations: 3.774 MB / 0.5744 GB, free: 5.508 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001648/0.9988, allocations: 0.7688 MB / 0.5751 GB, free: 4.574 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009018/0.9998, allocations: 397.6 kB / 0.5755 GB, free: 4.133 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.423e-05/0.9999, allocations: 16.17 kB / 0.5755 GB, free: 4.117 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.814e-05/0.9999, allocations: 71.05 kB / 0.5756 GB, free: 4.035 MB / 490.7 MB Notification: Performance of pre-optimization done (n=38): time 3.706e-06/1, allocations: 4 kB / 0.5756 GB, free: 4.031 MB / 490.7 MB Notification: Performance of matching and sorting (n=38): time 0.00247/1.002, allocations: 0.7088 MB / 0.5763 GB, free: 3.32 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002808/1.003, allocations: 0.493 MB / 0.5768 GB, free: 2.711 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001481/1.004, allocations: 0.7846 MB / 0.5775 GB, free: 1.922 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 7.317e-05/1.004, allocations: 29.7 kB / 0.5775 GB, free: 1.887 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005223/1.005, allocations: 0.5324 MB / 0.5781 GB, free: 1.344 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002182/1.005, allocations: 146.1 kB / 0.5782 GB, free: 1.199 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.435e-05/1.005, allocations: 20 kB / 0.5782 GB, free: 1.18 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002599/1.005, allocations: 402.9 kB / 0.5786 GB, free: 0.7773 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/1.007, allocations: 414.3 kB / 0.579 GB, free: 380 kB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001724/1.008, allocations: 1.069 MB / 0.58 GB, free: 14.96 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001426/1.01, allocations: 0.55 MB / 0.5806 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.908e-05/1.01, allocations: 8 kB / 0.5806 GB, free: 14.41 MB / 0.4948 GB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00378/1.014, allocations: 1.383 MB / 0.5819 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 4.227e-05/1.014, allocations: 16 kB / 0.582 GB, free: 13 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.552e-05/1.014, allocations: 24 kB / 0.582 GB, free: 12.98 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.453e-05/1.014, allocations: 36 kB / 0.582 GB, free: 12.95 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002425/1.016, allocations: 363.4 kB / 0.5824 GB, free: 12.59 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.219e-05/1.016, allocations: 47.84 kB / 0.5824 GB, free: 12.54 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002252/1.019, allocations: 258.9 kB / 0.5827 GB, free: 12.29 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001807/1.019, allocations: 75.98 kB / 0.5827 GB, free: 12.21 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.0004069/1.019, allocations: 224.3 kB / 0.5829 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005203/1.02, allocations: 90.97 kB / 0.583 GB, free: 11.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/1.022, allocations: 495.3 kB / 0.5835 GB, free: 11.41 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.404e-05/1.022, allocations: 8 kB / 0.5835 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/1.022, allocations: 4 kB / 0.5835 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/1.022, allocations: 4 kB / 0.5835 GB, free: 11.39 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/1.024, allocations: 0.7115 MB / 0.5842 GB, free: 10.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/1.024, allocations: 8 kB / 0.5842 GB, free: 10.63 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001822/1.026, allocations: 231.7 kB / 0.5844 GB, free: 10.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.798e-05/1.026, allocations: 8 kB / 0.5844 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.585e-05/1.026, allocations: 19.98 kB / 0.5845 GB, free: 10.38 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.308e-05/1.026, allocations: 11.94 kB / 0.5845 GB, free: 10.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.034e-05/1.026, allocations: 11.98 kB / 0.5845 GB, free: 10.35 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002761/1.029, allocations: 2.248 MB / 0.5867 GB, free: 7.969 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/1.029, allocations: 164 kB / 0.5868 GB, free: 7.789 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001781/1.029, allocations: 12 kB / 0.5869 GB, free: 7.777 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002253/1.032, allocations: 159.8 kB / 0.587 GB, free: 7.621 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005479/1.032, allocations: 143.7 kB / 0.5871 GB, free: 7.48 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.491e-05/1.032, allocations: 23.97 kB / 0.5872 GB, free: 7.457 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001141/1.034, allocations: 0.5576 MB / 0.5877 GB, free: 6.902 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.21e-07/1.034, allocations: 0 / 0.5877 GB, free: 6.902 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003511/1.037, allocations: 0.5301 MB / 0.5882 GB, free: 6.371 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.005737/1.043, allocations: 4.449 MB / 0.5926 GB, free: 1.82 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.002769/1.046, allocations: 0.9268 MB / 0.5935 GB, free: 0.8984 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.046, allocations: 4 kB / 0.5935 GB, free: 0.8945 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002029/1.048, allocations: 0.7402 MB / 0.5942 GB, free: 160 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001971/1.05, allocations: 107.1 kB / 0.5943 GB, free: 48 kB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006986/1.057, allocations: 1.759 MB / 0.596 GB, free: 14.19 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/1.058, allocations: 1.133 MB / 0.5971 GB, free: 13.03 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002303/1.06, allocations: 432.9 kB / 0.5975 GB, free: 12.61 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008347/1.061, allocations: 315.3 kB / 0.5978 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of SimCode: time 1.242e-06/1.061, allocations: 0 / 0.5978 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4314/1.493, allocations: 22.51 MB / 0.6198 GB, free: 154.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001583/1.493, allocations: 202 kB / 0.62 GB, free: 154.3 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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP.o ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP.c In file included from ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP.c:7: In file included from ./ModelicaTest_trunk_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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.o ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.c In file included from ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.c:2: In file included from ./ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.o' failed make: *** [ModelicaTest_trunk_ModelicaTest_Fluid_Dissipation_Verifications_PressureLoss_StraightPipe_dp_twoPhaseOverall_DP_functions.o] Error 1