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.001559/0.001564, allocations: 188.3 kB / 16.4 MB, free: 5.625 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.068/2.068, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.00115/0.001149, allocations: 94.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003958/0.0003961, allocations: 11.98 kB / 327 MB, free: 15.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09874/0.09917, allocations: 47.58 MB / 374.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001628/0.1009, allocations: 0.9063 MB / 375.5 MB, free: 14.43 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004136/0.105, allocations: 1.853 MB / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.489e-05/0.1051, allocations: 0 / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 1.943e-05/0.1052, allocations: 0 / 377.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001555/0.1067, allocations: 315.2 kB / 377.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.672e-05/0.1068, allocations: 7.938 kB / 377.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 5.087e-05/0.1069, allocations: 11.97 kB / 377.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.05e-05/0.1069, allocations: 4 kB / 377.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.177e-05/0.107, allocations: 0 / 377.7 MB, free: 12.24 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001301/0.1071, allocations: 7.984 kB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.989e-06/0.1071, allocations: 3.938 kB / 377.7 MB, free: 12.23 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009347/0.1081, allocations: 363.5 kB / 378.1 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.463e-05/0.1081, allocations: 4 kB / 378.1 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.1081, allocations: 25.7 kB / 378.1 MB, free: 11.84 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005388/0.1087, allocations: 223.6 kB / 378.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.1087, allocations: 0 / 378.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1087, allocations: 0 / 378.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.458e-06/0.1087, allocations: 0 / 378.3 MB, free: 11.62 MB / 282.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.0005765/0.1093, allocations: 407.2 kB / 378.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.067e-05/0.1094, allocations: 8.031 kB / 378.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.537e-05/0.1095, allocations: 105.8 kB / 378.8 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.205e-05/0.1096, allocations: 79.28 kB / 378.9 MB, free: 10.97 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.1098, allocations: 246.6 kB / 379.2 MB, free: 10.69 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.786e-05/0.1099, allocations: 158.5 kB / 379.3 MB, free: 10.54 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.566e-05/0.1099, allocations: 150.6 kB / 379.5 MB, free: 10.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.907e-05/0.11, allocations: 105 kB / 379.6 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.997e-05/0.1101, allocations: 79.28 kB / 379.6 MB, free: 10.2 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.1102, allocations: 150.6 kB / 379.8 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.241e-05/0.1102, allocations: 154.6 kB / 379.9 MB, free: 9.898 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.225e-05/0.1103, allocations: 150.6 kB / 380.1 MB, free: 9.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003496/0.1107, allocations: 453.9 kB / 380.5 MB, free: 9.258 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001424/0.1108, allocations: 169.1 kB / 380.7 MB, free: 9.082 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.391e-05/0.1109, allocations: 79.28 kB / 380.8 MB, free: 9.004 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001569/0.1111, allocations: 43.41 kB / 380.8 MB, free: 8.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=1): time 3.126e-06/0.1111, allocations: 0 / 380.8 MB, free: 8.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001569/0.1112, allocations: 37.64 kB / 380.9 MB, free: 8.906 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.603e-05/0.1113, allocations: 55.41 kB / 380.9 MB, free: 8.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.1114, allocations: 105.8 kB / 381 MB, free: 8.727 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.189e-05/0.1115, allocations: 29.83 kB / 381 MB, free: 8.691 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.954e-05/0.1115, allocations: 150.6 kB / 381.2 MB, free: 8.543 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.1116, allocations: 4 kB / 381.2 MB, free: 8.539 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.1116, allocations: 0 / 381.2 MB, free: 8.539 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001344/0.1117, allocations: 310.8 kB / 381.5 MB, free: 8.227 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.668e-06/0.1117, allocations: 0 / 381.5 MB, free: 8.227 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.392e-06/0.1117, allocations: 0 / 381.5 MB, free: 8.227 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.629e-05/0.1118, allocations: 7.984 kB / 381.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.1118, allocations: 64 / 381.5 MB, free: 8.219 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.939e-05/0.1119, allocations: 45.59 kB / 381.5 MB, free: 8.168 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.779e-05/0.1119, allocations: 4 kB / 381.6 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.1119, allocations: 0 / 381.6 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.686e-05/0.1119, allocations: 0 / 381.6 MB, free: 8.164 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.58e-05/0.112, allocations: 7.938 kB / 381.6 MB, free: 8.156 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.112, allocations: 7.938 kB / 381.6 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.88e-05/0.112, allocations: 0 / 381.6 MB, free: 8.148 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.112, allocations: 0 / 381.6 MB, free: 8.148 MB / 282.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 9.542e-05/0.1122, allocations: 109.8 kB / 381.7 MB, free: 8.031 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.055e-05/0.1122, allocations: 19.88 kB / 381.7 MB, free: 8.012 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.585e-05/0.1122, allocations: 7.078 kB / 381.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.1122, allocations: 0 / 381.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.1123, allocations: 0 / 381.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1123, allocations: 0 / 381.7 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1124, allocations: 153.7 kB / 381.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1125, allocations: 0 / 381.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.859e-06/0.1125, allocations: 0 / 381.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1125, allocations: 0 / 381.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.1125, allocations: 3.953 kB / 381.9 MB, free: 7.797 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1125, allocations: 4 kB / 381.9 MB, free: 7.793 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1125, allocations: 3.938 kB / 381.9 MB, free: 7.789 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.439e-05/0.1126, allocations: 61.12 kB / 381.9 MB, free: 7.711 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.015e-05/0.1127, allocations: 77.11 kB / 382 MB, free: 7.617 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.898e-05/0.1127, allocations: 4 kB / 382 MB, free: 7.613 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.278e-05/0.1128, allocations: 3.953 kB / 382 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.207e-05/0.1128, allocations: 0 / 382 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.086e-06/0.1128, allocations: 4.031 kB / 382 MB, free: 7.605 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.49e-05/0.1129, allocations: 83.27 kB / 382.1 MB, free: 7.523 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.1129, allocations: 0 / 382.1 MB, free: 7.523 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006713/0.1136, allocations: 131.9 kB / 382.2 MB, free: 7.395 MB / 282.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.001783/0.1154, allocations: 0.9642 MB / 383.2 MB, free: 6.414 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001164/0.1155, allocations: 0 / 383.2 MB, free: 6.414 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/0.1155, allocations: 4 kB / 383.2 MB, free: 6.41 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 9.418e-06/0.1156, allocations: 0 / 383.2 MB, free: 6.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000138/0.1157, allocations: 3.953 kB / 383.2 MB, free: 6.406 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009608/0.1167, allocations: 436.2 kB / 383.6 MB, free: 5.926 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003109/0.117, allocations: 0.6771 MB / 384.3 MB, free: 5.223 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.541e-05/0.1171, allocations: 19.42 kB / 384.3 MB, free: 5.203 MB / 282.7 MB Notification: Performance of SimCode: time 1.573e-06/0.1171, allocations: 0 / 384.3 MB, free: 5.203 MB / 282.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=5 -DSUNDIALS_MINOR_VERSION=4 -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_LIT57, 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