Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_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_8_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.001098/0.001098, allocations: 105.3 kB / 16.37 MB, free: 6.352 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.001095/0.001095, allocations: 190.1 kB / 17.3 MB, free: 5.906 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.14/1.14, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.531/1.531, allocations: 292.3 MB / 0.5496 GB, free: 17.58 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.903e-05/1.906e-05, allocations: 2.281 kB / 0.6729 GB, free: 5.914 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter): time 0.002268/0.002299, allocations: 1.523 MB / 0.6743 GB, free: 4.371 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0006939/0.003004, allocations: 495.7 kB / 0.6748 GB, free: 3.879 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.668e-05/0.003062, allocations: 0 / 0.6748 GB, free: 3.879 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 7.689e-05/0.003148, allocations: 7.938 kB / 0.6748 GB, free: 3.871 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 3.817e-05/0.003191, allocations: 11.86 kB / 0.6748 GB, free: 3.859 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001689/0.003375, allocations: 35.91 kB / 0.6749 GB, free: 3.824 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.003515, allocations: 99.67 kB / 0.675 GB, free: 3.727 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 8.666e-05/0.00361, allocations: 16.19 kB / 0.675 GB, free: 3.711 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 9.993e-05/0.003716, allocations: 35.91 kB / 0.675 GB, free: 3.676 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.605e-05/0.00379, allocations: 39.83 kB / 0.6751 GB, free: 3.637 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 2.07e-05/0.003816, allocations: 8 kB / 0.6751 GB, free: 3.629 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 1.345e-05/0.003835, allocations: 8 kB / 0.6751 GB, free: 3.621 MB / 0.545 GB Notification: Performance of combineBinaries: time 9.369e-05/0.003934, allocations: 114.7 kB / 0.6752 GB, free: 3.508 MB / 0.545 GB Notification: Performance of replaceArrayConstructors: time 3.399e-05/0.003973, allocations: 59.12 kB / 0.6752 GB, free: 3.449 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.771e-05/0.004005, allocations: 15.88 kB / 0.6752 GB, free: 3.434 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.239e-05/0.004022, allocations: 0 / 0.6752 GB, free: 3.434 MB / 0.545 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.0004389/0.004465, allocations: 439.3 kB / 0.6757 GB, free: 2.902 MB / 0.545 GB Notification: Performance of FunctionAlias: time 6.691e-05/0.004537, allocations: 31.88 kB / 0.6757 GB, free: 2.871 MB / 0.545 GB Notification: Performance of Early Inline: time 0.0001965/0.00474, allocations: 236.2 kB / 0.6759 GB, free: 2.613 MB / 0.545 GB Notification: Performance of simplify1: time 1.744e-05/0.004764, allocations: 11.98 kB / 0.6759 GB, free: 2.602 MB / 0.545 GB Notification: Performance of Alias: time 0.0002542/0.005023, allocations: 196.8 kB / 0.6761 GB, free: 2.363 MB / 0.545 GB Notification: Performance of simplify2: time 1.645e-05/0.005047, allocations: 15.98 kB / 0.6761 GB, free: 2.348 MB / 0.545 GB Notification: Performance of Events: time 0.0001071/0.00516, allocations: 63.84 kB / 0.6762 GB, free: 2.285 MB / 0.545 GB Notification: Performance of Detect States: time 0.0001424/0.005311, allocations: 128.1 kB / 0.6763 GB, free: 2.145 MB / 0.545 GB Notification: Performance of Partitioning: time 9.475e-05/0.005414, allocations: 71.59 kB / 0.6764 GB, free: 2.07 MB / 0.545 GB Notification: Performance of Causalize: time 0.0003738/0.005794, allocations: 379.8 kB / 0.6768 GB, free: 1.691 MB / 0.545 GB Notification: Performance of After Index Reduction Inline: time 0.0002091/0.006011, allocations: 256.2 kB / 0.677 GB, free: 1.414 MB / 0.545 GB Notification: Performance of Inline: time 0.0003202/0.006337, allocations: 365 kB / 0.6773 GB, free: 1.023 MB / 0.545 GB Notification: Performance of Partitioning: time 2.194e-05/0.006368, allocations: 24.12 kB / 0.6774 GB, free: 0.9922 MB / 0.545 GB Notification: Performance of Cleanup: time 2.589e-05/0.006399, allocations: 19.97 kB / 0.6774 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of Causalize: time 0.0004226/0.006826, allocations: 490.8 kB / 0.6779 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of Tearing: time 4.859e-06/0.00684, allocations: 0 / 0.6779 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of Initialization: time 2.8e-07/0.006845, allocations: 0 / 0.6779 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of Tearing: time 7.72e-07/0.006849, allocations: 0 / 0.6779 GB, free: 0.4922 MB / 0.545 GB Notification: Performance of Categorize: time 6.893e-06/0.00686, allocations: 4.812 kB / 0.6779 GB, free: 500 kB / 0.545 GB Notification: Performance of Solve: time 7.736e-05/0.006941, allocations: 43.91 kB / 0.6779 GB, free: 456 kB / 0.545 GB Notification: Performance of Jacobian: time 3.656e-06/0.006951, allocations: 3.938 kB / 0.6779 GB, free: 452 kB / 0.545 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.091e-05/0.006986, allocations: 28.55 kB / 0.6779 GB, free: 428 kB / 0.545 GB Notification: Performance of SimCode: time 0.0005116/0.007504, allocations: 0.9228 MB / 0.6788 GB, free: 15.47 MB / 0.5606 GB Notification: Performance of Templates: time 0.002594/0.01011, allocations: 0.9475 MB / 0.6798 GB, free: 14.53 MB / 0.5606 GB make -j1 -f Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.makefile make -j1 -f Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_functions.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_records.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_01exo.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_02nls.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_03lsy.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_04set.o Buildings_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.o Buildings_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.c Buildings_8_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_8_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_8_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_8_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.RequestCounter_05evt.o] Error 1