Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001384/0.001384, allocations: 111.9 kB / 16.42 MB, free: 6.508 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.001602/0.001602, allocations: 187.1 kB / 17.36 MB, free: 5.727 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.218/1.218, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.271/2.271, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.903e-05/2.905e-05, allocations: 2.281 kB / 1.055 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001546/0.001583, allocations: 0.5883 MB / 1.055 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002662/0.001861, allocations: 51.8 kB / 1.055 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.742e-05/0.001887, allocations: 0 / 1.055 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.185e-05/0.001904, allocations: 0 / 1.055 GB, free: 7.113 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 8.206e-06/0.001922, allocations: 7.938 kB / 1.055 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002119/0.002139, allocations: 11.92 kB / 1.055 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.703e-05/0.002194, allocations: 4 kB / 1.055 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.71e-05/0.002246, allocations: 4 kB / 1.055 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.308e-05/0.002263, allocations: 0 / 1.055 GB, free: 7.086 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.183e-05/0.002289, allocations: 7.969 kB / 1.055 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.436e-06/0.002301, allocations: 0 / 1.055 GB, free: 7.078 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.329e-05/0.002368, allocations: 16 kB / 1.055 GB, free: 7.062 MB / 0.8262 GB Notification: Performance of combineBinaries: time 2.35e-05/0.002397, allocations: 3.938 kB / 1.055 GB, free: 7.059 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 6.152e-06/0.002407, allocations: 7.906 kB / 1.055 GB, free: 7.051 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.207e-05/0.002424, allocations: 4 kB / 1.055 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.306e-06/0.002436, allocations: 0 / 1.055 GB, free: 7.047 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 (2) * Number of variables: 2 (2) Notification: Performance of Bindings: time 0.0002388/0.002678, allocations: 161.2 kB / 1.056 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of FunctionAlias: time 5.841e-05/0.002742, allocations: 19.94 kB / 1.056 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of Early Inline: time 5.921e-05/0.002807, allocations: 60.36 kB / 1.056 GB, free: 6.684 MB / 0.8262 GB Notification: Performance of simplify1: time 1.399e-05/0.002825, allocations: 3.984 kB / 1.056 GB, free: 6.68 MB / 0.8262 GB Notification: Performance of Alias: time 0.0002083/0.003037, allocations: 84.86 kB / 1.056 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of simplify2: time 2.675e-06/0.00305, allocations: 4 kB / 1.056 GB, free: 6.547 MB / 0.8262 GB Notification: Performance of Events: time 9.508e-06/0.003064, allocations: 4 kB / 1.056 GB, free: 6.543 MB / 0.8262 GB Notification: Performance of Detect States: time 5.259e-05/0.00312, allocations: 34.53 kB / 1.056 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of Partitioning: time 3.675e-05/0.003162, allocations: 16.12 kB / 1.056 GB, free: 6.473 MB / 0.8262 GB Notification: Performance of Causalize: time 9.86e-05/0.003266, allocations: 64.06 kB / 1.056 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of After Index Reduction Inline: time 4.164e-05/0.003316, allocations: 56.36 kB / 1.056 GB, free: 6.32 MB / 0.8262 GB Notification: Performance of Inline: time 6.786e-05/0.003389, allocations: 76.48 kB / 1.056 GB, free: 6.211 MB / 0.8262 GB Notification: Performance of Partitioning: time 1.133e-05/0.003406, allocations: 16.09 kB / 1.056 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of Cleanup: time 7.684e-06/0.003419, allocations: 7.938 kB / 1.056 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of Causalize: time 9.125e-05/0.003514, allocations: 64.03 kB / 1.056 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of Tearing: time 7.244e-06/0.003529, allocations: 0 / 1.056 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of Initialization: time 4.01e-07/0.003533, allocations: 0 / 1.056 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of Tearing: time 8.41e-07/0.003537, allocations: 0 / 1.056 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of Categorize: time 6.302e-06/0.003549, allocations: 7.938 kB / 1.056 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of Solve: time 2.843e-05/0.003581, allocations: 7.984 kB / 1.056 GB, free: 6.094 MB / 0.8262 GB Notification: Performance of Jacobian: time 2.445e-06/0.003588, allocations: 0 / 1.056 GB, free: 6.094 MB / 0.8262 GB 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: ................. 2 (2) {fac, n} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 3 (scalar:3, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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: ........... 3 (scalar:3, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, 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.711e-05/0.003619, allocations: 14.23 kB / 1.056 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of SimCode: time 0.0004701/0.004094, allocations: 0.7646 MB / 1.057 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of Templates: time 0.001937/0.006042, allocations: 308.7 kB / 1.057 GB, free: 4.996 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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=Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial -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 Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.o Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.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=Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial -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 Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_functions.o Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_functions.c Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_functions.c:26:53: error: use of undeclared identifier '_OMC_LIT0' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT0)); ^ Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_functions.c:36:53: error: use of undeclared identifier '_OMC_LIT1' omc_assert(threadData, info, MMC_STRINGDATA(_OMC_LIT1)); ^ 2 errors generated. make: *** [: Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_functions.o] Error 1