Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestFiles.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFiles",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestFiles,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFiles",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.002382/0.002382, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.193/2.193, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001145/0.001144, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.305/0.305, allocations: 43.48 MB / 353.6 MB, free: 2.285 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.032e-05/2.03e-05, allocations: 0 / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5201/0.5202, allocations: 58.85 MB / 477.2 MB, free: 5.164 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1791/0.6993, allocations: 85.7 MB / 0.5497 GB, free: 13.52 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002308/0.6996, allocations: 67.47 kB / 0.5497 GB, free: 13.46 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.02756/0.7272, allocations: 5.964 MB / 0.5556 GB, free: 7.5 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.7272, allocations: 0 / 0.5556 GB, free: 7.5 MB / 395.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.7273, allocations: 7.938 kB / 0.5556 GB, free: 7.492 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005182/0.7278, allocations: 416.1 kB / 0.556 GB, free: 7.035 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.7279, allocations: 8.031 kB / 0.556 GB, free: 7.027 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.709e-05/0.7279, allocations: 0 / 0.556 GB, free: 7.027 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.7281, allocations: 171 kB / 0.5561 GB, free: 6.82 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.333e-05/0.7281, allocations: 0 / 0.5561 GB, free: 6.82 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.348e-05/0.7281, allocations: 0 / 0.5561 GB, free: 6.82 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.983e-05/0.7281, allocations: 0 / 0.5561 GB, free: 6.82 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.053e-05/0.7282, allocations: 41.62 kB / 0.5562 GB, free: 6.773 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.7282, allocations: 0 / 0.5562 GB, free: 6.773 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.7283, allocations: 0 / 0.5562 GB, free: 6.773 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.7283, allocations: 3.984 kB / 0.5562 GB, free: 6.77 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001291/0.7284, allocations: 130.2 kB / 0.5563 GB, free: 6.605 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.535e-05/0.7285, allocations: 22.55 kB / 0.5563 GB, free: 6.574 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.7285, allocations: 8.859 kB / 0.5563 GB, free: 6.562 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.646e-06/0.7285, allocations: 0 / 0.5563 GB, free: 6.562 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.987e-05/0.7286, allocations: 64.33 kB / 0.5564 GB, free: 6.484 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.482e-06/0.7286, allocations: 0 / 0.5564 GB, free: 6.484 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001784/0.7288, allocations: 29.7 kB / 0.5564 GB, free: 6.449 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.636e-05/0.7288, allocations: 81.11 kB / 0.5565 GB, free: 6.352 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.013e-05/0.7289, allocations: 92.98 kB / 0.5566 GB, free: 6.254 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.729, allocations: 25.7 kB / 0.5566 GB, free: 6.223 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.259e-05/0.729, allocations: 150.6 kB / 0.5568 GB, free: 6.074 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.993e-05/0.7291, allocations: 8.781 kB / 0.5568 GB, free: 6.066 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.921e-06/0.7291, allocations: 0 / 0.5568 GB, free: 6.066 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.7292, allocations: 314.8 kB / 0.5571 GB, free: 5.75 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-06/0.7292, allocations: 0 / 0.5571 GB, free: 5.75 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.123e-06/0.7292, allocations: 0 / 0.5571 GB, free: 5.75 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.487e-05/0.7293, allocations: 4 kB / 0.5571 GB, free: 5.746 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.7293, allocations: 0 / 0.5571 GB, free: 5.746 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.881e-05/0.7294, allocations: 41.64 kB / 0.5571 GB, free: 5.699 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.7294, allocations: 29.7 kB / 0.5571 GB, free: 5.664 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.7295, allocations: 8.094 kB / 0.5572 GB, free: 5.656 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.825e-05/0.7295, allocations: 0 / 0.5572 GB, free: 5.656 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-06/0.7295, allocations: 0 / 0.5572 GB, free: 5.656 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.539e-06/0.7295, allocations: 0 / 0.5572 GB, free: 5.656 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.786e-05/0.7295, allocations: 4 kB / 0.5572 GB, free: 5.652 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.066e-06/0.7296, allocations: 0 / 0.5572 GB, free: 5.652 MB / 395.1 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 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.88e-05/0.7297, allocations: 130.7 kB / 0.5573 GB, free: 5.512 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.915e-05/0.7298, allocations: 53.48 kB / 0.5573 GB, free: 5.453 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.356e-06/0.7298, allocations: 0 / 0.5573 GB, free: 5.453 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.567e-05/0.7298, allocations: 7.781 kB / 0.5573 GB, free: 5.445 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.7298, allocations: 3.938 kB / 0.5573 GB, free: 5.441 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.7298, allocations: 4 kB / 0.5573 GB, free: 5.438 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.7299, allocations: 3.938 kB / 0.5573 GB, free: 5.434 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.336e-05/0.73, allocations: 130.2 kB / 0.5575 GB, free: 5.27 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.73, allocations: 0 / 0.5575 GB, free: 5.27 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.73, allocations: 0 / 0.5575 GB, free: 5.27 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.405e-06/0.73, allocations: 0 / 0.5575 GB, free: 5.27 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.336e-06/0.73, allocations: 4 kB / 0.5575 GB, free: 5.266 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.73, allocations: 0 / 0.5575 GB, free: 5.266 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.554e-06/0.73, allocations: 0 / 0.5575 GB, free: 5.266 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.7302, allocations: 69.12 kB / 0.5575 GB, free: 5.18 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.351e-05/0.7302, allocations: 81.06 kB / 0.5576 GB, free: 5.082 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.7302, allocations: 0 / 0.5576 GB, free: 5.082 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.781e-05/0.7303, allocations: 0 / 0.5576 GB, free: 5.082 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.987e-05/0.7303, allocations: 3.938 kB / 0.5576 GB, free: 5.078 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.398e-06/0.7303, allocations: 4 kB / 0.5576 GB, free: 5.074 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.156e-05/0.7304, allocations: 83.31 kB / 0.5577 GB, free: 4.992 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.7304, allocations: 0 / 0.5577 GB, free: 4.992 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0004968/0.7309, allocations: 75.97 kB / 0.5578 GB, free: 4.918 MB / 395.1 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 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001227/0.7321, allocations: 0.8426 MB / 0.5586 GB, free: 4.07 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001098/0.7323, allocations: 59.41 kB / 0.5587 GB, free: 4 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.7323, allocations: 0 / 0.5587 GB, free: 4 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 3.787e-05/0.7323, allocations: 55.41 kB / 0.5587 GB, free: 3.934 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.7325, allocations: 0 / 0.5587 GB, free: 3.934 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004925/0.733, allocations: 155.4 kB / 0.5589 GB, free: 3.738 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002353/0.7332, allocations: 0.6806 MB / 0.5595 GB, free: 3.031 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.906e-05/0.7333, allocations: 11.38 kB / 0.5595 GB, free: 3.02 MB / 395.1 MB Notification: Performance of SimCode: time 8.02e-07/0.7333, allocations: 0 / 0.5595 GB, free: 3.02 MB / 395.1 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/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:15:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp44; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:16:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp45; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:17:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data", tmp44); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitializeParameter.cpp:19:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt", tmp45); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp38; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:96:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data", tmp38); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:98:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp39; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:99:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt", tmp39); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:176:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp42; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:177:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT17, tmp42); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:187:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp43; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesInitialize.cpp:188:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT16, tmp43); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFiles.cpp:621:15: error: use of undeclared identifier 'tmp1' _dirPath_ = tmp1; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFiles.cpp:622:16: error: use of undeclared identifier 'tmp2' _filePath_ = tmp2; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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 14 errors generated. : recipe for target 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestFilesCalcHelperMain.o] Error 1