Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 106.4 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.001306/0.001306, allocations: 189.5 kB / 17.36 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1766/0.1766, allocations: 39.96 MB / 310.5 MB, free: 4.023 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.673e-05/1.674e-05, allocations: 6.219 kB / 436.4 MB, free: 11.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.00102/0.001045, allocations: 493.1 kB / 436.9 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004692/0.001525, allocations: 215.7 kB / 437.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.702e-05/0.001562, allocations: 0 / 437.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.117e-05/0.001578, allocations: 0 / 437.1 MB, free: 11.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.15e-06/0.001587, allocations: 0 / 437.1 MB, free: 11.13 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/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.0002717/0.001872, allocations: 49.84 kB / 437.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 5.165e-05/0.00193, allocations: 4 kB / 437.1 MB, free: 11.08 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.098e-05/0.001977, allocations: 3.984 kB / 437.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.517e-05/0.001996, allocations: 0 / 437.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.19e-05/0.002023, allocations: 4 kB / 437.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.48e-06/0.002034, allocations: 4 kB / 437.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.66e-05/0.002134, allocations: 43.95 kB / 437.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of combineBinaries: time 2.197e-05/0.002162, allocations: 7.984 kB / 437.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 1.533e-06/0.002168, allocations: 0 / 437.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.34e-05/0.002185, allocations: 0 / 437.2 MB, free: 11.02 MB / 318.1 MB Notification: Performance of FrontEnd: time 6.703e-06/0.002196, allocations: 3.938 kB / 437.2 MB, free: 11.01 MB / 318.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.0002281/0.002428, allocations: 153.4 kB / 437.3 MB, free: 10.76 MB / 318.1 MB Notification: Performance of FunctionAlias: time 2.334e-05/0.002457, allocations: 7.891 kB / 437.3 MB, free: 10.75 MB / 318.1 MB Notification: Performance of Early Inline: time 4.03e-05/0.002502, allocations: 44.38 kB / 437.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simplify1: time 1.953e-06/0.00251, allocations: 3.938 kB / 437.4 MB, free: 10.68 MB / 318.1 MB Notification: Performance of Alias: time 3.408e-05/0.002548, allocations: 56.61 kB / 437.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simplify2: time 1.373e-06/0.002553, allocations: 0 / 437.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of Events: time 1.574e-05/0.002573, allocations: 11.89 kB / 437.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of Detect States: time 5.024e-05/0.002628, allocations: 27.34 kB / 437.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of Partitioning: time 4.219e-05/0.002675, allocations: 16.11 kB / 437.5 MB, free: 10.51 MB / 318.1 MB Notification: Performance of Causalize: time 8.689e-05/0.002767, allocations: 28.19 kB / 437.5 MB, free: 10.48 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 2.113e-05/0.002794, allocations: 52.34 kB / 437.6 MB, free: 10.4 MB / 318.1 MB Notification: Performance of Inline: time 4.63e-05/0.002846, allocations: 60.48 kB / 437.6 MB, free: 10.3 MB / 318.1 MB Notification: Performance of Partitioning: time 6.782e-06/0.002857, allocations: 12.12 kB / 437.6 MB, free: 10.29 MB / 318.1 MB Notification: Performance of Cleanup: time 7.404e-06/0.002869, allocations: 7.938 kB / 437.7 MB, free: 10.28 MB / 318.1 MB Notification: Performance of Causalize: time 4.089e-05/0.002914, allocations: 36.3 kB / 437.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Tearing: time 5.139e-06/0.002925, allocations: 0 / 437.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Initialization: time 3e-07/0.002929, allocations: 0 / 437.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Tearing: time 6.41e-07/0.002934, allocations: 0 / 437.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Categorize: time 7.043e-06/0.002945, allocations: 0 / 437.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Solve: time 1.431e-05/0.002963, allocations: 7.938 kB / 437.7 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Jacobian: time 2.525e-06/0.002969, allocations: 0 / 437.7 MB, free: 10.23 MB / 318.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.783e-05/0.003, allocations: 18.72 kB / 437.7 MB, free: 10.21 MB / 318.1 MB Notification: Performance of SimCode: time 0.0006062/0.00361, allocations: 0.8554 MB / 438.6 MB, free: 9.371 MB / 318.1 MB Notification: Performance of Templates: time 0.002432/0.006053, allocations: 0.5163 MB / 439.1 MB, free: 8.855 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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_3_2_2_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_3.2.2_ModelicaTest.Utilities.TestWriteFile.o ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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_3_2_2_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_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.o ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:32:31: error: use of undeclared identifier '_OMC_LIT0' tmpMeta1 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:33:40: error: use of undeclared identifier '_OMC_LIT1' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT1); ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:34:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT3); ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:41:33: error: use of undeclared identifier '_OMC_LIT0' tmpMeta4 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:42:42: error: use of undeclared identifier '_OMC_LIT1' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT1); ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:43:42: error: use of undeclared identifier '_OMC_LIT2' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT2); ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:107:12: error: use of undeclared identifier '_OMC_LIT6' _file1 = _OMC_LIT6; ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:108:12: error: use of undeclared identifier '_OMC_LIT7' _file2 = _OMC_LIT7; ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:109:12: error: use of undeclared identifier '_OMC_LIT8' _line1 = _OMC_LIT8; ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:110:12: error: use of undeclared identifier '_OMC_LIT9' _line2 = _OMC_LIT9; ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:111:12: error: use of undeclared identifier '_OMC_LIT10' _line3 = _OMC_LIT10; ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:112:12: error: use of undeclared identifier '_OMC_LIT11' _line4 = _OMC_LIT11; ^ ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:113:12: error: use of undeclared identifier '_OMC_LIT12' _line5 = _OMC_LIT12; ^ ModelicaTest_3.2.2_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_3.2.2_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_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.c:116:52: error: use of undeclared identifier '_OMC_LIT13' omc_Modelica_Utilities_Streams_print(threadData, _OMC_LIT13, _logFile); ^ 16 errors generated. make: *** [: ModelicaTest_3.2.2_ModelicaTest.Utilities.TestWriteFile_functions.o] Error 1