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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1206
RA = 336.414, Dec = 21.3418
tmin = 551923201, tmax = 552182401
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='290811', job_status='RUN', time_executed='2021-09-28 10:58:50.861637', time_epoch_executed='1632851930.86' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1206'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290811

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290811/ft1_4FGL_J2225.6+2120_daily_bin1206.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290811/ft2_4FGL_J2225.6+2120_daily_bin1206.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290811/ft1_4FGL_J2225.6+2120_daily_bin1206.fits outfile=/scratch/kocevski/290811/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1206.fits ra=336.414 dec=21.3418 rad=12.0 tmin=551923201.0 tmax=552182401.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.71
user 3.47
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290811/ft2_4FGL_J2225.6+2120_daily_bin1206.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/290811/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1206.fits evtable="EVENTS" outfile="/scratch/kocevski/290811/ft1_filtered_4FGL_J2225.6+2120_daily_bin1206.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.53
user 0.34
sys 0.17

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290811/ft1_filtered_4FGL_J2225.6+2120_daily_bin1206.fits evtable="EVENTS" scfile=/scratch/kocevski/290811/ft2_4FGL_J2225.6+2120_daily_bin1206.fits sctable="SC_DATA" expcube=/scratch/kocevski/290811/ltcube_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.fits outfile=/scratch/kocevski/290811/expmap_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.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/290811/ltcube_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.fits
.....................!
real 190.42
user 185.61
sys 4.47

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/290811/ft1_filtered_4FGL_J2225.6+2120_daily_bin1206.fits scfile=/scratch/kocevski/290811/ft2_4FGL_J2225.6+2120_daily_bin1206.fits outfile=/scratch/kocevski/290811/cmap_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290811/ft1_filtered_4FGL_J2225.6+2120_daily_bin1206.fits scfile=/scratch/kocevski/290811/ft2_4FGL_J2225.6+2120_daily_bin1206.fits outfile=/scratch/kocevski/290811/cmap_HighResolution_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    6.2738       1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.159       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11331E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11119E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10317E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    51.263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .68431       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8885       1.0000         .10000E-03   10000.    
    14 'norm      '    2.5579       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .22316E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7324       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.1643       1.0000         .10000E-03   10000.    
    21 'Prefactor '    51.946       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.0938       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0282       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .90571       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=   5485.943     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2932 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10007E-03    120.39       -.15484E-04** at limit **
   2  norm          6.2744        6.3616        .45216E-06   -.15248E-03
   3  Prefactor     32.141        80.308       -.24964E-05   -.76422E-04
   4  norm          .10000E-03    2.2894       -.59545E-07** at limit **
   5  Prefactor     .10000E-03    98.736        .36862E-05** at limit **
   6  norm          .10000E-03    .54934        .26243E-06** at limit **
   7  Prefactor     .10004E-03    87.880        .79521E-05** at limit **
   8  norm          .10000E-03    2.7133        .16844E-06** at limit **
   9  Prefactor     .10000E-03    14.787        .12305E-05** at limit **
  10  Prefactor     51.078        573.44       -.13069E-05   -.26447E-04
  11  Prefactor     .10000E-03    9.2941        .52558E-06** at limit **
  12  Prefactor     .68425        .21239        .20712E-07   -.60799E-03
  13  Prefactor     4.8885        5.1926        .27636E-07    .26587E-04
  14  norm          2.5573        3.5342       -.28459E-05    .99882E-03
  15  Prefactor     .10009E-03    835.50       -.59376E-04** at limit **
  16  norm          .10000E-03    1.2772       -.48105E-06** at limit **
  17  Prefactor     .10000E-03    8.0940       -.96380E-07** at limit **
  18  Prefactor     2.7342        21.202        .20890E-04   -.11256E-03
  19  Prefactor     .10000E-03    10.498       -.57909E-06** at limit **
  20  Prefactor     1.1642        .22724       -.44720E-07   -.95306E-03
  21  Prefactor     51.918        27.469       -.20796E-05   -.20472E-03
  22  Prefactor     5.0933        7.5466        .22934E-05   -.13796E-03
  23  Prefactor     .10000E-03    29.756       -.81897E-06** at limit **
  24  Normalizat    1.0283        .30203       -.13176E-05   -.39366E-04
  25  Prefactor     .90573        .14135       -.10853E-05   -.17285E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100072
  norm       = 6.27444
  Prefactor  = 32.1409
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.000100039
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 51.0782
  Prefactor  = 0.0001
  Prefactor  = 0.68425
  Prefactor  = 4.88852
  norm       = 2.55729
  Prefactor  = 0.000100091
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.73421
  Prefactor  = 0.0001
  Prefactor  = 1.16422
  Prefactor  = 51.9177
  Prefactor  = 5.09333
  Prefactor  = 0.0001
  Normalizat = 1.02826
  Prefactor  = 0.905735
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.943     FROM HESSE     STATUS=OK           423 CALLS     3355 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10007E-03    123.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.2744        6.3210        .13883E-03   -1.5207    
   3  Prefactor     32.141        79.860        .70658E-04   -1.4573    
   4  norm          .10000E-03    2.2937        .10944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    99.202        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .75232        .10560E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10004E-03    91.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.7338        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    15.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     51.078        581.59        .28007E-03   -1.4277    
  11  Prefactor     .10000E-03    9.3265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .68425        .21248        .17865E-04   -1.5543    
  13  Prefactor     4.8885        5.1971        .16934E-03   -1.5266    
  14  norm          2.5573        3.4441        .14017E-03   -1.5388    
  15  Prefactor     .10009E-03    847.21        .40256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.3008        .81834E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.0952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7342        22.151        .12317E-02   -1.5377    
  19  Prefactor     .10000E-03    10.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.1642        .22832        .14401E-04   -1.5492    
  21  Prefactor     51.918        27.507        .55646E-04   -1.4266    
  22  Prefactor     5.0933        7.5548        .89073E-03   -1.5257    
  23  Prefactor     .10000E-03    29.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0283        .34717        .39105E-03   -.92089    
  25  Prefactor     .90573        .16351        .20468E-03   -.95941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.49216e-09
Minuit parameter uncertainties:
  1  0.00597464
  2  6.32171
  3  80.1278
  4  8.25082e-06
  5  0.00135244
  6  5.60786e-06
  7  0.00378135
  8  3.85169e-06
  9  9.71557e-05
  10  349.076
  11  7.16331e-05
  12  0.212482
  13  5.19759
  14  3.44441
  15  0.0177934
  16  3.13746e-05
  17  1.20297e-05
  18  15.5725
  19  7.36798e-05
  20  0.228318
  21  27.5141
  22  7.55621
  23  0.000121069
  24  0.347934
  25  0.1636
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  7.163e-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:  9.057e-01  1.636e-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.028e+00  3.479e-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.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.11e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290811/likelihoodResults_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.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) = 5485.9430548
delta logL = -0.000510808095896

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5485.94254417
delta logL = -1.80287315743e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8113       1.0000          .0000       10.000    
     3 'Normalizat'    1.0281       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90580       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=   5485.943     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    60.780        .90712E-02** at limit **
   2  Index         2.8115        7.8848        .50000       -.17635E-06
   3  Normalizat    1.0283        .18812E-01    .88303E-01    .21443E-04
   4  Prefactor     .90573        .93501E-02    .45079E-01    .97399E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.81146
  Normalizat = 1.02826
  Prefactor  = 0.905734
 **********
 **   18 **HESSE 
 **********

 FCN=   5485.943     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    300.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.8115        6.1143        .50000       -.45305    
   3  Normalizat    1.0283        .43003E-01    .39104E-03   -.92089    
   4  Prefactor     .90573        .21417E-01    .20468E-03   -.95941    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.518e-09
Minuit parameter uncertainties:
  1  2.4561e-05
  2  1245.68
  3  0.0430044
  4  0.0214172
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290811': 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) = 5485.94254399
delta logL = 3.09228198603e-11

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.000e-04  2.456e-05  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.811e+00  1.246e+03  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:  9.057e-01  2.142e-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:  1.028e+00  4.300e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/290811/cmap_HighResolution_551923201_552182401_4FGL_J2225.6+2120_daily_bin1206.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.11e-02', job_status='DONE', photon_flux_upper_limit='1.40e-07', time_completed='2021-09-28 11:09:15.348048', job_id='290811', GAL2='0.91', fit_tolerance='1e-08', EG2='1.03', EG='1.03', time_epoch_completed='1632852555.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.09e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1206' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:09:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 290811: <4FGL_J2225.6+2120_daily_bin1206> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1206> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 10:55:24 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:55:26 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:55:26 2021
Terminated at Tue Sep 28 11:09:16 2021
Results reported at Tue Sep 28 11:09:16 2021

Your job looked like:

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

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

