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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1398
RA = 336.414, Dec = 21.3418
tmin = 601689601, tmax = 601948801
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='293587', job_status='RUN', time_executed='2021-09-28 11:02:53.593294', time_epoch_executed='1632852173.59' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293587

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293587/ft1_4FGL_J2225.6+2120_daily_bin1398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293587/ft1_4FGL_J2225.6+2120_daily_bin1398.fits outfile=/scratch/kocevski/293587/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1398.fits ra=336.414 dec=21.3418 rad=12.0 tmin=601689601.0 tmax=601948801.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.53
user 3.30
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.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/293587/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1398.fits evtable="EVENTS" outfile="/scratch/kocevski/293587/ft1_filtered_4FGL_J2225.6+2120_daily_bin1398.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293587/ft1_filtered_4FGL_J2225.6+2120_daily_bin1398.fits" evtable="EVENTS" scfile=/scratch/kocevski/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.fits sctable="SC_DATA" outfile=/scratch/kocevski/293587/ltcube_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.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/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.fits
.....................!
real 12.18
user 11.81
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293587/ft1_filtered_4FGL_J2225.6+2120_daily_bin1398.fits evtable="EVENTS" scfile=/scratch/kocevski/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.fits sctable="SC_DATA" expcube=/scratch/kocevski/293587/ltcube_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.fits outfile=/scratch/kocevski/293587/expmap_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.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/293587/ltcube_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.fits
.....................!
real 191.38
user 185.82
sys 5.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/293587/ft1_filtered_4FGL_J2225.6+2120_daily_bin1398.fits scfile=/scratch/kocevski/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.fits outfile=/scratch/kocevski/293587/cmap_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.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/293587/ft1_filtered_4FGL_J2225.6+2120_daily_bin1398.fits scfile=/scratch/kocevski/293587/ft2_4FGL_J2225.6+2120_daily_bin1398.fits outfile=/scratch/kocevski/293587/cmap_HighResolution_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.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.55
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.5147       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.3733       1.0000         .10000E-03   10000.    
     4 'norm      '    .64009       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.551       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .49427E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .53441       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .48400       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.6912       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .53472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.210       1.0000         .10000E-03   10000.    
    19 'Prefactor '    26.980       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .45740       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .62099       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0076       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0369       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=   8095.249     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     2946 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    55.738        .38876E-04** at limit **
   2  norm          1.5142        2.5012        .10282E-06   -.82781E-03
   3  Prefactor     3.3598        57.864       -.13716E-04   -.24348E-04
   4  norm          .63990        1.0636       -.48295E-06   -.19058E-02
   5  Prefactor     32.532        55.127       -.23508E-04    .22903E-04
   6  norm          .10000E-03    .38090        .56445E-07** at limit **
   7  Prefactor     .10000E-03    3.4258       -.60470E-09** at limit **
   8  norm          .10038E-03    3.9141       -.63849E-06** at limit **
   9  Prefactor     .47855        11.286       -.25408E-06   -.29904E-03
  10  Prefactor     .10000E-03    45.471       -.28382E-04** at limit **
  11  Prefactor     .10000E-03    10.378       -.79866E-06** at limit **
  12  Prefactor     .48414        .23122       -.50950E-07    .60485E-05
  13  Prefactor     .10000E-03    3.0337       -.14104E-07** at limit **
  14  norm          1.6909        1.1421       -.18422E-06   -.31430E-03
  15  Prefactor     .10000E-03    8.6880       -.19421E-06** at limit **
  16  norm          .53495        1.2412       -.44847E-06   -.24166E-02
  17  Prefactor     .10000E-03    10.034        .75950E-06** at limit **
  18  Prefactor     32.205        13.641       -.10353E-07    .14579E-03
  19  Prefactor     26.977        21.604       -.90935E-06    .55253E-04
  20  Prefactor     .45738        .16828       -.18472E-07    .13249E-02
  21  Prefactor     .10000E-03    3.5963       -.24388E-08** at limit **
  22  Prefactor     .61954        6.1212       -.16838E-05   -.20485E-03
  23  Prefactor     .10000E-03    28.254        .29649E-05** at limit **
  24  Normalizat    1.0080        .22640        .31597E-05    .21041E-03
  25  Prefactor     1.0368        .11094        .64241E-06    .41013E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.51424
  Prefactor  = 3.35977
  norm       = 0.639899
  Prefactor  = 32.5324
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100384
  Prefactor  = 0.478547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.484141
  Prefactor  = 0.0001
  norm       = 1.69094
  Prefactor  = 0.0001
  norm       = 0.534947
  Prefactor  = 0.0001
  Prefactor  = 32.2054
  Prefactor  = 26.9773
  Prefactor  = 0.457384
  Prefactor  = 0.0001
  Prefactor  = 0.619537
  Prefactor  = 0.0001
  Normalizat = 1.008
  Prefactor  = 1.03681
 **********
 **   18 **HESSE 
 **********

 FCN=   8095.249     FROM HESSE     STATUS=OK           443 CALLS     3389 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.5142        2.4437        .16568E-03   -1.5462    
   3  Prefactor     3.3598        55.938        .22032E-03   -1.5341    
   4  norm          .63990        1.0432        .11532E-03   -1.5548    
   5  Prefactor     32.532        54.947        .70233E-04   -1.4567    
   6  norm          .10000E-03    .39583        .10825E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.4274        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10038E-03    4.5534        .51787E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .47855        151.85        .53366E-02   -1.5570    
  10  Prefactor     .10000E-03    45.173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .48414        .23418        .26704E-04   -1.5569    
  13  Prefactor     .10000E-03    3.0349        .15304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.6909        1.1380        .75102E-04   -1.5448    
  15  Prefactor     .10000E-03    8.6960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .53495        .94146        .14627E-02   -1.5562    
  17  Prefactor     .10000E-03    10.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     32.205        13.405        .70603E-04   -1.4572    
  19  Prefactor     26.977        21.620        .77126E-04   -1.4669    
  20  Prefactor     .45738        .16627        .20805E-04   -1.5573    
  21  Prefactor     .10000E-03    3.6038        .16663E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .61954        21.194        .42668E-02   -1.5551    
  23  Prefactor     .10000E-03    28.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0080        .26633        .35729E-03   -.92763    
  25  Prefactor     1.0368        .13119        .18093E-03   -.91512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.9973e-09
Minuit parameter uncertainties:
  1  5.71143e-05
  2  2.44389
  3  27.4481
  4  1.04325
  5  55.0325
  6  3.70491e-06
  7  8.58481e-07
  8  0.00264517
  9  17.091
  10  2.38238e-05
  11  1.11403e-05
  12  0.23418
  13  5.69314e-07
  14  1.13799
  15  9.97963e-06
  16  0.941489
  17  3.87747e-06
  18  13.4067
  19  21.626
  20  0.166267
  21  7.15201e-06
  22  7.24943
  23  0.000101482
  24  0.266679
  25  0.131233
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.114e-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.037e+00  1.312e-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.008e+00  2.667e-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: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.96e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293587/likelihoodResults_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.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) = 8095.24977457
delta logL = -0.000454863371488

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8095.24931971
delta logL = 1.32331479108e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8215       1.0000          .0000       10.000    
     3 'Normalizat'    1.0080       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0368       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8094.985     FROM MIGRAD    STATUS=FAILED       176 CALLS      328 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80226E-03    .54705E-01    .68977E-03** at limit **
   2  Index        10.0000        5.5597        .50000    ** at limit **
   3  Normalizat    .94435        .76400E-01    .35729E-02   -.38504E-04
   4  Prefactor     1.0595        .37491E-01    .18093E-03   -.53636E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8094.985     FROM SIMPLEX   STATUS=UNCHANGED    141 CALLS      469 TOTAL
                     EDM=   .90E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80226E-03    .54705E-01    .40181E-07** at limit **
   2  Index        10.0000        5.5597        .15667E-01** at limit **
   3  Normalizat    .94435        .76400E-01    .15864E-06   -.38504E-04
   4  Prefactor     1.0595        .37491E-01    .19635E-07   -.53636E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8094.985     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      508 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .80226E-03    .12671E-02    .37423E-05** at limit **
   2  Index        10.0000        6.6409        .50000    ** at limit **
   3  Normalizat    .94435        .27161        .14292E-03   -.42717E-04
   4  Prefactor     1.0595        .13530        .36186E-04   -.53661E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000802258
  Index      = 10
  Normalizat = 0.944348
  Prefactor  = 1.05948
 **********
 **   18 **HESSE 
 **********

 FCN=   8094.985     FROM HESSE     STATUS=OK            31 CALLS      539 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .80226E-03    .12631E-02    .74845E-06   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        6.6323        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .94435        .27171        .57167E-05   -.94919    
   4  Prefactor     1.0595        .13534        .72372E-05   -.90772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.93657e-12
Minuit parameter uncertainties:
  1  0.00126309
  2  4.43807e-05
  3  0.272109
  4  0.135382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293587': 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) = 8094.98545143
delta logL = 0.263868276624

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.023e-04  1.263e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  1.000e+01  4.438e-05  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.059e+00  1.354e-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.443e-01  2.721e-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/293587/cmap_HighResolution_601689601_601948801_4FGL_J2225.6+2120_daily_bin1398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.96e-03', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-09-28 11:16:30.826085', job_id='293587', GAL2='1.06', fit_tolerance='1e-08', EG2='0.94', EG='1.01', time_epoch_completed='1632852990.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='2.64e-01', ts2='0.59', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1398' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 293587: <4FGL_J2225.6+2120_daily_bin1398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1398 336.414 21.3418 601689601 601948801 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 :                                   814.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             281.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            961 sec.

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

