Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.492/2.492, allocations: 270 MB / 282.6 MB, free: 1.828 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.627e-05/3.637e-05, allocations: 3.984 kB / 347 MB, free: 3.133 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4015/0.4016, allocations: 61.87 MB / 408.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1559/0.5576, allocations: 85.57 MB / 494.5 MB, free: 4.98 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002306/0.5579, allocations: 63.97 kB / 494.5 MB, free: 4.918 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007983/0.5659, allocations: 1.741 MB / 496.3 MB, free: 3.172 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.5659, allocations: 0 / 496.3 MB, free: 3.172 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.073e-06/0.5659, allocations: 0 / 496.3 MB, free: 3.172 MB / 410.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.0003818/0.5663, allocations: 352.3 kB / 496.6 MB, free: 2.777 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.636e-05/0.5664, allocations: 12.03 kB / 496.6 MB, free: 2.766 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.299e-05/0.5665, allocations: 30.56 kB / 496.7 MB, free: 2.727 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.156e-05/0.5665, allocations: 3.906 kB / 496.7 MB, free: 2.723 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001636/0.5667, allocations: 171 kB / 496.8 MB, free: 2.516 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.573e-05/0.5667, allocations: 4 kB / 496.8 MB, free: 2.512 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.5668, allocations: 3.953 kB / 496.9 MB, free: 2.508 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.817e-05/0.5669, allocations: 25.7 kB / 496.9 MB, free: 2.477 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.5669, allocations: 0 / 496.9 MB, free: 2.477 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.5669, allocations: 4 kB / 496.9 MB, free: 2.473 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.5669, allocations: 0 / 496.9 MB, free: 2.473 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.025e-05/0.567, allocations: 0 / 496.9 MB, free: 2.473 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001916/0.5672, allocations: 153.7 kB / 497 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.407e-05/0.5672, allocations: 22.59 kB / 497.1 MB, free: 2.242 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.681e-05/0.5673, allocations: 8.797 kB / 497.1 MB, free: 2.23 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.61e-06/0.5673, allocations: 3.938 kB / 497.1 MB, free: 2.227 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.511e-05/0.5674, allocations: 64.28 kB / 497.1 MB, free: 2.148 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 2.084e-06/0.5674, allocations: 0 / 497.1 MB, free: 2.148 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001974/0.5676, allocations: 63.34 kB / 497.2 MB, free: 2.074 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.954e-05/0.5677, allocations: 85.14 kB / 497.3 MB, free: 1.973 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.728e-05/0.5678, allocations: 88.98 kB / 497.4 MB, free: 1.879 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.5678, allocations: 25.7 kB / 497.4 MB, free: 1.848 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.672e-05/0.5679, allocations: 150.6 kB / 497.5 MB, free: 1.699 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.722e-05/0.5679, allocations: 0 / 497.5 MB, free: 1.699 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-06/0.568, allocations: 4 kB / 497.5 MB, free: 1.695 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.5681, allocations: 310.8 kB / 497.8 MB, free: 1.383 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.355e-05/0.5682, allocations: 128 / 497.8 MB, free: 1.383 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.798e-06/0.5682, allocations: 4 kB / 497.8 MB, free: 1.379 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.882e-05/0.5682, allocations: 29.7 kB / 497.9 MB, free: 1.344 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.5682, allocations: 3.938 kB / 497.9 MB, free: 1.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001264/0.5684, allocations: 67.39 kB / 497.9 MB, free: 1.262 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.234e-05/0.5684, allocations: 29.7 kB / 498 MB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.5685, allocations: 3.953 kB / 498 MB, free: 1.223 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.5685, allocations: 0 / 498 MB, free: 1.223 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.174e-06/0.5685, allocations: 0 / 498 MB, free: 1.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.5685, allocations: 0 / 498 MB, free: 1.223 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.394e-05/0.5686, allocations: 8.094 kB / 498 MB, free: 1.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.5686, allocations: 0 / 498 MB, free: 1.215 MB / 410.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.0001128/0.5687, allocations: 126.7 kB / 498.1 MB, free: 1.078 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.842e-05/0.5688, allocations: 4 kB / 498.1 MB, free: 1.074 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.238e-05/0.5688, allocations: 11.09 kB / 498.1 MB, free: 1.059 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.084e-06/0.5688, allocations: 3.953 kB / 498.1 MB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.5688, allocations: 0 / 498.1 MB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.5689, allocations: 0 / 498.1 MB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001492/0.569, allocations: 149.7 kB / 498.3 MB, free: 0.8594 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.569, allocations: 8 kB / 498.3 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.743e-06/0.5691, allocations: 0 / 498.3 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.5691, allocations: 0 / 498.3 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.5691, allocations: 3.984 kB / 498.3 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.5691, allocations: 0 / 498.3 MB, free: 0.8477 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.5691, allocations: 3.953 kB / 498.3 MB, free: 0.8438 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001576/0.5693, allocations: 90.72 kB / 498.4 MB, free: 0.7305 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.75e-05/0.5694, allocations: 81.09 kB / 498.5 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.5694, allocations: 8.031 kB / 498.5 MB, free: 0.625 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.317e-05/0.5695, allocations: 4 kB / 498.5 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.011e-05/0.5695, allocations: 3.953 kB / 498.5 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.5695, allocations: 0 / 498.5 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of sorting global known variables: time 5.066e-05/0.5696, allocations: 75.28 kB / 498.5 MB, free: 0.543 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.31e-07/0.5696, allocations: 0 / 498.5 MB, free: 0.543 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005145/0.5701, allocations: 24 kB / 498.6 MB, free: 0.5195 MB / 410.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.001152/0.5713, allocations: 0.7436 MB / 499.3 MB, free: 15.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.5714, allocations: 59.41 kB / 499.4 MB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.5715, allocations: 0 / 499.4 MB, free: 15.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.814e-05/0.5715, allocations: 55.41 kB / 499.4 MB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001691/0.5717, allocations: 0 / 499.4 MB, free: 15.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005047/0.5723, allocations: 126.6 kB / 499.5 MB, free: 15.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.5726, allocations: 0.6731 MB / 0.4885 GB, free: 14.78 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.39e-05/0.5727, allocations: 11.42 kB / 0.4885 GB, free: 14.77 MB / 426.7 MB Notification: Performance of SimCode: time 1.302e-06/0.5727, allocations: 3.938 kB / 0.4885 GB, free: 14.77 MB / 426.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"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileInitializeParameter.cpp:15:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppModelicaTest_trunk_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 trunk/Resources/Data/ReadStreamTestFile.txt", tmp14); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp10; ^ ./OMCppModelicaTest_trunk_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 trunk/Resources/Data/ReadStreamTestFile.txt", tmp10); ~~~~~~~~~~ ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:172:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp13; ^ ./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:34: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFile.cpp:620:12: error: use of undeclared identifier 'tmp1' _file_ = tmp1; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_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_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o] Error 1