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.001649/0.001654, allocations: 187.7 kB / 16.4 MB, free: 5.625 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.226/2.226, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001142/0.001141, allocations: 106.8 kB / 270.9 MB, free: 13.38 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.2938/0.2938, allocations: 43.56 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000455/0.0004551, allocations: 11.98 kB / 431.5 MB, free: 20.19 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1212/0.1217, allocations: 58.86 MB / 490.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestReadFile): time 0.0006634/0.1224, allocations: 212.6 kB / 490.5 MB, free: 9.047 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001477/0.1239, allocations: 0.7341 MB / 491.3 MB, free: 8.312 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.124, allocations: 0 / 491.3 MB, free: 8.312 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.063e-05/0.124, allocations: 11.94 kB / 491.3 MB, free: 8.301 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.1242, allocations: 3.984 kB / 491.3 MB, free: 8.297 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002456/0.1244, allocations: 35.89 kB / 491.3 MB, free: 8.262 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 3.581e-05/0.1245, allocations: 8 kB / 491.3 MB, free: 8.254 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.745e-05/0.1245, allocations: 0 / 491.3 MB, free: 8.254 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.924e-05/0.1246, allocations: 0 / 491.3 MB, free: 8.254 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.1247, allocations: 11.92 kB / 491.3 MB, free: 8.242 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 8.245e-06/0.1247, allocations: 0 / 491.3 MB, free: 8.242 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000146/0.1249, allocations: 39.91 kB / 491.4 MB, free: 8.203 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.839e-06/0.1249, allocations: 3.984 kB / 491.4 MB, free: 8.199 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.801e-05/0.1249, allocations: 29.7 kB / 491.4 MB, free: 8.164 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.1251, allocations: 27.95 kB / 491.4 MB, free: 8.137 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1251, allocations: 0 / 491.4 MB, free: 8.137 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1251, allocations: 0 / 491.4 MB, free: 8.137 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.1251, allocations: 4 kB / 491.4 MB, free: 8.133 MB / 330.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.0003973/0.1255, allocations: 349.1 kB / 491.8 MB, free: 7.738 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.1256, allocations: 8.031 kB / 491.8 MB, free: 7.73 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.98e-05/0.1256, allocations: 38.5 kB / 491.8 MB, free: 7.684 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.441e-05/0.1257, allocations: 3.938 kB / 491.8 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/0.1258, allocations: 167 kB / 492 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.282e-05/0.1258, allocations: 4 kB / 492 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-06/0.1258, allocations: 0 / 492 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.663e-05/0.1259, allocations: 29.7 kB / 492 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.116e-06/0.126, allocations: 0 / 492 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.126, allocations: 0 / 492 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.126, allocations: 0 / 492 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.146e-05/0.126, allocations: 4 kB / 492 MB, free: 7.434 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.1262, allocations: 153.6 kB / 492.2 MB, free: 7.234 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.843e-05/0.1263, allocations: 22.52 kB / 492.2 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.051e-05/0.1263, allocations: 4.094 kB / 492.2 MB, free: 7.199 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.731e-05/0.1263, allocations: 56.27 kB / 492.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of pre-optimization done (n=1): time 1.493e-06/0.1263, allocations: 0 / 492.3 MB, free: 7.129 MB / 330.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002077/0.1266, allocations: 67.39 kB / 492.3 MB, free: 7.051 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.665e-05/0.1266, allocations: 77.11 kB / 492.4 MB, free: 6.957 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.962e-05/0.1267, allocations: 101.9 kB / 492.5 MB, free: 6.848 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.904e-05/0.1268, allocations: 25.7 kB / 492.5 MB, free: 6.816 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.94e-05/0.1268, allocations: 150.6 kB / 492.7 MB, free: 6.668 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.597e-05/0.1269, allocations: 0 / 492.7 MB, free: 6.668 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.1269, allocations: 0 / 492.7 MB, free: 6.668 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.127, allocations: 310.8 kB / 493 MB, free: 6.355 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.377e-05/0.127, allocations: 4 kB / 493 MB, free: 6.352 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.086e-05/0.127, allocations: 7.984 kB / 493 MB, free: 6.344 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.434e-05/0.1271, allocations: 29.84 kB / 493 MB, free: 6.309 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1271, allocations: 4 kB / 493 MB, free: 6.305 MB / 330.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001098/0.1272, allocations: 59.41 kB / 493.1 MB, free: 6.234 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.616e-05/0.1273, allocations: 37.14 kB / 493.1 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1273, allocations: 0 / 493.1 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.1273, allocations: 0 / 493.1 MB, free: 6.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.579e-06/0.1273, allocations: 3.984 kB / 493.1 MB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.1273, allocations: 0 / 493.1 MB, free: 6.191 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.699e-05/0.1274, allocations: 3.938 kB / 493.1 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.105e-05/0.1274, allocations: 0 / 493.1 MB, free: 6.188 MB / 330.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.0001124/0.1275, allocations: 155.7 kB / 493.3 MB, free: 6.02 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.1276, allocations: 3.906 kB / 493.3 MB, free: 6.016 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.554e-05/0.1276, allocations: 7.062 kB / 493.3 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.1276, allocations: 0 / 493.3 MB, free: 6.008 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.226e-05/0.1276, allocations: 4 kB / 493.3 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.1276, allocations: 0 / 493.3 MB, free: 6.004 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/0.1278, allocations: 145.7 kB / 493.4 MB, free: 5.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.1278, allocations: 3.953 kB / 493.4 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.102e-06/0.1278, allocations: 0 / 493.4 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.569e-06/0.1278, allocations: 4 kB / 493.4 MB, free: 5.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.1278, allocations: 8 kB / 493.4 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.1278, allocations: 0 / 493.4 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.1279, allocations: 0 / 493.4 MB, free: 5.797 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001407/0.128, allocations: 90.83 kB / 493.5 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.301e-05/0.1281, allocations: 85 kB / 493.6 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.1281, allocations: 0 / 493.6 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.718e-05/0.1281, allocations: 0 / 493.6 MB, free: 5.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.1282, allocations: 8.031 kB / 493.6 MB, free: 5.574 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.184e-06/0.1282, allocations: 7.922 kB / 493.6 MB, free: 5.566 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.534e-05/0.1282, allocations: 75.28 kB / 493.7 MB, free: 5.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.1282, allocations: 0 / 493.7 MB, free: 5.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000306/0.1286, allocations: 24 kB / 493.7 MB, free: 5.469 MB / 330.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.0008424/0.1294, allocations: 0.7065 MB / 494.4 MB, free: 4.742 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001175/0.1295, allocations: 63.39 kB / 494.5 MB, free: 4.668 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.1296, allocations: 64 / 494.5 MB, free: 4.668 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.96e-05/0.1296, allocations: 63.34 kB / 494.6 MB, free: 4.594 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000119/0.1298, allocations: 4 kB / 494.6 MB, free: 4.59 MB / 330.7 MB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/Resources/Data/ReadStreamTestFile.txt") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004319/0.1302, allocations: 142 kB / 494.7 MB, free: 4.402 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.1305, allocations: 0.6731 MB / 495.4 MB, free: 3.703 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.806e-05/0.1305, allocations: 11.44 kB / 495.4 MB, free: 3.691 MB / 330.7 MB Notification: Performance of SimCode: time 1.152e-06/0.1306, allocations: 0 / 495.4 MB, free: 3.691 MB / 330.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=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/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