Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000958/0.0009581, allocations: 114.8 kB / 18.47 MB, free: 4.59 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.001041/0.001041, allocations: 185.2 kB / 19.4 MB, free: 3.668 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.132/1.132, allocations: 222.9 MB / 243.1 MB, free: 15.05 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1663/0.1663, allocations: 44.2 MB / 337.4 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.085e-05/1.086e-05, allocations: 2.281 kB / 471.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.000978/0.0009994, allocations: 492.6 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004139/0.001424, allocations: 207.4 kB / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.601e-05/0.00145, allocations: 0 / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.287e-05/0.001467, allocations: 3.938 kB / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.888e-06/0.001477, allocations: 4 kB / 471.8 MB, free: 12.55 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:290:3-321:16:writable] Warning: Pure function 'ModelicaTest.Utilities.WriteFile' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.001701, allocations: 35.91 kB / 471.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.781e-05/0.001758, allocations: 8 kB / 471.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.038e-05/0.001794, allocations: 7.875 kB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.308e-05/0.001811, allocations: 3.984 kB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.698e-05/0.001833, allocations: 4 kB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.789e-06/0.001842, allocations: 0 / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.397e-05/0.00194, allocations: 51.94 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of combineBinaries: time 1.759e-05/0.001966, allocations: 7.938 kB / 471.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 1.643e-06/0.001972, allocations: 3.906 kB / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.476e-06/0.001985, allocations: 4 kB / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.949e-06/0.001994, allocations: 0 / 471.9 MB, free: 12.43 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 (1) * Number of variables: 1 (1) Notification: Performance of Bindings: time 0.0001943/0.002192, allocations: 145.5 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FunctionAlias: time 7.724e-06/0.002205, allocations: 3.984 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Early Inline: time 4.873e-05/0.002259, allocations: 52.33 kB / 472.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplify1: time 1.623e-06/0.002266, allocations: 0 / 472.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Alias: time 5.058e-05/0.00232, allocations: 56.61 kB / 472.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simplify2: time 6.01e-07/0.002326, allocations: 0 / 472.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of Detect States: time 4.431e-05/0.002374, allocations: 32.17 kB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Events: time 1.292e-05/0.002393, allocations: 7.953 kB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Partitioning: time 3.497e-05/0.002433, allocations: 20.06 kB / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of Causalize: time 8.04e-05/0.002518, allocations: 24.09 kB / 472.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 3.878e-05/0.002563, allocations: 44.38 kB / 472.3 MB, free: 11.83 MB / 350.1 MB Notification: Performance of Inline: time 5.462e-05/0.002623, allocations: 64.73 kB / 472.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Partitioning: time 9.648e-06/0.002639, allocations: 12.12 kB / 472.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Cleanup: time 5.42e-06/0.002649, allocations: 0 / 472.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Causalize: time 4.599e-05/0.002698, allocations: 28.05 kB / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Tearing: time 8.686e-06/0.002714, allocations: 0 / 472.4 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Initialization: time 1.523e-06/0.00272, allocations: 7.938 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Tearing: time 2.024e-06/0.002726, allocations: 3.984 kB / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Categorize: time 5.209e-06/0.002735, allocations: 0 / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Solve: time 1.194e-05/0.00275, allocations: 4.125 kB / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Jacobian: time 2.575e-06/0.002758, allocations: 4 kB / 472.4 MB, free: 11.66 MB / 350.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: ................. 1 (1) {result} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 0 (scalar:0, 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: ........... 0 (scalar:0, 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.313e-05/0.002785, allocations: 18.28 kB / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of SimCode: time 0.0006208/0.00341, allocations: 0.8686 MB / 473.3 MB, free: 10.79 MB / 350.1 MB Notification: Performance of Templates: time 0.002262/0.005682, allocations: 0.5319 MB / 473.9 MB, free: 10.26 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-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=ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile -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 ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native "-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=ModelicaTest_4_0_0_ModelicaTest_Utilities_TestWriteFile -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 ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.o ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:32:31: error: use of undeclared identifier '_OMC_LIT0' tmpMeta1 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:33:40: error: use of undeclared identifier '_OMC_LIT1' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT1); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:34:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT3); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:41:33: error: use of undeclared identifier '_OMC_LIT0' tmpMeta4 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:42:42: error: use of undeclared identifier '_OMC_LIT1' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT1); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:43:42: error: use of undeclared identifier '_OMC_LIT2' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT2); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:54:3: warning: implicit declaration of function 'ModelicaInternal_removeFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_removeFile(MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:63:19: warning: implicit declaration of function 'ModelicaInternal_stat' is invalid in C99 [-Wimplicit-function-declaration] _fileType_ext = ModelicaInternal_stat(MMC_STRINGDATA(_name)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:78:3: warning: implicit declaration of function 'ModelicaStreams_closeFile' is invalid in C99 [-Wimplicit-function-declaration] ModelicaStreams_closeFile(MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:84:3: warning: implicit declaration of function 'ModelicaError' is invalid in C99 [-Wimplicit-function-declaration] ModelicaError(MMC_STRINGDATA(_string)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:90:3: warning: implicit declaration of function 'ModelicaInternal_print' is invalid in C99 [-Wimplicit-function-declaration] ModelicaInternal_print(MMC_STRINGDATA(_string), MMC_STRINGDATA(_fileName)); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:107:12: error: use of undeclared identifier '_OMC_LIT6' _file1 = _OMC_LIT6; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:108:12: error: use of undeclared identifier '_OMC_LIT7' _file2 = _OMC_LIT7; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:109:12: error: use of undeclared identifier '_OMC_LIT8' _line1 = _OMC_LIT8; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:110:12: error: use of undeclared identifier '_OMC_LIT9' _line2 = _OMC_LIT9; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:111:12: error: use of undeclared identifier '_OMC_LIT10' _line3 = _OMC_LIT10; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:112:12: error: use of undeclared identifier '_OMC_LIT11' _line4 = _OMC_LIT11; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:113:12: error: use of undeclared identifier '_OMC_LIT12' _line5 = _OMC_LIT12; ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:114:52: error: use of undeclared identifier '_OMC_LIT13' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _OMC_LIT4); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:114:64: error: use of undeclared identifier '_OMC_LIT4' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _OMC_LIT4); ^ ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.c:116:52: error: use of undeclared identifier '_OMC_LIT13' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _logFile); ^ 5 warnings and 16 errors generated. make: *** [: ModelicaTest_4.0.0_ModelicaTest.Utilities.TestWriteFile_functions.o] Error 1