Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002348/0.002348, allocations: 182 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.2/2.2, allocations: 205.2 MB / 219.4 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 86.64 kB / 267.5 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.997e-05/4.013e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1057/0.1058, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4194/0.5252, allocations: 77.94 MB / 447.1 MB, free: 15.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002748/0.5256, allocations: 66.91 kB / 447.2 MB, free: 15.29 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02663/0.5522, allocations: 6.084 MB / 453.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5523, allocations: 4 kB / 453.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.5523, allocations: 4 kB / 453.3 MB, free: 10.32 MB / 330.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.0006621/0.553, allocations: 429.3 kB / 453.7 MB, free: 9.867 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.059e-05/0.553, allocations: 8.031 kB / 453.7 MB, free: 9.859 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.735e-05/0.5531, allocations: 109.8 kB / 453.8 MB, free: 9.742 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.517e-05/0.5532, allocations: 80.06 kB / 453.9 MB, free: 9.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002088/0.5534, allocations: 245.7 kB / 454.1 MB, free: 9.387 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.087e-05/0.5535, allocations: 154.6 kB / 454.3 MB, free: 9.234 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.841e-05/0.5536, allocations: 158.5 kB / 454.4 MB, free: 9.078 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.763e-05/0.5537, allocations: 101 kB / 454.5 MB, free: 8.973 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.058e-05/0.5537, allocations: 75.28 kB / 454.6 MB, free: 8.898 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.648e-05/0.5538, allocations: 150.6 kB / 454.7 MB, free: 8.75 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.585e-05/0.5539, allocations: 158.4 kB / 454.9 MB, free: 8.594 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001276/0.554, allocations: 154.6 kB / 455.1 MB, free: 8.441 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003408/0.5544, allocations: 449.2 kB / 455.5 MB, free: 7.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.73e-05/0.5545, allocations: 168.4 kB / 455.7 MB, free: 7.785 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.796e-05/0.5545, allocations: 84.14 kB / 455.7 MB, free: 7.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.995e-05/0.5546, allocations: 79.28 kB / 455.8 MB, free: 7.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001269/0.5547, allocations: 51.3 kB / 455.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 2.865e-06/0.5548, allocations: 0 / 455.9 MB, free: 7.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.000128/0.5549, allocations: 37.14 kB / 455.9 MB, free: 7.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.347e-05/0.5549, allocations: 51.41 kB / 456 MB, free: 7.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.5551, allocations: 92.98 kB / 456 MB, free: 7.359 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.5551, allocations: 29.73 kB / 456.1 MB, free: 7.324 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.426e-05/0.5552, allocations: 153.6 kB / 456.2 MB, free: 7.176 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.5552, allocations: 4 kB / 456.2 MB, free: 7.172 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.575e-06/0.5552, allocations: 3.938 kB / 456.2 MB, free: 7.168 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.5554, allocations: 310.8 kB / 456.5 MB, free: 6.855 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.208e-06/0.5554, allocations: 0 / 456.5 MB, free: 6.855 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.561e-06/0.5554, allocations: 0 / 456.5 MB, free: 6.855 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.866e-05/0.5554, allocations: 4 kB / 456.5 MB, free: 6.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.5554, allocations: 4.062 kB / 456.5 MB, free: 6.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.893e-05/0.5555, allocations: 33.58 kB / 456.6 MB, free: 6.812 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.5556, allocations: 11.89 kB / 456.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.5556, allocations: 0 / 456.6 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.963e-05/0.5556, allocations: 3.984 kB / 456.6 MB, free: 6.797 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.324e-05/0.5556, allocations: 4 kB / 456.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.5556, allocations: 0 / 456.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.493e-05/0.5557, allocations: 0 / 456.6 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.532e-06/0.5557, allocations: 0 / 456.6 MB, free: 6.793 MB / 330.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.954e-05/0.5558, allocations: 105 kB / 456.7 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.034e-05/0.5558, allocations: 4 kB / 456.7 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.67e-05/0.5559, allocations: 14.97 kB / 456.7 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.5559, allocations: 0 / 456.7 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.5559, allocations: 0 / 456.7 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.876e-06/0.5559, allocations: 0 / 456.7 MB, free: 6.664 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001472/0.5561, allocations: 153.5 kB / 456.9 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5561, allocations: 0 / 456.9 MB, free: 6.469 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.284e-06/0.5561, allocations: 7.938 kB / 456.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.5561, allocations: 0 / 456.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.362e-06/0.5561, allocations: 0 / 456.9 MB, free: 6.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.5561, allocations: 7.953 kB / 456.9 MB, free: 6.453 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.039e-05/0.5561, allocations: 7.984 kB / 456.9 MB, free: 6.445 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.217e-05/0.5562, allocations: 49.33 kB / 456.9 MB, free: 6.379 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.905e-05/0.5563, allocations: 88.06 kB / 457 MB, free: 6.277 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.058e-05/0.5563, allocations: 7.984 kB / 457 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.943e-05/0.5564, allocations: 0 / 457 MB, free: 6.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.756e-05/0.5564, allocations: 3.953 kB / 457 MB, free: 6.266 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.905e-06/0.5564, allocations: 4.031 kB / 457 MB, free: 6.262 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.795e-05/0.5565, allocations: 86.97 kB / 457.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5565, allocations: 0 / 457.1 MB, free: 6.18 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007496/0.5572, allocations: 154 kB / 457.3 MB, free: 6.039 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.001709/0.559, allocations: 0.9886 MB / 458.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 6.803e-05/0.5591, allocations: 4 kB / 458.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.5591, allocations: 0 / 458.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.005e-06/0.5591, allocations: 0 / 458.3 MB, free: 5.039 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.5592, allocations: 11.27 kB / 458.3 MB, free: 5.031 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005274/0.5598, allocations: 207.2 kB / 458.5 MB, free: 4.789 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000314/0.5601, allocations: 0.677 MB / 459.2 MB, free: 4.086 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.653e-05/0.5601, allocations: 15.56 kB / 459.2 MB, free: 4.07 MB / 330.7 MB Notification: Performance of SimCode: time 8.42e-07/0.5602, allocations: 4 kB / 459.2 MB, free: 4.066 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:29: ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:22:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp69; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:23:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp69); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp63; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:97:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp63); ~~~~~~~~~~ ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:165:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp65; ^ ./OMCppModelica_3_2_3_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_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:34: ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModel.cpp:633:12: error: use of undeclared identifier 'tmp0' _file_ = tmp0; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o] Error 1