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.001359/0.001359, allocations: 114 kB / 17.09 MB, free: 6.004 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.001493/0.001493, allocations: 200.2 kB / 18.02 MB, free: 5.086 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.829/1.829, allocations: 205.1 MB / 223.9 MB, free: 12.24 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.2858/0.2858, allocations: 43.52 MB / 314.8 MB, free: 468 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.648e-05/2.649e-05, allocations: 6.219 kB / 442.4 MB, free: 5.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestWriteFile): time 0.001278/0.001312, allocations: 490.7 kB / 442.9 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005344/0.00186, allocations: 210 kB / 443.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.868e-05/0.001899, allocations: 0 / 443.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.145e-05/0.001925, allocations: 0 / 443.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.989e-06/0.00194, allocations: 0 / 443.1 MB, free: 5.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003107/0.002261, allocations: 47.83 kB / 443.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 7.093e-05/0.00234, allocations: 0 / 443.1 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.474e-05/0.0024, allocations: 4 kB / 443.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.794e-05/0.002423, allocations: 0 / 443.1 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.561e-05/0.002453, allocations: 3.984 kB / 443.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.432e-06/0.002464, allocations: 0 / 443.1 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001263/0.002596, allocations: 59.95 kB / 443.2 MB, free: 4.965 MB / 318.1 MB Notification: Performance of combineBinaries: time 2.84e-05/0.002631, allocations: 7.844 kB / 443.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 5.31e-07/0.002636, allocations: 0 / 443.2 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.527e-05/0.002655, allocations: 4 kB / 443.2 MB, free: 4.953 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.313e-06/0.002666, allocations: 0 / 443.2 MB, free: 4.953 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.0002637/0.002933, allocations: 153.4 kB / 443.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FunctionAlias: time 1.249e-05/0.002952, allocations: 11.83 kB / 443.4 MB, free: 4.691 MB / 318.1 MB Notification: Performance of Early Inline: time 5.028e-05/0.003007, allocations: 44.42 kB / 443.4 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simplify1: time 3.156e-06/0.003015, allocations: 7.938 kB / 443.4 MB, free: 4.613 MB / 318.1 MB Notification: Performance of Alias: time 3.582e-05/0.003055, allocations: 44.62 kB / 443.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of simplify2: time 5.11e-07/0.003061, allocations: 4 kB / 443.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of Events: time 1.474e-05/0.003082, allocations: 11.89 kB / 443.5 MB, free: 4.516 MB / 318.1 MB Notification: Performance of Detect States: time 5.134e-05/0.003138, allocations: 28.23 kB / 443.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of Partitioning: time 4.557e-05/0.003189, allocations: 16.12 kB / 443.5 MB, free: 4.449 MB / 318.1 MB Notification: Performance of Causalize: time 0.0001022/0.003297, allocations: 24.11 kB / 443.5 MB, free: 4.418 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 3.355e-05/0.003336, allocations: 52.55 kB / 443.6 MB, free: 4.34 MB / 318.1 MB Notification: Performance of Inline: time 5.626e-05/0.003397, allocations: 64.42 kB / 443.7 MB, free: 4.242 MB / 318.1 MB Notification: Performance of Partitioning: time 1.434e-05/0.003417, allocations: 12.12 kB / 443.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of Cleanup: time 1.012e-05/0.003435, allocations: 3.984 kB / 443.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of Causalize: time 6.448e-05/0.003505, allocations: 36.05 kB / 443.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of Tearing: time 7.434e-06/0.003523, allocations: 0 / 443.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of Initialization: time 1.453e-06/0.003531, allocations: 192 / 443.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of Tearing: time 1.082e-06/0.003539, allocations: 7.938 kB / 443.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of Categorize: time 8.956e-06/0.003555, allocations: 0 / 443.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of Solve: time 1.83e-05/0.003578, allocations: 4 kB / 443.7 MB, free: 4.164 MB / 318.1 MB Notification: Performance of Jacobian: time 4.439e-06/0.00359, allocations: 0 / 443.7 MB, free: 4.164 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.344e-05/0.00364, allocations: 9.078 kB / 443.7 MB, free: 4.16 MB / 318.1 MB Notification: Performance of SimCode: time 0.0007155/0.004362, allocations: 0.8599 MB / 444.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of Templates: time 0.003221/0.007594, allocations: 0.5319 MB / 445.1 MB, free: 2.789 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