Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001087/0.001087, allocations: 113.9 kB / 18.47 MB, free: 4.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001118/0.001118, allocations: 208.1 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.13/1.13, allocations: 227.4 MB / 247.6 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1751/0.1751, allocations: 46.09 MB / 344.9 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.007e-05/2.009e-05, allocations: 2.281 kB / 481.9 MB, free: 4.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001035/0.001063, allocations: 485.5 kB / 482.4 MB, free: 3.672 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004183/0.001492, allocations: 207.4 kB / 482.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.468e-05/0.001516, allocations: 0 / 482.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.77e-05/0.001539, allocations: 0 / 482.6 MB, free: 3.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.498e-06/0.001547, allocations: 7.875 kB / 482.6 MB, free: 3.461 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/Utilities.mo:289:3-320: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.0002153/0.001773, allocations: 39.83 kB / 482.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.285e-05/0.001824, allocations: 12 kB / 482.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.227e-05/0.001862, allocations: 0 / 482.6 MB, free: 3.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.203e-05/0.001879, allocations: 7.938 kB / 482.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.535e-05/0.001899, allocations: 0 / 482.6 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.122e-06/0.001909, allocations: 4 kB / 482.6 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.892e-05/0.002002, allocations: 47.94 kB / 482.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of combineBinaries: time 1.423e-05/0.002022, allocations: 0 / 482.7 MB, free: 3.352 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 1.944e-06/0.002031, allocations: 7.906 kB / 482.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.446e-06/0.002043, allocations: 0 / 482.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.779e-06/0.002052, allocations: 0 / 482.7 MB, free: 3.344 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.0002033/0.002259, allocations: 153.4 kB / 482.8 MB, free: 3.094 MB / 350.1 MB Notification: Performance of FunctionAlias: time 8.256e-06/0.002272, allocations: 3.953 kB / 482.8 MB, free: 3.09 MB / 350.1 MB Notification: Performance of Early Inline: time 5.49e-05/0.002331, allocations: 52.36 kB / 482.9 MB, free: 3.012 MB / 350.1 MB Notification: Performance of simplify1: time 3.186e-06/0.00234, allocations: 4 kB / 482.9 MB, free: 3.008 MB / 350.1 MB Notification: Performance of Alias: time 4.038e-05/0.002384, allocations: 48.62 kB / 482.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of simplify2: time 5.71e-07/0.002389, allocations: 0 / 482.9 MB, free: 2.922 MB / 350.1 MB Notification: Performance of Events: time 1.208e-05/0.002405, allocations: 7.938 kB / 483 MB, free: 2.914 MB / 350.1 MB Notification: Performance of Detect States: time 0.0001534/0.002563, allocations: 36.11 kB / 483 MB, free: 2.863 MB / 350.1 MB Notification: Performance of Partitioning: time 3.62e-05/0.002605, allocations: 24.11 kB / 483 MB, free: 2.832 MB / 350.1 MB Notification: Performance of Causalize: time 7.963e-05/0.002691, allocations: 24.09 kB / 483 MB, free: 2.801 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.292e-05/0.00274, allocations: 44.44 kB / 483.1 MB, free: 2.73 MB / 350.1 MB Notification: Performance of Inline: time 5.293e-05/0.002799, allocations: 60.48 kB / 483.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of Partitioning: time 8.667e-06/0.002813, allocations: 8.125 kB / 483.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of Cleanup: time 7.684e-06/0.002826, allocations: 12.12 kB / 483.2 MB, free: 2.609 MB / 350.1 MB Notification: Performance of Causalize: time 4.298e-05/0.002873, allocations: 28.11 kB / 483.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of Tearing: time 5.501e-06/0.002886, allocations: 0 / 483.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of Initialization: time 1.873e-06/0.002891, allocations: 0 / 483.2 MB, free: 2.574 MB / 350.1 MB Notification: Performance of Tearing: time 2.174e-06/0.002897, allocations: 7.938 kB / 483.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of Categorize: time 4.368e-06/0.002905, allocations: 0 / 483.2 MB, free: 2.566 MB / 350.1 MB Notification: Performance of Solve: time 1.093e-05/0.00292, allocations: 3.938 kB / 483.2 MB, free: 2.562 MB / 350.1 MB Notification: Performance of Jacobian: time 1.993e-06/0.002925, allocations: 0 / 483.2 MB, free: 2.562 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 3.119e-05/0.00296, allocations: 22.12 kB / 483.2 MB, free: 2.547 MB / 350.1 MB Notification: Performance of SimCode: time 0.0006235/0.003588, allocations: 0.8665 MB / 484.1 MB, free: 1.688 MB / 350.1 MB Notification: Performance of Templates: time 0.002088/0.005685, allocations: 0.5318 MB / 484.6 MB, free: 1.156 MB / 350.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_trunk_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 trunk/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_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile.o ModelicaTest_trunk_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 trunk/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_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile_functions.o ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:32:31: error: use of undeclared identifier '_OMC_LIT0' tmpMeta1 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:33:40: error: use of undeclared identifier '_OMC_LIT1' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT1); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:34:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT3); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:41:33: error: use of undeclared identifier '_OMC_LIT0' tmpMeta4 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:42:42: error: use of undeclared identifier '_OMC_LIT1' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT1); ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:43:42: error: use of undeclared identifier '_OMC_LIT2' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT2); ^ ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:107:12: error: use of undeclared identifier '_OMC_LIT6' _file1 = _OMC_LIT6; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:108:12: error: use of undeclared identifier '_OMC_LIT7' _file2 = _OMC_LIT7; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:109:12: error: use of undeclared identifier '_OMC_LIT8' _line1 = _OMC_LIT8; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:110:12: error: use of undeclared identifier '_OMC_LIT9' _line2 = _OMC_LIT9; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:111:12: error: use of undeclared identifier '_OMC_LIT10' _line3 = _OMC_LIT10; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:112:12: error: use of undeclared identifier '_OMC_LIT11' _line4 = _OMC_LIT11; ^ ModelicaTest_trunk_ModelicaTest.Utilities.TestWriteFile_functions.c:113:12: error: use of undeclared identifier '_OMC_LIT12' _line5 = _OMC_LIT12; ^ ModelicaTest_trunk_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_trunk_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_trunk_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_trunk_ModelicaTest.Utilities.TestWriteFile_functions.o] Error 1