/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 133 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7380
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1097
RA = 320.921, Dec = 5.592
tmin = 523670401, tmax = 523929601
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='479066', job_status='RUN', time_executed='2021-09-26 12:59:17.539923', time_epoch_executed='1632686357.54' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1097'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/479066

Creating custom pfile directory:
/scratch/kocevski/479066/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=523670401.0 && nMetStart<523929601.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=523670401.0 && nMetStart<523929601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/479066/ft1_4FGL_J2123.6+0535_daily_bin1097.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=523670401.0 && nMetStart<523929601.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/479066/ft1_4FGL_J2123.6+0535_daily_bin1097.fits outfile=/scratch/kocevski/479066/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1097.fits ra=320.921 dec=5.592 rad=12.0 tmin=523670401.0 tmax=523929601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.57
user 3.30
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/479066/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1097.fits evtable="EVENTS" outfile="/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.54
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits" evtable="EVENTS" scfile=/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits sctable="SC_DATA" outfile=/scratch/kocevski/479066/ltcube_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits
.....................!
real 13.34
user 12.91
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits sctable="SC_DATA" expcube=/scratch/kocevski/479066/ltcube_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits outfile=/scratch/kocevski/479066/expmap_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/479066/ltcube_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits
.....................!
real 191.46
user 185.31
sys 5.04

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 174 point sources and 0 extended sources

Setting source of interest to:
4FGL J2123.6+0535 @ 320.921 5.592

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits scfile=/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits outfile=/scratch/kocevski/479066/cmap_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits scfile=/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits outfile=/scratch/kocevski/479066/cmap_HighResolution_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=320.921 yref=5.592 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.59
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits evtable="EVENTS" scfile=/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/479066/Model_4FGL_J2123.6+0535_daily_bin1097.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits.....................!
real 60.12
user 58.54
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits', '/scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits', expMap='/scratch/kocevski/479066/expmap_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits', expCube='/scratch/kocevski/479066/ltcube_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/479066/Model_4FGL_J2123.6+0535_daily_bin1097.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2123.6+0535'

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  5.562e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/479066/ft1_filtered_4FGL_J2123.6+0535_daily_bin1097.fits
Spacecraft file(s): /scratch/kocevski/479066/ft2_4FGL_J2123.6+0535_daily_bin1097.fits
Exposure map: /scratch/kocevski/479066/expmap_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits
Exposure cube: /scratch/kocevski/479066/ltcube_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/479066/Model_4FGL_J2123.6+0535_daily_bin1097.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5918.78223473

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5918.77775236

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8094       1.0000         .10000E-03   10000.    
     2 'norm      '    .10846E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.508       1.0000         .10000E-03   10000.    
     4 'Prefactor '    35.592       1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.174       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.8890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .63281E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    27.564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7032       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19046E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.509       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10341E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.8990       1.0000         .10000E-03   10000.    
    24 'Prefactor '    39.952       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .77796       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87044       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5918.778     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3094 TOTAL
                     EDM=   .74E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.7401        53.904        .74723E-06    .23988E-04
   2  norm          .10000E-03    7.1440        .26801E-05** at limit **
   3  Prefactor     12.509        7.5361       -.54410E-07    .22087E-04
   4  Prefactor     35.594        34.286       -.66456E-07    .32769E-05
   5  Prefactor     27.146        17.232        .71093E-06    .18841E-03
   6  Prefactor     4.8838        30.701       -.12655E-06    .89369E-05
   7  Prefactor     .10000E-03    20.717        .88606E-07** at limit **
   8  Prefactor     .10000E-03    204.57        .19671E-05** at limit **
   9  Prefactor     27.535        50.545        .28976E-06    .36428E-04
  10  Prefactor     .10000E-03    9.6719       -.19635E-06** at limit **
  11  Prefactor     .10000E-03    43.490       -.36966E-06** at limit **
  12  Prefactor     1.6882        7.8222        .11739E-05    .17025E-03
  13  Prefactor     .10050E-03    7.0433        .17555E-05** at limit **
  14  Prefactor     .10000E-03    1.2000       -.13281E-06** at limit **
  15  Prefactor     .10000E-03    11.629        .10412E-06** at limit **
  16  Prefactor     .10000E-03    30.409        .15912E-06** at limit **
  17  Prefactor     21.515        69.474        .94118E-06    .28097E-04
  18  Prefactor     .10000E-03    14.123       -.26026E-06** at limit **
  19  norm          .10000E-03    1.2635       -.47274E-06** at limit **
  20  norm          .10000E-03    6.4033       -.18519E-06** at limit **
  21  Prefactor     .10000E-03    3.1598       -.13992E-06** at limit **
  22  Prefactor     .10000E-03    5.9113       -.18456E-06** at limit **
  23  Prefactor     8.8966        20.700       -.12644E-06    .10017E-04
  24  Prefactor     39.956        30.276       -.33435E-07    .10781E-04
  25  Normalizat    .77776        .24281        .44477E-06    .11382E-03
  26  Prefactor     .87053        .10402        .20685E-06    .28784E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.74014
  norm       = 0.000100001
  Prefactor  = 12.5087
  Prefactor  = 35.5943
  Prefactor  = 27.1457
  Prefactor  = 4.8838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.5352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.68821
  Prefactor  = 0.000100502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.5151
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.89659
  Prefactor  = 39.9563
  Normalizat = 0.777761
  Prefactor  = 0.870526
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.778     FROM HESSE     STATUS=OK           456 CALLS     3550 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.7401        54.327        .12794E-03   -1.5084    
   2  norm          .10000E-03    7.0840        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.509        7.5360        .11326E-03   -1.5000    
   4  Prefactor     35.594        34.287        .67174E-04   -1.4514    
   5  Prefactor     27.146        17.205        .76850E-04   -1.4665    
   6  Prefactor     4.8838        30.522        .18191E-03   -1.5266    
   7  Prefactor     .10000E-03    20.755        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    209.52        .42071E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     27.535        50.685        .76306E-04   -1.4658    
  10  Prefactor     .10000E-03    9.6915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    43.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6882        8.1747        .16113E-02   -1.5448    
  13  Prefactor     .10050E-03    4.1773        .50182E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.2386        .16464E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    30.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.515        69.233        .86365E-04   -1.4780    
  18  Prefactor     .10000E-03    14.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3046        .16900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    6.4155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.1724        .13358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.8966        20.694        .13436E-03   -1.5111    
  24  Prefactor     39.956        30.319        .63415E-04   -1.4443    
  25  Normalizat    .77776        .28201        .35337E-03   -1.0090    
  26  Prefactor     .87053        .12407        .15615E-03   -.97179    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4757e-09
Minuit parameter uncertainties:
  1  46.0709
  2  0.000173776
  3  7.5366
  4  34.3062
  5  17.208
  6  24.4366
  7  9.68027e-06
  8  0.000331456
  9  50.7642
  10  3.05324e-05
  11  0.000136421
  12  7.43125
  13  0.00289688
  14  5.81531e-06
  15  2.33216e-05
  16  7.08305e-05
  17  69.4932
  18  4.60173e-05
  19  1.83265e-05
  20  1.75306e-05
  21  8.80207e-06
  22  1.51057e-05
  23  20.7104
  24  30.3304
  25  0.282542
  26  0.124114
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 5918.77774141

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.053e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.390e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.705e-01  1.241e-01  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  7.778e-01  2.825e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 7.69e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.94e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/479066/likelihoodResults_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5918.77823324
delta logL = -0.000491825032441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5918.77774143
delta logL = -1.95796019398e-08

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3875       1.0000          .0000       10.000    
     3 'Normalizat'    .77773       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87053       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5720E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5918.778     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10013E-03    596.69        .18142E-02** at limit **
   2  Index         2.3457        6.7252        .50000        .14574E-05
   3  Normalizat    .77776        .47573E-01    .35337E-03    .31851E-05
   4  Prefactor     .87053        .22311E-01    .15615E-03    .16833E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100131
  Index      = 2.34567
  Normalizat = 0.777761
  Prefactor  = 0.870526
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.778     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10013E-03    2008.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3457        5.7653        .50000       -.55962    
   3  Normalizat    .77776        .15700        .14135E-04   -1.0090    
   4  Prefactor     .87053        .73068E-01    .31230E-04   -.97179    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.09309e-08
Minuit parameter uncertainties:
  1  0.0336898
  2  4985.35
  3  0.157089
  4  0.073076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/479066': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5918.7777414
delta logL = 1.13805072033e-08

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.001e-04  3.369e-02  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.346e+00  4.985e+03  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  1.027e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
569    Prefactor:  8.705e-01  7.308e-02  0.000e+00  1.000e+01 ( 1.000e+00)
570        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
571        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
568   Normalization:  7.778e-01  1.571e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 320.921 5.592

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/479066/cmap_HighResolution_523670401_523929601_4FGL_J2123.6+0535_daily_bin1097.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/479066

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.94e-03', job_status='DONE', photon_flux_upper_limit='7.69e-08', time_completed='2021-09-26 13:11:26.187614', job_id='479066', GAL2='0.87', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1632687086.19', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='1.14e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.39' WHERE bin_id='1097' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:11:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 479066: <4FGL_J2123.6+0535_daily_bin1097> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1097> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 26 12:55:41 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:56:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 12:56:56 2021
Terminated at Sun Sep 26 13:11:26 2021
Results reported at Sun Sep 26 13:11:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1097 320.921 5.592 523670401 523929601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2123.6+0535 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   725.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             259.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            945 sec.

The output (if any) is above this job summary.

