/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 3 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 = 7453
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin1275
RA = 320.921, Dec = 5.592
tmin = 569808001, tmax = 570067201
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='480378', job_status='RUN', time_executed='2021-09-26 13:01:39.664763', time_epoch_executed='1632686499.66' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='1275'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/480378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/480378/ft1_4FGL_J2123.6+0535_daily_bin1275.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/480378/ft1_4FGL_J2123.6+0535_daily_bin1275.fits outfile=/scratch/kocevski/480378/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1275.fits ra=320.921 dec=5.592 rad=12.0 tmin=569808001.0 tmax=570067201.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.59
user 3.34
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.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/480378/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin1275.fits evtable="EVENTS" outfile="/scratch/kocevski/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits" evtable="EVENTS" scfile=/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits sctable="SC_DATA" outfile=/scratch/kocevski/480378/ltcube_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.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/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits
.....................!
real 14.22
user 13.87
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits sctable="SC_DATA" expcube=/scratch/kocevski/480378/ltcube_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.fits outfile=/scratch/kocevski/480378/expmap_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.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/480378/ltcube_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.fits
.....................!
real 194.40
user 188.49
sys 5.15

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/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits scfile=/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits outfile=/scratch/kocevski/480378/cmap_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits scfile=/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits outfile=/scratch/kocevski/480378/cmap_HighResolution_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits evtable="EVENTS" scfile=/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/480378/Model_4FGL_J2123.6+0535_daily_bin1275.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/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits.....................!
real 71.08
user 69.24
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits', '/scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits', expMap='/scratch/kocevski/480378/expmap_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.fits', expCube='/scratch/kocevski/480378/ltcube_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/480378/Model_4FGL_J2123.6+0535_daily_bin1275.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/480378/ft1_filtered_4FGL_J2123.6+0535_daily_bin1275.fits
Spacecraft file(s): /scratch/kocevski/480378/ft2_4FGL_J2123.6+0535_daily_bin1275.fits
Exposure map: /scratch/kocevski/480378/expmap_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.fits
Exposure cube: /scratch/kocevski/480378/ltcube_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/480378/Model_4FGL_J2123.6+0535_daily_bin1275.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) = 7133.49300407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.016       1.0000         .10000E-03   10000.    
     2 'norm      '    .22677E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.9694       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.3548       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.103       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.677       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.515       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.9967       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .58064E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.404       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6330       1.0000         .10000E-03   10000.    
    20 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    24.434       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2258       1.0000         .10000E-03   10000.    
    24 'Prefactor '    12.913       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .58667       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0870       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=   7133.408     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3115 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.000        57.017        .28662E-05    .48362E-04
   2  norm          .10000E-03    18.704       -.13735E-05** at limit **
   3  Prefactor     2.9688        4.3926        .82054E-07   -.71289E-05
   4  Prefactor     2.3322        174.91        .69669E-05    .36776E-05
   5  Prefactor     .10000E-03    26.032        .13175E-05** at limit **
   6  Prefactor     .10000E-03    70.491        .37313E-06** at limit **
   7  Prefactor     23.114        24.065       -.56709E-07    .27593E-04
   8  Prefactor     .10000E-03    23.288       -.57519E-06** at limit **
   9  Prefactor     18.639        68.406        .58933E-05    .12331E-04
  10  Prefactor     27.517        26.904        .15093E-06    .26011E-04
  11  Prefactor     8.9973        31.621       -.54817E-06   -.92781E-06
  12  Prefactor     .40631E-03    4.5413       -.12108E-05** at limit **
  13  Prefactor     5.0408        8.5084        .43368E-06    .21724E-03
  14  Prefactor     .10000E-03    1.0276       -.24881E-06** at limit **
  15  Prefactor     43.358        39.142        .33698E-05    .57181E-04
  16  Prefactor     .10000E-03    72.017        .19547E-07** at limit **
  17  Prefactor     .10000E-03    36.072       -.14645E-05** at limit **
  18  Prefactor     .10000E-03    27.796        .11453E-05** at limit **
  19  norm          3.6329        2.4733        .10474E-06    .17532E-03
  20  norm          .10000E-03    17.955        .10009E-05** at limit **
  21  Prefactor     .10000E-03    5.3724       -.39693E-07** at limit **
  22  Prefactor     24.434        13.764        .11602E-07    .52099E-05
  23  Prefactor     2.2182        11.292        .44483E-05    .13054E-03
  24  Prefactor     12.914        18.159        .83535E-07    .24913E-05
  25  Normalizat    .58603        .27634       -.33994E-05    .85846E-04
  26  Prefactor     1.0873        .11715        .20509E-06    .23665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.9996
  norm       = 0.0001
  Prefactor  = 2.96883
  Prefactor  = 2.33221
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.1139
  Prefactor  = 0.0001
  Prefactor  = 18.6394
  Prefactor  = 27.5167
  Prefactor  = 8.99731
  Prefactor  = 0.000406311
  Prefactor  = 5.0408
  Prefactor  = 0.0001
  Prefactor  = 43.3578
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.63293
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4338
  Prefactor  = 2.21818
  Prefactor  = 12.9143
  Normalizat = 0.586025
  Prefactor  = 1.08732
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.408     FROM HESSE     STATUS=OK           464 CALLS     3579 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.000        57.191        .65873E-04   -1.4491    
   2  norm          .10000E-03    19.158        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.9688        4.3743        .20676E-03   -1.5363    
   4  Prefactor     2.3322        176.62        .26710E-03   -1.5403    
   5  Prefactor     .10000E-03    26.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    71.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.114        24.013        .83336E-04   -1.4746    
   8  Prefactor     .10000E-03    23.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     18.639        68.358        .92677E-04   -1.4844    
  10  Prefactor     27.517        26.866        .76374E-04   -1.4658    
  11  Prefactor     8.9973        31.544        .13363E-03   -1.5108    
  12  Prefactor     .40631E-03    11.498        .45564E-01   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0408        8.5013        .17905E-03   -1.5259    
  14  Prefactor     .10000E-03    1.0388        .83568E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     43.358        39.247        .60851E-04   -1.4390    
  16  Prefactor     .10000E-03    72.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    36.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6329        2.4633        .10311E-03   -1.5327    
  20  norm          .10000E-03    18.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.4539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     24.434        13.753        .81038E-04   -1.4719    
  23  Prefactor     2.2182        11.283        .13780E-02   -1.5410    
  24  Prefactor     12.914        18.154        .11147E-03   -1.4989    
  25  Normalizat    .58603        .30021        .45503E-03   -1.0858    
  26  Prefactor     1.0873        .13070        .15810E-03   -.89873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3225e-09
Minuit parameter uncertainties:
  1  57.2754
  2  5.0284e-05
  3  4.37481
  4  40.7154
  5  0.000149781
  6  0.00034801
  7  24.0234
  8  2.51081e-05
  9  68.6479
  10  26.8776
  11  31.6023
  12  0.118715
  13  8.50332
  14  8.9212e-06
  15  39.2708
  16  1.68031e-05
  17  4.3303e-05
  18  2.55864e-05
  19  2.46341
  20  3.7116e-05
  21  2.80853e-06
  22  13.755
  23  10.0083
  24  18.1615
  25  0.301044
  26  0.130737
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.752e+01  2.688e+01  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:  1.087e+00  1.307e-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:  5.860e-01  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.18e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.68e-05

TS (Fixed Index): 1.65
Ra Dec: 320.921 5.592
Photon Flux Upper Limit: 1.62e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.25e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/480378/likelihoodResults_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.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): 0
logL (Free Index) = 7133.31441421
delta logL = 0.0937420143318

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7133.30930046
delta logL = 0.0988557659966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.712       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7626       1.0000          .0000       10.000    
     3 'Normalizat'    .56038       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0949       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=   7133.309     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      301 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.702        33.288        .90212E-04    .16572E-03
   2  Index         2.7625        1.0586        .79203E-02    .43168E-04
   3  Normalizat    .56037        .28610        .46479E-03   -.90856E-03
   4  Prefactor     1.0951        .13043        .15760E-03   -.31592E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.7018
  Index      = 2.76254
  Normalizat = 0.560373
  Prefactor  = 1.09508
 **********
 **   18 **HESSE 
 **********

 FCN=   7133.309     FROM HESSE     STATUS=OK            25 CALLS      326 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.702        27.965        .36085E-05   -1.4820    
   2  Index         2.7625        .88937        .31681E-03   -.46396    
   3  Normalizat    .56037        .28445        .18592E-04   -1.0969    
   4  Prefactor     1.0951        .12982        .31519E-04   -.89624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05849e-09
Minuit parameter uncertainties:
  1  27.9839
  2  0.895338
  3  0.285196
  4  0.129856
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/480378': 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): 0
logL (Free Index) = 7133.30929728
delta logL = 0.0988589420449

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  1.970e+01  2.798e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.763e+00  8.953e-01  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:  1.095e+00  1.299e-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:  5.604e-01  2.852e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 320.921 5.592
Photon Index (Free Index): 2.76 +/- 0.90
Photon Flux (Free Index): 6.98e-08 +/- 7.04e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.45e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/480378/cmap_HighResolution_569808001_570067201_4FGL_J2123.6+0535_daily_bin1275.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.25e-02', comment='SUCCESS', photon_flux='5.18e-08', energy_flux2='1.60e-05', photon_flux_error='5.06e-08', dlogl='9.89e-02', energy_flux='1.72e-05', photon_flux2='6.98e-08', job_status='DONE', time_completed='2021-09-26 13:15:20.884211', photon_index_error2='0.90', photon_index2='2.76', ts='1.65', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='1.45e-05', EG='0.59', time_epoch_completed='1632687320.88', return_code='0', job_id='480378', GAL2='1.10', EG2='0.56', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='7.04e-08', ts2='1.87', photon_index='2.39' WHERE bin_id='1275' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 13:15:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 480378: <4FGL_J2123.6+0535_daily_bin1275> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin1275> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 26 13:00:27 2021
Job was executed on host(s) <bullet0208>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 13:01:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 26 13:01:27 2021
Terminated at Sun Sep 26 13:15:21 2021
Results reported at Sun Sep 26 13:15:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin1275 320.921 5.592 569808001 570067201 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 :                                   816.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   834 sec.
    Turnaround time :                            894 sec.

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

