/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 93 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 = 7466
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2225.6+2120_daily_bin664
RA = 336.414, Dec = 21.3418
tmin = 411436801, tmax = 411696001
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='287583', job_status='RUN', time_executed='2021-09-28 10:47:29.774079', time_epoch_executed='1632851249.77' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287583

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287583/ft1_4FGL_J2225.6+2120_daily_bin664.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287583/ft2_4FGL_J2225.6+2120_daily_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287583/ft1_4FGL_J2225.6+2120_daily_bin664.fits outfile=/scratch/kocevski/287583/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin664.fits ra=336.414 dec=21.3418 rad=12.0 tmin=411436801.0 tmax=411696001.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 6.72
user 6.41
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287583/ft1_filtered_4FGL_J2225.6+2120_daily_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/287583/ft2_4FGL_J2225.6+2120_daily_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/287583/ltcube_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.fits outfile=/scratch/kocevski/287583/expmap_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.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/287583/ltcube_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.fits
.....................!
real 189.86
user 185.52
sys 3.99

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/287583/ft1_filtered_4FGL_J2225.6+2120_daily_bin664.fits scfile=/scratch/kocevski/287583/ft2_4FGL_J2225.6+2120_daily_bin664.fits outfile=/scratch/kocevski/287583/cmap_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287583/ft1_filtered_4FGL_J2225.6+2120_daily_bin664.fits scfile=/scratch/kocevski/287583/ft2_4FGL_J2225.6+2120_daily_bin664.fits outfile=/scratch/kocevski/287583/cmap_HighResolution_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   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 '    220.30       1.0000         .10000E-03   10000.    
     6 'norm      '    2.3437       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.774       1.0000         .10000E-03   10000.    
     8 'norm      '    33.358       1.0000         .10000E-03   10000.    
     9 'Prefactor '    53.518       1.0000         .10000E-03   10000.    
    10 'Prefactor '    389.11       1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.319       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.5092       1.0000         .10000E-03   10000.    
    14 'norm      '    .95348       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .92229       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.6474       1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.619       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.141       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .26937E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0081       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5150E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2931.269     FROM MIGRAD    STATUS=CONVERGED     92 CALLS     3972 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    82.449       -.72212E-05** at limit **
   2  norm          .10000E-03    11.314        .46943E-05** at limit **
   3  Prefactor     .10059E-03    20.444        .27465E-05** at limit **
   4  norm          .10000E-03    1.5703       -.38095E-06** at limit **
   5  Prefactor     220.30        1.0001        .21076E-09   -.34043E-04
   6  norm          2.3436        3.1349        .57858E-06    .80715E-04
   7  Prefactor     44.774        1.0027       -.49380E-08    .13088E-03
   8  norm          33.357        1.0076       -.40349E-08    .38014E-04
   9  Prefactor     53.518        1.0010       -.16178E-08    .68566E-04
  10  Prefactor     389.11        1.0000        .49998E-11   -.13024E-04
  11  Prefactor     40.319        1.0054       -.35959E-08    .49143E-04
  12  Prefactor     3.6899        .78605        .10588E-06    .38971E-03
  13  Prefactor     7.5091        1.0035       -.53119E-08    .20447E-04
  14  norm          .95345        2.1233        .60418E-06    .68712E-04
  15  Prefactor     .10026E-03    18.920        .21456E-05** at limit **
  16  norm          .10000E-03    4.4368       -.62396E-06** at limit **
  17  Prefactor     .10051E-03    41.036        .19612E-05** at limit **
  18  Prefactor     .92156        1.2734       -.33358E-07    .10044E-04
  19  Prefactor     .10022E-03    10.761       -.33956E-05** at limit **
  20  Prefactor     2.6474        .52528        .14297E-06    .75261E-03
  21  Prefactor     21.619        1.0052       -.63369E-08    .21805E-04
  22  Prefactor     21.141        1.0045       -.86816E-08    .69702E-04
  23  Prefactor     .10021E-03    10.209       -.37835E-05** at limit **
  24  Normalizat    .26962E-01    6.3561       -.13793E-04    .24112E-05
  25  Prefactor     1.0081        .22522        .10921E-05    .40738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100325
  norm       = 0.000100004
  Prefactor  = 0.000100592
  norm       = 0.0001
  Prefactor  = 220.3
  norm       = 2.34365
  Prefactor  = 44.7736
  norm       = 33.3572
  Prefactor  = 53.5175
  Prefactor  = 389.108
  Prefactor  = 40.3189
  Prefactor  = 3.68995
  Prefactor  = 7.50913
  norm       = 0.953446
  Prefactor  = 0.000100257
  norm       = 0.0001
  Prefactor  = 0.000100512
  Prefactor  = 0.921565
  Prefactor  = 0.000100219
  Prefactor  = 2.64739
  Prefactor  = 21.6188
  Prefactor  = 21.1412
  Prefactor  = 0.000100211
  Normalizat = 0.0269624
  Prefactor  = 1.00806
 **********
 **   18 **HESSE 
 **********

 FCN=   2931.269     FROM HESSE     STATUS=NOT POSDEF   493 CALLS     4465 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10032E-03    77.005        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    9.7399        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10059E-03    24.647        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .95928        .28560E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     220.30        179.79        .68129E-03   -1.2728    
   6  norm          2.3436        4.4819        .66949E-02   -1.5402    
   7  Prefactor     44.774        60.243        .14979E-02   -1.4369    
   8  norm          33.357        26.184        .17345E-02   -1.4552    
   9  Prefactor     53.518        100.18        .13707E-02   -1.4244    
  10  Prefactor     389.11        388.35        .51711E-03   -1.1737    
  11  Prefactor     40.319        82.994        .15782E-02   -1.4437    
  12  Prefactor     3.6899        .93861        .48171E-02   -1.5324    
  13  Prefactor     7.5091        24.200        .36588E-02   -1.5160    
  14  norm          .95345        4.1420        .13000E-01   -1.5513    
  15  Prefactor     .10026E-03    19.664        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10051E-03    42.123        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .92156        146.23        .97033E-01   -1.5516    
  19  Prefactor     .10022E-03    11.968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.6474        .85748        .37163E-02   -1.5383    
  21  Prefactor     21.619        22.897        .21536E-02   -1.4778    
  22  Prefactor     21.141        37.908        .21778E-02   -1.4788    
  23  Prefactor     .10021E-03    11.389        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .26962E-01    9.8114        .32375       -1.4884    
  25  Prefactor     1.0081        1.0253        .43625E-01   -.92461    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.46567e-08
Minuit parameter uncertainties:
  1  0.0100166
  2  0.000408781
  3  0.00764061
  4  1.9707e-06
  5  180.238
  6  4.48257
  7  60.3246
  8  26.1926
  9  100.497
  10  391.009
  11  83.2329
  12  0.938618
  13  24.2317
  14  3.97474
  15  0.00449929
  16  6.59813e-06
  17  0.00929381
  18  23.2739
  19  0.00324083
  20  0.857486
  21  22.9061
  22  37.9513
  23  0.00310193
  24  1.47873
  25  1.04626
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 2931.26858081

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.032e+01  8.323e+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.008e+00  1.046e+00  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:  2.696e-02  1.479e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 1.65e-07 +/- 3.41e-07
Energy Flux (Fixed Index): 3.67e-05 +/- 7.58e-05

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

Saving results to:
/scratch/kocevski/287583/likelihoodResults_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.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) = 2931.18112166
delta logL = 0.0874591438824

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2931.17586674
delta logL = 0.0927140638764

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.180       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4930       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0157       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=   2931.176     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      305 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.182        145.08        .81461E-04    .34489E-03
   2  Index         3.4945        3.8169        .70689E-02    .87618E-04
   3  Normalizat    .10000E-01    6.3110        .14760E-01** at limit **
   4  Prefactor     1.0155        .11336        .18425E-03    .19991E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1821
  Index      = 3.49455
  Normalizat = 0.01
  Prefactor  = 1.01545
 **********
 **   18 **HESSE 
 **********

 FCN=   2931.176     FROM HESSE     STATUS=OK            25 CALLS      330 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.182        62.760        .16292E-04   -1.4724    
   2  Index         3.4945        2.2491        .28276E-03   -.30584    
   3  Normalizat    .10000E-01    6.3174        .59040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0155        .10874        .36850E-04   -.92216    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50069e-10
Minuit parameter uncertainties:
  1  62.932
  2  2.34214
  3  8.55481e-07
  4  0.108765
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287583': 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) = 2931.17586347
delta logL = 0.0927173356581

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  2.418e+01  6.293e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.495e+00  2.342e+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.015e+00  1.088e-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.000e-02  8.555e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.53
Ra Dec: 336.414 21.342
Photon Index (Free Index): 3.49 +/- 2.34
Photon Flux (Free Index): 2.05e-07 +/- 1.95e-07
Energy Flux (Free Index): 3.42e-05 +/- 3.47e-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/287583/cmap_HighResolution_411436801_411696001_4FGL_J2225.6+2120_daily_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.06e-02', comment='SUCCESS', photon_flux='1.65e-07', energy_flux2='3.42e-05', photon_flux_error='3.41e-07', dlogl='9.27e-02', energy_flux='3.67e-05', photon_flux2='2.05e-07', job_status='DONE', time_completed='2021-09-28 10:56:33.729074', photon_index_error2='2.34', photon_index2='3.49', ts='1.28', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', photon_flux_upper_limit='5.13e-07', energy_flux_error2='3.47e-05', EG='0.03', time_epoch_completed='1632851793.73', return_code='102', job_id='287583', GAL2='1.02', EG2='0.01', return_code2='0', energy_flux_error='7.58e-05', photon_flux_error2='1.95e-07', ts2='1.53', photon_index='2.81' WHERE bin_id='664' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:56:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 287583: <4FGL_J2225.6+2120_daily_bin664> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin664 336.414 21.3418 411436801 411696001 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 :                                   543.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             308.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   655 sec.
    Turnaround time :                            657 sec.

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

