Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTable2Ds.Test15.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.Test15,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTable2Ds.Test15,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000999/0.0009989, allocations: 199.6 kB / 16.1 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008562/0.0008563, allocations: 96.05 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3536/0.3536, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3251, allocations: 62.96 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTable2Ds.Test15): time 0.001908/0.3271, allocations: 1.345 MB / 0.5173 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007404/0.3278, allocations: 0.6563 MB / 0.5179 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.504e-05/0.3279, allocations: 0 / 0.5179 GB, free: 35.63 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002344/0.3281, allocations: 34.12 kB / 0.5179 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.3283, allocations: 30.27 kB / 0.518 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.597e-06/0.3283, allocations: 0 / 0.518 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.3284, allocations: 45.95 kB / 0.518 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.63e-05/0.3285, allocations: 2.844 kB / 0.518 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.415e-05/0.3285, allocations: 9.938 kB / 0.518 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.252e-05/0.3286, allocations: 31.45 kB / 0.5181 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/0.3286, allocations: 0 / 0.5181 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.026e-05/0.3287, allocations: 9.625 kB / 0.5181 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.326e-05/0.3287, allocations: 15.22 kB / 0.5181 GB, free: 35.56 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.031e-05/0.3288, allocations: 46.95 kB / 0.5181 GB, free: 35.52 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001017/0.3289, allocations: 55.17 kB / 0.5182 GB, free: 35.5 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.274e-06/0.3289, allocations: 2.719 kB / 0.5182 GB, free: 35.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3289, allocations: 0 / 0.5182 GB, free: 35.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.3289, allocations: 0 / 0.5182 GB, free: 35.5 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.0003426/0.3293, allocations: 348.2 kB / 0.5185 GB, free: 35.13 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.3293, allocations: 12.91 kB / 0.5185 GB, free: 35.12 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.275e-05/0.3294, allocations: 36.66 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.3294, allocations: 12.78 kB / 0.5186 GB, free: 35.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.3295, allocations: 171.2 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.3295, allocations: 3.344 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.367e-06/0.3296, allocations: 3.344 kB / 0.5187 GB, free: 34.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.3297, allocations: 125 kB / 0.5189 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.3298, allocations: 7.875 kB / 0.5189 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.3298, allocations: 0 / 0.5189 GB, free: 34.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.748e-05/0.3298, allocations: 22.27 kB / 0.5189 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.772e-05/0.3299, allocations: 47.92 kB / 0.5189 GB, free: 34.75 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004772/0.3304, allocations: 0.8975 MB / 0.5198 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.86e-05/0.3305, allocations: 171.2 kB / 0.52 GB, free: 33.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.26e-05/0.3305, allocations: 88.11 kB / 0.5201 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.3305, allocations: 83.27 kB / 0.5201 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.267e-05/0.3305, allocations: 113.5 kB / 0.5203 GB, free: 33.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.3305, allocations: 3.938 kB / 0.5203 GB, free: 33.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 6.139e-05/0.3306, allocations: 32.33 kB / 0.5203 GB, free: 33.35 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.3306, allocations: 126.7 kB / 0.5204 GB, free: 33.21 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001363/0.3308, allocations: 181.6 kB / 0.5206 GB, free: 33.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.44e-06/0.3308, allocations: 25.7 kB / 0.5206 GB, free: 33.05 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.3309, allocations: 155.8 kB / 0.5208 GB, free: 32.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.32e-06/0.3309, allocations: 7.422 kB / 0.5208 GB, free: 32.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.651e-06/0.3309, allocations: 2.906 kB / 0.5208 GB, free: 32.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.365e-05/0.3309, allocations: 317.8 kB / 0.5211 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.936e-05/0.331, allocations: 35.78 kB / 0.5211 GB, free: 32.58 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.271e-05/0.3311, allocations: 158 kB / 0.5212 GB, free: 32.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001514/0.3312, allocations: 206.8 kB / 0.5214 GB, free: 32.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3313, allocations: 2.406 kB / 0.5214 GB, free: 32.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002543/0.3315, allocations: 196.8 kB / 0.5216 GB, free: 32.09 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.3315, allocations: 5.875 kB / 0.5216 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3315, allocations: 9.219 kB / 0.5217 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.3316, allocations: 3.75 kB / 0.5217 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.3317, allocations: 42.86 kB / 0.5217 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.408e-06/0.3317, allocations: 9.719 kB / 0.5217 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.533e-05/0.3318, allocations: 16.12 kB / 0.5217 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.255e-05/0.3318, allocations: 8.438 kB / 0.5217 GB, free: 32.07 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 9.335e-05/0.3319, allocations: 222 kB / 0.5219 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.835e-05/0.332, allocations: 115 kB / 0.5221 GB, free: 31.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.332, allocations: 110.6 kB / 0.5222 GB, free: 31.64 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.31e-05/0.332, allocations: 184.2 kB / 0.5223 GB, free: 31.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.151e-05/0.3321, allocations: 182.5 kB / 0.5225 GB, free: 31.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-05/0.3321, allocations: 184.2 kB / 0.5227 GB, free: 31.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000151/0.3323, allocations: 423.7 kB / 0.5231 GB, free: 30.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/0.3323, allocations: 104.9 kB / 0.5232 GB, free: 30.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.844e-05/0.3323, allocations: 104 kB / 0.5233 GB, free: 30.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.974e-05/0.3323, allocations: 179.5 kB / 0.5235 GB, free: 30.24 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.28e-05/0.3324, allocations: 184.2 kB / 0.5236 GB, free: 30.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.931e-05/0.3324, allocations: 187.2 kB / 0.5238 GB, free: 29.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.807e-05/0.3325, allocations: 180.2 kB / 0.524 GB, free: 29.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.405e-05/0.3325, allocations: 309 kB / 0.5243 GB, free: 29.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.86e-05/0.3326, allocations: 192.9 kB / 0.5245 GB, free: 29.16 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.281e-05/0.3326, allocations: 186.9 kB / 0.5246 GB, free: 28.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.96e-05/0.3327, allocations: 104.9 kB / 0.5247 GB, free: 28.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.36e-05/0.3327, allocations: 176.3 kB / 0.5249 GB, free: 28.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.807e-05/0.3328, allocations: 103.8 kB / 0.525 GB, free: 28.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.41e-05/0.3328, allocations: 131.5 kB / 0.5251 GB, free: 28.49 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3328, allocations: 3.938 kB / 0.5251 GB, free: 28.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002566/0.3331, allocations: 19.5 kB / 0.5252 GB, free: 28.48 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.0006021/0.3337, allocations: 0.9245 MB / 0.5261 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001272/0.3339, allocations: 75.42 kB / 0.5261 GB, free: 27.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3339, allocations: 0 / 0.5261 GB, free: 27.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.3339, allocations: 0 / 0.5261 GB, free: 27.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002973/0.3342, allocations: 0.5214 MB / 0.5266 GB, free: 27.06 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008756/0.3351, allocations: 0.791 MB / 0.5274 GB, free: 26.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001447/0.3352, allocations: 0.7008 MB / 0.5281 GB, free: 25.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.717e-05/0.3353, allocations: 32.53 kB / 0.5281 GB, free: 25.65 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.3353, allocations: 0 / 0.5281 GB, free: 25.65 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_Test15CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15CalcHelperMain.cpp:31: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15Initialize.cpp:266:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType tmp1; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15Initialize.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_Test15CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15FMU.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_Test15CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTable2Ds_Test15FMU.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_Test15CalcHelperMain.o] Error 1