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.355/2.355, allocations: 235 MB / 248.1 MB, free: 14.35 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.504e-05/3.517e-05, allocations: 4 kB / 309.8 MB, free: 1.254 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4106/0.4106, allocations: 54.86 MB / 364.6 MB, free: 5.434 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1881/0.5988, allocations: 79.57 MB / 444.2 MB, free: 0.8203 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002999/0.5992, allocations: 59.97 kB / 444.3 MB, free: 0.7617 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008652/0.6079, allocations: 1.739 MB / 446 MB, free: 15.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.6079, allocations: 0 / 446 MB, free: 15.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.608, allocations: 0 / 446 MB, free: 15.04 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.0004223/0.6084, allocations: 356.2 kB / 446.3 MB, free: 14.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.921e-05/0.6085, allocations: 8.031 kB / 446.3 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.64e-05/0.6085, allocations: 30.56 kB / 446.4 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.092e-05/0.6086, allocations: 7.953 kB / 446.4 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001598/0.6088, allocations: 167.1 kB / 446.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.471e-05/0.6088, allocations: 1.875 kB / 446.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.6088, allocations: 0 / 446.5 MB, free: 14.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.373e-05/0.6089, allocations: 33.64 kB / 446.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.6089, allocations: 0 / 446.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.609, allocations: 3.281 kB / 446.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.609, allocations: 3.953 kB / 446.6 MB, free: 14.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.659e-05/0.609, allocations: 4 kB / 446.6 MB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002097/0.6093, allocations: 153.7 kB / 446.7 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.218e-05/0.6093, allocations: 14.58 kB / 446.8 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.44e-05/0.6094, allocations: 8.953 kB / 446.8 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.6094, allocations: 0 / 446.8 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.357e-05/0.6095, allocations: 60.2 kB / 446.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.944e-06/0.6095, allocations: 0 / 446.8 MB, free: 14.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001967/0.6097, allocations: 63.41 kB / 446.9 MB, free: 13.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.346e-05/0.6098, allocations: 81.14 kB / 447 MB, free: 13.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.6099, allocations: 96.94 kB / 447.1 MB, free: 13.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.6099, allocations: 25.7 kB / 447.1 MB, free: 13.72 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.441e-05/0.61, allocations: 150.6 kB / 447.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.6101, allocations: 0 / 447.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-06/0.6101, allocations: 0 / 447.2 MB, free: 13.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001731/0.6103, allocations: 312.1 kB / 447.5 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.869e-05/0.6103, allocations: 4.125 kB / 447.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.24e-05/0.6103, allocations: 8 kB / 447.5 MB, free: 13.25 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.086e-05/0.6104, allocations: 25.7 kB / 447.6 MB, free: 13.21 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.6104, allocations: 0 / 447.6 MB, free: 13.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001242/0.6105, allocations: 67.33 kB / 447.6 MB, free: 13.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.636e-05/0.6106, allocations: 33.7 kB / 447.7 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.6106, allocations: 0 / 447.7 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.6107, allocations: 0 / 447.7 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.853e-06/0.6107, allocations: 0 / 447.7 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.6107, allocations: 0 / 447.7 MB, free: 13.1 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.082e-05/0.6107, allocations: 4.094 kB / 447.7 MB, free: 13.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.6108, allocations: 5.391 kB / 447.7 MB, free: 13.09 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 0.0001383/0.6109, allocations: 131.4 kB / 447.8 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.6109, allocations: 3.938 kB / 447.8 MB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.203e-05/0.611, allocations: 11.06 kB / 447.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.624e-06/0.611, allocations: 0 / 447.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.611, allocations: 4 kB / 447.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.426e-06/0.611, allocations: 0 / 447.8 MB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001558/0.6112, allocations: 153.6 kB / 448 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.6112, allocations: 4 kB / 448 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.492e-06/0.6112, allocations: 1.031 kB / 448 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.856e-06/0.6112, allocations: 0 / 448 MB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.6113, allocations: 7.984 kB / 448 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.6113, allocations: 2.875 kB / 448 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.6113, allocations: 0 / 448 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001634/0.6115, allocations: 94.73 kB / 448.1 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.277e-05/0.6116, allocations: 85 kB / 448.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.014e-05/0.6116, allocations: 4.031 kB / 448.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.212e-05/0.6116, allocations: 0 / 448.2 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.29e-05/0.6117, allocations: 4 kB / 448.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.8e-06/0.6117, allocations: 0 / 448.2 MB, free: 12.49 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.071e-05/0.6118, allocations: 76.31 kB / 448.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.6118, allocations: 0 / 448.3 MB, free: 12.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000521/0.6123, allocations: 23.98 kB / 448.3 MB, free: 12.39 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.001019/0.6133, allocations: 0.7352 MB / 449 MB, free: 11.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00012/0.6135, allocations: 59.41 kB / 449.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.6135, allocations: 0 / 449.1 MB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.448e-05/0.6136, allocations: 55.41 kB / 449.1 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.6137, allocations: 0 / 449.1 MB, free: 11.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004801/0.6142, allocations: 124.2 kB / 449.2 MB, free: 11.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003395/0.6146, allocations: 0.6731 MB / 449.9 MB, free: 10.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.845e-05/0.6146, allocations: 19.48 kB / 449.9 MB, free: 10.64 MB / 378.7 MB Notification: Performance of SimCode: time 8.61e-07/0.6147, allocations: 0 / 449.9 MB, free: 10.64 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