Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.359/2.359, allocations: 235 MB / 247.6 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.407e-05/3.42e-05, allocations: 4.938 kB / 305 MB, free: 5.559 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4298/0.4298, allocations: 54.85 MB / 359.9 MB, free: 2.312 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.5969, allocations: 79.57 MB / 439.4 MB, free: 1.301 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/0.5972, allocations: 59.97 kB / 439.5 MB, free: 1.242 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006562/0.6038, allocations: 1.741 MB / 441.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.512e-06/0.6038, allocations: 0 / 441.2 MB, free: 15.52 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.6038, allocations: 0 / 441.2 MB, free: 15.52 MB / 378.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.0003478/0.6042, allocations: 364.2 kB / 441.6 MB, free: 15.11 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.845e-05/0.6042, allocations: 12.03 kB / 441.6 MB, free: 15.1 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.849e-05/0.6043, allocations: 30.56 kB / 441.6 MB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.566e-05/0.6043, allocations: 3.953 kB / 441.6 MB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.6045, allocations: 159.1 kB / 441.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.6045, allocations: 4 kB / 441.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.095e-05/0.6045, allocations: 0 / 441.8 MB, free: 14.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.499e-05/0.6046, allocations: 25.7 kB / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/0.6046, allocations: 0 / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.6046, allocations: 7.281 kB / 441.8 MB, free: 14.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.6047, allocations: 7.953 kB / 441.8 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.01e-05/0.6047, allocations: 3.984 kB / 441.8 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001586/0.6049, allocations: 146.2 kB / 442 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.477e-05/0.6049, allocations: 22.55 kB / 442 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.873e-05/0.605, allocations: 4.859 kB / 442 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.874e-06/0.605, allocations: 0 / 442 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.148e-05/0.605, allocations: 64.33 kB / 442.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.553e-06/0.605, allocations: 0 / 442.1 MB, free: 14.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001595/0.6052, allocations: 64.14 kB / 442.1 MB, free: 14.43 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.6053, allocations: 81.11 kB / 442.2 MB, free: 14.33 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.32e-05/0.6054, allocations: 88.95 kB / 442.3 MB, free: 14.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.727e-05/0.6054, allocations: 25.7 kB / 442.3 MB, free: 14.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.168e-05/0.6055, allocations: 150.6 kB / 442.5 MB, free: 14.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.529e-05/0.6055, allocations: 0 / 442.5 MB, free: 14.05 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-06/0.6055, allocations: 4.156 kB / 442.5 MB, free: 14.05 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.6056, allocations: 314.8 kB / 442.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.6057, allocations: 4.969 kB / 442.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-06/0.6057, allocations: 0 / 442.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.076e-05/0.6057, allocations: 37.69 kB / 442.8 MB, free: 13.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.6057, allocations: 0 / 442.8 MB, free: 13.69 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.696e-05/0.6058, allocations: 59.41 kB / 442.9 MB, free: 13.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.461e-05/0.6059, allocations: 29.7 kB / 442.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.6059, allocations: 96 / 442.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.6059, allocations: 6.75 kB / 442.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.6059, allocations: 0 / 442.9 MB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.235e-06/0.606, allocations: 3.984 kB / 442.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.614e-05/0.606, allocations: 4 kB / 442.9 MB, free: 13.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.606, allocations: 4.516 kB / 442.9 MB, free: 13.57 MB / 378.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 9.306e-05/0.6061, allocations: 128.4 kB / 443 MB, free: 13.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.434e-05/0.6061, allocations: 11.92 kB / 443.1 MB, free: 13.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.759e-05/0.6062, allocations: 7.078 kB / 443.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.6062, allocations: 4 kB / 443.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.6062, allocations: 0 / 443.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.6062, allocations: 2.156 kB / 443.1 MB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001263/0.6063, allocations: 153.6 kB / 443.2 MB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.6064, allocations: 4 kB / 443.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.986e-06/0.6064, allocations: 3.938 kB / 443.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.6064, allocations: 0 / 443.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.354e-06/0.6064, allocations: 0 / 443.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.6064, allocations: 0 / 443.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.6064, allocations: 0 / 443.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001296/0.6066, allocations: 98.78 kB / 443.3 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.625e-05/0.6066, allocations: 77.11 kB / 443.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.528e-05/0.6066, allocations: 0 / 443.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.516e-05/0.6067, allocations: 4 kB / 443.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.596e-05/0.6067, allocations: 0 / 443.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.4e-06/0.6067, allocations: 0.9375 kB / 443.4 MB, free: 12.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.681e-05/0.6067, allocations: 75.28 kB / 443.5 MB, free: 12.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.6068, allocations: 128 / 443.5 MB, free: 12.91 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003292/0.6071, allocations: 31.97 kB / 443.5 MB, free: 12.88 MB / 378.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.0008192/0.6079, allocations: 0.7256 MB / 444.2 MB, free: 12.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001005/0.608, allocations: 59.41 kB / 444.3 MB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.6081, allocations: 0 / 444.3 MB, free: 12.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.497e-05/0.6081, allocations: 55.41 kB / 444.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001147/0.6082, allocations: 4.062 kB / 444.4 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003444/0.6086, allocations: 122.4 kB / 444.5 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.6089, allocations: 0.677 MB / 445.2 MB, free: 11.15 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.708e-05/0.6089, allocations: 13.22 kB / 445.2 MB, free: 11.14 MB / 378.7 MB Notification: Performance of SimCode: time 6.92e-07/0.609, allocations: 0 / 445.2 MB, free: 11.14 MB / 378.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"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitializeParameter.cpp:15:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitializeParameter.cpp:16:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Resources/Data/ReadStreamTestFile.txt", tmp14); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp10; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitialize.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 3.2.2/Resources/Data/ReadStreamTestFile.txt", tmp10); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:172:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp13; ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:173:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT1, tmp13); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFile.cpp:620:12: error: use of undeclared identifier 'tmp1' _file_ = tmp1; ^ In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileFMU.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 7 errors generated. : recipe for target 'OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o] Error 1