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.359/2.359, allocations: 234.9 MB / 250.4 MB, free: 9.707 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006372/0.0006373, allocations: 16 kB / 314.4 MB, free: 9.652 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4102/0.4108, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.000761/0.4117, allocations: 220.4 kB / 369.5 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.4131, allocations: 0.7286 MB / 370.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.136e-05/0.4131, allocations: 0 / 370.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.012e-05/0.4132, allocations: 0 / 370.2 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001438/0.4133, allocations: 7.984 kB / 370.2 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002988/0.4136, allocations: 39.83 kB / 370.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 2.908e-05/0.4137, allocations: 0 / 370.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.6e-05/0.4137, allocations: 4 kB / 370.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.761e-05/0.4138, allocations: 0 / 370.3 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.4139, allocations: 9.703 kB / 370.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.226e-06/0.4139, allocations: 4 kB / 370.3 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.4141, allocations: 47.89 kB / 370.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.873e-06/0.4141, allocations: 0 / 370.3 MB, free: 11.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.261e-05/0.4141, allocations: 29.7 kB / 370.3 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.4143, allocations: 31.95 kB / 370.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.4143, allocations: 0 / 370.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4143, allocations: 0 / 370.4 MB, free: 11.66 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.4143, allocations: 0 / 370.4 MB, free: 11.66 MB / 298.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.0003878/0.4147, allocations: 357 kB / 370.7 MB, free: 11.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.601e-05/0.4148, allocations: 12.03 kB / 370.7 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.066e-05/0.4148, allocations: 34.56 kB / 370.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.489e-05/0.4148, allocations: 3.953 kB / 370.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.415, allocations: 163.1 kB / 370.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.362e-05/0.415, allocations: 0 / 370.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.415, allocations: 4 kB / 370.9 MB, free: 11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.534e-05/0.4151, allocations: 25.7 kB / 371 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.4151, allocations: 0 / 371 MB, free: 10.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.086e-05/0.4152, allocations: 4 kB / 371 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.04e-06/0.4152, allocations: 0 / 371 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.93e-05/0.4152, allocations: 7.953 kB / 371 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001508/0.4154, allocations: 157.5 kB / 371.1 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.232e-05/0.4154, allocations: 18.61 kB / 371.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.4154, allocations: 0 / 371.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.656e-05/0.4155, allocations: 64.27 kB / 371.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of pre-optimization done (n=1): time 3.186e-06/0.4155, allocations: 0 / 371.2 MB, free: 10.65 MB / 298.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001835/0.4157, allocations: 75.45 kB / 371.3 MB, free: 10.56 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.485e-05/0.4158, allocations: 85.11 kB / 371.4 MB, free: 10.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.6e-05/0.4159, allocations: 89.86 kB / 371.5 MB, free: 10.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.4159, allocations: 25.7 kB / 371.5 MB, free: 10.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.19e-05/0.4159, allocations: 150.6 kB / 371.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.34e-05/0.416, allocations: 0 / 371.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-06/0.416, allocations: 0 / 371.6 MB, free: 10.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.4161, allocations: 318.8 kB / 371.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.4161, allocations: 128 / 371.9 MB, free: 9.863 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.03e-05/0.4162, allocations: 7.984 kB / 371.9 MB, free: 9.855 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.308e-05/0.4162, allocations: 33.7 kB / 372 MB, free: 9.816 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4162, allocations: 0 / 372 MB, free: 9.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.119e-05/0.4163, allocations: 59.41 kB / 372 MB, free: 9.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.517e-05/0.4164, allocations: 29.7 kB / 372.1 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.4164, allocations: 0 / 372.1 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.4164, allocations: 0 / 372.1 MB, free: 9.711 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.103e-06/0.4164, allocations: 7.922 kB / 372.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.4164, allocations: 0 / 372.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.408e-05/0.4165, allocations: 8.094 kB / 372.1 MB, free: 9.695 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.4165, allocations: 0 / 372.1 MB, free: 9.695 MB / 298.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 9.276e-05/0.4166, allocations: 135.5 kB / 372.2 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.341e-05/0.4166, allocations: 4 kB / 372.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.154e-05/0.4166, allocations: 3.125 kB / 372.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.4166, allocations: 0 / 372.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.4166, allocations: 0 / 372.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.4166, allocations: 0 / 372.2 MB, free: 9.543 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.4168, allocations: 153.6 kB / 372.4 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.4168, allocations: 8 kB / 372.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.82e-07/0.4168, allocations: 0 / 372.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.4168, allocations: 0 / 372.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.554e-06/0.4168, allocations: 0 / 372.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.4168, allocations: 0 / 372.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.4168, allocations: 0 / 372.4 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001278/0.417, allocations: 94.78 kB / 372.5 MB, free: 9.219 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.417, allocations: 77.11 kB / 372.5 MB, free: 9.125 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.047e-05/0.4171, allocations: 11.97 kB / 372.6 MB, free: 9.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.718e-05/0.4171, allocations: 7.922 kB / 372.6 MB, free: 9.105 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.787e-05/0.4171, allocations: 3.938 kB / 372.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.953e-06/0.4171, allocations: 3.984 kB / 372.6 MB, free: 9.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.908e-05/0.4172, allocations: 75.28 kB / 372.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4172, allocations: 0 / 372.6 MB, free: 9.023 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002673/0.4175, allocations: 20 kB / 372.7 MB, free: 9.004 MB / 298.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.0007941/0.4183, allocations: 0.7259 MB / 373.4 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.4184, allocations: 63.33 kB / 373.5 MB, free: 8.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.4184, allocations: 0 / 373.5 MB, free: 8.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.725e-05/0.4185, allocations: 59.41 kB / 373.5 MB, free: 8.133 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000112/0.4186, allocations: 4 kB / 373.5 MB, free: 8.129 MB / 298.7 MB Warning: Could not resolve URI ("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004251/0.419, allocations: 139.1 kB / 373.7 MB, free: 7.945 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.4193, allocations: 0.6809 MB / 374.3 MB, free: 7.238 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.409e-05/0.4194, allocations: 15.5 kB / 374.3 MB, free: 7.223 MB / 298.7 MB Notification: Performance of SimCode: time 1.282e-06/0.4194, allocations: 0 / 374.3 MB, free: 7.223 MB / 298.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=5 -DSUNDIALS_MINOR_VERSION=4 -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