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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin481
RA = 336.414, Dec = 21.3418
tmin = 364003201, tmax = 364262401
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='286307', job_status='RUN', time_executed='2021-09-28 10:41:02.355120', time_epoch_executed='1632850862.36' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='481'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286307

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286307/ft1_4FGL_J2225.6+2120_daily_bin481.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286307/ft2_4FGL_J2225.6+2120_daily_bin481.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286307/ft1_4FGL_J2225.6+2120_daily_bin481.fits outfile=/scratch/kocevski/286307/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin481.fits ra=336.414 dec=21.3418 rad=12.0 tmin=364003201.0 tmax=364262401.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.28
user 3.06
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286307/ft1_filtered_4FGL_J2225.6+2120_daily_bin481.fits" evtable="EVENTS" scfile=/scratch/kocevski/286307/ft2_4FGL_J2225.6+2120_daily_bin481.fits sctable="SC_DATA" outfile=/scratch/kocevski/286307/ltcube_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.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/286307/ft2_4FGL_J2225.6+2120_daily_bin481.fits
.....................!
real 11.89
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286307/ft1_filtered_4FGL_J2225.6+2120_daily_bin481.fits evtable="EVENTS" scfile=/scratch/kocevski/286307/ft2_4FGL_J2225.6+2120_daily_bin481.fits sctable="SC_DATA" expcube=/scratch/kocevski/286307/ltcube_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.fits outfile=/scratch/kocevski/286307/expmap_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.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/286307/ltcube_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.fits
.....................!
real 190.56
user 185.44
sys 4.76

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/286307/ft1_filtered_4FGL_J2225.6+2120_daily_bin481.fits scfile=/scratch/kocevski/286307/ft2_4FGL_J2225.6+2120_daily_bin481.fits outfile=/scratch/kocevski/286307/cmap_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.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.55
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    3.2734       1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.910       1.0000         .10000E-03   10000.    
     4 'norm      '    .29452       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .33405       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.583       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7054       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.200       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3894       1.0000         .10000E-03   10000.    
    16 'norm      '    .62836       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.6734       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26656E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.5707       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .70296       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78780       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0718       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=   9559.017     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     3769 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    44.335        .19683E-05** at limit **
   2  norm          3.2731        2.9588        .24482E-06   -.22148E-03
   3  Prefactor     27.907        39.872       -.26816E-05   -.14485E-03
   4  norm          .29457        .69860        .12671E-06   -.86712E-03
   5  Prefactor     .10000E-03    53.206        .13817E-06** at limit **
   6  norm          .33389        .92212        .46154E-06   -.87640E-03
   7  Prefactor     .10000E-03    8.2084        .12420E-06** at limit **
   8  norm          .10000E-03    2.2620        .62160E-08** at limit **
   9  Prefactor     37.580        20.030       -.36740E-06   -.11638E-03
  10  Prefactor     .10000E-03    54.351       -.12357E-05** at limit **
  11  Prefactor     .10000E-03    3.1038        .11946E-07** at limit **
  12  Prefactor     1.7054        .30746        .81573E-08   -.35457E-03
  13  Prefactor     18.199        10.709       -.17194E-07    .28362E-04
  14  norm          2.5258        1.1951       -.53941E-07   -.53892E-04
  15  Prefactor     5.3880        14.313        .24514E-05   -.39832E-03
  16  norm          .62832        .72894       -.35035E-07    .15065E-03
  17  Prefactor     9.6726        13.650        .42253E-07    .64936E-05
  18  Prefactor     .10000E-03    2.4809        .44288E-07** at limit **
  19  Prefactor     .10000E-03    16.392        .78565E-07** at limit **
  20  Prefactor     .26611E-01    .69640E-01    .50320E-07   -.21196E-02
  21  Prefactor     .10000E-03    3.1634        .84831E-07** at limit **
  22  Prefactor     4.5703        4.6357       -.15137E-05   -.82740E-03
  23  Prefactor     .58171        10.658       -.44460E-06    .19722E-04
  24  Normalizat    .78788        .21212       -.11755E-06   -.32812E-04
  25  Prefactor     1.0718        .10488       -.74672E-07   -.29828E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 3.27313
  Prefactor  = 27.9066
  norm       = 0.294568
  Prefactor  = 0.0001
  norm       = 0.333886
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 37.5804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.70543
  Prefactor  = 18.1991
  norm       = 2.52577
  Prefactor  = 5.388
  norm       = 0.628324
  Prefactor  = 9.67257
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0266107
  Prefactor  = 0.0001
  Prefactor  = 4.57027
  Prefactor  = 0.58171
  Normalizat = 0.78788
  Prefactor  = 1.07183
 **********
 **   18 **HESSE 
 **********

 FCN=   9559.017     FROM HESSE     STATUS=OK           439 CALLS     4208 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    44.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2731        2.9366        .14287E-03   -1.5346    
   3  Prefactor     27.907        39.975        .75832E-04   -1.4651    
   4  norm          .29457        .77354        .12369E-02   -1.5599    
   5  Prefactor     .10000E-03    53.513        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .33389        .96390        .15024E-03   -1.5592    
   7  Prefactor     .10000E-03    8.2629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.2899        .14355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     37.580        20.188        .65377E-04   -1.4481    
  10  Prefactor     .10000E-03    54.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.1108        .16820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.7054        .30952        .20795E-04   -1.5447    
  13  Prefactor     18.199        10.727        .46942E-03   -1.4854    
  14  norm          2.5258        1.1926        .68054E-04   -1.5390    
  15  Prefactor     5.3880        16.345        .86551E-03   -1.5244    
  16  norm          .62832        .66233        .87730E-03   -1.5549    
  17  Prefactor     9.6726        13.628        .12884E-03   -1.5086    
  18  Prefactor     .10000E-03    2.4851        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .26611E-01    .85907E-01    .39349E-03   -1.5675    
  21  Prefactor     .10000E-03    3.1718        .16982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.5703        4.8401        .18829E-03   -1.5280    
  23  Prefactor     .58171        74.900        .61627E-02   -1.5555    
  24  Normalizat    .78788        .24008        .40262E-03   -1.0052    
  25  Prefactor     1.0718        .12145        .17880E-03   -.90372    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34293e-08
Minuit parameter uncertainties:
  1  0.000414125
  2  2.93674
  3  40.013
  4  0.773569
  5  6.42952e-05
  6  0.963942
  7  6.64329e-06
  8  9.54805e-07
  9  20.1912
  10  0.000284293
  11  4.97195e-07
  12  0.309519
  13  10.7283
  14  1.19263
  15  16.3588
  16  0.662333
  17  13.6325
  18  1.62319e-06
  19  1.94485e-05
  20  0.0859075
  21  3.8583e-06
  22  4.84052
  23  13.2173
  24  0.240407
  25  0.121486
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  4.972e-07  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:  1.072e+00  1.215e-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:  7.879e-01  2.404e-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: 6.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.85e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286307/likelihoodResults_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.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) = 9559.0186083
delta logL = -0.00152904313472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9559.01707913
delta logL = 1.27325620269e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7964       1.0000          .0000       10.000    
     3 'Normalizat'    .78787       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0718       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=   9559.017     FROM MIGRAD    STATUS=CONVERGED    111 CALLS      265 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    35.537        .16969E-01** at limit **
   2  Index         2.1401        6.4319        .50000       -.12219E-06
   3  Normalizat    .78788        .15295E-01    .40262E-03    .27746E-03
   4  Prefactor     1.0718        .78712E-02    .17880E-03    .69690E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.1401
  Normalizat = 0.787881
  Prefactor  = 1.07183
 **********
 **   18 **HESSE 
 **********

 FCN=   9559.017     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      294 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    296.49        .18901E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1401        5.7538        .50000       -.60892    
   3  Normalizat    .78788        .48113E-01    .16105E-04   -1.0052    
   4  Prefactor     1.0718        .24761E-01    .35760E-04   -.90372    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.22137e-10
Minuit parameter uncertainties:
  1  9.9822e-06
  2  849.018
  3  0.0481159
  4  0.0247611
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286307': 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) = 9559.01707584
delta logL = 3.41601844411e-06

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  9.982e-06  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.140e+00  8.490e+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:  1.072e+00  2.476e-02  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:  7.879e-01  4.812e-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/286307/cmap_HighResolution_364003201_364262401_4FGL_J2225.6+2120_daily_bin481.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.85e-03', job_status='DONE', photon_flux_upper_limit='6.12e-08', time_completed='2021-09-28 10:56:42.903000', job_id='286307', GAL2='1.07', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1632851802.9', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='3.42e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='481' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:56:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 286307: <4FGL_J2225.6+2120_daily_bin481> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin481> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Sep 28 10:40:45 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:40: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 10:40:47 2021
Terminated at Tue Sep 28 10:56:43 2021
Results reported at Tue Sep 28 10:56:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin481 336.414 21.3418 364003201 364262401 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 :                                   939.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             311.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   956 sec.
    Turnaround time :                            958 sec.

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

