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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1407
RA = 336.414, Dec = 21.3418
tmin = 604022401, tmax = 604281601
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='293601', job_status='RUN', time_executed='2021-09-28 11:03:02.953402', time_epoch_executed='1632852182.95' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1407'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293601

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293601/ft1_4FGL_J2225.6+2120_daily_bin1407.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293601/ft2_4FGL_J2225.6+2120_daily_bin1407.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293601/ft1_4FGL_J2225.6+2120_daily_bin1407.fits outfile=/scratch/kocevski/293601/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1407.fits ra=336.414 dec=21.3418 rad=12.0 tmin=604022401.0 tmax=604281601.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 4.17
user 3.94
sys 0.21

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293601/ft1_filtered_4FGL_J2225.6+2120_daily_bin1407.fits evtable="EVENTS" scfile=/scratch/kocevski/293601/ft2_4FGL_J2225.6+2120_daily_bin1407.fits sctable="SC_DATA" expcube=/scratch/kocevski/293601/ltcube_604022401_604281601_4FGL_J2225.6+2120_daily_bin1407.fits outfile=/scratch/kocevski/293601/expmap_604022401_604281601_4FGL_J2225.6+2120_daily_bin1407.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/293601/ltcube_604022401_604281601_4FGL_J2225.6+2120_daily_bin1407.fits
.....................!
real 193.11
user 186.72
sys 5.92

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/293601/ft1_filtered_4FGL_J2225.6+2120_daily_bin1407.fits scfile=/scratch/kocevski/293601/ft2_4FGL_J2225.6+2120_daily_bin1407.fits outfile=/scratch/kocevski/293601/cmap_604022401_604281601_4FGL_J2225.6+2120_daily_bin1407.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.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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.9048       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .28807E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.022       1.0000         .10000E-03   10000.    
     6 'norm      '    .10338E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.332       1.0000         .10000E-03   10000.    
    10 'Prefactor '    34.753       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .52050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .38110       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.644       1.0000         .10000E-03   10000.    
    16 'norm      '    2.2304       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.2928       1.0000         .10000E-03   10000.    
    18 'Prefactor '    49.691       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .53564       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.8838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0586       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.548       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0098       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0368       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=   8053.459     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     2970 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.705       -.60865E-06** at limit **
   2  norm          2.9038        2.6645        .10445E-06   -.86106E-04
   3  Prefactor     .10000E-03    20.486        .50761E-07** at limit **
   4  norm          .10000E-03    .44954        .29149E-07** at limit **
   5  Prefactor     42.006        55.656       -.25385E-05   -.80672E-04
   6  norm          .10000E-03    .53831        .11237E-06** at limit **
   7  Prefactor     .10000E-03    14.570       -.79221E-08** at limit **
   8  norm          .10000E-03    3.9048        .10411E-06** at limit **
   9  Prefactor     11.320        19.105       -.14493E-06   -.24223E-04
  10  Prefactor     34.722        60.078       -.52201E-05   -.10344E-03
  11  Prefactor     .38364        10.813        .12925E-05   -.24943E-03
  12  Prefactor     .38100        .24468        .18201E-07   -.21879E-03
  13  Prefactor     .10000E-03    6.5807        .85627E-07** at limit **
  14  norm          2.1098        1.1947        .99167E-07    .17811E-04
  15  Prefactor     24.617        28.493       -.17446E-05   -.12427E-03
  16  norm          2.2305        2.2651        .69372E-07   -.10295E-03
  17  Prefactor     8.2904        23.515       -.63373E-07   -.12866E-04
  18  Prefactor     49.686        18.848       -.14204E-06   -.82633E-04
  19  Prefactor     .10000E-03    6.4099       -.35478E-07** at limit **
  20  Prefactor     .53555        .17292       -.32095E-07   -.49390E-03
  21  Prefactor     1.8824        5.7779       -.16712E-09   -.15825E-03
  22  Prefactor     6.0547        11.666        .42329E-05   -.20150E-03
  23  Prefactor     12.527        26.397       -.18714E-05   -.74380E-04
  24  Normalizat    1.0106        .25012       -.37754E-06   -.17848E-03
  25  Prefactor     1.0367        .11643       -.42334E-07   -.27751E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.90377
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 42.0055
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3199
  Prefactor  = 34.7217
  Prefactor  = 0.383637
  Prefactor  = 0.380995
  Prefactor  = 0.0001
  norm       = 2.10984
  Prefactor  = 24.6171
  norm       = 2.2305
  Prefactor  = 8.29038
  Prefactor  = 49.6859
  Prefactor  = 0.0001
  Prefactor  = 0.535549
  Prefactor  = 1.88237
  Prefactor  = 6.05473
  Prefactor  = 12.5271
  Normalizat = 1.01057
  Prefactor  = 1.03669
 **********
 **   18 **HESSE 
 **********

 FCN=   8053.459     FROM HESSE     STATUS=OK           443 CALLS     3413 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    53.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9038        2.6607        .13387E-03   -1.5367    
   3  Prefactor     .10000E-03    20.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .78881        .21941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     42.006        56.247        .61840E-04   -1.4411    
   6  norm          .10000E-03    1.0844        .12678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    14.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.9392        .17305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.320        18.974        .11901E-03   -1.5035    
  10  Prefactor     34.722        61.588        .67978E-04   -1.4529    
  11  Prefactor     .38364        185.52        .52431E-02   -1.5584    
  12  Prefactor     .38100        .23617        .31048E-04   -1.5585    
  13  Prefactor     .10000E-03    6.6397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1098        1.1921        .67154E-04   -1.5417    
  15  Prefactor     24.617        28.836        .80692E-04   -1.4715    
  16  norm          2.2305        2.2481        .12718E-03   -1.5409    
  17  Prefactor     8.2904        23.526        .13922E-03   -1.5132    
  18  Prefactor     49.686        18.807        .56889E-04   -1.4297    
  19  Prefactor     .10000E-03    6.4132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .53555        .17258        .19885E-04   -1.5562    
  21  Prefactor     1.8824        5.8106        .30326E-03   -1.5434    
  22  Prefactor     6.0547        12.087        .81559E-03   -1.5216    
  23  Prefactor     12.527        26.652        .11308E-03   -1.5000    
  24  Normalizat    1.0106        .29814        .37764E-03   -.92677    
  25  Prefactor     1.0367        .13727        .18804E-03   -.91516    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.71232e-09
Minuit parameter uncertainties:
  1  9.32811e-05
  2  2.66079
  3  8.03834e-06
  4  2.14581e-05
  5  56.318
  6  7.99206e-06
  7  1.49345e-05
  8  4.74303e-06
  9  18.984
  10  61.7009
  11  16.9235
  12  0.236168
  13  9.39618e-07
  14  1.19209
  15  28.8522
  16  2.24823
  17  23.5525
  18  18.8093
  19  4.4239e-06
  20  0.172583
  21  5.81233
  22  12.0917
  23  26.6777
  24  0.29863
  25  0.137314
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  3.836e-01  1.692e+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:  1.037e+00  1.373e-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.011e+00  2.986e-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.46e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.16e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293601/likelihoodResults_604022401_604281601_4FGL_J2225.6+2120_daily_bin1407.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) = 8053.45292737
delta logL = 0.00585384177248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8053.44017822
delta logL = 0.0186029951674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.5301       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6028       1.0000          .0000       10.000    
     3 'Normalizat'    .99314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0417       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=   8053.440     FROM MIGRAD    STATUS=CONVERGED    107 CALLS      297 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5443        84.095        .34507E-03    .33935E-05
   2  Index         3.6034        6.4201        .25138E-01    .62103E-05
   3  Normalizat    .99284        .28441        .38072E-03    .65694E-06
   4  Prefactor     1.0418        .13663        .18764E-03    .46652E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.54428
  Index      = 3.60343
  Normalizat = 0.992842
  Prefactor  = 1.04179
 **********
 **   18 **HESSE 
 **********

 FCN=   8053.440     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .30E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5443        19.124        .13803E-04   -1.5459    
   2  Index         3.6034        3.6977        .10055E-02   -.28308    
   3  Normalizat    .99284        .28188        .15229E-04   -.93271    
   4  Prefactor     1.0418        .13686        .75057E-05   -.91349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.02433e-13
Minuit parameter uncertainties:
  1  10.8728
  2  4.22084
  3  0.282299
  4  0.136906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293601': 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) = 8053.4401761
delta logL = 0.0186051128831

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.544e+00  1.087e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.603e+00  4.221e+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.042e+00  1.369e-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:  9.928e-01  2.823e-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/293601/cmap_HighResolution_604022401_604281601_4FGL_J2225.6+2120_daily_bin1407.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-02', job_status='DONE', photon_flux_upper_limit='1.46e-07', time_completed='2021-09-28 11:16:21.907165', job_id='293601', GAL2='1.04', fit_tolerance='1e-08', EG2='0.99', EG='1.01', time_epoch_completed='1632852981.91', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.86e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1407' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 293601: <4FGL_J2225.6+2120_daily_bin1407> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1407> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:31 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 11:00:33 2021
Terminated at Tue Sep 28 11:16:22 2021
Results reported at Tue Sep 28 11:16:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1407 336.414 21.3418 604022401 604281601 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 :                                   795.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            951 sec.

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

