/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 2 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 = 7317
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin410
RA = 336.414, Dec = 21.3418
tmin = 345600001, tmax = 345859201
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='286205', job_status='RUN', time_executed='2021-09-28 10:40:48.988276', time_epoch_executed='1632850848.99' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='410'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286205

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286205/ft1_4FGL_J2225.6+2120_daily_bin410.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286205/ft2_4FGL_J2225.6+2120_daily_bin410.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286205/ft1_4FGL_J2225.6+2120_daily_bin410.fits outfile=/scratch/kocevski/286205/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin410.fits ra=336.414 dec=21.3418 rad=12.0 tmin=345600001.0 tmax=345859201.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.33
user 3.09
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286205/ft2_4FGL_J2225.6+2120_daily_bin410.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/286205/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin410.fits evtable="EVENTS" outfile="/scratch/kocevski/286205/ft1_filtered_4FGL_J2225.6+2120_daily_bin410.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286205/ft1_filtered_4FGL_J2225.6+2120_daily_bin410.fits evtable="EVENTS" scfile=/scratch/kocevski/286205/ft2_4FGL_J2225.6+2120_daily_bin410.fits sctable="SC_DATA" expcube=/scratch/kocevski/286205/ltcube_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.fits outfile=/scratch/kocevski/286205/expmap_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.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/286205/ltcube_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.fits
.....................!
real 190.14
user 185.11
sys 4.71

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/286205/ft1_filtered_4FGL_J2225.6+2120_daily_bin410.fits scfile=/scratch/kocevski/286205/ft2_4FGL_J2225.6+2120_daily_bin410.fits outfile=/scratch/kocevski/286205/cmap_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286205/ft1_filtered_4FGL_J2225.6+2120_daily_bin410.fits scfile=/scratch/kocevski/286205/ft2_4FGL_J2225.6+2120_daily_bin410.fits outfile=/scratch/kocevski/286205/cmap_HighResolution_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1939       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.833       1.0000         .10000E-03   10000.    
     4 'norm      '    4.4439       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3052       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12219E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.313       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8716       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14855       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .26721       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15972       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8108       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2887       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99905       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=   8252.428     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2882 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.521        .20390E-06** at limit **
   2  norm          1.2003        3.0227        .21980E-05    .25444E-03
   3  Prefactor     14.740        29.773       -.35417E-05   -.77730E-04
   4  norm          4.4438        1.6538       -.60846E-08   -.30904E-04
   5  Prefactor     .10000E-03    36.739        .41799E-06** at limit **
   6  norm          1.3052        1.0958        .85872E-08   -.28961E-03
   7  Prefactor     .10000E-03    23.855       -.62594E-05** at limit **
   8  norm          .10000E-03    3.1701        .45113E-06** at limit **
   9  Prefactor     .10000E-03    5.6359        .36490E-06** at limit **
  10  Prefactor     53.901        137.82        .37431E-05   -.65799E-05
  11  Prefactor     8.8628        14.707        .21034E-05    .12268E-03
  12  Prefactor     .14855        .15600        .13402E-06    .14089E-02
  13  Prefactor     .10000E-03    4.0564        .52387E-07** at limit **
  14  norm          .26497        .95077       -.19934E-05   -.51821E-03
  15  Prefactor     .10000E-03    8.1296        .34880E-06** at limit **
  16  norm          .10000E-03    .58455        .15831E-06** at limit **
  17  Prefactor     .10000E-03    16.255        .24201E-06** at limit **
  18  Prefactor     .10000E-03    7.2541        .57072E-06** at limit **
  19  Prefactor     .10000E-03    23.512        .43622E-06** at limit **
  20  Prefactor     .15974        .14034        .91206E-07    .82274E-03
  21  Prefactor     4.8108        6.2126        .61361E-07    .83494E-05
  22  Prefactor     10.899        11.209       -.60700E-06   -.64245E-04
  23  Prefactor     .10000E-03    26.183        .12451E-05** at limit **
  24  Normalizat    1.2892        .26148        .66956E-05   -.11887E-03
  25  Prefactor     .99884        .12475       -.38885E-05    .51316E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.20031
  Prefactor  = 14.7396
  norm       = 4.44384
  Prefactor  = 0.0001
  norm       = 1.3052
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 53.9013
  Prefactor  = 8.86279
  Prefactor  = 0.14855
  Prefactor  = 0.0001
  norm       = 0.264966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.159743
  Prefactor  = 4.81079
  Prefactor  = 10.8993
  Prefactor  = 0.0001
  Normalizat = 1.28925
  Prefactor  = 0.99884
 **********
 **   18 **HESSE 
 **********

 FCN=   8252.428     FROM HESSE     STATUS=OK           429 CALLS     3311 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2003        2.9884        .22657E-03   -1.5489    
   3  Prefactor     14.740        29.551        .10400E-03   -1.4940    
   4  norm          4.4438        1.6531        .68791E-04   -1.5286    
   5  Prefactor     .10000E-03    36.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3052        1.0771        .82567E-04   -1.5479    
   7  Prefactor     .10000E-03    24.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.1926        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.6724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     53.901        138.09        .27213E-03   -1.4238    
  11  Prefactor     8.8628        14.861        .67285E-03   -1.5112    
  12  Prefactor     .14855        .14599        .35311E-03   -1.5631    
  13  Prefactor     .10000E-03    4.0728        .17866E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .26497        .95694        .15834E-03   -1.5605    
  15  Prefactor     .10000E-03    8.1395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .59078        .67801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.2855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15974        .13359        .29611E-03   -1.5628    
  21  Prefactor     4.8108        6.2084        .18342E-03   -1.5269    
  22  Prefactor     10.899        11.157        .12134E-03   -1.5048    
  23  Prefactor     .10000E-03    26.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2892        .29166        .34478E-03   -.83888    
  25  Prefactor     .99884        .13940        .19197E-03   -.92768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50763e-09
Minuit parameter uncertainties:
  1  1.67776e-05
  2  2.98876
  3  29.5803
  4  1.65315
  5  8.3132e-07
  6  1.07716
  7  0.000285811
  8  5.00308e-06
  9  3.82118e-06
  10  138.926
  11  14.867
  12  0.145989
  13  3.25388e-06
  14  0.956993
  15  4.01103e-05
  16  3.40636e-08
  17  8.9804e-06
  18  3.9601e-06
  19  3.77303e-05
  20  0.133591
  21  6.20924
  22  11.1595
  23  9.85181e-05
  24  0.292035
  25  0.139448
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.863e+00  1.487e+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.988e-01  1.394e-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.289e+00  2.920e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/286205/likelihoodResults_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.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) = 8252.22590229
delta logL = 0.201969417099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8252.16366924
delta logL = 0.264202462282

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.650       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1826       1.0000          .0000       10.000    
     3 'Normalizat'    1.3037       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98986       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=   8252.164     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      224 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.628        35.961        .26161E-02    .52747E-04
   2  Index         2.1823        1.0688        .24834       -.33593E-04
   3  Normalizat    1.3034        .22825        .77513E-01    .19804E-03
   4  Prefactor     .98996        .11526        .46140E-01    .22701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.6278
  Index      = 2.18229
  Normalizat = 1.3034
  Prefactor  = 0.989956
 **********
 **   18 **HESSE 
 **********

 FCN=   8252.164     FROM HESSE     STATUS=OK            31 CALLS      255 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.628        17.483        .10465E-03   -1.4943    
   2  Index         2.1823        .67958        .11124E-01   -.59867    
   3  Normalizat    1.3034        .27777        .34308E-03   -.83465    
   4  Prefactor     .98996        .13807        .19267E-03   -.93065    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.48826e-10
Minuit parameter uncertainties:
  1  17.4891
  2  0.682689
  3  0.278093
  4  0.138124
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286205': 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) = 8252.1636672
delta logL = 0.264204503936

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.463e+01  1.749e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.182e+00  6.827e-01  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.900e-01  1.381e-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.303e+00  2.781e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.42
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/286205/cmap_HighResolution_345600001_345859201_4FGL_J2225.6+2120_daily_bin410.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.31e-02', job_status='DONE', photon_flux_upper_limit='1.65e-07', time_completed='2021-09-28 10:53:44.113296', job_id='286205', GAL2='0.99', fit_tolerance='1e-08', EG2='1.30', EG='1.29', time_epoch_completed='1632851624.11', return_code2='0', ts='0.42', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='2.64e-01', ts2='0.94', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='410' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:53:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 286205: <4FGL_J2225.6+2120_daily_bin410> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin410 336.414 21.3418 345600001 345859201 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 :                                   774.35 sec.
    Max Memory :                                 1139 MB
    Average Memory :                             312.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            787 sec.

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

