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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.423/2.423, allocations: 235.1 MB / 243 MB, free: 9.582 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.941e-05/1.968e-05, allocations: 0 / 303.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4453/0.4454, allocations: 54.85 MB / 358.1 MB, free: 14.85 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1493/0.5947, allocations: 78.9 MB / 437 MB, free: 15.84 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002513/0.595, allocations: 59.97 kB / 437.1 MB, free: 15.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006531/0.6016, allocations: 1.62 MB / 438.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.6016, allocations: 4 kB / 438.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.6016, allocations: 0 / 438.7 MB, free: 14.16 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.0003739/0.602, allocations: 364.2 kB / 439.1 MB, free: 13.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.6021, allocations: 11.97 kB / 439.1 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.724e-05/0.6021, allocations: 3.953 kB / 439.1 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001627/0.6023, allocations: 167 kB / 439.2 MB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.756e-05/0.6023, allocations: 4 kB / 439.2 MB, free: 13.53 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.6024, allocations: 4 kB / 439.2 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.888e-05/0.6024, allocations: 0 / 439.2 MB, free: 13.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.132e-05/0.6025, allocations: 29.7 kB / 439.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.6025, allocations: 0 / 439.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.6025, allocations: 0 / 439.3 MB, free: 13.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.6025, allocations: 3.953 kB / 439.3 MB, free: 13.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.6027, allocations: 126.2 kB / 439.4 MB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.217e-05/0.6028, allocations: 26.55 kB / 439.4 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.824e-05/0.6028, allocations: 8.859 kB / 439.4 MB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.307e-06/0.6028, allocations: 0 / 439.4 MB, free: 13.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.165e-05/0.6029, allocations: 56.27 kB / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.6029, allocations: 0 / 439.5 MB, free: 13.21 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002059/0.6031, allocations: 33.77 kB / 439.5 MB, free: 13.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.68e-05/0.6032, allocations: 81.09 kB / 439.6 MB, free: 13.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.551e-05/0.6033, allocations: 97.03 kB / 439.7 MB, free: 12.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.6033, allocations: 25.7 kB / 439.7 MB, free: 12.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.266e-05/0.6034, allocations: 150.6 kB / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.6034, allocations: 0 / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.006e-06/0.6034, allocations: 0 / 439.9 MB, free: 12.79 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.6036, allocations: 314.8 kB / 440.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-06/0.6036, allocations: 0 / 440.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.15e-05/0.6036, allocations: 4 kB / 440.2 MB, free: 12.47 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.022e-05/0.6036, allocations: 4.125 kB / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.6037, allocations: 4 kB / 440.2 MB, free: 12.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001028/0.6038, allocations: 37.69 kB / 440.2 MB, free: 12.42 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.15e-05/0.6038, allocations: 31.11 kB / 440.2 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.6038, allocations: 4 kB / 440.3 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.027e-05/0.6039, allocations: 7.984 kB / 440.3 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-06/0.6039, allocations: 0 / 440.3 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.6039, allocations: 0 / 440.3 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.529e-05/0.6039, allocations: 0 / 440.3 MB, free: 12.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-06/0.604, allocations: 0 / 440.3 MB, free: 12.37 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.0001174/0.6041, allocations: 148.7 kB / 440.4 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001013/0.6042, allocations: 41.58 kB / 440.4 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.556e-06/0.6042, allocations: 3.938 kB / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.71e-05/0.6042, allocations: 7.703 kB / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.6043, allocations: 4 kB / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.6043, allocations: 0 / 440.5 MB, free: 12.16 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.03e-06/0.6043, allocations: 3.984 kB / 440.5 MB, free: 12.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001196/0.6044, allocations: 126.2 kB / 440.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6044, allocations: 0 / 440.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.012e-06/0.6044, allocations: 0 / 440.6 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.6045, allocations: 8.031 kB / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/0.6045, allocations: 0 / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.923e-06/0.6045, allocations: 0 / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.6045, allocations: 0 / 440.6 MB, free: 11.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001362/0.6046, allocations: 69.08 kB / 440.7 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.609e-05/0.6047, allocations: 77.11 kB / 440.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.6047, allocations: 0 / 440.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.709e-05/0.6048, allocations: 32 / 440.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.948e-05/0.6048, allocations: 7.984 kB / 440.7 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.464e-06/0.6048, allocations: 4 kB / 440.8 MB, free: 11.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 4.05e-05/0.6049, allocations: 75.28 kB / 440.8 MB, free: 11.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6049, allocations: 0 / 440.8 MB, free: 11.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003203/0.6052, allocations: 27.98 kB / 440.9 MB, free: 11.69 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.0009457/0.6062, allocations: 0.6939 MB / 441.5 MB, free: 10.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000125/0.6063, allocations: 63.39 kB / 441.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.6064, allocations: 0 / 441.6 MB, free: 10.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.424e-05/0.6064, allocations: 51.41 kB / 441.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001315/0.6066, allocations: 9.719 kB / 441.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003835/0.6069, allocations: 119.2 kB / 441.8 MB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.6073, allocations: 0.6729 MB / 442.5 MB, free: 9.977 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.999e-05/0.6073, allocations: 7.438 kB / 442.5 MB, free: 9.969 MB / 378.7 MB Notification: Performance of SimCode: time 7.22e-07/0.6073, allocations: 4.125 kB / 442.5 MB, free: 9.965 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=7 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"." -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 */ tmp13; ^ ./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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Resources/Data/ReadStreamTestFile.txt", tmp13); ~~~~~~~~~~ ^ 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 */ tmp9; ^ ./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/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/Resources/Data/ReadStreamTestFile.txt", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:172:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./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, tmp12); ~~~~~~~~~~ ^ 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/OMCompiler/build/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