Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.045/2.045, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.819e-05/3.83e-05, allocations: 8 kB / 255.4 MB, free: 3.125 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09894/0.09901, allocations: 44.51 MB / 299.9 MB, free: 6.562 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4275/0.5266, allocations: 73.2 MB / 373.1 MB, free: 22.3 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/0.5269, allocations: 67.27 kB / 373.2 MB, free: 22.3 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02504/0.552, allocations: 5.756 MB / 378.9 MB, free: 21.81 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.552, allocations: 0 / 378.9 MB, free: 21.81 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.204e-06/0.552, allocations: 0 / 378.9 MB, free: 21.81 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0007165/0.5528, allocations: 430 kB / 379.4 MB, free: 21.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.224e-05/0.5528, allocations: 11.08 kB / 379.4 MB, free: 21.41 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.616e-05/0.5529, allocations: 109.8 kB / 379.5 MB, free: 21.29 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.231e-05/0.553, allocations: 76.62 kB / 379.6 MB, free: 21.22 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001538/0.5531, allocations: 247.9 kB / 379.8 MB, free: 20.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.095e-05/0.5532, allocations: 150.6 kB / 379.9 MB, free: 20.8 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.551e-05/0.5532, allocations: 150.6 kB / 380.1 MB, free: 20.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.047e-05/0.5533, allocations: 106.5 kB / 380.2 MB, free: 20.54 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.5533, allocations: 75.28 kB / 380.3 MB, free: 20.46 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.759e-05/0.5533, allocations: 152.3 kB / 380.4 MB, free: 20.32 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.727e-05/0.5534, allocations: 156 kB / 380.6 MB, free: 20.16 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.102e-05/0.5534, allocations: 150.6 kB / 380.7 MB, free: 20.02 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002341/0.5537, allocations: 454.1 kB / 381.2 MB, free: 19.53 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.865e-05/0.5537, allocations: 167.1 kB / 381.3 MB, free: 19.36 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.276e-05/0.5538, allocations: 81.92 kB / 381.4 MB, free: 19.28 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.5538, allocations: 83.02 kB / 381.5 MB, free: 19.2 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.554, allocations: 57.69 kB / 381.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 4.629e-06/0.554, allocations: 0 / 381.5 MB, free: 19.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001583/0.5542, allocations: 35.81 kB / 381.6 MB, free: 19.1 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.5542, allocations: 51.41 kB / 381.6 MB, free: 19.04 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.286e-05/0.5543, allocations: 97.84 kB / 381.7 MB, free: 18.95 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.648e-06/0.5543, allocations: 25.7 kB / 381.7 MB, free: 18.92 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.473e-05/0.5544, allocations: 151.7 kB / 381.9 MB, free: 18.77 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.464e-05/0.5544, allocations: 4.031 kB / 381.9 MB, free: 18.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-06/0.5544, allocations: 0 / 381.9 MB, free: 18.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.323e-05/0.5545, allocations: 319.5 kB / 382.2 MB, free: 18.45 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.5545, allocations: 1 kB / 382.2 MB, free: 18.45 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.713e-06/0.5545, allocations: 1.156 kB / 382.2 MB, free: 18.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.579e-05/0.5545, allocations: 1.156 kB / 382.2 MB, free: 18.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.5545, allocations: 3.953 kB / 382.2 MB, free: 18.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.027e-05/0.5546, allocations: 33.75 kB / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.5546, allocations: 10.5 kB / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.192e-06/0.5547, allocations: 0 / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.5547, allocations: 0 / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.362e-05/0.5547, allocations: 3.344 kB / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.782e-06/0.5547, allocations: 0 / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.05e-05/0.5548, allocations: 0 / 382.3 MB, free: 18.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.5548, allocations: 1.125 kB / 382.3 MB, free: 18.41 MB / 314.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 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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 7.414e-05/0.5549, allocations: 102.4 kB / 382.4 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.278e-05/0.5549, allocations: 5.391 kB / 382.4 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.094e-05/0.5549, allocations: 14.45 kB / 382.4 MB, free: 18.3 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.555, allocations: 4 kB / 382.4 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.555, allocations: 1.219 kB / 382.4 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.555, allocations: 192 / 382.4 MB, free: 18.29 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.5551, allocations: 147.6 kB / 382.5 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.5551, allocations: 0 / 382.5 MB, free: 18.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.165e-06/0.5551, allocations: 9.344 kB / 382.5 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.5551, allocations: 0 / 382.5 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-06/0.5552, allocations: 0 / 382.5 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.5552, allocations: 4.719 kB / 382.5 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.5552, allocations: 0 / 382.5 MB, free: 18.1 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.406e-05/0.5553, allocations: 58.52 kB / 382.6 MB, free: 18.03 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.943e-05/0.5553, allocations: 89.28 kB / 382.7 MB, free: 17.93 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.5553, allocations: 7.953 kB / 382.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.97e-05/0.5554, allocations: 1.531 kB / 382.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.232e-05/0.5554, allocations: 0 / 382.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-06/0.5554, allocations: 1.281 kB / 382.7 MB, free: 17.92 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.762e-05/0.5554, allocations: 89.09 kB / 382.8 MB, free: 17.84 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.5555, allocations: 7.969 kB / 382.8 MB, free: 17.84 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008347/0.5563, allocations: 151.7 kB / 382.9 MB, free: 17.8 MB / 314.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 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * 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.001621/0.5579, allocations: 0.974 MB / 383.9 MB, free: 17.09 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.955e-05/0.5581, allocations: 3.594 kB / 383.9 MB, free: 17.09 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.468e-06/0.5581, allocations: 1.312 kB / 383.9 MB, free: 17.09 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.052e-05/0.5581, allocations: 2.938 kB / 383.9 MB, free: 17.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.5582, allocations: 5.203 kB / 383.9 MB, free: 17.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006752/0.5589, allocations: 201.8 kB / 384.1 MB, free: 16.9 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007707/0.5597, allocations: 0.6833 MB / 384.8 MB, free: 32.2 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.515e-05/0.5598, allocations: 17.42 kB / 384.8 MB, free: 32.2 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5598, allocations: 0 / 384.8 MB, free: 32.2 MB / 330.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 OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:29: ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:22:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp68; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:23:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp68); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:31: ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:97:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp62); ~~~~~~~~~~ ^ ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:165:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp64; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:166:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT52, tmp64); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:34: ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModel.cpp:633:12: error: use of undeclared identifier 'tmp0' _file_ = tmp0; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelFMU.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 'OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o] Error 1