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.001153/0.001153, allocations: 106 kB / 16.42 MB, free: 6.461 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.001183/0.001183, allocations: 192.3 kB / 17.35 MB, free: 5.691 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.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.006411/0.006412, allocations: 1.005 MB / 292.2 MB, free: 13.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.354e-05/2.353e-05, allocations: 2.281 kB / 403.6 MB, free: 31.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002232/0.002264, allocations: 1.356 MB / 404.9 MB, free: 30.4 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009743/0.003252, allocations: 0.8208 MB / 405.8 MB, free: 29.57 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.467e-05/0.003299, allocations: 4 kB / 405.8 MB, free: 29.57 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.611e-05/0.003331, allocations: 3.938 kB / 405.8 MB, free: 29.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002011/0.003537, allocations: 15.91 kB / 405.8 MB, free: 29.55 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.0002914/0.00386, allocations: 43.89 kB / 405.8 MB, free: 29.51 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001052/0.003973, allocations: 27.92 kB / 405.9 MB, free: 29.48 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.004024, allocations: 0 / 405.9 MB, free: 29.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.579e-05/0.004064, allocations: 11.92 kB / 405.9 MB, free: 29.47 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.004185, allocations: 19.92 kB / 405.9 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.004203, allocations: 0 / 405.9 MB, free: 29.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000117/0.004326, allocations: 51.91 kB / 405.9 MB, free: 29.4 MB / 302.1 MB Notification: Performance of combineBinaries: time 5.108e-05/0.004384, allocations: 47.47 kB / 406 MB, free: 29.35 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 1.121e-05/0.0044, allocations: 27.56 kB / 406 MB, free: 29.32 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.848e-05/0.004434, allocations: 3.938 kB / 406 MB, free: 29.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.328e-05/0.004452, allocations: 4 kB / 406 MB, free: 29.32 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.0002507/0.004708, allocations: 248.5 kB / 406.3 MB, free: 28.97 MB / 302.1 MB Notification: Performance of FunctionAlias: time 1.56e-05/0.00473, allocations: 7.891 kB / 406.3 MB, free: 28.96 MB / 302.1 MB Notification: Performance of Early Inline: time 6.604e-05/0.0048, allocations: 84.39 kB / 406.4 MB, free: 28.86 MB / 302.1 MB Notification: Performance of simplify1: time 1.398e-05/0.00482, allocations: 4 kB / 406.4 MB, free: 28.85 MB / 302.1 MB Notification: Performance of Alias: time 4.297e-05/0.004868, allocations: 60.55 kB / 406.4 MB, free: 28.75 MB / 302.1 MB Notification: Performance of simplify2: time 2.776e-06/0.004875, allocations: 4 kB / 406.4 MB, free: 28.75 MB / 302.1 MB Notification: Performance of Detect States: time 5.034e-05/0.00493, allocations: 32.23 kB / 406.5 MB, free: 28.7 MB / 302.1 MB Notification: Performance of Events: time 8.309e-05/0.005019, allocations: 27.92 kB / 406.5 MB, free: 28.68 MB / 302.1 MB Notification: Performance of Partitioning: time 5.011e-05/0.005076, allocations: 28.06 kB / 406.5 MB, free: 28.64 MB / 302.1 MB Notification: Performance of Causalize: time 0.0001896/0.005272, allocations: 64.08 kB / 406.6 MB, free: 28.57 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 6.306e-05/0.005344, allocations: 96.33 kB / 406.7 MB, free: 28.45 MB / 302.1 MB Notification: Performance of Inline: time 0.0001406/0.00549, allocations: 148.9 kB / 406.8 MB, free: 28.27 MB / 302.1 MB Notification: Performance of Partitioning: time 1.059e-05/0.005509, allocations: 12.12 kB / 406.8 MB, free: 28.25 MB / 302.1 MB Notification: Performance of Cleanup: time 1.488e-05/0.00553, allocations: 23.84 kB / 406.8 MB, free: 28.23 MB / 302.1 MB Notification: Performance of Causalize: time 0.0002952/0.005829, allocations: 209.4 kB / 407 MB, free: 28.02 MB / 302.1 MB Notification: Performance of Tearing: time 1.183e-05/0.005852, allocations: 4.172 kB / 407.1 MB, free: 28.01 MB / 302.1 MB Notification: Performance of Initialization: time 5.61e-07/0.005858, allocations: 0 / 407.1 MB, free: 28.01 MB / 302.1 MB Notification: Performance of Tearing: time 1.813e-06/0.005865, allocations: 0 / 407.1 MB, free: 28.01 MB / 302.1 MB Notification: Performance of Categorize: time 8.235e-06/0.005877, allocations: 4 kB / 407.1 MB, free: 28.01 MB / 302.1 MB Notification: Performance of Solve: time 4.093e-05/0.005922, allocations: 19.97 kB / 407.1 MB, free: 27.99 MB / 302.1 MB Notification: Performance of Jacobian: time 3.326e-06/0.005931, allocations: 4 kB / 407.1 MB, free: 27.98 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 3.871e-05/0.005973, allocations: 36.55 kB / 407.1 MB, free: 27.96 MB / 302.1 MB Notification: Performance of SimCode: time 0.0007753/0.006754, allocations: 0.892 MB / 408 MB, free: 27.08 MB / 302.1 MB Notification: Performance of Templates: time 0.002871/0.009637, allocations: 0.6216 MB / 408.6 MB, free: 26.46 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