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.001455/0.001455, allocations: 177.8 kB / 8.36 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.171/2.171, 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.001062/0.001062, allocations: 91.14 kB / 262.1 MB, free: 13.86 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.2859/0.2859, allocations: 43.49 MB / 353.6 MB, free: 2.262 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 1.891e-05/1.901e-05, allocations: 4.219 kB / 418.3 MB, free: 40.96 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4345/0.4346, allocations: 58.86 MB / 477.2 MB, free: 5.152 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.175/0.6096, allocations: 83.81 MB / 0.5478 GB, free: 15.4 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002444/0.6099, allocations: 63.97 kB / 0.5479 GB, free: 15.34 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006396/0.6163, allocations: 1.629 MB / 0.5495 GB, free: 13.71 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.6164, allocations: 0 / 0.5495 GB, free: 13.71 MB / 395.1 MB Notification: Performance of Transformations before backend: time 8.035e-06/0.6164, allocations: 0 / 0.5495 GB, free: 13.71 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.0003411/0.6167, allocations: 355.2 kB / 0.5498 GB, free: 13.32 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.054e-05/0.6168, allocations: 12.03 kB / 0.5498 GB, free: 13.3 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.6168, allocations: 4 kB / 0.5498 GB, free: 13.3 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001407/0.617, allocations: 163 kB / 0.55 GB, free: 13.1 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.617, allocations: 0 / 0.55 GB, free: 13.1 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.955e-06/0.617, allocations: 0 / 0.55 GB, free: 13.1 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.827e-05/0.6171, allocations: 4 kB / 0.55 GB, free: 13.1 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.044e-05/0.6171, allocations: 37.67 kB / 0.55 GB, free: 13.05 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.6172, allocations: 3.938 kB / 0.55 GB, free: 13.05 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.338e-06/0.6172, allocations: 0 / 0.55 GB, free: 13.05 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.6172, allocations: 0 / 0.55 GB, free: 13.05 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001402/0.6173, allocations: 130.2 kB / 0.5502 GB, free: 12.89 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.171e-05/0.6174, allocations: 14.58 kB / 0.5502 GB, free: 12.86 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.622e-05/0.6174, allocations: 4.859 kB / 0.5502 GB, free: 12.86 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.315e-06/0.6174, allocations: 4.094 kB / 0.5502 GB, free: 12.85 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.331e-05/0.6175, allocations: 64.27 kB / 0.5502 GB, free: 12.77 MB / 395.1 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.6175, allocations: 0 / 0.5502 GB, free: 12.77 MB / 395.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001932/0.6177, allocations: 37.69 kB / 0.5503 GB, free: 12.73 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.383e-05/0.6178, allocations: 81.05 kB / 0.5504 GB, free: 12.63 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.26e-05/0.6179, allocations: 87.59 kB / 0.5504 GB, free: 12.54 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/0.6179, allocations: 25.7 kB / 0.5505 GB, free: 12.51 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.079e-05/0.618, allocations: 154.7 kB / 0.5506 GB, free: 12.36 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.618, allocations: 0 / 0.5506 GB, free: 12.36 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.683e-06/0.618, allocations: 4 kB / 0.5506 GB, free: 12.36 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.6182, allocations: 315.4 kB / 0.5509 GB, free: 12.04 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.395e-05/0.6182, allocations: 0 / 0.5509 GB, free: 12.04 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.653e-06/0.6182, allocations: 0 / 0.5509 GB, free: 12.04 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.99e-05/0.6182, allocations: 7.984 kB / 0.5509 GB, free: 12.03 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.6183, allocations: 0 / 0.5509 GB, free: 12.03 MB / 395.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001004/0.6184, allocations: 41.66 kB / 0.551 GB, free: 11.98 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.912e-05/0.6184, allocations: 33.7 kB / 0.551 GB, free: 11.95 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.6184, allocations: 4 kB / 0.551 GB, free: 11.94 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.6185, allocations: 7.922 kB / 0.551 GB, free: 11.93 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.403e-06/0.6185, allocations: 0 / 0.551 GB, free: 11.93 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.6185, allocations: 0 / 0.551 GB, free: 11.93 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.288e-05/0.6185, allocations: 0 / 0.551 GB, free: 11.93 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.069e-05/0.6185, allocations: 4 kB / 0.551 GB, free: 11.93 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 9.56e-05/0.6186, allocations: 126.7 kB / 0.5511 GB, free: 11.79 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001013/0.6188, allocations: 57.61 kB / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-06/0.6188, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.516e-05/0.6188, allocations: 3.75 kB / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.6188, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.6188, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.6188, allocations: 0 / 0.5512 GB, free: 11.73 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.619, allocations: 126.2 kB / 0.5513 GB, free: 11.57 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.619, allocations: 0 / 0.5513 GB, free: 11.57 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-06/0.619, allocations: 7.938 kB / 0.5513 GB, free: 11.56 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.195e-06/0.619, allocations: 0 / 0.5513 GB, free: 11.56 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.619, allocations: 0 / 0.5513 GB, free: 11.56 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.619, allocations: 4.031 kB / 0.5513 GB, free: 11.55 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.584e-06/0.619, allocations: 0 / 0.5513 GB, free: 11.55 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.6192, allocations: 65.7 kB / 0.5514 GB, free: 11.47 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.22e-05/0.6192, allocations: 81.09 kB / 0.5515 GB, free: 11.38 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.01e-05/0.6193, allocations: 7.953 kB / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.791e-05/0.6193, allocations: 0 / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.155e-05/0.6193, allocations: 0 / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.6194, allocations: 32 / 0.5515 GB, free: 11.37 MB / 395.1 MB Notification: Performance of sorting global known variables: time 4.51e-05/0.6194, allocations: 79.28 kB / 0.5515 GB, free: 11.29 MB / 395.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6194, allocations: 0 / 0.5515 GB, free: 11.29 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.000318/0.6198, allocations: 23.98 kB / 0.5516 GB, free: 11.27 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.0009222/0.6207, allocations: 0.688 MB / 0.5522 GB, free: 10.55 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.6209, allocations: 59.34 kB / 0.5523 GB, free: 10.48 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.6209, allocations: 4.062 kB / 0.5523 GB, free: 10.48 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 4.877e-05/0.6209, allocations: 55.41 kB / 0.5524 GB, free: 10.41 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001286/0.6211, allocations: 6.625 kB / 0.5524 GB, free: 10.41 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003735/0.6215, allocations: 111.4 kB / 0.5525 GB, free: 10.25 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.6218, allocations: 0.6767 MB / 0.5531 GB, free: 9.551 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.01e-05/0.6218, allocations: 11.44 kB / 0.5531 GB, free: 9.539 MB / 395.1 MB Notification: Performance of SimCode: time 9.21e-07/0.6218, allocations: 0 / 0.5531 GB, free: 9.539 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_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 */ tmp13; ^ ./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", tmp13); ~~~~~~~~~~ ^ 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 */ tmp9; ^ ./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", tmp9); ~~~~~~~~~~ ^ ./OMCppModelicaTest_3_2_3_cpp_ModelicaTest_Utilities_TestReadFileInitialize.cpp:172:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp12; ^ ./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, tmp12); ~~~~~~~~~~ ^ 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/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 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