Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Utilities.TestReadFile.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) 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.224/2.224, allocations: 234.9 MB / 250.5 MB, free: 9.547 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004349/0.0004349, allocations: 12 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3407/0.3412, allocations: 54.86 MB / 369.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1502/0.4914, allocations: 79.66 MB / 449 MB, free: 10.93 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002569/0.4917, allocations: 63.95 kB / 449.1 MB, free: 10.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00711/0.4989, allocations: 1.909 MB / 451 MB, free: 8.953 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.4989, allocations: 0 / 451 MB, free: 8.953 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.732e-06/0.4989, allocations: 0 / 451 MB, free: 8.953 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.0003862/0.4993, allocations: 361 kB / 451.3 MB, free: 8.547 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.819e-05/0.4994, allocations: 12.03 kB / 451.3 MB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.157e-05/0.4994, allocations: 34.56 kB / 451.4 MB, free: 8.492 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.933e-05/0.4995, allocations: 7.938 kB / 451.4 MB, free: 8.484 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.4996, allocations: 163 kB / 451.5 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.4997, allocations: 0 / 451.5 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.376e-06/0.4997, allocations: 0 / 451.5 MB, free: 8.285 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001247/0.4998, allocations: 37.69 kB / 451.6 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.4998, allocations: 0 / 451.6 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.238e-06/0.4998, allocations: 0 / 451.6 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.4999, allocations: 0 / 451.6 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.488e-05/0.4999, allocations: 11.95 kB / 451.6 MB, free: 8.23 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.5001, allocations: 145.6 kB / 451.7 MB, free: 8.039 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.874e-05/0.5001, allocations: 18.52 kB / 451.8 MB, free: 8.012 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.5001, allocations: 4.094 kB / 451.8 MB, free: 8.008 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.764e-05/0.5002, allocations: 64.25 kB / 451.8 MB, free: 7.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.5002, allocations: 0 / 451.8 MB, free: 7.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001916/0.5004, allocations: 63.41 kB / 451.9 MB, free: 7.855 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.73e-05/0.5005, allocations: 77.11 kB / 452 MB, free: 7.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.272e-05/0.5006, allocations: 85 kB / 452 MB, free: 7.672 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.439e-05/0.5006, allocations: 29.7 kB / 452.1 MB, free: 7.637 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.841e-05/0.5007, allocations: 162.5 kB / 452.2 MB, free: 7.477 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.631e-05/0.5007, allocations: 0 / 452.2 MB, free: 7.477 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-06/0.5007, allocations: 0 / 452.2 MB, free: 7.477 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000138/0.5009, allocations: 318.7 kB / 452.5 MB, free: 7.156 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.086e-05/0.5009, allocations: 4.25 kB / 452.5 MB, free: 7.152 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.149e-05/0.5009, allocations: 4 kB / 452.6 MB, free: 7.148 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.633e-05/0.501, allocations: 25.7 kB / 452.6 MB, free: 7.117 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.501, allocations: 0 / 452.6 MB, free: 7.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.494e-05/0.5011, allocations: 59.41 kB / 452.6 MB, free: 7.047 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.202e-05/0.5011, allocations: 33.69 kB / 452.7 MB, free: 7.008 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.5012, allocations: 4 kB / 452.7 MB, free: 7.004 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.5012, allocations: 4 kB / 452.7 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.433e-06/0.5012, allocations: 0 / 452.7 MB, free: 7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.5012, allocations: 4.094 kB / 452.7 MB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.702e-05/0.5012, allocations: 4 kB / 452.7 MB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-06/0.5013, allocations: 0 / 452.7 MB, free: 6.992 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 () * Number of clocked 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 0.0001117/0.5014, allocations: 139.5 kB / 452.8 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-06/0.5014, allocations: 0 / 452.8 MB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.622e-05/0.5014, allocations: 3.125 kB / 452.8 MB, free: 6.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.623e-06/0.5014, allocations: 3.984 kB / 452.8 MB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.5015, allocations: 3.938 kB / 452.8 MB, free: 6.828 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5015, allocations: 7.938 kB / 452.8 MB, free: 6.82 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.5016, allocations: 149.6 kB / 453 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.5016, allocations: 0 / 453 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.42e-07/0.5016, allocations: 0 / 453 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.524e-06/0.5016, allocations: 0 / 453 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.048e-05/0.5017, allocations: 0 / 453 MB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.5017, allocations: 7.938 kB / 453 MB, free: 6.617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.486e-06/0.5017, allocations: 3.984 kB / 453 MB, free: 6.613 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001337/0.5018, allocations: 90.8 kB / 453.1 MB, free: 6.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.5019, allocations: 81.14 kB / 453.2 MB, free: 6.402 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.5019, allocations: 3.984 kB / 453.2 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.746e-05/0.5019, allocations: 0 / 453.2 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.934e-05/0.502, allocations: 4 kB / 453.2 MB, free: 6.395 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.813e-06/0.502, allocations: 4 kB / 453.2 MB, free: 6.391 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.039e-05/0.502, allocations: 75.28 kB / 453.2 MB, free: 6.316 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.502, allocations: 0 / 453.2 MB, free: 6.316 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003143/0.5024, allocations: 20 kB / 453.3 MB, free: 6.297 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) * Number of clocked states: 0 () * 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.0008519/0.5032, allocations: 0.7299 MB / 454 MB, free: 5.562 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001182/0.5034, allocations: 63.39 kB / 454.1 MB, free: 5.488 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.5034, allocations: 0 / 454.1 MB, free: 5.488 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.917e-05/0.5034, allocations: 55.41 kB / 454.1 MB, free: 5.422 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001165/0.5036, allocations: 4 kB / 454.1 MB, free: 5.418 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004325/0.504, allocations: 154 kB / 454.3 MB, free: 5.219 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002967/0.5043, allocations: 0.6772 MB / 454.9 MB, free: 4.516 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.034e-05/0.5044, allocations: 11.44 kB / 455 MB, free: 4.504 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.5044, allocations: 0 / 455 MB, free: 4.504 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