Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.514/2.514, allocations: 270 MB / 282.6 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.526e-05/3.539e-05, allocations: 0 / 347 MB, free: 3.109 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4193/0.4193, allocations: 61.88 MB / 408.9 MB, free: 10.64 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1586/0.578, allocations: 87.54 MB / 496.5 MB, free: 2.988 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002362/0.5783, allocations: 63.97 kB / 496.5 MB, free: 2.926 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02928/0.6076, allocations: 6.11 MB / 0.4909 GB, free: 12.81 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6076, allocations: 0 / 0.4909 GB, free: 12.81 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.6077, allocations: 0 / 0.4909 GB, free: 12.81 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005592/0.6082, allocations: 420 kB / 0.4913 GB, free: 12.35 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/0.6083, allocations: 8.031 kB / 0.4913 GB, free: 12.34 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.384e-05/0.6084, allocations: 30.56 kB / 0.4913 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.6084, allocations: 0 / 0.4913 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001348/0.6085, allocations: 167.1 kB / 0.4915 GB, free: 12.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.6086, allocations: 3.953 kB / 0.4915 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.6086, allocations: 0 / 0.4915 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.592e-05/0.6087, allocations: 37.69 kB / 0.4915 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.6087, allocations: 0 / 0.4915 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.057e-06/0.6087, allocations: 0 / 0.4915 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.6087, allocations: 0 / 0.4915 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.118e-05/0.6088, allocations: 0 / 0.4915 GB, free: 12.05 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001533/0.6089, allocations: 149.6 kB / 0.4916 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.458e-05/0.609, allocations: 22.56 kB / 0.4917 GB, free: 11.82 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.393e-05/0.609, allocations: 12.91 kB / 0.4917 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.496e-06/0.609, allocations: 0 / 0.4917 GB, free: 11.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.205e-05/0.6091, allocations: 60.27 kB / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.553e-06/0.6091, allocations: 0 / 0.4917 GB, free: 11.73 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001819/0.6093, allocations: 59.41 kB / 0.4918 GB, free: 11.66 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.6094, allocations: 85.08 kB / 0.4919 GB, free: 11.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.624e-05/0.6095, allocations: 96.92 kB / 0.492 GB, free: 11.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.6095, allocations: 25.7 kB / 0.492 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.528e-05/0.6096, allocations: 150.6 kB / 0.4921 GB, free: 11.28 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.723e-05/0.6096, allocations: 4 kB / 0.4921 GB, free: 11.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.856e-06/0.6096, allocations: 0 / 0.4921 GB, free: 11.28 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.6097, allocations: 314.8 kB / 0.4924 GB, free: 10.96 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.194e-05/0.6098, allocations: 3.938 kB / 0.4924 GB, free: 10.96 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-06/0.6098, allocations: 4.125 kB / 0.4924 GB, free: 10.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.545e-05/0.6098, allocations: 29.7 kB / 0.4925 GB, free: 10.92 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.6098, allocations: 0 / 0.4925 GB, free: 10.92 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.933e-05/0.61, allocations: 63.39 kB / 0.4925 GB, free: 10.84 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.865e-05/0.61, allocations: 35.22 kB / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.61, allocations: 0 / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.61, allocations: 0 / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.503e-06/0.6101, allocations: 0 / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.6101, allocations: 0 / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.153e-05/0.6101, allocations: 8.094 kB / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.6101, allocations: 0 / 0.4926 GB, free: 10.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.794e-05/0.6102, allocations: 126.7 kB / 0.4927 GB, free: 10.66 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.496e-05/0.6103, allocations: 8 kB / 0.4927 GB, free: 10.65 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.397e-05/0.6103, allocations: 11.06 kB / 0.4927 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.6103, allocations: 3.938 kB / 0.4927 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.6103, allocations: 4 kB / 0.4927 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.6103, allocations: 0 / 0.4927 GB, free: 10.63 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.6105, allocations: 145.7 kB / 0.4928 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.6105, allocations: 0 / 0.4928 GB, free: 10.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-06/0.6105, allocations: 7.984 kB / 0.4929 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.6105, allocations: 0 / 0.4929 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.145e-06/0.6105, allocations: 0 / 0.4929 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.6105, allocations: 3.953 kB / 0.4929 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.6105, allocations: 0 / 0.4929 GB, free: 10.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001213/0.6107, allocations: 86.84 kB / 0.4929 GB, free: 10.32 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.641e-05/0.6107, allocations: 89 kB / 0.493 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.6108, allocations: 32 / 0.493 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.962e-05/0.6108, allocations: 4 kB / 0.493 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.793e-05/0.6108, allocations: 11.88 kB / 0.493 GB, free: 10.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.384e-06/0.6108, allocations: 4 kB / 0.493 GB, free: 10.19 MB / 426.7 MB Notification: Performance of sorting global known variables: time 4.054e-05/0.6109, allocations: 75.28 kB / 0.4931 GB, free: 10.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6109, allocations: 0 / 0.4931 GB, free: 10.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000513/0.6114, allocations: 79.97 kB / 0.4932 GB, free: 10.04 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001378/0.6128, allocations: 0.894 MB / 0.4941 GB, free: 9.195 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001217/0.6129, allocations: 67.34 kB / 0.4941 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.613, allocations: 0 / 0.4941 GB, free: 9.117 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.593e-05/0.613, allocations: 55.41 kB / 0.4942 GB, free: 9.051 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001271/0.6132, allocations: 3.953 kB / 0.4942 GB, free: 9.047 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004643/0.6136, allocations: 144.6 kB / 0.4943 GB, free: 8.863 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.6139, allocations: 0.677 MB / 0.495 GB, free: 8.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.614, allocations: 7.438 kB / 0.495 GB, free: 8.152 MB / 426.7 MB Notification: Performance of SimCode: time 6.282e-06/0.614, allocations: 128 / 0.495 GB, free: 8.152 MB / 426.7 MB 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_Utilities_TestFilesCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:15:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp45; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:16:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp46; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:17:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data", tmp45); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:19:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt", tmp46); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp39; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data", tmp39); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:98:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp40; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:99:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest trunk/Resources/Data/ReadStreamTestFile.txt", tmp40); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:176:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp43; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:177:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT17, tmp43); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:187:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp44; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:188:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT16, tmp44); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFiles.cpp:621:15: error: use of undeclared identifier 'tmp1' _dirPath_ = tmp1; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFiles.cpp:622:16: error: use of undeclared identifier 'tmp2' _filePath_ = tmp2; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesFMU.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 14 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.o] Error 1