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.001566/0.001566, allocations: 185 kB / 16.41 MB, free: 5.723 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.228/2.228, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001127/0.001127, allocations: 91.34 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5498/0.5498, allocations: 43.56 MB / 362.7 MB, free: 52.19 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004897/0.0004899, allocations: 12 kB / 431.5 MB, free: 6.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.134/0.1346, allocations: 58.84 MB / 490.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4739/0.6086, allocations: 84.56 MB / 0.5614 GB, free: 2.156 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002508/0.6089, allocations: 61.25 kB / 0.5615 GB, free: 2.098 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008555/0.6175, allocations: 1.918 MB / 0.5633 GB, free: 196 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.6175, allocations: 0 / 0.5633 GB, free: 196 kB / 378.7 MB Notification: Performance of Transformations before backend: time 7.605e-06/0.6175, allocations: 0 / 0.5633 GB, free: 196 kB / 378.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.0004167/0.618, allocations: 361.1 kB / 0.5637 GB, free: 15.79 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.713e-05/0.618, allocations: 8.031 kB / 0.5637 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.678e-05/0.6181, allocations: 34.5 kB / 0.5637 GB, free: 15.74 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.617e-05/0.6182, allocations: 7.438 kB / 0.5637 GB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001729/0.6183, allocations: 164.8 kB / 0.5639 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.6184, allocations: 1.406 kB / 0.5639 GB, free: 15.54 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.6184, allocations: 3.984 kB / 0.5639 GB, free: 15.53 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001055/0.6185, allocations: 33.69 kB / 0.5639 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.041e-05/0.6185, allocations: 6.719 kB / 0.5639 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.6186, allocations: 0 / 0.5639 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.6186, allocations: 0 / 0.5639 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.199e-05/0.6186, allocations: 1.031 kB / 0.5639 GB, free: 15.49 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001933/0.6188, allocations: 149.6 kB / 0.5641 GB, free: 15.3 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.606e-05/0.6189, allocations: 26.5 kB / 0.5641 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.6189, allocations: 0 / 0.5641 GB, free: 15.26 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.345e-05/0.619, allocations: 64.36 kB / 0.5641 GB, free: 15.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 1.773e-06/0.619, allocations: 0 / 0.5641 GB, free: 15.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002331/0.6193, allocations: 59.41 kB / 0.5642 GB, free: 15.11 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.803e-05/0.6194, allocations: 85.03 kB / 0.5643 GB, free: 15.01 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.965e-05/0.6195, allocations: 89 kB / 0.5644 GB, free: 14.92 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.6195, allocations: 25.7 kB / 0.5644 GB, free: 14.89 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.178e-05/0.6196, allocations: 154.6 kB / 0.5645 GB, free: 14.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.093e-05/0.6196, allocations: 6.281 kB / 0.5645 GB, free: 14.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.919e-06/0.6197, allocations: 1.031 kB / 0.5645 GB, free: 14.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.6198, allocations: 314.1 kB / 0.5648 GB, free: 14.42 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.332e-05/0.6199, allocations: 0 / 0.5648 GB, free: 14.42 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.049e-05/0.6199, allocations: 0 / 0.5648 GB, free: 14.42 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.94e-05/0.6199, allocations: 29.7 kB / 0.5649 GB, free: 14.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.62, allocations: 3.953 kB / 0.5649 GB, free: 14.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001359/0.6201, allocations: 67.39 kB / 0.5649 GB, free: 14.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.844e-05/0.6202, allocations: 30.56 kB / 0.565 GB, free: 14.27 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.6202, allocations: 4 kB / 0.565 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.6202, allocations: 0 / 0.565 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.21e-06/0.6202, allocations: 4 kB / 0.565 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.407e-06/0.6203, allocations: 3 kB / 0.565 GB, free: 14.26 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.337e-05/0.6203, allocations: 3.938 kB / 0.565 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.18e-05/0.6203, allocations: 0 / 0.565 GB, free: 14.25 MB / 394.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 () * Number of clocked 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.0001355/0.6205, allocations: 143.5 kB / 0.5651 GB, free: 14.1 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.304e-05/0.6205, allocations: 7.938 kB / 0.5651 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.983e-05/0.6206, allocations: 7.125 kB / 0.5651 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.6206, allocations: 0 / 0.5651 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.6206, allocations: 0 / 0.5651 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.6206, allocations: 0 / 0.5651 GB, free: 14.09 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.6208, allocations: 145.7 kB / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.78e-06/0.6208, allocations: 3.984 kB / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.907e-06/0.6208, allocations: 3.953 kB / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.6208, allocations: 0 / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.6208, allocations: 0 / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.6208, allocations: 1.484 kB / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6209, allocations: 0 / 0.5653 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001632/0.621, allocations: 94.83 kB / 0.5654 GB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.997e-05/0.6211, allocations: 81.11 kB / 0.5655 GB, free: 13.67 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.6212, allocations: 8.453 kB / 0.5655 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.279e-05/0.6212, allocations: 0 / 0.5655 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.383e-05/0.6212, allocations: 3.938 kB / 0.5655 GB, free: 13.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/0.6213, allocations: 1.875 kB / 0.5655 GB, free: 13.66 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.831e-05/0.6213, allocations: 83.31 kB / 0.5655 GB, free: 13.58 MB / 394.7 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6213, allocations: 0 / 0.5655 GB, free: 13.58 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0004617/0.6218, allocations: 16 kB / 0.5656 GB, free: 13.56 MB / 394.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) * Number of clocked states: 0 () * 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.001096/0.6229, allocations: 0.7211 MB / 0.5663 GB, free: 12.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001426/0.6231, allocations: 55.41 kB / 0.5663 GB, free: 12.78 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.6231, allocations: 0 / 0.5663 GB, free: 12.78 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 5.245e-05/0.6232, allocations: 63.28 kB / 0.5664 GB, free: 12.71 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000159/0.6234, allocations: 7.953 kB / 0.5664 GB, free: 12.7 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005245/0.6239, allocations: 148.5 kB / 0.5665 GB, free: 12.51 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.6243, allocations: 0.677 MB / 0.5672 GB, free: 11.81 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.335e-05/0.6243, allocations: 7.438 kB / 0.5672 GB, free: 11.8 MB / 394.7 MB Notification: Performance of SimCode: time 1.242e-06/0.6243, allocations: 0 / 0.5672 GB, free: 11.8 MB / 394.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