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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1577
RA = 336.414, Dec = 21.3418
tmin = 648086401, tmax = 648345601
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='293928', job_status='RUN', time_executed='2021-09-28 11:04:26.251754', time_epoch_executed='1632852266.25' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293928

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293928/ft1_4FGL_J2225.6+2120_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293928/ft2_4FGL_J2225.6+2120_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293928/ft1_4FGL_J2225.6+2120_daily_bin1577.fits outfile=/scratch/kocevski/293928/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1577.fits ra=336.414 dec=21.3418 rad=12.0 tmin=648086401.0 tmax=648345601.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.31
user 4.04
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293928/ft2_4FGL_J2225.6+2120_daily_bin1577.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/293928/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1577.fits evtable="EVENTS" outfile="/scratch/kocevski/293928/ft1_filtered_4FGL_J2225.6+2120_daily_bin1577.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.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293928/ft1_filtered_4FGL_J2225.6+2120_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/293928/ft2_4FGL_J2225.6+2120_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/293928/ltcube_648086401_648345601_4FGL_J2225.6+2120_daily_bin1577.fits outfile=/scratch/kocevski/293928/expmap_648086401_648345601_4FGL_J2225.6+2120_daily_bin1577.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/293928/ltcube_648086401_648345601_4FGL_J2225.6+2120_daily_bin1577.fits
.....................!
real 193.22
user 185.64
sys 5.37

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/293928/ft1_filtered_4FGL_J2225.6+2120_daily_bin1577.fits scfile=/scratch/kocevski/293928/ft2_4FGL_J2225.6+2120_daily_bin1577.fits outfile=/scratch/kocevski/293928/cmap_648086401_648345601_4FGL_J2225.6+2120_daily_bin1577.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/293928/ft1_filtered_4FGL_J2225.6+2120_daily_bin1577.fits scfile=/scratch/kocevski/293928/ft2_4FGL_J2225.6+2120_daily_bin1577.fits outfile=/scratch/kocevski/293928/cmap_HighResolution_648086401_648345601_4FGL_J2225.6+2120_daily_bin1577.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.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .25041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.1846       1.0000         .10000E-03   10000.    
     4 'norm      '    .11287E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    23.143       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30500       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1351       1.0000         .10000E-03   10000.    
    14 'norm      '    1.7355       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.9144       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .17136       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.2461       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .29759       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .92289       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10580E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1314       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93213       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=   8933.607     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2593 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    92.102       -.76257E-05** at limit **
   2  norm          .10000E-03    .99066        .29639E-06** at limit **
   3  Prefactor     9.2122        28.487       -.35250E-05    .19873E-04
   4  norm          .10000E-03    .45315       -.47261E-08** at limit **
   5  Prefactor     .10000E-03    15.704        .21554E-06** at limit **
   6  norm          .10000E-03    .50166        .23000E-09** at limit **
   7  Prefactor     .10000E-03    9.9253       -.39499E-06** at limit **
   8  norm          .10000E-03    1.6424       -.12617E-06** at limit **
   9  Prefactor     .10000E-03    19.347       -.10833E-05** at limit **
  10  Prefactor     .10000E-03    78.782        .77119E-05** at limit **
  11  Prefactor     23.138        12.759       -.83535E-06    .99116E-04
  12  Prefactor     .30498        .17389       -.12252E-07    .10537E-02
  13  Prefactor     7.1350        9.9518       -.13622E-06    .34073E-04
  14  norm          1.7352        1.0466        .49441E-07   -.12000E-03
  15  Prefactor     .10000E-03    6.1336       -.28034E-07** at limit **
  16  norm          2.9139        1.8263       -.88670E-08    .10418E-03
  17  Prefactor     .10028E-03    39.904       -.29221E-05** at limit **
  18  Prefactor     .10000E-03    5.2154       -.10378E-06** at limit **
  19  Prefactor     9.2405        15.514       -.18550E-05    .13767E-03
  20  Prefactor     .29742        .16388        .14860E-06    .56598E-02
  21  Prefactor     .92132        8.0183       -.55611E-07    .10346E-05
  22  Prefactor     .10000E-03    29.652       -.71366E-05** at limit **
  23  Prefactor     .10000E-03    24.547       -.18739E-05** at limit **
  24  Normalizat    1.1315        .21204        .69912E-06    .11478E-03
  25  Prefactor     .93207        .10003       -.88039E-07    .38164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100002
  Prefactor  = 9.21216
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 23.1381
  Prefactor  = 0.304976
  Prefactor  = 7.13504
  norm       = 1.7352
  Prefactor  = 0.0001
  norm       = 2.9139
  Prefactor  = 0.000100281
  Prefactor  = 0.0001
  Prefactor  = 9.24048
  Prefactor  = 0.297421
  Prefactor  = 0.921321
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13153
  Prefactor  = 0.932068
 **********
 **   18 **HESSE 
 **********

 FCN=   8933.607     FROM HESSE     STATUS=OK           443 CALLS     3036 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    91.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    26.343        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.2122        28.296        .13224E-03   -1.5101    
   4  norm          .10000E-03    4.1551        .12244E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.8895        .12908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6480        .11825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.735        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    78.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     23.138        12.793        .83264E-04   -1.4746    
  12  Prefactor     .30498        .17343        .27911E-04   -1.5598    
  13  Prefactor     7.1350        9.9522        .15017E-03   -1.5174    
  14  norm          1.7352        1.0459        .31857E-04   -1.5445    
  15  Prefactor     .10000E-03    6.1395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.9139        1.8212        .97949E-04   -1.5367    
  17  Prefactor     .10028E-03    37.973        .14207       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.2312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.2405        15.409        .13180E-03   -1.5100    
  20  Prefactor     .29742        .16606        .25356E-04   -1.5599    
  21  Prefactor     .92132        36.667        .50034E-02   -1.5516    
  22  Prefactor     .10000E-03    29.295        .40264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    24.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1315        .24992        .33739E-03   -.88746    
  25  Prefactor     .93207        .11958        .18194E-03   -.95029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.14246e-10
Minuit parameter uncertainties:
  1  0.000513739
  2  0.000496357
  3  28.3374
  4  3.98789e-06
  5  3.12659e-06
  6  6.53875e-06
  7  1.8324e-05
  8  3.0466e-06
  9  4.68117e-05
  10  0.000471831
  11  12.7945
  12  0.173434
  13  9.9545
  14  1.04594
  15  2.80363e-06
  16  1.82119
  17  0.00653436
  18  2.37863e-06
  19  15.4157
  20  0.166063
  21  11.6315
  22  1.21808e-05
  23  5.09212e-05
  24  0.25018
  25  0.119612
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.314e+01  1.279e+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.321e-01  1.196e-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.132e+00  2.502e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.23
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 9.48e-08 +/- 5.24e-08
Energy Flux (Fixed Index): 2.11e-05 +/- 1.17e-05

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) = 8933.25870992
delta logL = 0.347907532834

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8933.25514716
delta logL = 0.351470294698

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.831       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2898       1.0000          .0000       10.000    
     3 'Normalizat'    1.1828       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91625       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.

 FCN=   8933.255     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      247 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.826        15.492        .85726E-04   -.88057E-04
   2  Index         2.2894        .61702        .94804E-02    .90478E-04
   3  Normalizat    1.1828        .24564        .33100E-03    .70492E-03
   4  Prefactor     .91627        .11890        .18335E-03    .10490E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.8256
  Index      = 2.28944
  Normalizat = 1.18277
  Prefactor  = 0.916267
 **********
 **   18 **HESSE 
 **********

 FCN=   8933.255     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.826        15.759        .34290E-05   -1.4773    
   2  Index         2.2894        .62735        .37922E-03   -.57295    
   3  Normalizat    1.1828        .24613        .66200E-04   -.87137    
   4  Prefactor     .91627        .11904        .36671E-04   -.95575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36244e-10
Minuit parameter uncertainties:
  1  15.7622
  2  0.629702
  3  0.246371
  4  0.119069
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293928': 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) = 8933.25514692
delta logL = 0.351470530866

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.183e+01  1.576e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.289e+00  6.297e-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.163e-01  1.191e-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.183e+00  2.464e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.82
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.29 +/- 0.63
Photon Flux (Free Index): 5.65e-08 +/- 5.87e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.43e-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/293928/cmap_HighResolution_648086401_648345601_4FGL_J2225.6+2120_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.48e-08', energy_flux2='2.17e-05', photon_flux_error='5.24e-08', dlogl='3.51e-01', energy_flux='2.11e-05', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-09-28 11:16:18.216103', photon_index_error2='0.63', photon_index2='2.29', ts='8.23', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.43e-05', EG='1.13', time_epoch_completed='1632852978.22', return_code='0', job_id='293928', GAL2='0.92', EG2='1.18', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='5.87e-08', ts2='8.82', photon_index='2.81' WHERE bin_id='1577' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 293928: <4FGL_J2225.6+2120_daily_bin1577> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1577 336.414 21.3418 648086401 648345601 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 :                                   704.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             233.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            921 sec.

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

