/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 137 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 = 7481
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin84
RA = 336.414, Dec = 21.3418
tmin = 261100801, tmax = 261360001
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='284669', job_status='RUN', time_executed='2021-09-28 10:37:51.782231', time_epoch_executed='1632850671.78' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='84'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284669

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284669/ft1_4FGL_J2225.6+2120_daily_bin84.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284669/ft1_4FGL_J2225.6+2120_daily_bin84.fits outfile=/scratch/kocevski/284669/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin84.fits ra=336.414 dec=21.3418 rad=12.0 tmin=261100801.0 tmax=261360001.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 1.52
user 1.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/284669/ft1_filtered_4FGL_J2225.6+2120_daily_bin84.fits" evtable="EVENTS" scfile=/scratch/kocevski/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits sctable="SC_DATA" outfile=/scratch/kocevski/284669/ltcube_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.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/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits
.....................!
real 12.72
user 12.35
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284669/ft1_filtered_4FGL_J2225.6+2120_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits sctable="SC_DATA" expcube=/scratch/kocevski/284669/ltcube_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.fits outfile=/scratch/kocevski/284669/expmap_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.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/284669/ltcube_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.fits
.....................!
real 190.23
user 186.01
sys 3.91

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/284669/ft1_filtered_4FGL_J2225.6+2120_daily_bin84.fits scfile=/scratch/kocevski/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits outfile=/scratch/kocevski/284669/cmap_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284669/ft1_filtered_4FGL_J2225.6+2120_daily_bin84.fits scfile=/scratch/kocevski/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits outfile=/scratch/kocevski/284669/cmap_HighResolution_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.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/284669/ft1_filtered_4FGL_J2225.6+2120_daily_bin84.fits evtable="EVENTS" scfile=/scratch/kocevski/284669/ft2_4FGL_J2225.6+2120_daily_bin84.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/284669/Model_4FGL_J2225.6+2120_daily_bin84.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/284669/ft1_filtered_4FGL_J2225.6+2120_daily_bin84.fits.....................!
real 89.92
user 88.67
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.761       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .89303       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.088       1.0000         .10000E-03   10000.    
     6 'norm      '    2.6695       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.884       1.0000         .10000E-03   10000.    
     8 'norm      '    .61216E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .59155       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.6504       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.3967       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.615       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0479       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .76620       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.552       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4723       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79027       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=   8241.503     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2501 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.673       -.32015E-04** at limit **
   2  norm          27.761        4.8789        .21214E-08    .38541E-05
   3  Prefactor     .10000E-03    29.461        .56687E-05** at limit **
   4  norm          .89279        .97543       -.42907E-07   -.51303E-03
   5  Prefactor     16.066        28.892       -.32444E-05   -.16473E-05
   6  norm          2.6696        1.1740        .70641E-08    .27237E-03
   7  Prefactor     21.883        14.159       -.66191E-07   -.32140E-04
   8  norm          .10757E-03    3.3526       -.10017E-05** at limit **
   9  Prefactor     .10000E-03    30.306       -.23458E-04** at limit **
  10  Prefactor     .10000E-03    68.132        .52900E-04** at limit **
  11  Prefactor     7.3932        12.055       -.43504E-06   -.17658E-04
  12  Prefactor     .59164        .20942        .15325E-07    .38309E-02
  13  Prefactor     .10000E-03    3.1786       -.15493E-08** at limit **
  14  norm          2.6503        1.2356       -.20658E-07   -.30595E-03
  15  Prefactor     .10000E-03    7.4447        .76785E-08** at limit **
  16  norm          1.3967        1.2353        .49123E-07    .30949E-03
  17  Prefactor     35.626        32.318        .28502E-05    .23325E-04
  18  Prefactor     3.0505        11.743       -.14529E-05   -.16136E-03
  19  Prefactor     .10000E-03    22.250       -.28263E-05** at limit **
  20  Prefactor     .76607        .20154       -.28180E-07    .85179E-03
  21  Prefactor     .10000E-03    12.021        .22566E-06** at limit **
  22  Prefactor     18.552        10.013        .15201E-06    .15784E-04
  23  Prefactor     .10000E-03    28.586        .19608E-04** at limit **
  24  Normalizat    1.4721        .24150        .48508E-06    .17645E-03
  25  Prefactor     .79045        .11485        .95678E-08    .22244E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 27.7612
  Prefactor  = 0.0001
  norm       = 0.892795
  Prefactor  = 16.0663
  norm       = 2.66959
  Prefactor  = 21.8835
  norm       = 0.000107574
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 7.39319
  Prefactor  = 0.591643
  Prefactor  = 0.0001
  norm       = 2.65031
  Prefactor  = 0.0001
  norm       = 1.39674
  Prefactor  = 35.626
  Prefactor  = 3.05052
  Prefactor  = 0.0001
  Prefactor  = 0.766067
  Prefactor  = 0.0001
  Prefactor  = 18.5524
  Prefactor  = 0.0001
  Normalizat = 1.47207
  Prefactor  = 0.790449
 **********
 **   18 **HESSE 
 **********

 FCN=   8241.503     FROM HESSE     STATUS=OK           439 CALLS     2940 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.761        4.8774        .76035E-04   -1.4654    
   3  Prefactor     .10000E-03    29.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .89279        .86162        .90826E-03   -1.5519    
   5  Prefactor     16.066        28.897        .99856E-04   -1.4906    
   6  norm          2.6696        1.1744        .62446E-04   -1.5381    
   7  Prefactor     21.883        14.163        .85622E-04   -1.4772    
   8  norm          .10757E-03    3.4798        .54442E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    31.018        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    68.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3932        12.087        .14752E-03   -1.5164    
  12  Prefactor     .59164        .20910        .23701E-04   -1.5554    
  13  Prefactor     .10000E-03    3.1810        .15807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.6503        1.2360        .66253E-04   -1.5382    
  15  Prefactor     .10000E-03    7.4513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.3967        1.2473        .91370E-04   -1.5472    
  17  Prefactor     35.626        32.436        .67153E-04   -1.4514    
  18  Prefactor     3.0505        11.727        .23240E-03   -1.5359    
  19  Prefactor     .10000E-03    22.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .76607        .20215        .19324E-04   -1.5533    
  21  Prefactor     .10000E-03    12.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     18.552        10.015        .92989E-04   -1.4846    
  23  Prefactor     .10000E-03    28.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4721        .28514        .33499E-03   -.78566    
  25  Prefactor     .79045        .13497        .21923E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13586e-09
Minuit parameter uncertainties:
  1  1.25958e-06
  2  4.87743
  3  1.49738e-06
  4  0.861629
  5  28.9223
  6  1.17444
  7  14.165
  8  0.0102681
  9  0.000453206
  10  4.03327e-05
  11  12.0908
  12  0.209103
  13  1.07979e-07
  14  1.23604
  15  1.31397e-06
  16  1.24729
  17  32.452
  18  11.7361
  19  1.07381e-05
  20  0.202151
  21  4.90699e-06
  22  10.0155
  23  0.000119426
  24  0.285453
  25  0.135028
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.393e+00  1.209e+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.904e-01  1.350e-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.472e+00  2.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/284669/likelihoodResults_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.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) = 8241.26984659
delta logL = 0.232935998078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8241.14641327
delta logL = 0.356369312662

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.701       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0386       1.0000          .0000       10.000    
     3 'Normalizat'    1.4823       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78197       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=   8241.146     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      214 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.701        22.403        .26115E-02    .15612E-02
   2  Index         2.0386        .66300        .25572       -.56978E-04
   3  Normalizat    1.4824        .22871        .75455E-01    .10449E-04
   4  Prefactor     .78195        .11459        .43482E-01    .15443E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7014
  Index      = 2.03855
  Normalizat = 1.48236
  Prefactor  = 0.781949
 **********
 **   18 **HESSE 
 **********

 FCN=   8241.146     FROM HESSE     STATUS=OK            31 CALLS      245 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.701        15.742        .10446E-03   -1.4941    
   2  Index         2.0386        .64045        .10208E-01   -.63390    
   3  Normalizat    1.4824        .26799        .33390E-03   -.78275    
   4  Prefactor     .78195        .13357        .22021E-03   -1.0040    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98282e-09
Minuit parameter uncertainties:
  1  15.7468
  2  0.643179
  3  0.268251
  4  0.133627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284669': 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) = 8241.14641325
delta logL = 0.356369328678

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.470e+01  1.575e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.039e+00  6.432e-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:  7.819e-01  1.336e-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.482e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.17
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.04 +/- 0.64
Photon Flux (Free Index): 3.21e-08 +/- 3.73e-08
Energy Flux (Free Index): 2.02e-05 +/- 3.03e-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/284669/cmap_HighResolution_261100801_261360001_4FGL_J2225.6+2120_daily_bin84.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='2.02e-05', dlogl='3.56e-01', photon_flux2='3.21e-08', job_status='DONE', time_completed='2021-09-28 10:50:30.645758', photon_index_error2='0.64', photon_index2='2.04', ts='0.46', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', photon_flux_upper_limit='1.43e-07', energy_flux_error2='3.03e-05', EG='1.47', time_epoch_completed='1632851430.65', return_code='0', job_id='284669', GAL2='0.78', EG2='1.48', return_code2='0', photon_flux_error2='3.73e-08', ts2='1.17', photon_index='2.81' WHERE bin_id='84' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:50:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 284669: <4FGL_J2225.6+2120_daily_bin84> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin84> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:35:23 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:35:25 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:35:25 2021
Terminated at Tue Sep 28 10:50:31 2021
Results reported at Tue Sep 28 10:50:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin84 336.414 21.3418 261100801 261360001 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 :                                   759.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             266.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            908 sec.

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

