/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 33 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin408
RA = 336.414, Dec = 21.3418
tmin = 345081601, tmax = 345340801
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='286203', job_status='RUN', time_executed='2021-09-28 10:41:25.058908', time_epoch_executed='1632850885.06' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286203

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286203/ft1_4FGL_J2225.6+2120_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286203/ft1_4FGL_J2225.6+2120_daily_bin408.fits outfile=/scratch/kocevski/286203/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin408.fits ra=336.414 dec=21.3418 rad=12.0 tmin=345081601.0 tmax=345340801.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.56
user 3.30
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.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/286203/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin408.fits evtable="EVENTS" outfile="/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/286203/ltcube_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.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/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits
.....................!
real 11.89
user 11.51
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/286203/ltcube_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.fits outfile=/scratch/kocevski/286203/expmap_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.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/286203/ltcube_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.fits
.....................!
real 191.24
user 185.60
sys 5.28

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 156 point sources and 0 extended sources

Setting source of interest to:
4FGL J2225.6+2120 @ 336.414 21.3418

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits scfile=/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits outfile=/scratch/kocevski/286203/cmap_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.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=336.414 yref=21.3418 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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits scfile=/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits outfile=/scratch/kocevski/286203/cmap_HighResolution_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.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=336.414 yref=21.3418 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286203/Model_4FGL_J2225.6+2120_daily_bin408.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/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits.....................!
real 83.13
user 81.68
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits', '/scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits', expMap='/scratch/kocevski/286203/expmap_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.fits', expCube='/scratch/kocevski/286203/ltcube_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/286203/Model_4FGL_J2225.6+2120_daily_bin408.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2225.6+2120'

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.284e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/286203/ft1_filtered_4FGL_J2225.6+2120_daily_bin408.fits
Spacecraft file(s): /scratch/kocevski/286203/ft2_4FGL_J2225.6+2120_daily_bin408.fits
Exposure map: /scratch/kocevski/286203/expmap_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.fits
Exposure cube: /scratch/kocevski/286203/ltcube_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/286203/Model_4FGL_J2225.6+2120_daily_bin408.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) = 8387.21574647

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    8.0159       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.241       1.0000         .10000E-03   10000.    
     4 'norm      '    3.2417       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.6941       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.5936       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .26802       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.0063       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.396       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3387       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .70705E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .21232       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.565       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.417       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .59088       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2134       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8387.155     FROM MIGRAD    STATUS=CONVERGED    609 CALLS     2546 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    38.838        .13910E-06** at limit **
   2  norm          8.0158        3.3774       -.21491E-06   -.27812E-03
   3  Prefactor     13.241        25.315       -.10999E-05   -.14748E-04
   4  norm          3.2417        1.3618       -.99437E-07   -.16778E-03
   5  Prefactor     .10000E-03    11.474       -.70651E-07** at limit **
   6  norm          1.6940        .98872       -.20009E-06   -.44067E-03
   7  Prefactor     4.5895        15.739       -.17326E-04   -.80484E-04
   8  norm          .10000E-03    3.2608       -.13713E-06** at limit **
   9  Prefactor     .10000E-03    12.571       -.32956E-06** at limit **
  10  Prefactor     .10000E-03    20.759        .85458E-06** at limit **
  11  Prefactor     .10000E-03    4.4494        .20846E-06** at limit **
  12  Prefactor     .26799        .20110       -.72610E-07   -.24659E-02
  13  Prefactor     .10000E-03    2.6823       -.59933E-07** at limit **
  14  norm          .10000E-03    .30641       -.15803E-07** at limit **
  15  Prefactor     .10000E-03    7.6687       -.38355E-07** at limit **
  16  norm          3.0063        1.6261        .14384E-06    .15127E-03
  17  Prefactor     22.410        26.394       -.16017E-04   -.47952E-04
  18  Prefactor     9.3384        8.6319       -.47012E-05   -.37223E-04
  19  Prefactor     .10568E-03    22.376        .11694E-05** at limit **
  20  Prefactor     .21245        .16190        .11506E-06   -.24225E-02
  21  Prefactor     10.564        10.100       -.29072E-05   -.42149E-04
  22  Prefactor     .10000E-03    9.8937        .40606E-06** at limit **
  23  Prefactor     24.410        21.390       -.23353E-05   -.48014E-05
  24  Normalizat    .59101        .23503        .64015E-05   -.64376E-05
  25  Prefactor     1.2133        .11837        .17194E-06   -.12261E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 8.01582
  Prefactor  = 13.2407
  norm       = 3.24167
  Prefactor  = 0.0001
  norm       = 1.694
  Prefactor  = 4.58952
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.267993
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00625
  Prefactor  = 22.4101
  Prefactor  = 9.33838
  Prefactor  = 0.000105683
  Prefactor  = 0.212451
  Prefactor  = 10.5635
  Prefactor  = 0.0001
  Prefactor  = 24.4105
  Normalizat = 0.591007
  Prefactor  = 1.21334
 **********
 **   18 **HESSE 
 **********

 FCN=   8387.155     FROM HESSE     STATUS=OK           443 CALLS     2989 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    38.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          8.0158        3.3748        .99673E-04   -1.5142    
   3  Prefactor     13.241        25.267        .11008E-03   -1.4980    
   4  norm          3.2417        1.3609        .66762E-04   -1.5348    
   5  Prefactor     .10000E-03    11.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.6940        .98028        .66399E-04   -1.5448    
   7  Prefactor     4.5895        15.804        .18780E-03   -1.5279    
   8  norm          .10000E-03    3.3084        .16141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.763        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.4637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .26799        .19254        .33528E-03   -1.5604    
  13  Prefactor     .10000E-03    2.6828        .14648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .31822        .98896E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.0063        1.6268        .83299E-04   -1.5361    
  17  Prefactor     22.410        26.279        .84638E-04   -1.4761    
  18  Prefactor     9.3384        8.6222        .13114E-03   -1.5097    
  19  Prefactor     .10568E-03    25.097        .11229       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .21245        .15432        .27670E-03   -1.5616    
  21  Prefactor     10.564        10.099        .12327E-03   -1.5058    
  22  Prefactor     .10000E-03    10.011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.410        21.381        .81066E-04   -1.4719    
  24  Normalizat    .59101        .24890        .44449E-03   -1.0837    
  25  Prefactor     1.2133        .12872        .17027E-03   -.85922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.6769e-10
Minuit parameter uncertainties:
  1  5.20724e-06
  2  3.37488
  3  25.2871
  4  1.36095
  5  4.41027e-07
  6  0.980292
  7  15.8183
  8  8.64878e-06
  9  4.12651e-05
  10  1.55539e-05
  11  1.73502e-05
  12  0.19254
  13  3.44625e-07
  14  1.87868e-06
  15  1.50282e-05
  16  1.62684
  17  26.293
  18  8.62333
  19  0.0238955
  20  0.154323
  21  10.1006
  22  3.95786e-05
  23  21.3876
  24  0.249369
  25  0.128749
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.735e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.213e+00  1.287e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  5.910e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 7.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.05e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286203/likelihoodResults_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.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) = 8387.15599409
delta logL = -0.00106657995639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8387.15492749
delta logL = 2.14859028347e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8042       1.0000          .0000       10.000    
     3 'Normalizat'    .59101       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2133       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+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=   8387.155     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      256 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.400        .18142E-01** at limit **
   2  Index         2.4368        6.2145        .50000       -.13119E-06
   3  Normalizat    .59101        .16266E-01    .44449E-03    .61232E-04
   4  Prefactor     1.2133        .87300E-02    .17027E-03    .16919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Index      = 2.43679
  Normalizat = 0.591008
  Prefactor  = 1.21334
 **********
 **   18 **HESSE 
 **********

 FCN=   8387.155     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      285 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    993.06        .19379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4368        5.5754        .50000       -.53826    
   3  Normalizat    .59101        .13610        .17779E-04   -1.0837    
   4  Prefactor     1.2133        .73081E-01    .34054E-04   -.85922    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.75099e-08
Minuit parameter uncertainties:
  1  0.00330536
  2  2321.03
  3  0.136175
  4  0.0730874
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286203': 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) = 8387.15492688
delta logL = 6.36662662146e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  3.305e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.437e+00  2.321e+03  0.000e+00  1.000e+01 (-1.000e+00)
275        Scale:  4.626e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  1.213e+00  7.309e-02  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  5.910e-01  1.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 336.414 21.342

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/286203/cmap_HighResolution_345081601_345340801_4FGL_J2225.6+2120_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.05e-03', job_status='DONE', photon_flux_upper_limit='7.64e-08', time_completed='2021-09-28 10:54:10.119864', job_id='286203', GAL2='1.21', fit_tolerance='1e-08', EG2='0.59', EG='0.59', time_epoch_completed='1632851650.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.21', dlogl='6.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='408' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:54:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 286203: <4FGL_J2225.6+2120_daily_bin408> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin408> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep 28 10:40:37 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:40:38 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:40:38 2021
Terminated at Tue Sep 28 10:54:11 2021
Results reported at Tue Sep 28 10:54:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin408 336.414 21.3418 345081601 345340801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2225.6+2120 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   765.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   812 sec.
    Turnaround time :                            814 sec.

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

