Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") translateModel(ModelicaTest.Utilities.TestWriteFile,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 117.4 kB / 17.09 MB, free: 6.066 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.001615/0.001615, allocations: 193.5 kB / 18.02 MB, free: 5.156 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.733/1.733, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2222/0.2222, allocations: 43.52 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.89e-05/3.891e-05, allocations: 13.67 kB / 442.4 MB, free: 5.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.002313/0.002364, allocations: 494.4 kB / 442.9 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007517/0.00313, allocations: 214 kB / 443.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.195e-05/0.003186, allocations: 0 / 443.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.731e-05/0.003213, allocations: 0 / 443.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.397e-06/0.003228, allocations: 0 / 443.1 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005237/0.003794, allocations: 47.83 kB / 443.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.003909, allocations: 0 / 443.1 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.329e-05/0.003991, allocations: 4 kB / 443.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.142e-05/0.004031, allocations: 3.984 kB / 443.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.88e-05/0.004077, allocations: 0 / 443.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.004101, allocations: 0 / 443.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001782/0.004291, allocations: 51.95 kB / 443.2 MB, free: 4.977 MB / 318.1 MB Notification: Performance of combineBinaries: time 2.886e-05/0.004329, allocations: 11.84 kB / 443.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 6.91e-07/0.004338, allocations: 0 / 443.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.912e-05/0.004364, allocations: 8 kB / 443.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.07e-05/0.004383, allocations: 0 / 443.2 MB, free: 4.957 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.0003576/0.004747, allocations: 153.4 kB / 443.4 MB, free: 4.707 MB / 318.1 MB Notification: Performance of FunctionAlias: time 1.73e-05/0.004773, allocations: 15.83 kB / 443.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of Early Inline: time 6.858e-05/0.004849, allocations: 36.44 kB / 443.4 MB, free: 4.629 MB / 318.1 MB Notification: Performance of simplify1: time 5.36e-06/0.004863, allocations: 11.88 kB / 443.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of Alias: time 6.353e-05/0.004935, allocations: 48.61 kB / 443.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of simplify2: time 7.62e-07/0.004947, allocations: 8 kB / 443.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of Detect States: time 8.624e-05/0.00504, allocations: 28.2 kB / 443.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of Events: time 2.312e-05/0.005071, allocations: 0 / 443.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of Partitioning: time 6.638e-05/0.005145, allocations: 16.11 kB / 443.5 MB, free: 4.457 MB / 318.1 MB Notification: Performance of Causalize: time 0.0001384/0.005291, allocations: 24.12 kB / 443.5 MB, free: 4.426 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 4.091e-05/0.00534, allocations: 48.36 kB / 443.6 MB, free: 4.352 MB / 318.1 MB Notification: Performance of Inline: time 6.215e-05/0.005411, allocations: 68.61 kB / 443.7 MB, free: 4.25 MB / 318.1 MB Notification: Performance of Partitioning: time 1.106e-05/0.005431, allocations: 8.125 kB / 443.7 MB, free: 4.234 MB / 318.1 MB Notification: Performance of Cleanup: time 1.375e-05/0.005452, allocations: 3.984 kB / 443.7 MB, free: 4.23 MB / 318.1 MB Notification: Performance of Causalize: time 6.042e-05/0.005521, allocations: 24.12 kB / 443.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of Tearing: time 1.231e-05/0.005543, allocations: 0 / 443.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of Initialization: time 1.764e-06/0.005552, allocations: 0 / 443.7 MB, free: 4.199 MB / 318.1 MB Notification: Performance of Tearing: time 6.462e-06/0.005567, allocations: 12.11 kB / 443.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of Categorize: time 9.067e-06/0.005585, allocations: 0 / 443.7 MB, free: 4.188 MB / 318.1 MB Notification: Performance of Solve: time 2.396e-05/0.005615, allocations: 7.984 kB / 443.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of Jacobian: time 5.11e-06/0.005626, allocations: 0 / 443.7 MB, free: 4.18 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 4.447e-05/0.005677, allocations: 9.078 kB / 443.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of SimCode: time 0.001012/0.006695, allocations: 0.8618 MB / 444.6 MB, free: 3.324 MB / 318.1 MB Notification: Performance of Templates: time 0.004525/0.01124, allocations: 0.5241 MB / 445.1 MB, free: 2.801 MB / 318.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile.makefile make -j1 -f ModelicaTest_3.2.3_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_3_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.3_ModelicaTest.Utilities.TestWriteFile.o ModelicaTest_3.2.3_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_3_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.3_ModelicaTest.Utilities.TestWriteFile_functions.o ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:32:31: error: use of undeclared identifier '_OMC_LIT0' tmpMeta1 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:33:40: error: use of undeclared identifier '_OMC_LIT1' tmpMeta2 = stringAppend(tmpMeta1,_OMC_LIT1); ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:34:40: error: use of undeclared identifier '_OMC_LIT3' tmpMeta3 = stringAppend(tmpMeta2,_OMC_LIT3); ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:41:33: error: use of undeclared identifier '_OMC_LIT0' tmpMeta4 = stringAppend(_OMC_LIT0,_fileName); ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:42:42: error: use of undeclared identifier '_OMC_LIT1' tmpMeta5 = stringAppend(tmpMeta4,_OMC_LIT1); ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:43:42: error: use of undeclared identifier '_OMC_LIT2' tmpMeta6 = stringAppend(tmpMeta5,_OMC_LIT2); ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:107:12: error: use of undeclared identifier '_OMC_LIT6' _file1 = _OMC_LIT6; ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:108:12: error: use of undeclared identifier '_OMC_LIT7' _file2 = _OMC_LIT7; ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:109:12: error: use of undeclared identifier '_OMC_LIT8' _line1 = _OMC_LIT8; ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:110:12: error: use of undeclared identifier '_OMC_LIT9' _line2 = _OMC_LIT9; ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:111:12: error: use of undeclared identifier '_OMC_LIT10' _line3 = _OMC_LIT10; ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:112:12: error: use of undeclared identifier '_OMC_LIT11' _line4 = _OMC_LIT11; ^ ModelicaTest_3.2.3_ModelicaTest.Utilities.TestWriteFile_functions.c:113:12: error: use of undeclared identifier '_OMC_LIT12' _line5 = _OMC_LIT12; ^ ModelicaTest_3.2.3_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.3_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.3_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.3_ModelicaTest.Utilities.TestWriteFile_functions.o] Error 1