Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 104.6 kB / 16.42 MB, free: 5.957 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.001087/0.001087, allocations: 185.5 kB / 17.36 MB, free: 5.574 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.154/1.154, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.225/1.225, allocations: 251.7 MB / 0.51 GB, free: 392 kB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.237e-05/1.238e-05, allocations: 2.281 kB / 0.7264 GB, free: 4.719 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.001967/0.001987, allocations: 1.518 MB / 0.7279 GB, free: 3.184 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006726/0.00267, allocations: 0.489 MB / 0.7283 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.175e-05/0.002722, allocations: 0 / 0.7283 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 7.511e-05/0.002804, allocations: 11.86 kB / 0.7283 GB, free: 2.676 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.856e-05/0.002848, allocations: 19.86 kB / 0.7284 GB, free: 2.656 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001542/0.003012, allocations: 23.97 kB / 0.7284 GB, free: 2.633 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.000144/0.003164, allocations: 95.69 kB / 0.7285 GB, free: 2.539 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.145e-05/0.003262, allocations: 28.17 kB / 0.7285 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 9.262e-05/0.003361, allocations: 35.84 kB / 0.7285 GB, free: 2.477 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.644e-05/0.003436, allocations: 43.77 kB / 0.7286 GB, free: 2.434 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.003461, allocations: 4 kB / 0.7286 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 1.473e-05/0.003481, allocations: 8 kB / 0.7286 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of combineBinaries: time 0.0001028/0.003588, allocations: 110.8 kB / 0.7287 GB, free: 2.312 MB / 0.5606 GB Notification: Performance of replaceArrayConstructors: time 2.795e-05/0.003621, allocations: 63.03 kB / 0.7288 GB, free: 2.25 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.003654, allocations: 15.94 kB / 0.7288 GB, free: 2.234 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.021e-05/0.003668, allocations: 0 / 0.7288 GB, free: 2.234 MB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 (10) * Number of variables: 10 (8) Notification: Performance of Bindings: time 0.0004369/0.004109, allocations: 447.3 kB / 0.7292 GB, free: 1.695 MB / 0.5606 GB Notification: Performance of FunctionAlias: time 7.397e-05/0.004189, allocations: 39.86 kB / 0.7292 GB, free: 1.656 MB / 0.5606 GB Notification: Performance of Early Inline: time 0.0001898/0.004385, allocations: 228.3 kB / 0.7295 GB, free: 1.406 MB / 0.5606 GB Notification: Performance of simplify1: time 1.994e-05/0.004412, allocations: 15.92 kB / 0.7295 GB, free: 1.391 MB / 0.5606 GB Notification: Performance of Alias: time 0.0002477/0.004664, allocations: 188.8 kB / 0.7296 GB, free: 1.16 MB / 0.5606 GB Notification: Performance of simplify2: time 1.653e-05/0.004689, allocations: 11.98 kB / 0.7297 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of Events: time 0.000102/0.004795, allocations: 67.81 kB / 0.7297 GB, free: 1.082 MB / 0.5606 GB Notification: Performance of Detect States: time 0.0001504/0.004952, allocations: 108.2 kB / 0.7298 GB, free: 0.9609 MB / 0.5606 GB Notification: Performance of Partitioning: time 8.794e-05/0.005048, allocations: 91.91 kB / 0.7299 GB, free: 0.8633 MB / 0.5606 GB Notification: Performance of Causalize: time 0.0003763/0.005431, allocations: 374.9 kB / 0.7303 GB, free: 0.4922 MB / 0.5606 GB Notification: Performance of After Index Reduction Inline: time 0.0002024/0.005642, allocations: 252.7 kB / 0.7305 GB, free: 224 kB / 0.5606 GB Notification: Performance of Inline: time 0.000337/0.005985, allocations: 377.2 kB / 0.7309 GB, free: 15.82 MB / 0.5762 GB Notification: Performance of Partitioning: time 1.98e-05/0.006013, allocations: 20.06 kB / 0.7309 GB, free: 15.79 MB / 0.5762 GB Notification: Performance of Cleanup: time 1.969e-05/0.006038, allocations: 15.98 kB / 0.7309 GB, free: 15.77 MB / 0.5762 GB Notification: Performance of Causalize: time 0.0004292/0.006476, allocations: 497.4 kB / 0.7314 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of Tearing: time 4.408e-06/0.00649, allocations: 0 / 0.7314 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of Initialization: time 3.1e-07/0.006495, allocations: 0 / 0.7314 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of Tearing: time 8.82e-07/0.0065, allocations: 80 / 0.7314 GB, free: 15.29 MB / 0.5762 GB Notification: Performance of Categorize: time 9.067e-06/0.006513, allocations: 11.97 kB / 0.7314 GB, free: 15.28 MB / 0.5762 GB Notification: Performance of Solve: time 7.49e-05/0.006592, allocations: 40.16 kB / 0.7314 GB, free: 15.24 MB / 0.5762 GB Notification: Performance of Jacobian: time 3.507e-06/0.006602, allocations: 3.938 kB / 0.7314 GB, free: 15.23 MB / 0.5762 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: .................... 2 (2) {act1.count, act1.T_start} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 5 (5) {reqCou.nInc, $SEV_3, $SEV_2, $SEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 11 (scalar:11, array:0, record:0) * Number of multi strong components: ............ 3 (algorithm:1, when:2, 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: ........... 14 (scalar:14, array:0, record:0) * Number of multi strong components: ............ 2 (algorithm:2, 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 3.344e-05/0.006639, allocations: 29.58 kB / 0.7315 GB, free: 15.22 MB / 0.5762 GB Notification: Performance of SimCode: time 0.0004897/0.007134, allocations: 0.9253 MB / 0.7324 GB, free: 14.27 MB / 0.5762 GB Notification: Performance of Templates: time 0.002626/0.00977, allocations: 0.9366 MB / 0.7333 GB, free: 13.36 MB / 0.5762 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile make -j1 -f Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_functions.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_functions.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_records.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_records.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_01exo.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_01exo.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_02nls.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_02nls.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_03lsy.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_03lsy.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_04set.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_04set.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_maint_7_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_RequestCounter -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_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.o Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.c Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.c:99:84: error: use of undeclared identifier 'i' tmp10 = Greater((&data->localData[0]->realVars[0] /* reqCou.uAct[1] variable */)[i - 1],(data->simulationInfo->realParameter[0] /* reqCou.uTri PARAM */)); ^ Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.c:140:86: error: use of undeclared identifier 'i' tmp16 = Greater((&data->localData[0]->realVars[0] /* reqCou.uAct[1] variable */)[i - 1],(data->simulationInfo->realParameter[0] /* reqCou.uTri PARAM */)); ^ Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.c:150:108: error: use of undeclared identifier 'i' data->simulationInfo->relations[0] = ((&data->localData[0]->realVars[0] /* reqCou.uAct[1] variable */)[i - 1] > (data->simulationInfo->realParameter[0] /* reqCou.uTri PARAM */)); ^ 3 errors generated. make: *** [: Buildings_maint.7.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.o] Error 1