Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.577/2.577, allocations: 270 MB / 282.6 MB, free: 1.863 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.494e-05/3.506e-05, allocations: 0 / 347.1 MB, free: 3.141 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4212/0.4212, allocations: 61.87 MB / 408.9 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.592/3.013, allocations: 0.7921 GB / 1.191 GB, free: 122 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003407/3.013, allocations: 90.94 kB / 1.192 GB, free: 122 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.937/6.951, allocations: 0.7036 GB / 1.895 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.705e-06/6.951, allocations: 0 / 1.895 GB, free: 18.18 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001159/6.951, allocations: 27.83 kB / 1.895 GB, free: 18.16 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: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.007032/6.958, allocations: 1.575 MB / 1.897 GB, free: 16.54 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.164e-05/6.958, allocations: 8.031 kB / 1.897 GB, free: 16.53 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004402/6.958, allocations: 172.9 kB / 1.897 GB, free: 16.35 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002379/6.961, allocations: 310.2 kB / 1.897 GB, free: 16.05 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002776/6.964, allocations: 0.8057 MB / 1.898 GB, free: 15.2 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/6.964, allocations: 141.4 kB / 1.898 GB, free: 15.05 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003333/6.964, allocations: 111.9 kB / 1.898 GB, free: 14.95 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004464/6.969, allocations: 1.749 MB / 1.9 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.417e-05/6.969, allocations: 0 / 1.9 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002935/6.969, allocations: 51.98 kB / 1.9 GB, free: 13.06 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001394/6.969, allocations: 73.97 kB / 1.9 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004249/6.973, allocations: 1.589 MB / 1.902 GB, free: 11.4 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.01524/6.989, allocations: 6.836 MB / 1.908 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001665/6.99, allocations: 0.7661 MB / 1.909 GB, free: 3.324 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008921/6.991, allocations: 430.4 kB / 1.909 GB, free: 2.902 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003077/6.992, allocations: 283.8 kB / 1.91 GB, free: 2.57 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.876e-05/6.992, allocations: 55.36 kB / 1.91 GB, free: 2.508 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 4.188e-06/6.992, allocations: 0 / 1.91 GB, free: 2.508 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.0172/7.009, allocations: 3.759 MB / 1.913 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.287e-05/7.009, allocations: 111.6 kB / 1.913 GB, free: 14.52 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002345/7.011, allocations: 0.9714 MB / 1.914 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000354/7.012, allocations: 45.7 kB / 1.914 GB, free: 13.48 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005477/7.012, allocations: 0.5208 MB / 1.915 GB, free: 12.95 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004223/7.013, allocations: 272.2 kB / 1.915 GB, free: 12.68 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001217/7.013, allocations: 16 kB / 1.915 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001889/7.013, allocations: 350.8 kB / 1.916 GB, free: 12.31 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001555/7.015, allocations: 0.5564 MB / 1.916 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00187/7.017, allocations: 0.8427 MB / 1.917 GB, free: 10.79 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00186/7.019, allocations: 0.6754 MB / 1.918 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-05/7.019, allocations: 4 kB / 1.918 GB, free: 10.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005266/7.024, allocations: 1.867 MB / 1.919 GB, free: 8.238 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/7.024, allocations: 8 kB / 1.919 GB, free: 8.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/7.024, allocations: 8 kB / 1.919 GB, free: 8.223 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008781/7.033, allocations: 1.379 MB / 1.921 GB, free: 6.84 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001198/7.034, allocations: 143.8 kB / 1.921 GB, free: 6.699 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004704/7.039, allocations: 1.904 MB / 1.923 GB, free: 4.77 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002237/7.041, allocations: 118.7 kB / 1.923 GB, free: 4.656 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000233/7.041, allocations: 67.98 kB / 1.923 GB, free: 4.59 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (82): * Single equations (assignments): 81 * 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 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0004486/7.042, allocations: 171.4 kB / 1.923 GB, free: 4.418 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003702/7.042, allocations: 106.8 kB / 1.923 GB, free: 4.312 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004335/7.046, allocations: 1.476 MB / 1.925 GB, free: 2.82 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.819e-05/7.047, allocations: 12 kB / 1.925 GB, free: 2.809 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/7.047, allocations: 0 / 1.925 GB, free: 2.809 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-05/7.047, allocations: 3.984 kB / 1.925 GB, free: 2.805 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007481/7.054, allocations: 2.672 MB / 1.927 GB, free: 72 kB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.554e-06/7.054, allocations: 0 / 1.927 GB, free: 72 kB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.4878/7.542, allocations: 322.2 kB / 1.928 GB, free: 92.48 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003841/7.542, allocations: 69.12 kB / 1.928 GB, free: 92.47 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002391/7.543, allocations: 39.64 kB / 1.928 GB, free: 92.47 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003012/7.546, allocations: 2.832 MB / 1.93 GB, free: 89.93 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/7.546, allocations: 0.5625 kB / 1.93 GB, free: 89.93 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00538/7.551, allocations: 1.866 MB / 1.932 GB, free: 89.77 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/7.553, allocations: 345.7 kB / 1.933 GB, free: 89.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004519/7.553, allocations: 30.3 kB / 1.933 GB, free: 89.68 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002195/7.555, allocations: 89.06 kB / 1.933 GB, free: 89.68 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/7.556, allocations: 57.19 kB / 1.933 GB, free: 89.68 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002351/7.556, allocations: 63.19 kB / 1.933 GB, free: 89.68 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001676/7.557, allocations: 0.7788 MB / 1.934 GB, free: 89.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.32e-07/7.557, allocations: 0 / 1.934 GB, free: 89.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.003172/7.561, allocations: 0.5633 MB / 1.934 GB, free: 89.56 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009419/7.57, allocations: 3.809 MB / 1.938 GB, free: 88.65 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.004118/7.574, allocations: 1.423 MB / 1.939 GB, free: 88.63 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.03e-05/7.574, allocations: 0.7812 kB / 1.939 GB, free: 88.63 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002556/7.577, allocations: 0.813 MB / 1.94 GB, free: 88.52 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006608/7.584, allocations: 0.7223 MB / 1.941 GB, free: 88.5 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00979/7.593, allocations: 2.843 MB / 1.944 GB, free: 88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009313/7.594, allocations: 1.195 MB / 1.945 GB, free: 87.29 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001339/7.596, allocations: 460.4 kB / 1.945 GB, free: 87.29 MB / 0.5417 GB Notification: Performance of SimCode: time 1.563e-06/7.596, allocations: 0 / 1.945 GB, free: 87.29 MB / 0.5417 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_IdealGases_SimpleNaturalGasCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasCalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.h:623:19: error: member access into incomplete type 'Functions' _functions->Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__hX_f__nonlinear(u, h, X, exclEnthForm, refChoice, h_off, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGas.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasCalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasAlgLoopMain.cpp:18: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasAlgloop83.cpp:210:65: error: use of undeclared identifier '_Closure94_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__hX_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure94_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__hX_f__nonlinear(_functions, /*box double*/_system->_volume_P_ports2_P_h_outflow_, /*box BaseArray*/tmp572, /*box bool*/true, /*box int*/1, /*box double*/0.0), 200.0, 6000.0, 1e-13, tmp573); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFMU.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 2 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasCalcHelperMain.o] Error 1