Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Air.MoistAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.559/2.559, allocations: 270 MB / 282.6 MB, free: 1.879 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.127e-05, allocations: 0 / 347.1 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4137/0.4138, allocations: 61.87 MB / 408.9 MB, free: 10.73 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 11.51/11.93, allocations: 3.555 GB / 3.954 GB, free: 138 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003159/11.93, allocations: 93.27 kB / 3.954 GB, free: 138 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.396/14.32, allocations: 413.3 MB / 4.358 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.814e-06/14.32, allocations: 3.938 kB / 4.358 GB, free: 65.52 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.423e-05/14.32, allocations: 22.45 kB / 4.358 GB, free: 65.52 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 186 * Number of variables: 186 Notification: Performance of Generate backend data structure: time 0.009658/14.33, allocations: 2.217 MB / 4.36 GB, free: 64.68 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/14.33, allocations: 9.125 kB / 4.36 GB, free: 64.68 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003706/14.33, allocations: 127.5 kB / 4.36 GB, free: 64.64 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006722/14.34, allocations: 106.5 kB / 4.36 GB, free: 64.6 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/14.34, allocations: 0.6372 MB / 4.361 GB, free: 64.37 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/14.34, allocations: 116.6 kB / 4.361 GB, free: 64.3 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002149/14.34, allocations: 67.69 kB / 4.361 GB, free: 64.3 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002704/14.34, allocations: 1.121 MB / 4.362 GB, free: 64.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.918e-05/14.34, allocations: 6.469 kB / 4.362 GB, free: 64.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001641/14.34, allocations: 35.31 kB / 4.362 GB, free: 64.11 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001083/14.34, allocations: 56.72 kB / 4.362 GB, free: 64.11 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002751/14.34, allocations: 1.108 MB / 4.363 GB, free: 64.11 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01005/14.35, allocations: 4.674 MB / 4.368 GB, free: 61.86 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002558/14.36, allocations: 0.7907 MB / 4.369 GB, free: 61.84 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009302/14.36, allocations: 412.1 kB / 4.369 GB, free: 61.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001516/14.36, allocations: 1.634 MB / 4.371 GB, free: 60.05 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.325e-05/14.36, allocations: 40.75 kB / 4.371 GB, free: 60.01 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=70): time 3.807e-06/14.36, allocations: 0 / 4.371 GB, free: 60.01 MB / 0.5261 GB Notification: Performance of matching and sorting (n=82): time 0.02102/14.38, allocations: 3.624 MB / 4.374 GB, free: 59.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/14.38, allocations: 117.7 kB / 4.374 GB, free: 59.45 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001064/14.38, allocations: 0.5744 MB / 4.375 GB, free: 59.33 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0002489/14.38, allocations: 40.92 kB / 4.375 GB, free: 59.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002575/14.38, allocations: 413.4 kB / 4.375 GB, free: 59.06 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003263/14.38, allocations: 293.5 kB / 4.376 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.8e-05/14.38, allocations: 19.56 kB / 4.376 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.644e-05/14.38, allocations: 349.8 kB / 4.376 GB, free: 58.6 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001104/14.38, allocations: 447.4 kB / 4.377 GB, free: 58.59 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001318/14.38, allocations: 0.7017 MB / 4.377 GB, free: 58.3 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001462/14.39, allocations: 0.5369 MB / 4.378 GB, free: 58.29 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.143e-05/14.39, allocations: 0 / 4.378 GB, free: 58.29 MB / 0.5261 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.004199/14.39, allocations: 1.468 MB / 4.379 GB, free: 58.21 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.679e-05/14.39, allocations: 7.406 kB / 4.379 GB, free: 58.21 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/14.39, allocations: 10 kB / 4.379 GB, free: 58.21 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01241/14.4, allocations: 1.33 MB / 4.381 GB, free: 58.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/14.4, allocations: 151.8 kB / 4.381 GB, free: 58.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002744/14.41, allocations: 1.417 MB / 4.382 GB, free: 57.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001886/14.41, allocations: 94.33 kB / 4.382 GB, free: 57.65 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001757/14.41, allocations: 56.08 kB / 4.382 GB, free: 57.65 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 33} Notification: Performance of prepare postOptimizeDAE: time 0.0003739/14.41, allocations: 169.1 kB / 4.382 GB, free: 57.55 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/14.41, allocations: 87 kB / 4.382 GB, free: 57.51 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/14.41, allocations: 1.543 MB / 4.384 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/14.41, allocations: 14.05 kB / 4.384 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/14.41, allocations: 0 / 4.384 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/14.41, allocations: 9.281 kB / 4.384 GB, free: 57.38 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005624/14.42, allocations: 2.495 MB / 4.386 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.305e-06/14.42, allocations: 0 / 4.386 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002534/14.42, allocations: 263.5 kB / 4.387 GB, free: 56.89 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002303/14.42, allocations: 317.9 kB / 4.387 GB, free: 56.88 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001611/14.42, allocations: 32.5 kB / 4.387 GB, free: 56.88 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002234/14.43, allocations: 2.158 MB / 4.389 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/14.43, allocations: 2.344 kB / 4.389 GB, free: 55.04 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004726/14.43, allocations: 1.936 MB / 4.391 GB, free: 54.68 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008965/14.43, allocations: 290.5 kB / 4.391 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002469/14.43, allocations: 29.02 kB / 4.391 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001611/14.43, allocations: 76.05 kB / 4.391 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001896/14.43, allocations: 64.2 kB / 4.391 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001651/14.43, allocations: 55.23 kB / 4.391 GB, free: 54.54 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0008921/14.44, allocations: 473.4 kB / 4.392 GB, free: 54.44 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.91e-07/14.44, allocations: 3.969 kB / 4.392 GB, free: 54.44 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003906/14.44, allocations: 0.777 MB / 4.393 GB, free: 54.35 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.009221/14.45, allocations: 4.309 MB / 4.397 GB, free: 52.87 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003337/14.45, allocations: 1.128 MB / 4.398 GB, free: 52.86 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 8.726e-06/14.45, allocations: 3.531 kB / 4.398 GB, free: 52.86 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.002346/14.45, allocations: 0.6369 MB / 4.399 GB, free: 52.85 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003999/14.46, allocations: 470.6 kB / 4.399 GB, free: 52.84 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008344/14.47, allocations: 2.176 MB / 4.401 GB, free: 52.38 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006487/14.47, allocations: 1.059 MB / 4.402 GB, free: 51.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008154/14.47, allocations: 338.2 kB / 4.403 GB, free: 51.67 MB / 0.5261 GB Notification: Performance of SimCode: time 1.132e-06/14.47, allocations: 0 / 4.403 GB, free: 51.67 MB / 0.5261 GB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir.h:645:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__phX_f__nonlinear(u, p, h, X, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir.h:11:7: note: forward declaration of 'Functions' class Functions; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir.h:663:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__phX_f__nonlinear(u, p, h, X, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAir.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirAlgLoopMain.cpp:18: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirAlgloop82.cpp:117:65: error: use of undeclared identifier '_Closure60_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__phX_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure60_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__phX_f__nonlinear(_functions, /*box double*/__z[2], /*box double*/_system->_volume_P_ports2_P_h_outflow_, /*box BaseArray*/tmp461), 190.0, 647.0, 1e-13, tmp462); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 3 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Air_MoistAirCalcHelperMain.o] Error 1