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.001323/0.001323, allocations: 106.2 kB / 18.46 MB, free: 4.594 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.001191/0.001191, allocations: 188.3 kB / 19.39 MB, free: 3.672 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.349/1.349, allocations: 222.9 MB / 243.1 MB, free: 15.04 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.2188/0.2188, allocations: 44.19 MB / 337.4 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.951e-05/2.951e-05, allocations: 5.516 kB / 471.1 MB, free: 13.24 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001473/0.001512, allocations: 492.2 kB / 471.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000605/0.002128, allocations: 211.3 kB / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.202e-05/0.00216, allocations: 0 / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.606e-05/0.002182, allocations: 0 / 471.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.615e-06/0.002194, allocations: 0 / 471.8 MB, free: 12.56 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.0003274/0.00253, allocations: 43.83 kB / 471.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.045e-05/0.002609, allocations: 15.92 kB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.072e-05/0.002665, allocations: 4 kB / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.625e-05/0.002686, allocations: 0 / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.713e-05/0.002718, allocations: 0 / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.613e-06/0.002729, allocations: 0 / 471.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001225/0.002855, allocations: 47.95 kB / 471.9 MB, free: 12.45 MB / 350.1 MB Notification: Performance of combineBinaries: time 2.941e-05/0.002891, allocations: 7.984 kB / 471.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 2.746e-06/0.002898, allocations: 3.906 kB / 471.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.57e-05/0.002918, allocations: 0 / 471.9 MB, free: 12.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.947e-06/0.002933, allocations: 4 kB / 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.0002935/0.003231, allocations: 148.4 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of FunctionAlias: time 1.402e-05/0.00325, allocations: 3.938 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of Early Inline: time 7.655e-05/0.003331, allocations: 52.39 kB / 472.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplify1: time 1.774e-06/0.003339, allocations: 0 / 472.1 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Alias: time 5.932e-05/0.003402, allocations: 60.55 kB / 472.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of simplify2: time 6.41e-07/0.003407, allocations: 0 / 472.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of Events: time 1.503e-05/0.003426, allocations: 4 kB / 472.2 MB, free: 12.01 MB / 350.1 MB Notification: Performance of Detect States: time 7.367e-05/0.003504, allocations: 36.17 kB / 472.2 MB, free: 11.96 MB / 350.1 MB Notification: Performance of Partitioning: time 5.101e-05/0.003563, allocations: 24 kB / 472.3 MB, free: 11.93 MB / 350.1 MB Notification: Performance of Causalize: time 0.0001101/0.003678, allocations: 20.11 kB / 472.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 4.074e-05/0.003727, allocations: 52.36 kB / 472.3 MB, free: 11.82 MB / 350.1 MB Notification: Performance of Inline: time 7.614e-05/0.003808, allocations: 56.5 kB / 472.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of Partitioning: time 1.247e-05/0.003827, allocations: 8.312 kB / 472.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Cleanup: time 8.607e-06/0.003841, allocations: 7.938 kB / 472.4 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Causalize: time 5.137e-05/0.003896, allocations: 28.11 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Tearing: time 6.392e-06/0.003909, allocations: 0 / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Initialization: time 2.91e-07/0.003913, allocations: 0 / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Tearing: time 6.52e-07/0.003918, allocations: 0 / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Categorize: time 9.178e-06/0.003931, allocations: 4 kB / 472.4 MB, free: 11.67 MB / 350.1 MB Notification: Performance of Solve: time 1.953e-05/0.003955, allocations: 11.92 kB / 472.4 MB, free: 11.66 MB / 350.1 MB Notification: Performance of Jacobian: time 3.025e-06/0.003962, allocations: 0 / 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 4.139e-05/0.004008, allocations: 18.47 kB / 472.5 MB, free: 11.64 MB / 350.1 MB Notification: Performance of SimCode: time 0.0008892/0.004901, allocations: 0.8819 MB / 473.3 MB, free: 10.78 MB / 350.1 MB Notification: Performance of Templates: time 0.002797/0.00771, allocations: 0.5202 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