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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1575
RA = 336.414, Dec = 21.3418
tmin = 647568001, tmax = 647827201
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='293925', job_status='RUN', time_executed='2021-09-28 11:02:59.264820', time_epoch_executed='1632852179.26' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293925

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293925/ft1_4FGL_J2225.6+2120_daily_bin1575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293925/ft2_4FGL_J2225.6+2120_daily_bin1575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293925/ft1_4FGL_J2225.6+2120_daily_bin1575.fits outfile=/scratch/kocevski/293925/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1575.fits ra=336.414 dec=21.3418 rad=12.0 tmin=647568001.0 tmax=647827201.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.45
user 3.23
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293925/ft1_filtered_4FGL_J2225.6+2120_daily_bin1575.fits evtable="EVENTS" scfile=/scratch/kocevski/293925/ft2_4FGL_J2225.6+2120_daily_bin1575.fits sctable="SC_DATA" expcube=/scratch/kocevski/293925/ltcube_647568001_647827201_4FGL_J2225.6+2120_daily_bin1575.fits outfile=/scratch/kocevski/293925/expmap_647568001_647827201_4FGL_J2225.6+2120_daily_bin1575.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/293925/ltcube_647568001_647827201_4FGL_J2225.6+2120_daily_bin1575.fits
.....................!
real 191.93
user 186.28
sys 5.14

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/293925/ft1_filtered_4FGL_J2225.6+2120_daily_bin1575.fits scfile=/scratch/kocevski/293925/ft2_4FGL_J2225.6+2120_daily_bin1575.fits outfile=/scratch/kocevski/293925/cmap_647568001_647827201_4FGL_J2225.6+2120_daily_bin1575.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.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.426       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1063       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .67107E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.0686       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.097       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .16840       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.005       1.0000         .10000E-03   10000.    
    14 'norm      '    .18831E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4461       1.0000         .10000E-03   10000.    
    16 'norm      '    2.4516       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11847E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.588       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14529E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59897       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9075       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.765       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4531       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74802       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=   9126.946     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2621 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.288        67.468       -.29666E-05   -.16694E-03
   2  norm          2.1062        1.7071       -.19228E-08   -.42138E-05
   3  Prefactor     .10000E-03    8.1036       -.30782E-06** at limit **
   4  norm          .68276E-01    .48296       -.56801E-07    .51000E-03
   5  Prefactor     .10000E-03    36.248        .19605E-07** at limit **
   6  norm          .10000E-03    .23748        .31516E-07** at limit **
   7  Prefactor     .10000E-03    5.6250       -.30952E-06** at limit **
   8  norm          2.0691        2.8829        .47951E-05   -.33945E-03
   9  Prefactor     4.7220        8.6684        .15672E-06   -.27486E-04
  10  Prefactor     29.003        59.454       -.15388E-05   -.15382E-03
  11  Prefactor     .10000E-03    12.200        .22672E-07** at limit **
  12  Prefactor     .16839        .12766        .15587E-07   -.12494E-03
  13  Prefactor     14.005        10.448       -.63108E-08   -.10689E-04
  14  norm          .10001E-03    .43547        .10339E-06** at limit **
  15  Prefactor     9.4473        23.465        .17575E-05   -.56259E-04
  16  norm          2.4516        1.6023        .43645E-08   -.38384E-04
  17  Prefactor     .10000E-03    75.058        .78724E-06** at limit **
  18  Prefactor     12.590        10.041        .83959E-07   -.21439E-04
  19  Prefactor     .10000E-03    69.249        .19571E-05** at limit **
  20  Prefactor     .59859        .16444        .21070E-07   -.92786E-03
  21  Prefactor     4.9078        6.1752        .13759E-06   -.14349E-04
  22  Prefactor     14.764        10.662        .14277E-06   -.33694E-04
  23  Prefactor     .10000E-03    7.0195        .14166E-06** at limit **
  24  Normalizat    1.4529        .20137       -.21363E-05    .19228E-05
  25  Prefactor     .74804        .97916E-01    .76538E-06   -.28085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2876
  norm       = 2.10618
  Prefactor  = 0.0001
  norm       = 0.0682757
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.06913
  Prefactor  = 4.72204
  Prefactor  = 29.0025
  Prefactor  = 0.0001
  Prefactor  = 0.168388
  Prefactor  = 14.0047
  norm       = 0.000100013
  Prefactor  = 9.44726
  norm       = 2.45158
  Prefactor  = 0.0001
  Prefactor  = 12.59
  Prefactor  = 0.0001
  Prefactor  = 0.598594
  Prefactor  = 4.90777
  Prefactor  = 14.7642
  Prefactor  = 0.0001
  Normalizat = 1.45295
  Prefactor  = 0.74804
 **********
 **   18 **HESSE 
 **********

 FCN=   9126.946     FROM HESSE     STATUS=OK           437 CALLS     3058 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.288        67.620        .38965E-03   -1.4682    
   2  norm          2.1062        1.7001        .10850E-03   -1.5418    
   3  Prefactor     .10000E-03    8.1111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .68276E-01    3.7257        .12707E-02   -1.5656    
   5  Prefactor     .10000E-03    36.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .38350        .90373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.0691        2.8875        .93593E-03   -1.5420    
   9  Prefactor     4.7220        8.6346        .18518E-03   -1.5273    
  10  Prefactor     29.003        59.459        .74274E-04   -1.4630    
  11  Prefactor     .10000E-03    12.551        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .16839        .12391        .28126E-04   -1.5626    
  13  Prefactor     14.005        10.416        .10703E-03   -1.4959    
  14  norm          .10001E-03    5.8076        .11123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.4473        21.770        .13039E-03   -1.5093    
  16  norm          2.4516        1.6003        .93753E-04   -1.5395    
  17  Prefactor     .10000E-03    76.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.590        10.040        .11290E-03   -1.4998    
  19  Prefactor     .10000E-03    71.856        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .59859        .16350        .18993E-04   -1.5553    
  21  Prefactor     4.9078        6.1690        .18156E-03   -1.5265    
  22  Prefactor     14.764        10.661        .10423E-03   -1.4939    
  23  Prefactor     .10000E-03    7.0266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4529        .23809        .29823E-03   -.79109    
  25  Prefactor     .74804        .11687        .19858E-03   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.85005e-09
Minuit parameter uncertainties:
  1  67.8177
  2  1.70013
  3  5.31602e-06
  4  1.00804
  5  4.35072e-05
  6  4.73322e-06
  7  8.49399e-06
  8  2.88771
  9  8.63685
  10  59.5812
  11  2.62617e-05
  12  0.123907
  13  10.4171
  14  0.000551737
  15  21.7881
  16  1.60031
  17  5.30912e-05
  18  10.0415
  19  0.00015155
  20  0.163497
  21  6.1698
  22  10.6622
  23  1.05798e-05
  24  0.238274
  25  0.11691
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.626e-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:  7.480e-01  1.169e-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.453e+00  2.383e-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: 8.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.59e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293925/likelihoodResults_647568001_647827201_4FGL_J2225.6+2120_daily_bin1575.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) = 9126.94601312
delta logL = -0.000380228140784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9126.94563291
delta logL = -2.29210854741e-08

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.8171       1.0000          .0000       10.000    
     3 'Normalizat'    1.4530       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74803       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=   9126.946     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      249 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10020E-03    1400.2        .36285E-03** at limit **
   2  Index         2.8469        7.6581        .50000       -.30957E-05
   3  Normalizat    1.4529        .63916E-01    .29823E-03    .25007E-04
   4  Prefactor     .74804        .31896E-01    .19857E-03    .23473E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100205
  Index      = 2.84693
  Normalizat = 1.45295
  Prefactor  = 0.748041
 **********
 **   18 **HESSE 
 **********

 FCN=   9126.946     FROM HESSE     STATUS=OK            29 CALLS      278 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10020E-03    17.380        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8469        7.9157        .50000       -.44517    
   3  Normalizat    1.4529        .23145        .11929E-04   -.79109    
   4  Prefactor     .74804        .11554        .79430E-05   -1.0167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09721e-08
Minuit parameter uncertainties:
  1  0.00377311
  2  214.377
  3  0.231613
  4  0.115579
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293925': 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) = 9126.94563287
delta logL = 2.2451786208e-08

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.002e-04  3.773e-03  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.847e+00  2.144e+02  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.480e-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.453e+00  2.316e-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/293925/cmap_HighResolution_647568001_647827201_4FGL_J2225.6+2120_daily_bin1575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.59e-03', job_status='DONE', photon_flux_upper_limit='8.32e-08', time_completed='2021-09-28 11:16:31.517885', job_id='293925', GAL2='0.75', fit_tolerance='1e-08', EG2='1.45', EG='1.45', time_epoch_completed='1632852991.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='2.25e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1575' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 293925: <4FGL_J2225.6+2120_daily_bin1575> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1575> 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) <bullet0085>, 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:32 2021
Results reported at Tue Sep 28 11:16:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1575 336.414 21.3418 647568001 647827201 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 :                                   810.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            935 sec.

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

