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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1492
RA = 336.414, Dec = 21.3418
tmin = 626054401, tmax = 626313601
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='293787', job_status='RUN', time_executed='2021-09-28 11:04:42.038874', time_epoch_executed='1632852282.04' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293787

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293787/ft1_4FGL_J2225.6+2120_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293787/ft1_4FGL_J2225.6+2120_daily_bin1492.fits outfile=/scratch/kocevski/293787/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1492.fits ra=336.414 dec=21.3418 rad=12.0 tmin=626054401.0 tmax=626313601.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 4.15
user 3.91
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.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/293787/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1492.fits evtable="EVENTS" outfile="/scratch/kocevski/293787/ft1_filtered_4FGL_J2225.6+2120_daily_bin1492.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.53
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293787/ft1_filtered_4FGL_J2225.6+2120_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/293787/ltcube_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.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/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.fits
.....................!
real 11.88
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293787/ft1_filtered_4FGL_J2225.6+2120_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/293787/ltcube_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.fits outfile=/scratch/kocevski/293787/expmap_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.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/293787/ltcube_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.fits
.....................!
real 190.20
user 185.77
sys 4.06

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/293787/ft1_filtered_4FGL_J2225.6+2120_daily_bin1492.fits scfile=/scratch/kocevski/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.fits outfile=/scratch/kocevski/293787/cmap_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293787/ft1_filtered_4FGL_J2225.6+2120_daily_bin1492.fits scfile=/scratch/kocevski/293787/ft2_4FGL_J2225.6+2120_daily_bin1492.fits outfile=/scratch/kocevski/293787/cmap_HighResolution_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.0194       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.7986       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.344       1.0000         .10000E-03   10000.    
     8 'norm      '    6.3257       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.6928       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .50076       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.0078       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .96826       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5003       1.0000         .10000E-03   10000.    
    19 'Prefactor '    35.626       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10327       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .97526       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93326       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=   7774.699     FROM MIGRAD    STATUS=CONVERGED    572 CALLS     2929 TOTAL
                     EDM=   .35E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.898        .13847E-04** at limit **
   2  norm          2.0199        2.5458        .10238E-06   -.31149E-04
   3  Prefactor     .10000E-03    26.877       -.37515E-06** at limit **
   4  norm          2.7987        1.6050        .47941E-07    .23442E-04
   5  Prefactor     .10000E-03    24.920        .19349E-05** at limit **
   6  norm          .10000E-03    .32095       -.23952E-07** at limit **
   7  Prefactor     23.344        18.429       -.90053E-07    .17348E-04
   8  norm          6.3255        5.1092        .83894E-07    .55374E-05
   9  Prefactor     .10000E-03    6.0430       -.92158E-07** at limit **
  10  Prefactor     .10000E-03    64.177       -.10549E-04** at limit **
  11  Prefactor     3.6888        13.976        .33570E-05    .52178E-06
  12  Prefactor     .50077        .20073        .14480E-07    .26734E-04
  13  Prefactor     .10000E-03    2.3297        .93104E-08** at limit **
  14  norm          2.0079        1.0710        .33323E-07    .85869E-04
  15  Prefactor     .10000E-03    7.7601       -.35262E-06** at limit **
  16  norm          .96821        .88891       -.10004E-06   -.54669E-04
  17  Prefactor     .10000E-03    16.689       -.54528E-06** at limit **
  18  Prefactor     2.4997        8.9154        .51681E-05   -.26733E-05
  19  Prefactor     35.622        22.260        .12615E-06   -.13330E-05
  20  Prefactor     .10322        .13357        .21373E-07    .49522E-04
  21  Prefactor     .10000E-03    8.7129        .43230E-06** at limit **
  22  Prefactor     .10000E-03    6.3597        .94325E-07** at limit **
  23  Prefactor     .10000E-03    16.803       -.25105E-06** at limit **
  24  Normalizat    .97541        .22437       -.14470E-05    .20552E-04
  25  Prefactor     .93317        .10462        .11912E-06   -.17777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.01993
  Prefactor  = 0.0001
  norm       = 2.79872
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.3439
  norm       = 6.32549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.68882
  Prefactor  = 0.500765
  Prefactor  = 0.0001
  norm       = 2.00785
  Prefactor  = 0.0001
  norm       = 0.968205
  Prefactor  = 0.0001
  Prefactor  = 2.49967
  Prefactor  = 35.6216
  Prefactor  = 0.103218
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.975413
  Prefactor  = 0.933166
 **********
 **   18 **HESSE 
 **********

 FCN=   7774.699     FROM HESSE     STATUS=OK           431 CALLS     3360 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    92.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.0199        2.5325        .15039E-03   -1.5424    
   3  Prefactor     .10000E-03    27.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.7987        1.6017        .81240E-04   -1.5373    
   5  Prefactor     .10000E-03    24.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .32908        .97434E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.344        18.406        .82905E-04   -1.4741    
   8  norm          6.3255        5.1056        .15959E-03   -1.5205    
   9  Prefactor     .10000E-03    6.0661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    64.217        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     3.6888        14.000        .10508E-02   -1.5324    
  12  Prefactor     .50077        .19921        .23823E-04   -1.5566    
  13  Prefactor     .10000E-03    2.3300        .13144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.0079        1.0710        .29220E-04   -1.5425    
  15  Prefactor     .10000E-03    7.7692        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .96821        .94693        .77139E-03   -1.5511    
  17  Prefactor     .10000E-03    16.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.4997        8.9123        .12923E-02   -1.5392    
  19  Prefactor     35.622        22.030        .67142E-04   -1.4514    
  20  Prefactor     .10322        .12319        .33362E-03   -1.5644    
  21  Prefactor     .10000E-03    8.7791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.3986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    16.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .97541        .26229        .35528E-03   -.93859    
  25  Prefactor     .93317        .12430        .17943E-03   -.94992    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51453e-10
Minuit parameter uncertainties:
  1  5.44539e-05
  2  2.53265
  3  8.29413e-06
  4  1.60168
  5  3.90658e-07
  6  2.47918e-07
  7  18.411
  8  5.10591
  9  1.14093e-06
  10  4.01861e-05
  11  14.0123
  12  0.19921
  13  7.65737e-08
  14  1.07102
  15  1.05193e-06
  16  0.946947
  17  4.88199e-06
  18  8.91699
  19  22.0348
  20  0.123188
  21  3.98759e-06
  22  2.86589e-06
  23  1.78395e-06
  24  0.26264
  25  0.124343
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.689e+00  1.401e+01  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.332e-01  1.243e-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:  9.754e-01  2.626e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.08
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293787/likelihoodResults_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7773.9200259
delta logL = 0.779308071742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7773.89007957
delta logL = 0.809254410069

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0436       1.0000         .10000E-03   10000.    
     2 'Index     '    4.9053       1.0000          .0000       10.000    
     3 'Normalizat'    .87512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96540       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=   7773.890     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      227 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0395        30.843        .72311E-02    .12453E-02
   2  Index         4.9078        3.9846        .20140        .16782E-03
   3  Normalizat    .87580        .59860E-01    .84173E-01   -.30261E-04
   4  Prefactor     .96519        .29769E-01    .45833E-01   -.15740E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.0395
  Index      = 4.90778
  Normalizat = 0.875803
  Prefactor  = 0.965189
 **********
 **   18 **HESSE 
 **********

 FCN=   7773.890     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      258 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0395        68.608        .99152E-04   -1.5422    
   2  Index         4.9078        7.4116        .82278E-02   -.18444E-01
   3  Normalizat    .87580        .23686        .37270E-03   -.97316    
   4  Prefactor     .96519        .11279        .17671E-03   -.93899    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42759e-09
Minuit parameter uncertainties:
  1  23.6871
  2  8.68117
  3  0.237138
  4  0.112817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293787': 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) = 7773.89007165
delta logL = 0.809262322125

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.040e+00  2.369e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  4.908e+00  8.681e+00  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.652e-01  1.128e-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:  8.758e-01  2.371e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 336.414 21.342
Photon Index (Free Index): 4.91 +/- 8.68
Photon Flux (Free Index): 9.66e-08 +/- 9.42e-08
Energy Flux (Free Index): 1.30e-05 +/- 1.97e-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/293787/cmap_HighResolution_626054401_626313601_4FGL_J2225.6+2120_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', comment='SUCCESS', energy_flux2='1.30e-05', dlogl='8.09e-01', photon_flux2='9.66e-08', job_status='DONE', time_completed='2021-09-28 11:17:06.535049', photon_index_error2='8.68', photon_index2='4.91', ts='0.08', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='1.97e-05', EG='0.98', time_epoch_completed='1632853026.54', return_code='0', job_id='293787', GAL2='0.97', EG2='0.88', return_code2='102', photon_flux_error2='9.42e-08', ts2='1.89', photon_index='2.81' WHERE bin_id='1492' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:17:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 293787: <4FGL_J2225.6+2120_daily_bin1492> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1492> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:44 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:45 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:45 2021
Terminated at Tue Sep 28 11:17:07 2021
Results reported at Tue Sep 28 11:17:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1492 336.414 21.3418 626054401 626313601 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 :                                   741.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             264.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

