Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.122/2.122, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.457e-05/3.45e-05, allocations: 4 kB / 292.2 MB, free: 8.754 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1412/0.1413, allocations: 50.41 MB / 342.6 MB, free: 6.328 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4758/0.6171, allocations: 79.35 MB / 422 MB, free: 14.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.6174, allocations: 72.16 kB / 422 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02841/0.6458, allocations: 6.139 MB / 428.2 MB, free: 9.371 MB / 346.7 MB Notification: Performance of FrontEnd: time 4.839e-06/0.6459, allocations: 3.984 kB / 428.2 MB, free: 9.367 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.014e-06/0.6459, allocations: 0 / 428.2 MB, free: 9.367 MB / 346.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.0007257/0.6466, allocations: 437.3 kB / 428.6 MB, free: 8.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.6467, allocations: 8.031 kB / 428.6 MB, free: 8.895 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.653e-05/0.6468, allocations: 105.8 kB / 428.7 MB, free: 8.781 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.359e-05/0.6469, allocations: 83.22 kB / 428.8 MB, free: 8.699 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002129/0.6471, allocations: 246.3 kB / 429 MB, free: 8.422 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.581e-05/0.6472, allocations: 154.5 kB / 429.2 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.1e-05/0.6473, allocations: 150.6 kB / 429.3 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.063e-05/0.6473, allocations: 105 kB / 429.4 MB, free: 8.012 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.678e-05/0.6474, allocations: 75.28 kB / 429.5 MB, free: 7.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.336e-05/0.6475, allocations: 154.6 kB / 429.7 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.328e-05/0.6476, allocations: 158.5 kB / 429.8 MB, free: 7.629 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.572e-05/0.6476, allocations: 150.6 kB / 430 MB, free: 7.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003477/0.648, allocations: 445.5 kB / 430.4 MB, free: 7 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.818e-05/0.6481, allocations: 169.1 kB / 430.6 MB, free: 6.824 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.256e-05/0.6482, allocations: 84.14 kB / 430.6 MB, free: 6.738 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.076e-05/0.6482, allocations: 78.66 kB / 430.7 MB, free: 6.664 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001314/0.6483, allocations: 43.41 kB / 430.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 4.148e-06/0.6484, allocations: 0 / 430.8 MB, free: 6.609 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001476/0.6485, allocations: 37.55 kB / 430.8 MB, free: 6.566 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.84e-05/0.6486, allocations: 63.38 kB / 430.9 MB, free: 6.492 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001301/0.6487, allocations: 96.38 kB / 431 MB, free: 6.395 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.634e-05/0.6488, allocations: 25.7 kB / 431 MB, free: 6.363 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.756e-05/0.6488, allocations: 150.6 kB / 431.1 MB, free: 6.215 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.641e-05/0.6489, allocations: 0 / 431.1 MB, free: 6.215 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.6489, allocations: 0 / 431.1 MB, free: 6.215 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.649, allocations: 317.9 kB / 431.4 MB, free: 5.898 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.688e-06/0.649, allocations: 0 / 431.4 MB, free: 5.898 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.277e-06/0.6491, allocations: 4 kB / 431.4 MB, free: 5.895 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.694e-05/0.6491, allocations: 0 / 431.4 MB, free: 5.895 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.6491, allocations: 0 / 431.4 MB, free: 5.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.292e-05/0.6492, allocations: 37.69 kB / 431.5 MB, free: 5.852 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.6492, allocations: 7.938 kB / 431.5 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.042e-05/0.6492, allocations: 0 / 431.5 MB, free: 5.844 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.6493, allocations: 7.875 kB / 431.5 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.152e-05/0.6493, allocations: 0 / 431.5 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.052e-06/0.6493, allocations: 0 / 431.5 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.865e-05/0.6494, allocations: 11.95 kB / 431.5 MB, free: 5.824 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.6494, allocations: 4.094 kB / 431.5 MB, free: 5.82 MB / 346.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 8.437e-05/0.6495, allocations: 101 kB / 431.6 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.6495, allocations: 2.938 kB / 431.6 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.504e-05/0.6495, allocations: 11.3 kB / 431.6 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.6496, allocations: 0 / 431.6 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.6496, allocations: 3.984 kB / 431.6 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.6496, allocations: 0 / 431.6 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001512/0.6497, allocations: 152 kB / 431.8 MB, free: 5.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.137e-06/0.6498, allocations: 3.984 kB / 431.8 MB, free: 5.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-06/0.6498, allocations: 4 kB / 431.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6498, allocations: 0 / 431.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.341e-06/0.6498, allocations: 0 / 431.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.953e-06/0.6498, allocations: 0 / 431.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.6498, allocations: 0 / 431.8 MB, free: 5.496 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001033/0.6499, allocations: 64.41 kB / 431.9 MB, free: 5.418 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.215e-05/0.65, allocations: 85 kB / 431.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.681e-05/0.65, allocations: 0 / 431.9 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.038e-05/0.6501, allocations: 4.031 kB / 431.9 MB, free: 5.312 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.627e-05/0.6501, allocations: 4 kB / 431.9 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.6501, allocations: 0 / 431.9 MB, free: 5.309 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.749e-05/0.6502, allocations: 82.34 kB / 432 MB, free: 5.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.6502, allocations: 0 / 432 MB, free: 5.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007754/0.651, allocations: 153.3 kB / 432.2 MB, free: 5.09 MB / 346.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.001967/0.653, allocations: 1.027 MB / 433.2 MB, free: 4.113 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 9.51e-05/0.6531, allocations: 3.25 kB / 433.2 MB, free: 4.113 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.6531, allocations: 4 kB / 433.2 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.508e-06/0.6531, allocations: 0 / 433.2 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000132/0.6533, allocations: 0 / 433.2 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007164/0.654, allocations: 204.1 kB / 433.4 MB, free: 3.871 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002898/0.6543, allocations: 0.677 MB / 434.1 MB, free: 3.168 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.529e-05/0.6544, allocations: 14.81 kB / 434.1 MB, free: 3.156 MB / 346.7 MB Notification: Performance of SimCode: time 1.222e-06/0.6544, allocations: 0 / 434.1 MB, free: 3.156 MB / 346.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 OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:22:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp69; ^ ./OMCppModelica_trunk_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 trunk/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp69); ~~~~~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:31: ./OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp63; ^ ./OMCppModelica_trunk_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 trunk/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp63); ~~~~~~~~~~ ^ ./OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:165:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp65; ^ ./OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:166:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT59, tmp65); ~~~~~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:34: ./OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModel.cpp:633:12: error: use of undeclared identifier 'tmp0' _file_ = tmp0; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o] Error 1