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 1.994/1.994, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.228e-05/3.237e-05, allocations: 1.406 kB / 255.4 MB, free: 3.121 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09608/0.09615, allocations: 44.51 MB / 299.9 MB, free: 6.551 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4919/0.5881, allocations: 73.21 MB / 373.2 MB, free: 22.26 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002203/0.5884, allocations: 70.75 kB / 373.2 MB, free: 22.26 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02441/0.6128, allocations: 5.758 MB / 379 MB, free: 21.77 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.6129, allocations: 0 / 379 MB, free: 21.77 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.6129, allocations: 1.375 kB / 379 MB, free: 21.77 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.0006353/0.6136, allocations: 417 kB / 379.4 MB, free: 21.37 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.6136, allocations: 9 kB / 379.4 MB, free: 21.37 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.16e-05/0.6137, allocations: 105.8 kB / 379.5 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.984e-05/0.6138, allocations: 82.75 kB / 379.6 MB, free: 21.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001377/0.6139, allocations: 243.6 kB / 379.8 MB, free: 20.91 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.999e-05/0.6139, allocations: 154.5 kB / 380 MB, free: 20.75 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.614, allocations: 150.6 kB / 380.1 MB, free: 20.61 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.545e-05/0.614, allocations: 106.2 kB / 380.2 MB, free: 20.5 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.6141, allocations: 75.28 kB / 380.3 MB, free: 20.43 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.366e-05/0.6141, allocations: 157.9 kB / 380.5 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.649e-05/0.6141, allocations: 150.6 kB / 380.6 MB, free: 20.12 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.671e-05/0.6142, allocations: 150.6 kB / 380.7 MB, free: 19.98 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000216/0.6144, allocations: 449.6 kB / 381.2 MB, free: 19.5 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.823e-05/0.6145, allocations: 174.4 kB / 381.4 MB, free: 19.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.108e-05/0.6145, allocations: 81.39 kB / 381.4 MB, free: 19.23 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.6145, allocations: 77.06 kB / 381.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001106/0.6147, allocations: 45.48 kB / 381.6 MB, free: 19.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 3.777e-06/0.6147, allocations: 3.938 kB / 381.6 MB, free: 19.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.000132/0.6148, allocations: 47.66 kB / 381.6 MB, free: 19.06 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.849e-05/0.6149, allocations: 56.66 kB / 381.7 MB, free: 19 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.805e-05/0.6149, allocations: 94.5 kB / 381.8 MB, free: 18.91 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 9.208e-06/0.615, allocations: 25.7 kB / 381.8 MB, free: 18.88 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.422e-05/0.615, allocations: 155.8 kB / 381.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.615, allocations: 1.828 kB / 381.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.615, allocations: 0 / 381.9 MB, free: 18.73 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.569e-05/0.6151, allocations: 312.3 kB / 382.2 MB, free: 18.41 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.636e-06/0.6151, allocations: 4.031 kB / 382.2 MB, free: 18.41 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.192e-06/0.6151, allocations: 1.312 kB / 382.2 MB, free: 18.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.614e-05/0.6152, allocations: 1.188 kB / 382.2 MB, free: 18.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.6152, allocations: 3.953 kB / 382.2 MB, free: 18.41 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.64e-05/0.6152, allocations: 36.7 kB / 382.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.6153, allocations: 4.938 kB / 382.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.6153, allocations: 0 / 382.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.6153, allocations: 1.562 kB / 382.3 MB, free: 18.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.181e-05/0.6153, allocations: 3.938 kB / 382.3 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.6154, allocations: 5.969 kB / 382.3 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.741e-05/0.6154, allocations: 1.062 kB / 382.3 MB, free: 18.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.785e-06/0.6154, allocations: 3.984 kB / 382.3 MB, free: 18.36 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 5.589e-05/0.6155, allocations: 106.9 kB / 382.4 MB, free: 18.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.161e-05/0.6155, allocations: 3.953 kB / 382.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.028e-05/0.6155, allocations: 6.594 kB / 382.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.866e-06/0.6156, allocations: 0 / 382.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.6156, allocations: 1.5 kB / 382.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/0.6156, allocations: 0 / 382.4 MB, free: 18.25 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.6157, allocations: 155.5 kB / 382.6 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.6157, allocations: 0 / 382.6 MB, free: 18.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.303e-06/0.6157, allocations: 7.953 kB / 382.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.6157, allocations: 1.5 kB / 382.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.6157, allocations: 0 / 382.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.6158, allocations: 1.969 kB / 382.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.6158, allocations: 0 / 382.6 MB, free: 18.05 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.926e-05/0.6159, allocations: 57.2 kB / 382.6 MB, free: 17.99 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.407e-05/0.6159, allocations: 88.36 kB / 382.7 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.928e-05/0.616, allocations: 5.172 kB / 382.7 MB, free: 17.89 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.916e-05/0.616, allocations: 7.875 kB / 382.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.053e-05/0.616, allocations: 1.562 kB / 382.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.835e-06/0.616, allocations: 0 / 382.7 MB, free: 17.88 MB / 314.7 MB Notification: Performance of sorting global known variables: time 3.663e-05/0.6161, allocations: 85.58 kB / 382.8 MB, free: 17.8 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6161, allocations: 0 / 382.8 MB, free: 17.8 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008361/0.6169, allocations: 155.6 kB / 383 MB, free: 17.76 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.001528/0.6185, allocations: 0.9792 MB / 384 MB, free: 17.05 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.079e-05/0.6186, allocations: 7.75 kB / 384 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.6186, allocations: 0 / 384 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.528e-06/0.6186, allocations: 2.125 kB / 384 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.6187, allocations: 4.953 kB / 384 MB, free: 17.04 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005792/0.6193, allocations: 200.1 kB / 384.2 MB, free: 16.86 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006944/0.62, allocations: 0.6771 MB / 384.8 MB, free: 32.16 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.765e-05/0.6201, allocations: 13.98 kB / 384.9 MB, free: 32.16 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.6201, allocations: 1.281 kB / 384.9 MB, free: 32.16 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