Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition",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.953 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.132e-05/4.129e-05, allocations: 4 kB / 347.1 MB, free: 3.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4228/0.4229, allocations: 61.87 MB / 408.9 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.673/3.096, allocations: 0.7929 GB / 1.192 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/3.097, allocations: 91.25 kB / 1.192 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.895/6.992, allocations: 0.7268 GB / 1.919 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.715e-06/6.992, allocations: 0 / 1.919 GB, free: 9.598 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 9.07e-05/6.992, allocations: 23.98 kB / 1.919 GB, free: 9.574 MB / 0.5417 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.006233/6.998, allocations: 1.399 MB / 1.921 GB, free: 8.125 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.07e-05/6.998, allocations: 10.98 kB / 1.921 GB, free: 8.117 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003503/6.999, allocations: 122.7 kB / 1.921 GB, free: 7.988 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00238/7.001, allocations: 282.5 kB / 1.921 GB, free: 7.711 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002551/7.004, allocations: 0.666 MB / 1.922 GB, free: 7.008 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001666/7.004, allocations: 117.4 kB / 1.922 GB, free: 6.879 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/7.004, allocations: 64 kB / 1.922 GB, free: 6.816 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00316/7.007, allocations: 1.217 MB / 1.923 GB, free: 5.52 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.753e-05/7.007, allocations: 11.94 kB / 1.923 GB, free: 5.508 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/7.008, allocations: 35.98 kB / 1.923 GB, free: 5.473 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001384/7.008, allocations: 69.27 kB / 1.923 GB, free: 5.406 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002747/7.01, allocations: 1.006 MB / 1.924 GB, free: 4.398 MB / 0.5417 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.4403/7.451, allocations: 4.784 MB / 1.929 GB, free: 94.48 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008489/7.452, allocations: 266.2 kB / 1.929 GB, free: 94.45 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004242/7.452, allocations: 139.9 kB / 1.929 GB, free: 94.45 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003208/7.452, allocations: 269.5 kB / 1.929 GB, free: 94.16 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/7.453, allocations: 38.73 kB / 1.929 GB, free: 94.12 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=28): time 2.755e-06/7.453, allocations: 0 / 1.929 GB, free: 94.12 MB / 0.5417 GB Notification: Performance of matching and sorting (n=33): time 0.01023/7.463, allocations: 1.605 MB / 1.931 GB, free: 93.55 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/7.463, allocations: 137.9 kB / 1.931 GB, free: 93.4 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/7.465, allocations: 0.8161 MB / 1.932 GB, free: 93.24 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 0.000136/7.465, allocations: 40.02 kB / 1.932 GB, free: 93.21 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004412/7.465, allocations: 0.5858 MB / 1.933 GB, free: 92.88 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001677/7.466, allocations: 129.4 kB / 1.933 GB, free: 92.82 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-05/7.466, allocations: 21.56 kB / 1.933 GB, free: 92.82 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000121/7.466, allocations: 352.9 kB / 1.933 GB, free: 92.51 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006671/7.466, allocations: 260.7 kB / 1.933 GB, free: 92.51 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001001/7.467, allocations: 0.8448 MB / 1.934 GB, free: 91.77 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009132/7.468, allocations: 446.6 kB / 1.934 GB, free: 91.77 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.289e-05/7.468, allocations: 7.656 kB / 1.934 GB, free: 91.77 MB / 0.5417 GB Notification: Performance of matching and sorting (n=130) (initialization): time 0.00266/7.471, allocations: 1.109 MB / 1.936 GB, free: 91.7 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/7.471, allocations: 13.62 kB / 1.936 GB, free: 91.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.908e-05/7.471, allocations: 19.78 kB / 1.936 GB, free: 91.7 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001993/7.473, allocations: 284.9 kB / 1.936 GB, free: 91.69 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001131/7.474, allocations: 200.7 kB / 1.936 GB, free: 91.69 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/7.476, allocations: 0.9044 MB / 1.937 GB, free: 91.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00167/7.478, allocations: 64.77 kB / 1.937 GB, free: 91.17 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001571/7.478, allocations: 75.47 kB / 1.937 GB, free: 91.17 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0002922/7.478, allocations: 181.8 kB / 1.937 GB, free: 91.06 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001988/7.478, allocations: 90.69 kB / 1.937 GB, free: 91.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/7.48, allocations: 0.5115 MB / 1.938 GB, free: 90.95 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/7.48, allocations: 3.938 kB / 1.938 GB, free: 90.95 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/7.48, allocations: 3.812 kB / 1.938 GB, free: 90.95 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/7.48, allocations: 0 / 1.938 GB, free: 90.95 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/7.482, allocations: 1.117 MB / 1.939 GB, free: 90.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.531e-06/7.483, allocations: 0 / 1.939 GB, free: 90.63 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00195/7.484, allocations: 185.1 kB / 1.939 GB, free: 90.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001312/7.485, allocations: 24.83 kB / 1.939 GB, free: 90.62 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.436e-05/7.485, allocations: 7.125 kB / 1.939 GB, free: 90.62 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/7.487, allocations: 2.669 MB / 1.942 GB, free: 88.06 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/7.487, allocations: 3.031 kB / 1.942 GB, free: 88.06 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/7.488, allocations: 0.6986 MB / 1.942 GB, free: 87.84 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005427/7.489, allocations: 199 kB / 1.943 GB, free: 87.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001979/7.489, allocations: 15.2 kB / 1.943 GB, free: 87.7 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000872/7.49, allocations: 32.66 kB / 1.943 GB, free: 87.69 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001072/7.49, allocations: 23.44 kB / 1.943 GB, free: 87.69 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.145e-05/7.49, allocations: 20.7 kB / 1.943 GB, free: 87.69 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001234/7.491, allocations: 0.6054 MB / 1.943 GB, free: 87.57 MB / 0.5417 GB Notification: Performance of sort global known variables: time 6.32e-07/7.491, allocations: 0 / 1.943 GB, free: 87.57 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.002802/7.494, allocations: 487.2 kB / 1.944 GB, free: 87.57 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.006086/7.5, allocations: 2.507 MB / 1.946 GB, free: 86.68 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.002071/7.503, allocations: 0.6302 MB / 1.947 GB, free: 86.67 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/7.503, allocations: 9.406 kB / 1.947 GB, free: 86.67 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001416/7.504, allocations: 331.4 kB / 1.947 GB, free: 86.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00354/7.508, allocations: 407.2 kB / 1.948 GB, free: 86.56 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004914/7.513, allocations: 1.499 MB / 1.949 GB, free: 86.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006678/7.513, allocations: 1.042 MB / 1.95 GB, free: 85.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007686/7.514, allocations: 331.6 kB / 1.95 GB, free: 85.47 MB / 0.5417 GB Notification: Performance of SimCode: time 2.915e-06/7.514, allocations: 0 / 1.95 GB, free: 85.47 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_SimpleNaturalGasFixedCompositionCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionCalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedComposition.h:538: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_SimpleNaturalGasFixedComposition.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionCalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionAlgLoopMain.cpp:18: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionAlgloop69.cpp:88: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*//*t4*/tmp423, /*box bool*/true, /*box int*/1, /*box double*/0.0), 200.0, 6000.0, 1e-13, tmp424); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionFMU.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_SimpleNaturalGasFixedCompositionCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_IdealGases_SimpleNaturalGasFixedCompositionCalcHelperMain.o] Error 1