Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Utilities.TestReadFile.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.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFile",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestReadFile,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFile",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.00149/0.001489, allocations: 181.3 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.111/2.111, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001122/0.001122, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2871/0.2871, allocations: 43.5 MB / 359.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.373e-05/3.384e-05, allocations: 4 kB / 425.4 MB, free: 23.29 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1306, allocations: 58.85 MB / 484.2 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6075/0.7382, allocations: 84.47 MB / 0.5554 GB, free: 2.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.7384, allocations: 67.02 kB / 0.5554 GB, free: 2.645 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00584/0.7443, allocations: 1.726 MB / 0.5571 GB, free: 1.395 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.484e-06/0.7443, allocations: 4 kB / 0.5571 GB, free: 1.391 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.063e-06/0.7444, allocations: 3.609 kB / 0.5571 GB, free: 1.391 MB / 362.7 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.0002579/0.7446, allocations: 356.1 kB / 0.5575 GB, free: 0.9961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.723e-05/0.7447, allocations: 12.03 kB / 0.5575 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.671e-05/0.7447, allocations: 30.56 kB / 0.5575 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.461e-05/0.7448, allocations: 0.875 kB / 0.5575 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001022/0.7449, allocations: 163 kB / 0.5577 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.7449, allocations: 0 / 0.5577 GB, free: 0.7461 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.258e-05/0.7449, allocations: 4 kB / 0.5577 GB, free: 0.7422 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.561e-05/0.745, allocations: 37.62 kB / 0.5577 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.745, allocations: 0 / 0.5577 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.745, allocations: 0 / 0.5577 GB, free: 0.6992 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.7451, allocations: 4 kB / 0.5577 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.977e-05/0.7451, allocations: 3.812 kB / 0.5577 GB, free: 0.6953 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001064/0.7452, allocations: 145.6 kB / 0.5578 GB, free: 0.5039 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.748e-05/0.7453, allocations: 18.61 kB / 0.5579 GB, free: 488 kB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.548e-05/0.7453, allocations: 8.859 kB / 0.5579 GB, free: 476 kB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.366e-06/0.7453, allocations: 0 / 0.5579 GB, free: 476 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.7453, allocations: 75.81 kB / 0.5579 GB, free: 388 kB / 362.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.7454, allocations: 0 / 0.5579 GB, free: 388 kB / 362.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001457/0.7455, allocations: 55.41 kB / 0.558 GB, free: 320 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.7456, allocations: 81.11 kB / 0.5581 GB, free: 220 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.825e-05/0.7456, allocations: 87.56 kB / 0.5582 GB, free: 128 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.347e-06/0.7457, allocations: 29.86 kB / 0.5582 GB, free: 92 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.439e-05/0.7457, allocations: 150.6 kB / 0.5583 GB, free: 15.94 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.754e-05/0.7458, allocations: 3.875 kB / 0.5583 GB, free: 15.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.7458, allocations: 0 / 0.5583 GB, free: 15.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001394/0.7459, allocations: 318.8 kB / 0.5586 GB, free: 15.62 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.159e-05/0.746, allocations: 0 / 0.5586 GB, free: 15.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.344e-06/0.746, allocations: 0 / 0.5586 GB, free: 15.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.215e-05/0.746, allocations: 33.66 kB / 0.5587 GB, free: 15.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.746, allocations: 8 kB / 0.5587 GB, free: 15.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.372e-05/0.7461, allocations: 63.34 kB / 0.5587 GB, free: 15.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.297e-05/0.7462, allocations: 29.7 kB / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.7462, allocations: 3.984 kB / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.7462, allocations: 3.938 kB / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.332e-06/0.7463, allocations: 0 / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.7463, allocations: 0.625 kB / 0.5588 GB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.863e-05/0.7463, allocations: 4 kB / 0.5588 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.907e-06/0.7463, allocations: 0 / 0.5588 GB, free: 15.45 MB / 378.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 (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 0.0001044/0.7464, allocations: 138.6 kB / 0.5589 GB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.25e-05/0.7465, allocations: 4 kB / 0.5589 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.642e-05/0.7465, allocations: 3.125 kB / 0.5589 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.7465, allocations: 0 / 0.5589 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.7465, allocations: 0 / 0.5589 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.7465, allocations: 0 / 0.5589 GB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001228/0.7467, allocations: 145.7 kB / 0.5591 GB, free: 15.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.7467, allocations: 7.953 kB / 0.5591 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-06/0.7467, allocations: 0 / 0.5591 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.7467, allocations: 0 / 0.5591 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.7467, allocations: 0 / 0.5591 GB, free: 15.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.7467, allocations: 4 kB / 0.5591 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.7467, allocations: 0 / 0.5591 GB, free: 15.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.7469, allocations: 94.58 kB / 0.5592 GB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.51e-05/0.7469, allocations: 81.69 kB / 0.5592 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.962e-05/0.747, allocations: 4 kB / 0.5592 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.477e-05/0.747, allocations: 0 / 0.5592 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.882e-05/0.747, allocations: 0 / 0.5592 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.542e-06/0.747, allocations: 8.016 kB / 0.5593 GB, free: 14.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 3.954e-05/0.7471, allocations: 75.28 kB / 0.5593 GB, free: 14.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.7471, allocations: 4 kB / 0.5593 GB, free: 14.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002949/0.7474, allocations: 23.86 kB / 0.5593 GB, free: 14.77 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: 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.0008486/0.7483, allocations: 0.7272 MB / 0.5601 GB, free: 14.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.7484, allocations: 55.41 kB / 0.5601 GB, free: 13.97 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.7484, allocations: 0 / 0.5601 GB, free: 13.97 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.211e-05/0.7485, allocations: 67.14 kB / 0.5602 GB, free: 13.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001112/0.7486, allocations: 4 kB / 0.5602 GB, free: 13.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003469/0.749, allocations: 112.3 kB / 0.5603 GB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.7493, allocations: 0.6692 MB / 0.5609 GB, free: 13.05 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.7493, allocations: 11.44 kB / 0.561 GB, free: 13.04 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.7493, allocations: 0 / 0.561 GB, free: 13.04 MB / 378.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 OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:29: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitializeParameter.cpp:15:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp14; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitializeParameter.cpp:16: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", tmp14); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:31: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:95:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp10; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitialize.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/ReadStreamTestFile.txt", tmp10); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:172:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp13; ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:173:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT1, tmp13); ~~~~~~~~~~ ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:34: ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFile.cpp:620:12: error: use of undeclared identifier 'tmp1' _file_ = tmp1; ^ In file included from OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileFMU.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 'OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileCalcHelperMain.o] Error 1