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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin620
RA = 336.414, Dec = 21.3418
tmin = 400032001, tmax = 400291201
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='287517', job_status='RUN', time_executed='2021-09-28 10:48:33.258459', time_epoch_executed='1632851313.26' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='620'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287517

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287517/ft1_4FGL_J2225.6+2120_daily_bin620.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287517/ft2_4FGL_J2225.6+2120_daily_bin620.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287517/ft1_4FGL_J2225.6+2120_daily_bin620.fits outfile=/scratch/kocevski/287517/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin620.fits ra=336.414 dec=21.3418 rad=12.0 tmin=400032001.0 tmax=400291201.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.48
user 4.24
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287517/ft2_4FGL_J2225.6+2120_daily_bin620.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/287517/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin620.fits evtable="EVENTS" outfile="/scratch/kocevski/287517/ft1_filtered_4FGL_J2225.6+2120_daily_bin620.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/287517/ft1_filtered_4FGL_J2225.6+2120_daily_bin620.fits" evtable="EVENTS" scfile=/scratch/kocevski/287517/ft2_4FGL_J2225.6+2120_daily_bin620.fits sctable="SC_DATA" outfile=/scratch/kocevski/287517/ltcube_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.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/287517/ft2_4FGL_J2225.6+2120_daily_bin620.fits
.....................!
real 11.56
user 11.22
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287517/ft1_filtered_4FGL_J2225.6+2120_daily_bin620.fits evtable="EVENTS" scfile=/scratch/kocevski/287517/ft2_4FGL_J2225.6+2120_daily_bin620.fits sctable="SC_DATA" expcube=/scratch/kocevski/287517/ltcube_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.fits outfile=/scratch/kocevski/287517/expmap_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.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/287517/ltcube_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.fits
.....................!
real 190.49
user 184.98
sys 5.11

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287517/ft1_filtered_4FGL_J2225.6+2120_daily_bin620.fits scfile=/scratch/kocevski/287517/ft2_4FGL_J2225.6+2120_daily_bin620.fits outfile=/scratch/kocevski/287517/cmap_HighResolution_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.0392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.774       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9506       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 '    8.8854       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0776       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8402       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8012       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0122       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.6905       1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.9192       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8861       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.8776       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2705       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .70926       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=   8279.948     FROM MIGRAD    STATUS=CONVERGED    582 CALLS     2942 TOTAL
                     EDM=   .16E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    51.226       -.83047E-05** at limit **
   2  norm          5.0392        2.6494        .38733E-07    .60828E-04
   3  Prefactor     29.774        25.681        .23232E-06    .22396E-04
   4  norm          1.9506        1.0150        .12630E-07    .52029E-05
   5  Prefactor     .10000E-03    9.9253        .11930E-06** at limit **
   6  norm          .10000E-03    .36436       -.13750E-07** at limit **
   7  Prefactor     8.8854        10.742        .35219E-08   -.17255E-05
   8  norm          .10000E-03    2.1142       -.62445E-08** at limit **
   9  Prefactor     .10000E-03    3.5370       -.17958E-07** at limit **
  10  Prefactor     .10000E-03    22.716        .16703E-05** at limit **
  11  Prefactor     8.0760        11.840        .89938E-06   -.24051E-05
  12  Prefactor     .10000E-03    .90116E-01   -.42207E-08** at limit **
  13  Prefactor     .10000E-03    3.7425       -.25021E-08** at limit **
  14  norm          1.8401        1.0671        .16241E-07   -.75214E-05
  15  Prefactor     2.8019        24.025        .31986E-06   -.75965E-06
  16  norm          3.0121        1.7875       -.18585E-06   -.15398E-04
  17  Prefactor     .10000E-03    71.706        .89420E-05** at limit **
  18  Prefactor     2.6893        12.708        .54007E-05   -.30239E-05
  19  Prefactor     8.9191        13.724        .21633E-06   -.13693E-04
  20  Prefactor     1.8860        .25273       -.19988E-07   -.17330E-02
  21  Prefactor     .10000E-03    6.9262        .80081E-07** at limit **
  22  Prefactor     8.8781        13.188        .13617E-06   -.88520E-05
  23  Prefactor     .10000E-03    15.011       -.66182E-06** at limit **
  24  Normalizat    1.2706        .20630       -.11883E-05    .32731E-04
  25  Prefactor     .70921        .97678E-01    .36253E-06   -.33944E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.03923
  Prefactor  = 29.774
  norm       = 1.95058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.8854
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.076
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.84013
  Prefactor  = 2.80191
  norm       = 3.01211
  Prefactor  = 0.0001
  Prefactor  = 2.68935
  Prefactor  = 8.91912
  Prefactor  = 1.88599
  Prefactor  = 0.0001
  Prefactor  = 8.87812
  Prefactor  = 0.0001
  Normalizat = 1.27059
  Prefactor  = 0.709205
 **********
 **   18 **HESSE 
 **********

 FCN=   8279.948     FROM HESSE     STATUS=OK           431 CALLS     3373 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.0392        2.6461        .99375E-04   -1.5259    
   3  Prefactor     29.774        25.653        .73426E-04   -1.4616    
   4  norm          1.9506        1.0139        .64044E-04   -1.5429    
   5  Prefactor     .10000E-03    9.9270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .67940        .10629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8854        10.734        .13446E-03   -1.5112    
   8  norm          .10000E-03    2.1311        .12917E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.5416        .16712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0760        11.884        .70535E-03   -1.5140    
  12  Prefactor     .10000E-03    .19238        .52750E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7489        .17191E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8401        1.0562        .65795E-04   -1.5437    
  15  Prefactor     2.8019        23.743        .24307E-03   -1.5373    
  16  norm          3.0121        1.7891        .87623E-04   -1.5361    
  17  Prefactor     .10000E-03    72.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.6893        12.757        .12419E-02   -1.5380    
  19  Prefactor     8.9191        13.732        .67104E-03   -1.5111    
  20  Prefactor     1.8860        .25420        .15609E-04   -1.5433    
  21  Prefactor     .10000E-03    6.9728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.8781        13.193        .13452E-03   -1.5112    
  23  Prefactor     .10000E-03    15.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2706        .24078        .30541E-03   -.84449    
  25  Prefactor     .70921        .11484        .19769E-03   -1.0317    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12922e-10
Minuit parameter uncertainties:
  1  0.000122177
  2  2.64619
  3  25.662
  4  1.01392
  5  2.35563e-07
  6  1.87291e-06
  7  10.7366
  8  6.65836e-07
  9  9.9214e-08
  10  1.4824e-05
  11  11.8877
  12  9.41726e-07
  13  5.14393e-08
  14  1.05621
  15  16.3212
  16  1.78917
  17  0.000112864
  18  11.7186
  19  13.7369
  20  0.254197
  21  1.30758e-06
  22  13.197
  23  5.7147e-06
  24  0.240995
  25  0.114879
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.076e+00  1.189e+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:  7.092e-01  1.149e-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.271e+00  2.410e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/287517/likelihoodResults_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.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) = 8279.9164904
delta logL = 0.0319153714827

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8279.90845083
delta logL = 0.0399549417325

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.7326       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2141       1.0000          .0000       10.000    
     3 'Normalizat'    1.2561       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71430       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8279.908     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      266 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.7222        15.245        .77321E-03    .15950E-03
   2  Index         3.2131        1.8853        .14209E-01    .31558E-03
   3  Normalizat    1.2568        .23784        .30685E-03   -.34826E-05
   4  Prefactor     .71403        .11559        .19710E-03    .84214E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.72218
  Index      = 3.21307
  Normalizat = 1.25682
  Prefactor  = 0.714028
 **********
 **   18 **HESSE 
 **********

 FCN=   8279.908     FROM HESSE     STATUS=OK            27 CALLS      293 TOTAL
                     EDM=   .37E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.7222        12.615        .15464E-03   -1.5189    
   2  Index         3.2131        1.5720        .28417E-02   -.36547    
   3  Normalizat    1.2568        .23826        .12274E-04   -.84865    
   4  Prefactor     .71403        .11558        .78838E-05   -1.0298    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.6513e-13
Minuit parameter uncertainties:
  1  12.6199
  2  1.60334
  3  0.238467
  4  0.115623
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287517': 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) = 8279.90844505
delta logL = 0.0399607205218

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  6.722e+00  1.262e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.213e+00  1.603e+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:  7.140e-01  1.156e-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.257e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
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/287517/cmap_HighResolution_400032001_400291201_4FGL_J2225.6+2120_daily_bin620.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', job_status='DONE', photon_flux_upper_limit='1.33e-07', time_completed='2021-09-28 11:02:08.038495', job_id='287517', GAL2='0.71', fit_tolerance='1e-08', EG2='1.26', EG='1.27', time_epoch_completed='1632852128.04', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='4.00e-02', ts2='0.68', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='620' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:02:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 287517: <4FGL_J2225.6+2120_daily_bin620> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin620> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:45:31 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:45:33 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:45:33 2021
Terminated at Tue Sep 28 11:02:08 2021
Results reported at Tue Sep 28 11:02:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin620 336.414 21.3418 400032001 400291201 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 :                                   815.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             298.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

