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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin635
RA = 336.414, Dec = 21.3418
tmin = 403920001, tmax = 404179201
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='287540', job_status='RUN', time_executed='2021-09-28 10:47:58.803199', time_epoch_executed='1632851278.8' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='635'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287540

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

Retrieving the FT1 file...

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

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

Retrieving 39 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287540/ft1_4FGL_J2225.6+2120_daily_bin635.fits


Retrieving the FT1 file...

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

Retrieving 39 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287540/ft2_4FGL_J2225.6+2120_daily_bin635.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287540/ft1_4FGL_J2225.6+2120_daily_bin635.fits outfile=/scratch/kocevski/287540/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin635.fits ra=336.414 dec=21.3418 rad=12.0 tmin=403920001.0 tmax=404179201.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 10.05
user 9.71
sys 0.31

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287540/ft1_filtered_4FGL_J2225.6+2120_daily_bin635.fits" evtable="EVENTS" scfile=/scratch/kocevski/287540/ft2_4FGL_J2225.6+2120_daily_bin635.fits sctable="SC_DATA" outfile=/scratch/kocevski/287540/ltcube_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.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/287540/ft2_4FGL_J2225.6+2120_daily_bin635.fits
.....................!
real 9.25
user 8.93
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287540/ft1_filtered_4FGL_J2225.6+2120_daily_bin635.fits evtable="EVENTS" scfile=/scratch/kocevski/287540/ft2_4FGL_J2225.6+2120_daily_bin635.fits sctable="SC_DATA" expcube=/scratch/kocevski/287540/ltcube_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.fits outfile=/scratch/kocevski/287540/expmap_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.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/287540/ltcube_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.fits
.....................!
real 190.92
user 186.90
sys 3.70

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/287540/ft1_filtered_4FGL_J2225.6+2120_daily_bin635.fits scfile=/scratch/kocevski/287540/ft2_4FGL_J2225.6+2120_daily_bin635.fits outfile=/scratch/kocevski/287540/cmap_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.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.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6608       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .68045E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0748       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    11.672       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3757       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8485       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.030       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0245       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.690       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.780       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7802       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6079       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.3480       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6807       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .48574       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=   5537.875     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2910 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    123.77        .90712E-02** at limit **
   2  norm          2.6614        3.0386        .62470E-02    .52250E-03
   3  Prefactor     .10000E-03    15.723        .90712E-02** at limit **
   4  norm          .10000E-03    .44151        .90712E-02** at limit **
   5  Prefactor     .10047E-03    174.79        .10498E-01** at limit **
   6  norm          .10000E-03    .42044        .23548E-01** at limit **
   7  Prefactor     .10000E-03    11.043        .90712E-02** at limit **
   8  norm          .10000E-03    2.4880        .90712E-02** at limit **
   9  Prefactor     3.0753        10.010        .57829E-02    .16638E-03
  10  Prefactor     .10000E-03    35.517        .90712E-02** at limit **
  11  Prefactor     11.670        12.185        .29315E-02    .10340E-03
  12  Prefactor     1.3757        .34208        .46741E-02    .17785E-03
  13  Prefactor     .10000E-03    10.672        .90712E-02** at limit **
  14  norm          1.8485        1.2190        .76671E-02    .13990E-03
  15  Prefactor     14.032        22.148        .26733E-02    .99766E-04
  16  norm          1.0245        1.2871        .12667E-02   -.13713E-04
  17  Prefactor     45.690        41.676        .14829E-02   -.14898E-03
  18  Prefactor     14.780        16.208        .26046E-02   -.39057E-04
  19  Prefactor     .10000E-03    7.9802        .90712E-02** at limit **
  20  Prefactor     1.7800        .29703        .35078E-02    .54196E-04
  21  Prefactor     4.6107        16.305        .46877E-02    .22324E-03
  22  Prefactor     7.3503        11.385        .36990E-02   -.46408E-04
  23  Prefactor     .10000E-03    20.293        .90712E-02** at limit **
  24  Normalizat    1.6809        .26500        .63449E-01   -.39024E-05
  25  Prefactor     .48558        .12066        .39472E-01    .17520E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100013
  norm       = 2.6614
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100473
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.07531
  Prefactor  = 0.0001
  Prefactor  = 11.6703
  Prefactor  = 1.3757
  Prefactor  = 0.0001
  norm       = 1.84849
  Prefactor  = 14.0319
  norm       = 1.0245
  Prefactor  = 45.6902
  Prefactor  = 14.78
  Prefactor  = 0.0001
  Prefactor  = 1.77999
  Prefactor  = 4.61067
  Prefactor  = 7.35029
  Prefactor  = 0.0001
  Normalizat = 1.68088
  Prefactor  = 0.485583
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.875     FROM HESSE     STATUS=OK           429 CALLS     3339 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    123.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6614        3.0309        .13181E-03   -1.5382    
   3  Prefactor     .10000E-03    15.737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .44799        .48261E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10047E-03    178.32        .20996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .54224        .93609E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.117        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4971        .11462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.0753        9.9897        .23132E-03   -1.5357    
  10  Prefactor     .10000E-03    35.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     11.670        12.242        .11726E-03   -1.5025    
  12  Prefactor     1.3757        .34235        .20683E-04   -1.5473    
  13  Prefactor     .10000E-03    10.708        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8485        1.2125        .62889E-04   -1.5436    
  15  Prefactor     14.032        22.142        .10693E-03   -1.4959    
  16  norm          1.0245        1.2865        .50670E-04   -1.5506    
  17  Prefactor     45.690        41.766        .59316E-04   -1.4355    
  18  Prefactor     14.780        16.257        .10418E-03   -1.4939    
  19  Prefactor     .10000E-03    7.9823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7800        .29896        .15506E-04   -1.5441    
  21  Prefactor     4.6107        16.269        .18751E-03   -1.5278    
  22  Prefactor     7.3503        11.386        .14796E-03   -1.5166    
  23  Prefactor     .10000E-03    20.358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6809        .31565        .28060E-03   -.72815    
  25  Prefactor     .48558        .14230        .23184E-03   -1.1264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03025e-09
Minuit parameter uncertainties:
  1  0.00252204
  2  3.03104
  3  1.21048e-05
  4  3.2811e-07
  5  0.0184276
  6  2.49284e-07
  7  5.96209e-06
  8  4.75462e-07
  9  9.99512
  10  4.65993e-05
  11  12.2446
  12  0.342346
  13  7.12625e-06
  14  1.21252
  15  22.1546
  16  1.28652
  17  41.793
  18  16.2618
  19  2.53629e-07
  20  0.298957
  21  16.2844
  22  11.389
  23  2.08932e-05
  24  0.316031
  25  0.142406
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.167e+01  1.224e+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:  4.856e-01  1.424e-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.681e+00  3.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.65
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 4.78e-08 +/- 5.01e-08
Energy Flux (Fixed Index): 1.06e-05 +/- 1.12e-05

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

Saving results to:
/scratch/kocevski/287540/likelihoodResults_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.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) = 5537.81645177
delta logL = 0.0582779154702

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5537.81422591
delta logL = 0.0605037789801

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.981       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4839       1.0000          .0000       10.000    
     3 'Normalizat'    1.6938       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48107       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=   5537.814     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      279 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.982        13.570        .11117E-03   -.82141E-03
   2  Index         2.4838        .89209        .12413E-01   -.17372E-03
   3  Normalizat    1.6936        .29931        .27974E-03    .98099E-04
   4  Prefactor     .48119        .14090        .23278E-03    .94846E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.982
  Index      = 2.48376
  Normalizat = 1.6936
  Prefactor  = 0.481191
 **********
 **   18 **HESSE 
 **********

 FCN=   5537.814     FROM HESSE     STATUS=OK            23 CALLS      302 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.982        13.529        .22235E-04   -1.4987    
   2  Index         2.4838        .88926        .24826E-02   -.52735    
   3  Normalizat    1.6936        .29957        .55947E-04   -.72474    
   4  Prefactor     .48119        .14101        .93111E-05   -1.1285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.16494e-09
Minuit parameter uncertainties:
  1  13.5319
  2  0.895663
  3  0.299893
  4  0.141115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287540': 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) = 5537.81422553
delta logL = 0.0605041607987

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.298e+01  1.353e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.484e+00  8.957e-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:  4.812e-01  1.411e-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.694e+00  2.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.76
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.48 +/- 0.90
Photon Flux (Free Index): 3.93e-08 +/- 4.89e-08
Energy Flux (Free Index): 1.16e-05 +/- 1.27e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/287540/cmap_HighResolution_403920001_404179201_4FGL_J2225.6+2120_daily_bin635.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.34e-02', comment='SUCCESS', photon_flux='4.78e-08', energy_flux2='1.16e-05', photon_flux_error='5.01e-08', dlogl='6.05e-02', energy_flux='1.06e-05', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-28 10:59:26.533272', photon_index_error2='0.90', photon_index2='2.48', ts='1.65', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', photon_flux_upper_limit='1.69e-07', energy_flux_error2='1.27e-05', EG='1.68', time_epoch_completed='1632851966.53', return_code='0', job_id='287540', GAL2='0.48', EG2='1.69', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='4.89e-08', ts2='1.76', photon_index='2.81' WHERE bin_id='635' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:59:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 287540: <4FGL_J2225.6+2120_daily_bin635> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin635> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:45:33 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:45:34 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:45:34 2021
Terminated at Tue Sep 28 10:59:27 2021
Results reported at Tue Sep 28 10:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin635 336.414 21.3418 403920001 404179201 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 :                                   683.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

