Running command: "" <> buildModelFMU(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Incompressible.Glycol47,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.539/2.539, allocations: 270 MB / 282.6 MB, free: 1.828 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 5.781e-05/5.794e-05, allocations: 7.938 kB / 347.1 MB, free: 3.117 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5057/0.5058, allocations: 61.86 MB / 408.9 MB, free: 10.68 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7516/1.257, allocations: 237.1 MB / 0.6309 GB, free: 7.203 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003623/1.258, allocations: 92.88 kB / 0.631 GB, free: 7.152 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.417/2.674, allocations: 248.1 MB / 0.8733 GB, free: 60.17 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.733e-06/2.674, allocations: 224 / 0.8733 GB, free: 60.17 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.575e-05/2.675, allocations: 28.06 kB / 0.8733 GB, free: 60.14 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.003765/2.678, allocations: 1.184 MB / 0.8745 GB, free: 58.91 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/2.678, allocations: 8.031 kB / 0.8745 GB, free: 58.9 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002021/2.679, allocations: 98.5 kB / 0.8746 GB, free: 58.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001483/2.68, allocations: 147 kB / 0.8747 GB, free: 58.65 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001694/2.682, allocations: 0.5366 MB / 0.8752 GB, free: 58.07 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/2.682, allocations: 112.3 kB / 0.8753 GB, free: 57.95 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/2.682, allocations: 47.98 kB / 0.8754 GB, free: 57.91 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002014/2.684, allocations: 0.8149 MB / 0.8762 GB, free: 57.01 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.373e-05/2.684, allocations: 7.938 kB / 0.8762 GB, free: 57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/2.684, allocations: 27.98 kB / 0.8762 GB, free: 56.97 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.209e-05/2.684, allocations: 40.97 kB / 0.8763 GB, free: 56.93 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001692/2.686, allocations: 0.5601 MB / 0.8768 GB, free: 56.37 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.006936/2.693, allocations: 4.472 MB / 0.8812 GB, free: 51.57 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008925/2.694, allocations: 311 kB / 0.8815 GB, free: 51.25 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003065/2.694, allocations: 140.8 kB / 0.8816 GB, free: 51.11 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003135/2.695, allocations: 413.5 kB / 0.882 GB, free: 50.62 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.223e-05/2.695, allocations: 46.45 kB / 0.882 GB, free: 50.56 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=30): time 3.216e-06/2.695, allocations: 0 / 0.882 GB, free: 50.56 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36): time 0.004711/2.7, allocations: 1.229 MB / 0.8832 GB, free: 49.27 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/2.7, allocations: 132.5 kB / 0.8834 GB, free: 49.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001056/2.701, allocations: 0.5697 MB / 0.8839 GB, free: 48.54 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.000123/2.701, allocations: 37.7 kB / 0.884 GB, free: 48.49 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/2.701, allocations: 421 kB / 0.8844 GB, free: 48.07 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/2.701, allocations: 130.2 kB / 0.8845 GB, free: 47.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.141e-05/2.701, allocations: 16 kB / 0.8845 GB, free: 47.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.701e-05/2.701, allocations: 338.8 kB / 0.8848 GB, free: 47.59 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004835/2.702, allocations: 197.5 kB / 0.885 GB, free: 47.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006295/2.703, allocations: 482.3 kB / 0.8855 GB, free: 46.79 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006286/2.703, allocations: 289.4 kB / 0.8857 GB, free: 46.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.826e-06/2.703, allocations: 4 kB / 0.8857 GB, free: 46.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001911/2.705, allocations: 0.7785 MB / 0.8865 GB, free: 45.71 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 3.059e-05/2.705, allocations: 12 kB / 0.8865 GB, free: 45.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.793e-05/2.705, allocations: 8 kB / 0.8865 GB, free: 45.69 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00196/2.707, allocations: 278 kB / 0.8868 GB, free: 45.41 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007881/2.708, allocations: 119.8 kB / 0.8869 GB, free: 45.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001429/2.709, allocations: 1.389 MB / 0.8883 GB, free: 43.86 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/2.711, allocations: 39.89 kB / 0.8883 GB, free: 43.82 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.682e-05/2.711, allocations: 36 kB / 0.8883 GB, free: 43.78 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.0002354/2.711, allocations: 156.8 kB / 0.8885 GB, free: 43.62 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/2.711, allocations: 67.2 kB / 0.8885 GB, free: 43.55 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002112/2.713, allocations: 0.678 MB / 0.8892 GB, free: 42.86 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/2.713, allocations: 0 / 0.8892 GB, free: 42.86 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/2.713, allocations: 4 kB / 0.8892 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/2.713, allocations: 4 kB / 0.8892 GB, free: 42.85 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002849/2.716, allocations: 1.193 MB / 0.8904 GB, free: 41.58 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/2.716, allocations: 4 kB / 0.8904 GB, free: 41.58 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/2.717, allocations: 39.98 kB / 0.8904 GB, free: 41.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001305/2.718, allocations: 193.6 kB / 0.8906 GB, free: 41.34 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.915e-05/2.718, allocations: 8 kB / 0.8906 GB, free: 41.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001202/2.719, allocations: 1.296 MB / 0.8919 GB, free: 39.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/2.719, allocations: 0 / 0.8919 GB, free: 39.99 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/2.721, allocations: 0.7939 MB / 0.8927 GB, free: 39.15 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004922/2.722, allocations: 192.2 kB / 0.8928 GB, free: 38.95 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001507/2.722, allocations: 12 kB / 0.8929 GB, free: 38.93 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007563/2.722, allocations: 28.12 kB / 0.8929 GB, free: 38.91 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.601e-05/2.723, allocations: 27.89 kB / 0.8929 GB, free: 38.88 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.661e-05/2.723, allocations: 23.98 kB / 0.8929 GB, free: 38.86 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007999/2.723, allocations: 439.1 kB / 0.8933 GB, free: 38.43 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.01e-07/2.724, allocations: 0 / 0.8933 GB, free: 38.43 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.001613/2.725, allocations: 295.7 kB / 0.8936 GB, free: 38.14 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.002858/2.728, allocations: 1.71 MB / 0.8953 GB, free: 36.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001483/2.73, allocations: 493.4 kB / 0.8958 GB, free: 35.92 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/2.73, allocations: 0 / 0.8958 GB, free: 35.92 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.000667/2.73, allocations: 205.6 kB / 0.896 GB, free: 35.72 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002697/2.733, allocations: 310.7 kB / 0.8963 GB, free: 35.42 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004007/2.737, allocations: 1.138 MB / 0.8974 GB, free: 34.23 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004556/2.738, allocations: 0.9383 MB / 0.8983 GB, free: 33.27 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005463/2.738, allocations: 239.3 kB / 0.8985 GB, free: 33.03 MB / 0.5261 GB Notification: Performance of SimCode: time 1.212e-06/2.738, allocations: 0 / 0.8985 GB, free: 33.03 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_Glycol47CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47CalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47.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_Glycol47.h:11:7: note: forward declaration of 'Functions' class Functions; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47.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_Glycol47.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47CalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47AlgLoopMain.cpp:15: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47Algloop124.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_), 243.15, 373.15, 1e-13, tmp202); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47CalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47AlgLoopMain.cpp:21: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47Algloop69.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_), 243.15, 373.15, 1e-13, tmp214); ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47FMU.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_Glycol47CalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestsWithFluid_MediaTestModels_Incompressible_Glycol47CalcHelperMain.o] Error 1