Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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.084/2.084, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003611, allocations: 15.92 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1025, allocations: 44.5 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.418/0.5206, allocations: 73.29 MB / 381.8 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003235/0.521, allocations: 75.47 kB / 381.9 MB, free: 14.87 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0662/0.5872, allocations: 5.963 MB / 387.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.365e-06/0.5873, allocations: 0 / 387.9 MB, free: 14.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.286e-06/0.5873, allocations: 0 / 387.9 MB, free: 14.38 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.0008186/0.5882, allocations: 425.9 kB / 388.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.5882, allocations: 13.38 kB / 388.3 MB, free: 13.97 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.998e-05/0.5883, allocations: 107.1 kB / 388.4 MB, free: 13.86 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.493e-05/0.5884, allocations: 85.88 kB / 388.5 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.5886, allocations: 250.9 kB / 388.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.5886, allocations: 150.6 kB / 388.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.504e-05/0.5887, allocations: 151.8 kB / 389 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.548e-05/0.5887, allocations: 101 kB / 389.1 MB, free: 13.1 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.472e-05/0.5888, allocations: 79.27 kB / 389.2 MB, free: 13.02 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.68e-05/0.5888, allocations: 157.2 kB / 389.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.317e-05/0.5889, allocations: 150.6 kB / 389.5 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.744e-05/0.5889, allocations: 159 kB / 389.7 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003122/0.5892, allocations: 446.6 kB / 390.1 MB, free: 12.09 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.687e-05/0.5893, allocations: 173.8 kB / 390.3 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.5894, allocations: 76.53 kB / 390.3 MB, free: 11.84 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001286/0.5895, allocations: 46.27 kB / 390.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of pre-optimization done (n=1): time 3.626e-06/0.5895, allocations: 0 / 390.4 MB, free: 11.79 MB / 314.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001697/0.5897, allocations: 35.59 kB / 390.4 MB, free: 11.76 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.364e-05/0.5898, allocations: 56.88 kB / 390.5 MB, free: 11.69 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.646e-05/0.5899, allocations: 96.17 kB / 390.6 MB, free: 11.6 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.016e-05/0.5899, allocations: 25.7 kB / 390.6 MB, free: 11.57 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.906e-05/0.59, allocations: 151.8 kB / 390.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.683e-05/0.59, allocations: 3.938 kB / 390.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-06/0.59, allocations: 0 / 390.7 MB, free: 11.42 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.511e-05/0.5901, allocations: 312.1 kB / 391 MB, free: 11.11 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.248e-05/0.5901, allocations: 3.938 kB / 391 MB, free: 11.1 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.933e-06/0.5901, allocations: 1.312 kB / 391 MB, free: 11.1 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.293e-05/0.5902, allocations: 10.52 kB / 391.1 MB, free: 11.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5902, allocations: 1.312 kB / 391.1 MB, free: 11.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.076e-05/0.5903, allocations: 33.56 kB / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.329e-05/0.5903, allocations: 6.672 kB / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.5903, allocations: 5.219 kB / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/0.5904, allocations: 0 / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.523e-05/0.5904, allocations: 0 / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.251e-06/0.5904, allocations: 1.312 kB / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.174e-05/0.5905, allocations: 0 / 391.1 MB, free: 11.06 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.5905, allocations: 5.281 kB / 391.1 MB, free: 11.05 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 () * Number of clocked 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.165e-05/0.5906, allocations: 108.7 kB / 391.2 MB, free: 10.94 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.045e-05/0.5906, allocations: 9.203 kB / 391.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.897e-05/0.5907, allocations: 9.609 kB / 391.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.5907, allocations: 0 / 391.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.5907, allocations: 5.25 kB / 391.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.5907, allocations: 0 / 391.2 MB, free: 10.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001396/0.5909, allocations: 147.9 kB / 391.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.5909, allocations: 0 / 391.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.612e-06/0.5909, allocations: 0 / 391.4 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.548e-06/0.5909, allocations: 9.266 kB / 391.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.591, allocations: 0 / 391.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.369e-06/0.591, allocations: 5.594 kB / 391.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.591, allocations: 1.344 kB / 391.4 MB, free: 10.73 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001138/0.5911, allocations: 61.58 kB / 391.5 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.969e-05/0.5912, allocations: 78.98 kB / 391.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.235e-05/0.5912, allocations: 5.266 kB / 391.5 MB, free: 10.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.867e-05/0.5913, allocations: 5.344 kB / 391.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.367e-05/0.5913, allocations: 0 / 391.5 MB, free: 10.56 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.5913, allocations: 3.234 kB / 391.6 MB, free: 10.56 MB / 314.7 MB Notification: Performance of sorting global known variables: time 4.718e-05/0.5914, allocations: 82.88 kB / 391.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5914, allocations: 0 / 391.6 MB, free: 10.49 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001049/0.5924, allocations: 153.9 kB / 391.8 MB, free: 10.45 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 () * Number of clocked 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.002303/0.5948, allocations: 0.9912 MB / 392.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0001174/0.5949, allocations: 8.859 kB / 392.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.595, allocations: 0 / 392.8 MB, free: 9.734 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.462e-05/0.595, allocations: 6.375 kB / 392.8 MB, free: 9.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001857/0.5952, allocations: 5.266 kB / 392.8 MB, free: 9.727 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.5965, allocations: 450.1 kB / 393.2 MB, free: 9.336 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001533/0.5967, allocations: 0.6773 MB / 393.9 MB, free: 8.641 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.5968, allocations: 16.19 kB / 393.9 MB, free: 8.637 MB / 314.7 MB Notification: Performance of SimCode: time 1.242e-06/0.5968, allocations: 0 / 393.9 MB, free: 8.637 MB / 314.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