Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Essotherm650,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.684/2.684, allocations: 270 MB / 282.6 MB, free: 1.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.119e-05/4.11e-05, allocations: 4 kB / 347.1 MB, free: 3.219 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4211/0.4211, allocations: 61.87 MB / 408.9 MB, free: 10.83 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8591/1.28, allocations: 237 MB / 0.6308 GB, free: 7.566 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/1.281, allocations: 95.27 kB / 0.6309 GB, free: 7.516 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.327/2.607, allocations: 259.7 MB / 0.8845 GB, free: 49.25 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.833e-06/2.607, allocations: 4 kB / 0.8845 GB, free: 49.25 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.862e-05/2.608, allocations: 16.22 kB / 0.8845 GB, free: 49.23 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.003542/2.611, allocations: 1.18 MB / 0.8857 GB, free: 48 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/2.611, allocations: 12.03 kB / 0.8857 GB, free: 47.99 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001946/2.611, allocations: 94.52 kB / 0.8858 GB, free: 47.89 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001468/2.613, allocations: 150.9 kB / 0.8859 GB, free: 47.74 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001703/2.615, allocations: 0.5481 MB / 0.8864 GB, free: 47.15 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001248/2.615, allocations: 100.4 kB / 0.8865 GB, free: 47.04 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001236/2.615, allocations: 51.98 kB / 0.8866 GB, free: 46.99 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001921/2.617, allocations: 0.8111 MB / 0.8874 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.042e-05/2.617, allocations: 0 / 0.8874 GB, free: 46.09 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/2.617, allocations: 31.98 kB / 0.8874 GB, free: 46.06 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.475e-05/2.617, allocations: 44.92 kB / 0.8875 GB, free: 46.02 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001637/2.619, allocations: 0.5601 MB / 0.888 GB, free: 45.46 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006781/2.626, allocations: 4.479 MB / 0.8924 GB, free: 40.64 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009193/2.626, allocations: 314.9 kB / 0.8927 GB, free: 40.33 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003027/2.627, allocations: 137.3 kB / 0.8928 GB, free: 40.19 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003144/2.627, allocations: 425.5 kB / 0.8932 GB, free: 39.68 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.612e-05/2.627, allocations: 34.56 kB / 0.8932 GB, free: 39.64 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=30): time 3.397e-06/2.627, allocations: 4 kB / 0.8933 GB, free: 39.64 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36): time 0.004573/2.632, allocations: 1.234 MB / 0.8945 GB, free: 38.34 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/2.632, allocations: 132.5 kB / 0.8946 GB, free: 38.18 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009994/2.633, allocations: 0.5735 MB / 0.8951 GB, free: 37.6 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001028/2.633, allocations: 37.7 kB / 0.8952 GB, free: 37.56 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002498/2.633, allocations: 409.1 kB / 0.8956 GB, free: 37.16 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001319/2.633, allocations: 142.1 kB / 0.8957 GB, free: 37.02 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.978e-05/2.633, allocations: 12 kB / 0.8957 GB, free: 37 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.402e-05/2.634, allocations: 338.8 kB / 0.896 GB, free: 36.66 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004741/2.634, allocations: 197.5 kB / 0.8962 GB, free: 36.47 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00067/2.635, allocations: 490.6 kB / 0.8967 GB, free: 35.85 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006173/2.635, allocations: 285.4 kB / 0.897 GB, free: 35.57 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.526e-06/2.635, allocations: 4 kB / 0.897 GB, free: 35.57 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001799/2.637, allocations: 0.7788 MB / 0.8977 GB, free: 34.78 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.738e-05/2.637, allocations: 8 kB / 0.8977 GB, free: 34.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/2.637, allocations: 8 kB / 0.8977 GB, free: 34.77 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001945/2.639, allocations: 277.8 kB / 0.898 GB, free: 34.49 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007589/2.64, allocations: 119.8 kB / 0.8981 GB, free: 34.37 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001377/2.641, allocations: 1.389 MB / 0.8995 GB, free: 32.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001068/2.643, allocations: 39.92 kB / 0.8995 GB, free: 32.89 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.957e-05/2.643, allocations: 43.95 kB / 0.8996 GB, free: 32.85 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,1 14} Notification: Performance of prepare postOptimizeDAE: time 0.0002326/2.643, allocations: 152.7 kB / 0.8997 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001634/2.643, allocations: 75.22 kB / 0.8998 GB, free: 32.62 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/2.645, allocations: 0.6586 MB / 0.9004 GB, free: 31.95 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.768e-06/2.645, allocations: 7.953 kB / 0.9004 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/2.645, allocations: 0 / 0.9004 GB, free: 31.94 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/2.645, allocations: 3.984 kB / 0.9004 GB, free: 31.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002823/2.648, allocations: 1.197 MB / 0.9016 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.262e-06/2.648, allocations: 0 / 0.9016 GB, free: 30.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003283/2.648, allocations: 43.91 kB / 0.9016 GB, free: 30.62 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001273/2.65, allocations: 185.6 kB / 0.9018 GB, free: 30.43 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/2.65, allocations: 19.98 kB / 0.9018 GB, free: 30.41 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/2.651, allocations: 1.288 MB / 0.9031 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/2.651, allocations: 0 / 0.9031 GB, free: 29.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00171/2.653, allocations: 0.7979 MB / 0.9039 GB, free: 28.23 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004488/2.653, allocations: 196.2 kB / 0.9041 GB, free: 28.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001481/2.653, allocations: 8 kB / 0.9041 GB, free: 28.02 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007565/2.654, allocations: 27.92 kB / 0.9041 GB, free: 27.99 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.028e-05/2.654, allocations: 31.98 kB / 0.9041 GB, free: 27.96 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001063/2.654, allocations: 15.98 kB / 0.9041 GB, free: 27.94 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000792/2.655, allocations: 443.1 kB / 0.9046 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.31e-07/2.655, allocations: 0 / 0.9046 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001603/2.657, allocations: 279.9 kB / 0.9048 GB, free: 27.24 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 23 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 4,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.003041/2.66, allocations: 1.719 MB / 0.9065 GB, free: 25.49 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001549/2.662, allocations: 0.4903 MB / 0.907 GB, free: 25 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/2.662, allocations: 0 / 0.907 GB, free: 25 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006614/2.662, allocations: 203.7 kB / 0.9072 GB, free: 24.8 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002655/2.665, allocations: 309.2 kB / 0.9075 GB, free: 24.5 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003613/2.669, allocations: 1.139 MB / 0.9086 GB, free: 23.31 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004381/2.669, allocations: 0.9383 MB / 0.9095 GB, free: 22.35 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005088/2.67, allocations: 239.3 kB / 0.9097 GB, free: 22.11 MB / 0.5261 GB Notification: Performance of SimCode: time 1.302e-06/2.67, allocations: 0 / 0.9097 GB, free: 22.11 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_Incompressible_Essotherm650CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650.h:528:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Vessels__omcQuot_436C6F736564566F6C756D6524766F6C756D65_Medium_T__ph_f__nonlinear(u, p, h, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650.h:11:7: note: forward declaration of 'Functions' class Functions; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650.h:544:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Vessels__omcQuot_436C6F736564566F6C756D6524766F6C756D65_Medium_T__ph_f__nonlinear(u, p, h, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650AlgLoopMain.cpp:15: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650Algloop124.cpp:72:65: error: use of undeclared identifier '_Closure68_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__ph_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure68_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__ph_f__nonlinear(_functions, /*box double*/_system->_volume_P_vessel_ps_static_(2), /*box double*/_system->_volume_P_ports2_P_h_outflow_), 273.15, 593.15, 1e-13, tmp202); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650AlgLoopMain.cpp:21: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650Algloop69.cpp:72:65: error: use of undeclared identifier '_Closure69_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__ph_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure69_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__ph_f__nonlinear(_functions, /*box double*/_system->_volume_P_vessel_ps_static_(2), /*box double*/_system->_volume_P_ports2_P_h_outflow_), 273.15, 593.15, 1e-13, tmp214); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650FMU.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 4 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Essotherm650CalcHelperMain.o] Error 1