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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin68
RA = 336.414, Dec = 21.3418
tmin = 256953601, tmax = 257212801
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='284639', job_status='RUN', time_executed='2021-09-28 10:37:56.505014', time_epoch_executed='1632850676.51' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='68'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/284639

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/284639/ft1_4FGL_J2225.6+2120_daily_bin68.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/284639/ft2_4FGL_J2225.6+2120_daily_bin68.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/284639/ft1_4FGL_J2225.6+2120_daily_bin68.fits outfile=/scratch/kocevski/284639/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin68.fits ra=336.414 dec=21.3418 rad=12.0 tmin=256953601.0 tmax=257212801.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.43
user 1.26
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/284639/ft1_filtered_4FGL_J2225.6+2120_daily_bin68.fits evtable="EVENTS" scfile=/scratch/kocevski/284639/ft2_4FGL_J2225.6+2120_daily_bin68.fits sctable="SC_DATA" expcube=/scratch/kocevski/284639/ltcube_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.fits outfile=/scratch/kocevski/284639/expmap_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.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/284639/ltcube_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.fits
.....................!
real 189.58
user 185.22
sys 4.03

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/284639/ft1_filtered_4FGL_J2225.6+2120_daily_bin68.fits scfile=/scratch/kocevski/284639/ft2_4FGL_J2225.6+2120_daily_bin68.fits outfile=/scratch/kocevski/284639/cmap_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/284639/ft1_filtered_4FGL_J2225.6+2120_daily_bin68.fits scfile=/scratch/kocevski/284639/ft2_4FGL_J2225.6+2120_daily_bin68.fits outfile=/scratch/kocevski/284639/cmap_HighResolution_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.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.53
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.128       1.0000         .10000E-03   10000.    
     2 'norm      '    14.374       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18806E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.850       1.0000         .10000E-03   10000.    
     6 'norm      '    1.8934       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7689       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1248       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9406       1.0000         .10000E-03   10000.    
    14 'norm      '    3.1150       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26058       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7731       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.0622       1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.079       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44342E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.3893       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2923       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .76567       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0324       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=   8017.709     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3026 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.787        76.782       -.38664E-05   -.22217E-04
   2  norm          14.373        3.5104        .29108E-08   -.63166E-03
   3  Prefactor     .10089E-03    15.287        .21677E-05** at limit **
   4  norm          .10000E-03    .41656       -.32063E-07** at limit **
   5  Prefactor     24.865        41.084       -.23363E-04   -.18682E-04
   6  norm          1.8935        1.0153        .22801E-07   -.43630E-03
   7  Prefactor     8.7714        11.550       -.20007E-05   -.44671E-04
   8  norm          .10000E-03    1.6284        .41213E-08** at limit **
   9  Prefactor     .10000E-03    3.8243       -.18522E-07** at limit **
  10  Prefactor     .10000E-03    33.945       -.20468E-06** at limit **
  11  Prefactor     .10000E-03    20.833        .14577E-06** at limit **
  12  Prefactor     1.1249        .23512       -.80727E-08    .65971E-03
  13  Prefactor     7.9412        7.7519       -.97481E-08    .98600E-05
  14  norm          3.1122        1.4326       -.24222E-07    .42601E-03
  15  Prefactor     .42830        15.989       -.12676E-05   -.61098E-04
  16  norm          2.7732        1.7065       -.16234E-06    .14523E-03
  17  Prefactor     .10000E-03    13.888       -.35330E-09** at limit **
  18  Prefactor     6.0644        12.641        .31810E-05   -.30092E-04
  19  Prefactor     29.067        20.671        .39108E-06    .12476E-03
  20  Prefactor     .44499E-01    .11300       -.21317E-06   -.47796E-02
  21  Prefactor     .10000E-03    9.4509       -.13082E-06** at limit **
  22  Prefactor     8.3860        12.683       -.36200E-06    .84892E-04
  23  Prefactor     3.2938        13.156        .22074E-05   -.94684E-04
  24  Normalizat    .76543        .22305        .81564E-06    .80196E-04
  25  Prefactor     1.0324        .11052        .61024E-06    .58609E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.7868
  norm       = 14.3725
  Prefactor  = 0.000100889
  norm       = 0.0001
  Prefactor  = 24.865
  norm       = 1.89348
  Prefactor  = 8.7714
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.12487
  Prefactor  = 7.94122
  norm       = 3.11217
  Prefactor  = 0.428297
  norm       = 2.77317
  Prefactor  = 0.0001
  Prefactor  = 6.06445
  Prefactor  = 29.0673
  Prefactor  = 0.0444991
  Prefactor  = 0.0001
  Prefactor  = 8.38602
  Prefactor  = 3.2938
  Normalizat = 0.765434
  Prefactor  = 1.03237
 **********
 **   18 **HESSE 
 **********

 FCN=   8017.709     FROM HESSE     STATUS=OK           449 CALLS     3475 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.787        76.813        .46021E-04   -1.3965    
   2  norm          14.373        3.5075        .78389E-04   -1.4950    
   3  Prefactor     .10089E-03    17.596        .11302       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .72045        .11225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     24.865        40.928        .80358E-04   -1.4710    
   6  norm          1.8935        1.0109        .63197E-04   -1.5433    
   7  Prefactor     8.7714        11.561        .13536E-03   -1.5116    
   8  norm          .10000E-03    1.6365        .11157E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.8333        .17100E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    33.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.1249        .23533        .19009E-04   -1.5496    
  13  Prefactor     7.9412        7.7573        .14229E-03   -1.5144    
  14  norm          3.1122        1.4399        .65538E-04   -1.5355    
  15  Prefactor     .42830        20.074        .10501       -1.5577    
  16  norm          2.7732        1.7044        .86980E-04   -1.5375    
  17  Prefactor     .10000E-03    13.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.0644        12.588        .16307E-03   -1.5215    
  19  Prefactor     29.067        20.416        .74297E-04   -1.4629    
  20  Prefactor     .44499E-01    .12253        .40836E-03   -1.5666    
  21  Prefactor     .10000E-03    9.5561        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     8.3860        12.366        .13841E-03   -1.5129    
  23  Prefactor     3.2938        13.114        .22314E-03   -1.5345    
  24  Normalizat    .76543        .25039        .38971E-03   -1.0136    
  25  Prefactor     1.0324        .12641        .17869E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24072e-09
Minuit parameter uncertainties:
  1  76.9134
  2  3.50754
  3  0.00791152
  4  2.78099e-06
  5  40.9743
  6  1.01092
  7  11.5635
  8  6.97356e-08
  9  2.42772e-06
  10  2.95341e-07
  11  1.46208e-05
  12  0.235331
  13  7.75827
  14  1.43993
  15  5.86568
  16  1.70447
  17  9.75413e-06
  18  12.5933
  19  20.421
  20  0.122531
  21  4.20312e-05
  22  12.3703
  23  13.1254
  24  0.25077
  25  0.126442
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  1.462e-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:  1.032e+00  1.264e-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.654e-01  2.508e-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.05e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/284639/likelihoodResults_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.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) = 8017.7089592
delta logL = -0.000223090763939

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8017.70873637
delta logL = -2.63829861069e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11444E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8422       1.0000          .0000       10.000    
     3 'Normalizat'    .76549       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0323       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=   8017.709     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      217 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1631.8        .90712E-02** at limit **
   2  Index         2.8777        5.4681        .50000       -.16028E-04
   3  Normalizat    .76543        .51505E-01    .87986E-01   -.93315E-05
   4  Prefactor     1.0324        .26867E-01    .41077E-01   -.12485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.87773
  Normalizat = 0.765433
  Prefactor  = 1.03237
 **********
 **   18 **HESSE 
 **********

 FCN=   8017.709     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.420        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8777        6.4287        .50000       -.43836    
   3  Normalizat    .76543        .23545        .38971E-03   -1.0136    
   4  Prefactor     1.0324        .12492        .17869E-03   -.91658    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.78148e-10
Minuit parameter uncertainties:
  1  4.07183e-05
  2  4.71868
  3  0.235764
  4  0.124952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/284639': 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) = 8017.70873589
delta logL = 2.21382833843e-07

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  4.072e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.878e+00  4.719e+00  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.032e+00  1.250e-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.654e-01  2.358e-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/284639/cmap_HighResolution_256953601_257212801_4FGL_J2225.6+2120_daily_bin68.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.32e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-28 10:50:57.542867', job_id='284639', GAL2='1.03', fit_tolerance='1e-08', EG2='0.77', EG='0.77', time_epoch_completed='1632851457.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='68' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:50:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 284639: <4FGL_J2225.6+2120_daily_bin68> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin68 336.414 21.3418 256953601 257212801 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 :                                   782.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             313.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            938 sec.

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

