Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable2Ds.Test16.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test16,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test16,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009169/0.0009169, allocations: 199.7 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 226.5 MB / 243.4 MB, free: 6.484 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008014/0.0008015, allocations: 102.6 kB / 295.5 MB, free: 6.645 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3318/0.3318, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002954/0.0002956, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3928/0.3932, allocations: 62.96 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2Ds.Test16): time 0.001865/0.3951, allocations: 1.348 MB / 0.5173 GB, free: 36.07 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006841/0.3958, allocations: 0.6547 MB / 0.5179 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.426e-05/0.3958, allocations: 0 / 0.5179 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002238/0.3961, allocations: 30.8 kB / 0.5179 GB, free: 35.58 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001643/0.3962, allocations: 30.52 kB / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.797e-06/0.3963, allocations: 0 / 0.518 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001319/0.3964, allocations: 42.75 kB / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.049e-05/0.3964, allocations: 6.969 kB / 0.518 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.411e-05/0.3965, allocations: 13.92 kB / 0.518 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.619e-05/0.3966, allocations: 23.31 kB / 0.5181 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.3966, allocations: 0 / 0.5181 GB, free: 35.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.669e-05/0.3966, allocations: 14.34 kB / 0.5181 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.863e-05/0.3967, allocations: 17.53 kB / 0.5181 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 3.485e-05/0.3967, allocations: 44.33 kB / 0.5181 GB, free: 35.48 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001001/0.3968, allocations: 52.48 kB / 0.5182 GB, free: 35.46 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.67e-06/0.3968, allocations: 0 / 0.5182 GB, free: 35.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3968, allocations: 0 / 0.5182 GB, free: 35.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.492e-06/0.3968, allocations: 0 / 0.5182 GB, free: 35.46 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0003131/0.3972, allocations: 358 kB / 0.5185 GB, free: 35.09 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3972, allocations: 10 kB / 0.5185 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.3973, allocations: 40.81 kB / 0.5186 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.3973, allocations: 7.719 kB / 0.5186 GB, free: 35.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.875e-05/0.3974, allocations: 171 kB / 0.5187 GB, free: 34.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.3974, allocations: 4.375 kB / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.308e-05/0.3974, allocations: 3.219 kB / 0.5187 GB, free: 34.83 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001579/0.3976, allocations: 126.2 kB / 0.5189 GB, free: 34.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.3976, allocations: 7.875 kB / 0.5189 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.3976, allocations: 0 / 0.5189 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-05/0.3977, allocations: 28 kB / 0.5189 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.988e-05/0.3978, allocations: 38.8 kB / 0.5189 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004426/0.3982, allocations: 0.8976 MB / 0.5198 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.792e-05/0.3983, allocations: 165.1 kB / 0.52 GB, free: 33.64 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.3983, allocations: 96.11 kB / 0.5201 GB, free: 33.55 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.3983, allocations: 75.28 kB / 0.5201 GB, free: 33.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.3984, allocations: 112.1 kB / 0.5202 GB, free: 33.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.182e-06/0.3984, allocations: 0 / 0.5202 GB, free: 33.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.742e-05/0.3984, allocations: 32.92 kB / 0.5203 GB, free: 33.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/0.3985, allocations: 126.7 kB / 0.5204 GB, free: 33.19 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.3986, allocations: 191.1 kB / 0.5206 GB, free: 33.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.685e-06/0.3986, allocations: 29.64 kB / 0.5206 GB, free: 33.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.469e-05/0.3987, allocations: 155 kB / 0.5208 GB, free: 32.88 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.296e-06/0.3987, allocations: 0 / 0.5208 GB, free: 32.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.911e-06/0.3987, allocations: 6.875 kB / 0.5208 GB, free: 32.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.815e-05/0.3988, allocations: 322.2 kB / 0.5211 GB, free: 32.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.766e-05/0.3989, allocations: 24.94 kB / 0.5211 GB, free: 32.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.584e-05/0.399, allocations: 163.7 kB / 0.5212 GB, free: 32.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001506/0.3991, allocations: 208.2 kB / 0.5214 GB, free: 32.16 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3991, allocations: 2.844 kB / 0.5214 GB, free: 32.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002428/0.3994, allocations: 196.4 kB / 0.5216 GB, free: 32.06 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.3994, allocations: 5.688 kB / 0.5216 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.816e-06/0.3994, allocations: 7.469 kB / 0.5216 GB, free: 32.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.3994, allocations: 6.922 kB / 0.5217 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.3995, allocations: 42.58 kB / 0.5217 GB, free: 32.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.355e-05/0.3996, allocations: 12.91 kB / 0.5217 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.58e-05/0.3996, allocations: 14.22 kB / 0.5217 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.3997, allocations: 19.19 kB / 0.5217 GB, free: 32.03 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.57e-05/0.3998, allocations: 211.7 kB / 0.5219 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.47e-05/0.3998, allocations: 114.8 kB / 0.5221 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.404e-05/0.3998, allocations: 117.9 kB / 0.5222 GB, free: 31.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.658e-05/0.3999, allocations: 180.2 kB / 0.5223 GB, free: 31.42 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.934e-05/0.3999, allocations: 180.3 kB / 0.5225 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.859e-05/0.3999, allocations: 183.2 kB / 0.5227 GB, free: 31.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001582/0.4001, allocations: 423.1 kB / 0.5231 GB, free: 30.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.4001, allocations: 104.4 kB / 0.5232 GB, free: 30.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.63e-05/0.4002, allocations: 104.9 kB / 0.5233 GB, free: 30.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.538e-05/0.4002, allocations: 179.1 kB / 0.5235 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.4002, allocations: 192.2 kB / 0.5236 GB, free: 30.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.652e-05/0.4003, allocations: 179.1 kB / 0.5238 GB, free: 29.83 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.764e-05/0.4003, allocations: 183.4 kB / 0.524 GB, free: 29.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.982e-05/0.4004, allocations: 309.5 kB / 0.5243 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.53e-05/0.4004, allocations: 196.3 kB / 0.5245 GB, free: 29.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.738e-05/0.4005, allocations: 179.2 kB / 0.5246 GB, free: 28.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.595e-05/0.4005, allocations: 104.9 kB / 0.5247 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.4006, allocations: 180.3 kB / 0.5249 GB, free: 28.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.58e-05/0.4006, allocations: 107 kB / 0.525 GB, free: 28.54 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.24e-05/0.4007, allocations: 132.5 kB / 0.5251 GB, free: 28.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4007, allocations: 3.938 kB / 0.5251 GB, free: 28.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002522/0.4009, allocations: 19.03 kB / 0.5252 GB, free: 28.43 MB / 378.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.000562/0.4015, allocations: 0.9095 MB / 0.526 GB, free: 27.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001265/0.4016, allocations: 78.91 kB / 0.5261 GB, free: 27.55 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4016, allocations: 0 / 0.5261 GB, free: 27.55 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.302e-06/0.4016, allocations: 0 / 0.5261 GB, free: 27.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.402, allocations: 0.5294 MB / 0.5266 GB, free: 27.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008264/0.4028, allocations: 0.7876 MB / 0.5274 GB, free: 26.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001409/0.403, allocations: 0.7037 MB / 0.5281 GB, free: 25.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.221e-05/0.403, allocations: 26.72 kB / 0.5281 GB, free: 25.62 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4031, allocations: 0 / 0.5281 GB, free: 25.62 MB / 378.7 MB Error: Error building simulator. Build log: clang++ -std=c++14 -Winvalid-pch -O2 -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/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16Initialize.cpp:266:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType tmp1; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16Initialize.cpp:267:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT1, tmp1); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16FMU.cpp:11: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to local temporary object [-Wreturn-stack-address] virtual const string& getVariableFilter() { return "";} ^~ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16FMU.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) { ^ 2 warnings and 2 errors generated. make: *** [: OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test16CalcHelperMain.o] Error 1