/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 143 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2123.6+0535_daily_bin176
RA = 320.921, Dec = 5.592
tmin = 284947201, tmax = 285206401
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='473492', job_status='RUN', time_executed='2021-09-26 12:39:45.328953', time_epoch_executed='1632685185.33' WHERE source_name='4FGL J2123.6+0535' and cadence='daily' and bin_id='176'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/473492

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/473492/ft1_4FGL_J2123.6+0535_daily_bin176.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/473492/ft2_4FGL_J2123.6+0535_daily_bin176.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/473492/ft1_4FGL_J2123.6+0535_daily_bin176.fits outfile=/scratch/kocevski/473492/ft1_filteredMKT_4FGL_J2123.6+0535_daily_bin176.fits ra=320.921 dec=5.592 rad=12.0 tmin=284947201.0 tmax=285206401.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.54
user 3.31
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/473492/ft1_filtered_4FGL_J2123.6+0535_daily_bin176.fits" evtable="EVENTS" scfile=/scratch/kocevski/473492/ft2_4FGL_J2123.6+0535_daily_bin176.fits sctable="SC_DATA" outfile=/scratch/kocevski/473492/ltcube_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.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/473492/ft2_4FGL_J2123.6+0535_daily_bin176.fits
.....................!
real 15.01
user 14.47
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/473492/ft1_filtered_4FGL_J2123.6+0535_daily_bin176.fits evtable="EVENTS" scfile=/scratch/kocevski/473492/ft2_4FGL_J2123.6+0535_daily_bin176.fits sctable="SC_DATA" expcube=/scratch/kocevski/473492/ltcube_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.fits outfile=/scratch/kocevski/473492/expmap_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.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/473492/ltcube_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.fits
.....................!
real 192.74
user 186.07
sys 5.53

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/473492/ft1_filtered_4FGL_J2123.6+0535_daily_bin176.fits scfile=/scratch/kocevski/473492/ft2_4FGL_J2123.6+0535_daily_bin176.fits outfile=/scratch/kocevski/473492/cmap_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/473492/ft1_filtered_4FGL_J2123.6+0535_daily_bin176.fits scfile=/scratch/kocevski/473492/ft2_4FGL_J2123.6+0535_daily_bin176.fits outfile=/scratch/kocevski/473492/cmap_HighResolution_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3313       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10502E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8983       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.584       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10233E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.0011       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.9945       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.2436       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10834E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.830       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.7953       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .11061E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    28.782       1.0000         .10000E-03   10000.    
    21 'Prefactor '    13.123       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.192       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.457       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .52875       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1301       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=   6782.559     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3089 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.017        .13640E-06** at limit **
   2  norm          6.3302        8.5567       -.94314E-07    .30330E-04
   3  Prefactor     .10000E-03    3.9246        .52546E-06** at limit **
   4  Prefactor     6.2422        69.330       -.68652E-06   -.35986E-05
   5  Prefactor     2.8597        36.956       -.51370E-06    .19129E-04
   6  Prefactor     .10000E-03    14.208        .26670E-06** at limit **
   7  Prefactor     .10000E-03    8.1097        .19757E-08** at limit **
   8  Prefactor     .10000E-03    11.468       -.13075E-06** at limit **
   9  Prefactor     36.490        73.328        .38156E-05   -.48932E-04
  10  Prefactor     27.583        20.439       -.11492E-06   -.83425E-05
  11  Prefactor     .10000E-03    19.997       -.70910E-06** at limit **
  12  Prefactor     6.0012        5.9497        .96894E-07    .35246E-04
  13  Prefactor     5.9945        7.5439        .50197E-07    .28383E-04
  14  Prefactor     1.2418        2.5003       -.33565E-06   -.13507E-03
  15  Prefactor     .10000E-03    31.165        .20753E-06** at limit **
  16  Prefactor     35.823        39.810        .21882E-06    .11828E-04
  17  Prefactor     6.8830        95.138        .11946E-04   -.17712E-04
  18  Prefactor     .10000E-03    50.206       -.15796E-05** at limit **
  19  norm          .10000E-03    1.9138        .34058E-05** at limit **
  20  norm          28.782        20.791        .17353E-05   -.10829E-03
  21  Prefactor     13.121        7.4822        .73362E-08    .76149E-04
  22  Prefactor     11.191        13.385       -.13823E-06    .20967E-04
  23  Prefactor     .10000E-03    7.5339       -.10239E-06** at limit **
  24  Prefactor     25.448        33.931        .45290E-07   -.81163E-06
  25  Normalizat    .52916        .29923        .16941E-05   -.19359E-04
  26  Prefactor     1.1300        .12616        .21838E-07    .68605E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.33025
  Prefactor  = 0.000100003
  Prefactor  = 6.24223
  Prefactor  = 2.8597
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.49
  Prefactor  = 27.5829
  Prefactor  = 0.0001
  Prefactor  = 6.0012
  Prefactor  = 5.99445
  Prefactor  = 1.24177
  Prefactor  = 0.000100001
  Prefactor  = 35.8231
  Prefactor  = 6.883
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 28.7817
  Prefactor  = 13.1212
  Prefactor  = 11.1909
  Prefactor  = 0.0001
  Prefactor  = 25.4478
  Normalizat = 0.529159
  Prefactor  = 1.12999
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.559     FROM HESSE     STATUS=OK           464 CALLS     3553 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3302        8.5424        .15952E-03   -1.5205    
   3  Prefactor     .10000E-03    15.827        .31067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2422        69.036        .16065E-03   -1.5208    
   5  Prefactor     2.8597        36.111        .23869E-03   -1.5370    
   6  Prefactor     .10000E-03    14.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.1138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.490        73.203        .66254E-04   -1.4499    
  10  Prefactor     27.583        20.413        .76279E-04   -1.4657    
  11  Prefactor     .10000E-03    20.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.0012        5.9120        .16391E-03   -1.5218    
  13  Prefactor     5.9945        7.5026        .16400E-03   -1.5218    
  14  Prefactor     1.2418        2.4557        .17221E-03   -1.5485    
  15  Prefactor     .10000E-03    31.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     35.823        39.691        .66952E-04   -1.4510    
  17  Prefactor     6.8830        94.069        .15392E-03   -1.5183    
  18  Prefactor     .10000E-03    50.799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.9208        .16873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          28.782        20.634        .74678E-04   -1.4634    
  21  Prefactor     13.121        7.4752        .11057E-03   -1.4983    
  22  Prefactor     11.191        13.346        .11975E-03   -1.5039    
  23  Prefactor     .10000E-03    7.5417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     25.448        33.823        .79395E-04   -1.4699    
  25  Normalizat    .52916        .30477        .47874E-03   -1.1108    
  26  Prefactor     1.1300        .13534        .15881E-03   -.88514    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.40044e-10
Minuit parameter uncertainties:
  1  2.68696e-05
  2  8.54403
  3  0.000433069
  4  41.5787
  5  20.3389
  6  5.33764e-05
  7  7.17382e-06
  8  7.01646e-06
  9  73.3842
  10  20.4184
  11  2.93809e-05
  12  5.91262
  13  7.50379
  14  2.4559
  15  0.000308703
  16  39.7203
  17  50.9885
  18  3.01093e-05
  19  2.10263e-05
  20  20.6391
  21  7.47577
  22  13.3498
  23  1.14141e-05
  24  33.8489
  25  0.305736
  26  0.135381
Done.

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

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  2.758e+01  2.042e+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.130e+00  1.354e-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.292e-01  3.057e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.79
Ra Dec: 320.921 5.592
Photon Index (Fixed Index): 2.39 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 3.84e-08
Energy Flux (Fixed Index): 1.73e-05 +/- 1.28e-05

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) = 6782.15160016
delta logL = 0.407570002451

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6782.15094941
delta logL = 0.408220751558

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.591       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9043       1.0000          .0000       10.000    
     3 'Normalizat'    .55096       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1231       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=   6782.151     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.594        29.863        .63703E-04   -.12142E-02
   2  Index         1.9042        .49403        .79221E-02   -.57888E-03
   3  Normalizat    .55093        .28080        .46957E-03    .13911E-03
   4  Prefactor     1.1231        .13350        .15921E-03    .48713E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.5938
  Index      = 1.90422
  Normalizat = 0.55093
  Prefactor  = 1.12306
 **********
 **   18 **HESSE 
 **********

 FCN=   6782.151     FROM HESSE     STATUS=OK            23 CALLS      316 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.594        29.737        .12741E-04   -1.4449    
   2  Index         1.9042        .49194        .31688E-03   -.66767    
   3  Normalizat    .55093        .28081        .18783E-04   -1.1011    
   4  Prefactor     1.1231        .13352        .31842E-04   -.88733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.8944e-09
Minuit parameter uncertainties:
  1  29.7485
  2  0.493235
  3  0.281539
  4  0.133555
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/473492': 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) = 6782.15094938
delta logL = 0.4082207761

Extracting fit parameters...

4FGL J2123.6+0535
   Spectrum: PowerLaw
313    Prefactor:  3.959e+01  2.975e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  1.904e+00  4.932e-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.123e+00  1.336e-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.509e-01  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.60
Ra Dec: 320.921 5.592
Photon Index (Free Index): 1.90 +/- 0.49
Photon Flux (Free Index): 3.69e-08 +/- 3.35e-08
Energy Flux (Free Index): 3.27e-05 +/- 3.66e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/473492/cmap_HighResolution_284947201_285206401_4FGL_J2123.6+0535_daily_bin176.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='3.27e-05', photon_flux_error='3.84e-08', dlogl='4.08e-01', energy_flux='1.73e-05', photon_flux2='3.69e-08', job_status='DONE', time_completed='2021-09-26 12:51:32.047334', photon_index_error2='0.49', photon_index2='1.90', ts='4.79', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='3.66e-05', EG='0.53', time_epoch_completed='1632685892.05', return_code='0', job_id='473492', GAL2='1.12', EG2='0.55', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.35e-08', ts2='5.60', photon_index='2.39' WHERE bin_id='176' AND source_name='4FGL J2123.6+0535' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 26 12:51:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 473492: <4FGL_J2123.6+0535_daily_bin176> in cluster <slac> Done

Job <4FGL_J2123.6+0535_daily_bin176> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Sep 26 12:35:30 2021
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 26 12:37:13 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:37:13 2021
Terminated at Sun Sep 26 12:51:32 2021
Results reported at Sun Sep 26 12:51:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2123.6+0535_daily_bin176 320.921 5.592 284947201 285206401 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 :                                   702.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            962 sec.

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

