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.035/2.035, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.183e-05/2.19e-05, allocations: 0 / 249.7 MB, free: 15.21 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.326, allocations: 44.49 MB / 294.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1553/0.4814, allocations: 72.54 MB / 366.7 MB, free: 9.344 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.4817, allocations: 67.97 kB / 366.8 MB, free: 9.277 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02561/0.5074, allocations: 5.602 MB / 372.4 MB, free: 3.668 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5074, allocations: 0 / 372.4 MB, free: 3.668 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.5074, allocations: 0 / 372.4 MB, free: 3.668 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.00071/0.5082, allocations: 418.4 kB / 372.8 MB, free: 3.215 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.5082, allocations: 8.031 kB / 372.8 MB, free: 3.207 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.72e-05/0.5083, allocations: 83.28 kB / 372.9 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002454/0.5086, allocations: 258.2 kB / 373.1 MB, free: 2.832 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.068e-05/0.5086, allocations: 150.6 kB / 373.3 MB, free: 2.684 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.888e-05/0.5087, allocations: 150.6 kB / 373.4 MB, free: 2.535 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.484e-05/0.5088, allocations: 150.6 kB / 373.6 MB, free: 2.387 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.677e-05/0.5089, allocations: 106.5 kB / 373.7 MB, free: 2.277 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.478e-05/0.5089, allocations: 79.28 kB / 373.8 MB, free: 2.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.546e-05/0.509, allocations: 150.6 kB / 373.9 MB, free: 2.051 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.716e-05/0.5091, allocations: 150.6 kB / 374.1 MB, free: 1.902 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003834/0.5095, allocations: 430.4 kB / 374.5 MB, free: 1.445 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000111/0.5096, allocations: 177.1 kB / 374.7 MB, free: 1.262 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.489e-05/0.5097, allocations: 80.14 kB / 374.7 MB, free: 1.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.477e-05/0.5097, allocations: 79.28 kB / 374.8 MB, free: 1.102 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.5099, allocations: 43.41 kB / 374.9 MB, free: 1.047 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 7.033e-06/0.5099, allocations: 0 / 374.9 MB, free: 1.047 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001659/0.5101, allocations: 45.48 kB / 374.9 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.5101, allocations: 51.41 kB / 374.9 MB, free: 0.9336 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.778e-05/0.5102, allocations: 93 kB / 375 MB, free: 0.8359 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.5102, allocations: 25.7 kB / 375.1 MB, free: 0.8047 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.154e-05/0.5103, allocations: 154.6 kB / 375.2 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.387e-05/0.5104, allocations: 0 / 375.2 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.455e-06/0.5104, allocations: 0 / 375.2 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.5105, allocations: 314.8 kB / 375.5 MB, free: 344 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-06/0.5105, allocations: 0 / 375.5 MB, free: 344 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.989e-06/0.5106, allocations: 4.031 kB / 375.5 MB, free: 340 kB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.879e-05/0.5106, allocations: 4 kB / 375.5 MB, free: 336 kB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.5106, allocations: 0 / 375.5 MB, free: 336 kB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.279e-05/0.5107, allocations: 37.66 kB / 375.6 MB, free: 292 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.5107, allocations: 4 kB / 375.6 MB, free: 288 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.5107, allocations: 7.875 kB / 375.6 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.5108, allocations: 0 / 375.6 MB, free: 280 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.663e-05/0.5108, allocations: 4 kB / 375.6 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.5108, allocations: 0 / 375.6 MB, free: 276 kB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.715e-05/0.5108, allocations: 4.094 kB / 375.6 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.574e-06/0.5109, allocations: 0 / 375.6 MB, free: 272 kB / 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 9.135e-05/0.511, allocations: 108.8 kB / 375.7 MB, free: 156 kB / 314.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 5.839e-05/0.511, allocations: 37.66 kB / 375.7 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.357e-06/0.5111, allocations: 0 / 375.7 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.232e-05/0.5111, allocations: 4.469 kB / 375.7 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.118e-06/0.5111, allocations: 0 / 375.7 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.519e-06/0.5111, allocations: 0 / 375.7 MB, free: 112 kB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.084e-06/0.5112, allocations: 3.984 kB / 375.7 MB, free: 108 kB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.5113, allocations: 130.3 kB / 375.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.5114, allocations: 0 / 375.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.32e-06/0.5114, allocations: 0 / 375.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/0.5114, allocations: 3.953 kB / 375.9 MB, free: 15.94 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.206e-05/0.5114, allocations: 8 kB / 375.9 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.432e-06/0.5114, allocations: 3.984 kB / 375.9 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.5114, allocations: 3.938 kB / 375.9 MB, free: 15.92 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.56e-05/0.5115, allocations: 53.05 kB / 375.9 MB, free: 15.85 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.134e-05/0.5116, allocations: 85.14 kB / 376 MB, free: 15.75 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.844e-05/0.5116, allocations: 15.88 kB / 376 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.654e-05/0.5117, allocations: 0 / 376 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.703e-05/0.5117, allocations: 0 / 376 MB, free: 15.73 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.5117, allocations: 192 / 376 MB, free: 15.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.701e-05/0.5118, allocations: 87.27 kB / 376.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.7e-07/0.5118, allocations: 0 / 376.1 MB, free: 15.65 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0008288/0.5126, allocations: 155.9 kB / 376.3 MB, free: 15.5 MB / 330.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.001881/0.5145, allocations: 0.9763 MB / 377.3 MB, free: 14.53 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 8.427e-05/0.5147, allocations: 4 kB / 377.3 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.772e-06/0.5147, allocations: 4 kB / 377.3 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.574e-05/0.5147, allocations: 3.938 kB / 377.3 MB, free: 14.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001463/0.5149, allocations: 11.94 kB / 377.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006657/0.5155, allocations: 196.9 kB / 377.5 MB, free: 14.27 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.5159, allocations: 0.6768 MB / 378.1 MB, free: 13.57 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.647e-05/0.5159, allocations: 11.44 kB / 378.2 MB, free: 13.56 MB / 330.7 MB Notification: Performance of SimCode: time 7.92e-07/0.5159, allocations: 0 / 378.2 MB, free: 13.56 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=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 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/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/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/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 'OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o] Error 1