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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1503
RA = 336.414, Dec = 21.3418
tmin = 628905601, tmax = 629164801
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='293805', job_status='RUN', time_executed='2021-09-28 11:04:39.412243', time_epoch_executed='1632852279.41' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1503'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293805

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293805/ft1_4FGL_J2225.6+2120_daily_bin1503.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293805/ft2_4FGL_J2225.6+2120_daily_bin1503.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293805/ft1_4FGL_J2225.6+2120_daily_bin1503.fits outfile=/scratch/kocevski/293805/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1503.fits ra=336.414 dec=21.3418 rad=12.0 tmin=628905601.0 tmax=629164801.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.55
user 3.30
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293805/ft1_filtered_4FGL_J2225.6+2120_daily_bin1503.fits evtable="EVENTS" scfile=/scratch/kocevski/293805/ft2_4FGL_J2225.6+2120_daily_bin1503.fits sctable="SC_DATA" expcube=/scratch/kocevski/293805/ltcube_628905601_629164801_4FGL_J2225.6+2120_daily_bin1503.fits outfile=/scratch/kocevski/293805/expmap_628905601_629164801_4FGL_J2225.6+2120_daily_bin1503.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/293805/ltcube_628905601_629164801_4FGL_J2225.6+2120_daily_bin1503.fits
.....................!
real 191.15
user 185.53
sys 5.29

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/293805/ft1_filtered_4FGL_J2225.6+2120_daily_bin1503.fits scfile=/scratch/kocevski/293805/ft2_4FGL_J2225.6+2120_daily_bin1503.fits outfile=/scratch/kocevski/293805/cmap_628905601_629164801_4FGL_J2225.6+2120_daily_bin1503.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=336.414 yref=21.3418 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9092       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10275E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .98455       1.0000         .10000E-03   10000.    
     5 'Prefactor '    154.80       1.0000         .10000E-03   10000.    
     6 'norm      '    .10271E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.965       1.0000         .10000E-03   10000.    
     8 'norm      '    .11100E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11133E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .20924       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16467       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.642       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5584       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80626       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=   8217.411     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     2515 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    61.591       -.11539E-05** at limit **
   2  norm          4.9101        2.7583        .20752E-07   -.31397E-03
   3  Prefactor     .10000E-03    21.526        .47995E-06** at limit **
   4  norm          .98468        .88479       -.96701E-07   -.34175E-03
   5  Prefactor     154.76        67.729       -.25192E-04   -.18447E-05
   6  norm          .10000E-03    .30679        .12872E-06** at limit **
   7  Prefactor     14.957        13.280       -.99789E-06    .13891E-04
   8  norm          .10000E-03    4.3941        .24920E-08** at limit **
   9  Prefactor     .10000E-03    12.543       -.62866E-07** at limit **
  10  Prefactor     .10000E-03    95.844        .28423E-05** at limit **
  11  Prefactor     .10000E-03    15.489       -.90129E-07** at limit **
  12  Prefactor     .20923        .15909       -.67230E-07   -.22473E-02
  13  Prefactor     .10000E-03    2.4221       -.88933E-08** at limit **
  14  norm          .10000E-03    .30361       -.89889E-07** at limit **
  15  Prefactor     .10000E-03    3.9555       -.35173E-08** at limit **
  16  norm          2.1737        1.4664       -.42802E-07    .19311E-03
  17  Prefactor     .10000E-03    7.6625        .34858E-07** at limit **
  18  Prefactor     .10000E-03    6.1918        .12493E-05** at limit **
  19  Prefactor     .10000E-03    5.4692       -.44886E-07** at limit **
  20  Prefactor     .16468        .10286       -.37657E-07   -.65392E-03
  21  Prefactor     .10000E-03    6.2644       -.13907E-05** at limit **
  22  Prefactor     .10000E-03    3.0475       -.21265E-07** at limit **
  23  Prefactor     27.639        22.017       -.51287E-06    .12247E-04
  24  Normalizat    1.5587        .21541        .23745E-05   -.41826E-04
  25  Prefactor     .80605        .10685        .84765E-06    .69634E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.9101
  Prefactor  = 0.0001
  norm       = 0.984676
  Prefactor  = 154.764
  norm       = 0.0001
  Prefactor  = 14.9571
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.209233
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.17373
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.16468
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.6395
  Normalizat = 1.55874
  Prefactor  = 0.806047
 **********
 **   18 **HESSE 
 **********

 FCN=   8217.411     FROM HESSE     STATUS=OK           427 CALLS     2942 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    61.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9101        2.7544        .10823E-03   -1.5265    
   3  Prefactor     .10000E-03    21.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .98468        .86918        .78328E-04   -1.5510    
   5  Prefactor     154.76        67.732        .16200E-03   -1.3213    
   6  norm          .10000E-03    .56007        .97394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.957        13.289        .10354E-03   -1.4934    
   8  norm          .10000E-03    4.5909        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    96.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .20923        .15133        .30384E-03   -1.5617    
  13  Prefactor     .10000E-03    2.4224        .13778E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .45436        .97048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.9567        .17608E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1737        1.4727        .87783E-04   -1.5413    
  17  Prefactor     .10000E-03    7.6647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.2541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .16468        .10334        .22152E-04   -1.5627    
  21  Prefactor     .10000E-03    6.3018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0506        .15454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     27.639        22.036        .76199E-04   -1.4656    
  24  Normalizat    1.5587        .25538        .30000E-03   -.76141    
  25  Prefactor     .80605        .12728        .20123E-03   -.99506    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.47459e-10
Minuit parameter uncertainties:
  1  2.49523e-05
  2  2.75442
  3  0.000131161
  4  0.869192
  5  67.7665
  6  9.76037e-06
  7  13.2913
  8  2.64644e-06
  9  2.9e-05
  10  9.15553e-05
  11  1.56052e-05
  12  0.151326
  13  2.85037e-07
  14  6.24033e-06
  15  3.04099e-06
  16  1.47273
  17  4.20803e-06
  18  2.15391e-05
  19  3.46772e-06
  20  0.103345
  21  1.80888e-05
  22  3.50991e-06
  23  22.0426
  24  0.255595
  25  0.127328
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.561e-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:  8.060e-01  1.273e-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.559e+00  2.556e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.82e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293805/likelihoodResults_628905601_629164801_4FGL_J2225.6+2120_daily_bin1503.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) = 8217.41118534
delta logL = -0.000303254393657

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8217.41088209
delta logL = -8.46011971589e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8273       1.0000          .0000       10.000    
     3 'Normalizat'    1.5588       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80604       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=   8217.411     FROM MIGRAD    STATUS=CONVERGED    112 CALLS      266 TOTAL
                     EDM=   .32E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .13557        .97689E-01** at limit **
   2  Index         3.5153        7.8576        .50000        .49477E-07
   3  Normalizat    1.5587        .12473E-02    .30000E-03   -.51557E-03
   4  Prefactor     .80605        .63016E-03    .20123E-03   -.82164E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.51531
  Normalizat = 1.55874
  Prefactor  = 0.806045
 **********
 **   18 **HESSE 
 **********

 FCN=   8217.411     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      297 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    142.33        .28587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.5153        7.3110        .50000       -.30149    
   3  Normalizat    1.5587        .14456E-01    .60000E-04   -.76141    
   4  Prefactor     .80605        .73036E-02    .40246E-04   -.99506    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.32853e-11
Minuit parameter uncertainties:
  1  4.59528e-06
  2  556.78
  3  0.0144563
  4  0.00730362
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293805': 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): 102
logL (Free Index) = 8217.41088129
delta logL = 7.92511855252e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  4.595e-06  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.515e+00  5.568e+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:  8.060e-01  7.304e-03  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.559e+00  1.446e-02  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/293805/cmap_HighResolution_628905601_629164801_4FGL_J2225.6+2120_daily_bin1503.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.82e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 11:17:21.443977', job_id='293805', GAL2='0.81', fit_tolerance='1e-08', EG2='1.56', EG='1.56', time_epoch_completed='1632853041.44', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='7.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1503' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:17:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 293805: <4FGL_J2225.6+2120_daily_bin1503> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1503 336.414 21.3418 628905601 629164801 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 :                                   760.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             302.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   994 sec.
    Turnaround time :                            996 sec.

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

