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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1432
RA = 336.414, Dec = 21.3418
tmin = 610502401, tmax = 610761601
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='293644', job_status='RUN', time_executed='2021-09-28 11:03:13.274241', time_epoch_executed='1632852193.27' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1432'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293644

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293644/ft1_4FGL_J2225.6+2120_daily_bin1432.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293644/ft2_4FGL_J2225.6+2120_daily_bin1432.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293644/ft1_4FGL_J2225.6+2120_daily_bin1432.fits outfile=/scratch/kocevski/293644/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1432.fits ra=336.414 dec=21.3418 rad=12.0 tmin=610502401.0 tmax=610761601.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.37
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293644/ft1_filtered_4FGL_J2225.6+2120_daily_bin1432.fits evtable="EVENTS" scfile=/scratch/kocevski/293644/ft2_4FGL_J2225.6+2120_daily_bin1432.fits sctable="SC_DATA" expcube=/scratch/kocevski/293644/ltcube_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.fits outfile=/scratch/kocevski/293644/expmap_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.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/293644/ltcube_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.fits
.....................!
real 190.42
user 185.25
sys 4.64

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/293644/ft1_filtered_4FGL_J2225.6+2120_daily_bin1432.fits scfile=/scratch/kocevski/293644/ft2_4FGL_J2225.6+2120_daily_bin1432.fits outfile=/scratch/kocevski/293644/cmap_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293644/ft1_filtered_4FGL_J2225.6+2120_daily_bin1432.fits scfile=/scratch/kocevski/293644/ft2_4FGL_J2225.6+2120_daily_bin1432.fits outfile=/scratch/kocevski/293644/cmap_HighResolution_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.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.54
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293644/ft1_filtered_4FGL_J2225.6+2120_daily_bin1432.fits', '/scratch/kocevski/293644/ft2_4FGL_J2225.6+2120_daily_bin1432.fits', expMap='/scratch/kocevski/293644/expmap_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.fits', expCube='/scratch/kocevski/293644/ltcube_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293644/Model_4FGL_J2225.6+2120_daily_bin1432.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/293644/ft1_filtered_4FGL_J2225.6+2120_daily_bin1432.fits
Spacecraft file(s): /scratch/kocevski/293644/ft2_4FGL_J2225.6+2120_daily_bin1432.fits
Exposure map: /scratch/kocevski/293644/expmap_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.fits
Exposure cube: /scratch/kocevski/293644/ltcube_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293644/Model_4FGL_J2225.6+2120_daily_bin1432.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) = 8530.12567938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .42076       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8014       1.0000         .10000E-03   10000.    
    14 'norm      '    1.5895       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.3707       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.4252       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .27188       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7906       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.650       1.0000         .10000E-03   10000.    
    23 'Prefactor '    26.458       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1327       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98749       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=   8530.124     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2887 TOTAL
                     EDM=   .65E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.951       -.78279E-07** at limit **
   2  norm          .10000E-03    1.4409        .33365E-07** at limit **
   3  Prefactor     .10000E-03    19.630       -.13535E-05** at limit **
   4  norm          .10000E-03    .55823       -.79704E-08** at limit **
   5  Prefactor     .10000E-03    40.641       -.32428E-05** at limit **
   6  norm          .10000E-03    .18168       -.23734E-08** at limit **
   7  Prefactor     .10000E-03    3.6990        .70358E-08** at limit **
   8  norm          .10000E-03    1.4852       -.66871E-08** at limit **
   9  Prefactor     .10000E-03    13.469        .10843E-06** at limit **
  10  Prefactor     .10000E-03    22.810        .11976E-05** at limit **
  11  Prefactor     .10000E-03    5.2106       -.16397E-07** at limit **
  12  Prefactor     .42075        .18628       -.51837E-07   -.25257E-03
  13  Prefactor     2.8015        10.236        .53706E-05   -.57132E-04
  14  norm          1.5893        1.1374       -.98383E-07   -.95209E-03
  15  Prefactor     .10000E-03    59.372        .24821E-05** at limit **
  16  norm          2.3707        1.5313       -.76170E-08   -.14440E-04
  17  Prefactor     .10000E-03    8.7736       -.27774E-07** at limit **
  18  Prefactor     5.4254        5.8984        .46508E-07    .33338E-05
  19  Prefactor     .10000E-03    26.559        .16066E-05** at limit **
  20  Prefactor     .27187        .12584       -.14822E-07   -.17515E-02
  21  Prefactor     4.7911        8.7407        .84916E-07   -.12302E-04
  22  Prefactor     10.650        9.0879        .21817E-06   -.60043E-04
  23  Prefactor     26.459        26.294       -.26248E-07   -.12168E-04
  24  Normalizat    1.1327        .20193        .19118E-07   -.79309E-04
  25  Prefactor     .98751        .10256       -.16142E-06   -.83965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.420751
  Prefactor  = 2.80147
  norm       = 1.58932
  Prefactor  = 0.0001
  norm       = 2.37069
  Prefactor  = 0.0001
  Prefactor  = 5.42537
  Prefactor  = 0.0001
  Prefactor  = 0.27187
  Prefactor  = 4.79109
  Prefactor  = 10.6502
  Prefactor  = 26.4593
  Normalizat = 1.13266
  Prefactor  = 0.987512
 **********
 **   18 **HESSE 
 **********

 FCN=   8530.124     FROM HESSE     STATUS=OK           423 CALLS     3310 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    1.5071        .21629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    19.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.1968        .13384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    40.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .18333        .38425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.7039        .17348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.4909        .10991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.2369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .42075        .18442        .24953E-04   -1.5578    
  13  Prefactor     2.8015        10.252        .12153E-02   -1.5373    
  14  norm          1.5893        1.1296        .79791E-04   -1.5456    
  15  Prefactor     .10000E-03    60.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.3707        1.5371        .89103E-04   -1.5400    
  17  Prefactor     .10000E-03    8.7777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.4254        5.8957        .17252E-03   -1.5242    
  19  Prefactor     .10000E-03    26.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .27187        .12432        .21283E-04   -1.5604    
  21  Prefactor     4.7911        8.7298        .18381E-03   -1.5270    
  22  Prefactor     10.650        9.0819        .61386E-03   -1.5055    
  23  Prefactor     26.459        26.299        .77881E-04   -1.4679    
  24  Normalizat    1.1327        .23980        .32883E-03   -.88710    
  25  Prefactor     .98751        .12239        .18055E-03   -.93147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17834e-10
Minuit parameter uncertainties:
  1  3.76243e-06
  2  2.53205e-06
  3  5.60281e-05
  4  8.87596e-07
  5  0.000246918
  6  8.3574e-08
  7  3.26059e-07
  8  2.08915e-08
  9  4.67335e-07
  10  7.97712e-05
  11  2.40241e-07
  12  0.184423
  13  10.2583
  14  1.12959
  15  0.000132944
  16  1.53713
  17  1.57783e-06
  18  5.89629
  19  6.33815e-05
  20  0.124324
  21  8.73208
  22  9.08304
  23  26.3102
  24  0.240029
  25  0.122428
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.402e-07  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:  9.875e-01  1.224e-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:  1.133e+00  2.400e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293644/likelihoodResults_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.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) = 8530.12442622
delta logL = -0.000910047854632

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8530.12351618
delta logL = -2.57568899542e-09

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.8113       1.0000          .0000       10.000    
     3 'Normalizat'    1.1327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98751       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.

 FCN=   8530.124     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      208 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    78.278        .90712E-02** at limit **
   2  Index         2.8115        5.7204        .50000       -.38940E-06
   3  Normalizat    1.1327        .20270E-01    .74303E-01   -.12029E-04
   4  Prefactor     .98751        .10522E-01    .46111E-01   -.23726E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81147
  Normalizat = 1.13266
  Prefactor  = 0.987512
 **********
 **   18 **HESSE 
 **********

 FCN=   8530.124     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .83E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1028.6        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8115        6.0886        .50000       -.45305    
   3  Normalizat    1.1327        .11835        .32883E-03   -.88710    
   4  Prefactor     .98751        .61533E-01    .18055E-03   -.93147    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.27697e-08
Minuit parameter uncertainties:
  1  9.01996e-05
  2  3420.58
  3  0.11838
  4  0.0615375
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293644': 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) = 8530.12351617
delta logL = 3.81987774745e-11

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  9.020e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  3.421e+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:  9.875e-01  6.154e-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:  1.133e+00  1.184e-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/293644/cmap_HighResolution_610502401_610761601_4FGL_J2225.6+2120_daily_bin1432.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.11e-03', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-09-28 11:16:47.326186', job_id='293644', GAL2='0.99', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1632853007.33', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.82e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1432' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 293644: <4FGL_J2225.6+2120_daily_bin1432> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1432> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:35 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:36 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:00:36 2021
Terminated at Tue Sep 28 11:16:48 2021
Results reported at Tue Sep 28 11:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1432 336.414 21.3418 610502401 610761601 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 :                                   810.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            973 sec.

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

