Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 113.4 kB / 16.43 MB, free: 6.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 189.9 kB / 17.36 MB, free: 5.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005382/0.005382, allocations: 1.009 MB / 292.2 MB, free: 13.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.755e-05/1.757e-05, allocations: 2.281 kB / 403.6 MB, free: 31.76 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001554/0.001579, allocations: 1.372 MB / 404.9 MB, free: 30.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007186/0.002309, allocations: 0.8208 MB / 405.8 MB, free: 29.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.243e-05/0.002342, allocations: 0 / 405.8 MB, free: 29.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.002368, allocations: 0 / 405.8 MB, free: 29.55 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001543/0.002528, allocations: 15.94 kB / 405.8 MB, free: 29.54 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001847/0.002726, allocations: 43.83 kB / 405.8 MB, free: 29.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.963e-05/0.002802, allocations: 31.91 kB / 405.9 MB, free: 29.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.524e-05/0.002843, allocations: 3.984 kB / 405.9 MB, free: 29.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.535e-05/0.002872, allocations: 7.938 kB / 405.9 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.008e-05/0.002967, allocations: 21.12 kB / 405.9 MB, free: 29.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.978e-06/0.002983, allocations: 0 / 405.9 MB, free: 29.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.396e-05/0.003082, allocations: 43.95 kB / 405.9 MB, free: 29.39 MB / 302.1 MB Notification: Performance of combineBinaries: time 3.467e-05/0.003124, allocations: 39.5 kB / 406 MB, free: 29.35 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 6.994e-06/0.003136, allocations: 31.56 kB / 406 MB, free: 29.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 1.532e-05/0.003156, allocations: 3.938 kB / 406 MB, free: 29.31 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.934e-06/0.003168, allocations: 4 kB / 406 MB, free: 29.31 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 (2) * Number of variables: 3 (3) Notification: Performance of Bindings: time 0.0002012/0.003373, allocations: 260.4 kB / 406.3 MB, free: 28.95 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.849e-06/0.003389, allocations: 3.953 kB / 406.3 MB, free: 28.95 MB / 302.1 MB Notification: Performance of Early Inline: time 5.814e-05/0.003451, allocations: 88.33 kB / 406.4 MB, free: 28.84 MB / 302.1 MB Notification: Performance of simplify1: time 1.028e-05/0.003466, allocations: 4 kB / 406.4 MB, free: 28.83 MB / 302.1 MB Notification: Performance of Alias: time 3.322e-05/0.003504, allocations: 52.62 kB / 406.4 MB, free: 28.74 MB / 302.1 MB Notification: Performance of simplify2: time 2.545e-06/0.003511, allocations: 3.984 kB / 406.4 MB, free: 28.74 MB / 302.1 MB Notification: Performance of Events: time 5.473e-05/0.003569, allocations: 19.98 kB / 406.4 MB, free: 28.72 MB / 302.1 MB Notification: Performance of Detect States: time 4.667e-05/0.003622, allocations: 40.19 kB / 406.5 MB, free: 28.66 MB / 302.1 MB Notification: Performance of Partitioning: time 4.285e-05/0.00367, allocations: 36.05 kB / 406.5 MB, free: 28.62 MB / 302.1 MB Notification: Performance of Causalize: time 0.0001386/0.003814, allocations: 56.11 kB / 406.6 MB, free: 28.56 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 4.786e-05/0.00387, allocations: 96.33 kB / 406.7 MB, free: 28.44 MB / 302.1 MB Notification: Performance of Inline: time 0.000107/0.003982, allocations: 153 kB / 406.8 MB, free: 28.25 MB / 302.1 MB Notification: Performance of Partitioning: time 1.005e-05/0.003999, allocations: 16.12 kB / 406.8 MB, free: 28.23 MB / 302.1 MB Notification: Performance of Cleanup: time 8.786e-06/0.004012, allocations: 7.938 kB / 406.8 MB, free: 28.22 MB / 302.1 MB Notification: Performance of Causalize: time 0.0002281/0.004244, allocations: 226.6 kB / 407 MB, free: 27.99 MB / 302.1 MB Notification: Performance of Tearing: time 7.344e-06/0.004261, allocations: 3.938 kB / 407.1 MB, free: 27.99 MB / 302.1 MB Notification: Performance of Initialization: time 2.8e-07/0.004265, allocations: 0 / 407.1 MB, free: 27.99 MB / 302.1 MB Notification: Performance of Tearing: time 8.12e-07/0.004271, allocations: 0 / 407.1 MB, free: 27.99 MB / 302.1 MB Notification: Performance of Categorize: time 5.03e-06/0.004279, allocations: 4 kB / 407.1 MB, free: 27.98 MB / 302.1 MB Notification: Performance of Solve: time 2.952e-05/0.004313, allocations: 7.984 kB / 407.1 MB, free: 27.98 MB / 302.1 MB Notification: Performance of Jacobian: time 2.595e-06/0.00432, allocations: 3.984 kB / 407.1 MB, free: 27.97 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 3 (3) {y_start, y_end, $TEV_1} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 2 (scalar:2, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 6 (scalar:6, array:0, record:0) * Number of multi strong components: ............ 1 (algorithm:1, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 2.512e-05/0.004349, allocations: 30.34 kB / 407.1 MB, free: 27.95 MB / 302.1 MB Notification: Performance of SimCode: time 0.0005474/0.0049, allocations: 0.9026 MB / 408 MB, free: 27.06 MB / 302.1 MB Notification: Performance of Templates: time 0.002351/0.007262, allocations: 0.6138 MB / 408.6 MB, free: 26.45 MB / 302.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=KeyWordIO_KeyWordIO_Examples_WriteRealVariables -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o KeyWordIO_KeyWordIO.Examples.WriteRealVariables.o KeyWordIO_KeyWordIO.Examples.WriteRealVariables.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=KeyWordIO_KeyWordIO_Examples_WriteRealVariables -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.o KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:33:55: error: use of undeclared identifier '_OMC_LIT0' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT0)); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:51:62: error: use of undeclared identifier '_OMC_LIT1' tmpMeta4 = stringAppend(string_array_get(_name, 1, _k),_OMC_LIT1); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:92:31: error: use of undeclared identifier '_OMC_LIT2' tmpMeta1 = stringAppend(_OMC_LIT2,_fileName); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:93:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT3); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:94:40: error: use of undeclared identifier '_OMC_LIT5' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT5); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:101:33: error: use of undeclared identifier '_OMC_LIT2' tmpMeta4 = stringAppend(_OMC_LIT2,_fileName); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:102:42: error: use of undeclared identifier '_OMC_LIT3' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT3); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:103:42: error: use of undeclared identifier '_OMC_LIT4' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT4); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:114:3: warning: implicit declaration of function 'ModelicaInternal_removeFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_removeFile(MMC_STRINGDATA(_fileName)); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:123:19: warning: implicit declaration of function 'ModelicaInternal_stat' is invalid in C99 [-Wimplicit-function-declaration] _fileType_ext = ModelicaInternal_stat(MMC_STRINGDATA(_name)); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:138:3: warning: implicit declaration of function 'ModelicaStreams_closeFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStreams_closeFile(MMC_STRINGDATA(_fileName)); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:144:3: warning: implicit declaration of function 'ModelicaError' is invalid in C99 [-Wimplicit-function-declaration] ModelicaError(MMC_STRINGDATA(_string)); ^ KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.c:150:3: warning: implicit declaration of function 'ModelicaInternal_print' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_print(MMC_STRINGDATA(_string), MMC_STRINGDATA(_fileName)); ^ 5 warnings and 8 errors generated. make: *** [: KeyWordIO_KeyWordIO.Examples.WriteRealVariables_functions.o] Error 1