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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1379
RA = 336.414, Dec = 21.3418
tmin = 596764801, tmax = 597024001
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='293556', job_status='RUN', time_executed='2021-09-28 11:02:55.886453', time_epoch_executed='1632852175.89' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1379'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293556/ft1_4FGL_J2225.6+2120_daily_bin1379.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293556/ft1_4FGL_J2225.6+2120_daily_bin1379.fits outfile=/scratch/kocevski/293556/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1379.fits ra=336.414 dec=21.3418 rad=12.0 tmin=596764801.0 tmax=597024001.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.52
user 3.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.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/293556/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1379.fits evtable="EVENTS" outfile="/scratch/kocevski/293556/ft1_filtered_4FGL_J2225.6+2120_daily_bin1379.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/293556/ft1_filtered_4FGL_J2225.6+2120_daily_bin1379.fits" evtable="EVENTS" scfile=/scratch/kocevski/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.fits sctable="SC_DATA" outfile=/scratch/kocevski/293556/ltcube_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.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/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.fits
.....................!
real 12.52
user 12.11
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293556/ft1_filtered_4FGL_J2225.6+2120_daily_bin1379.fits evtable="EVENTS" scfile=/scratch/kocevski/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.fits sctable="SC_DATA" expcube=/scratch/kocevski/293556/ltcube_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.fits outfile=/scratch/kocevski/293556/expmap_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.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/293556/ltcube_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.fits
.....................!
real 190.69
user 185.80
sys 4.22

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/293556/ft1_filtered_4FGL_J2225.6+2120_daily_bin1379.fits scfile=/scratch/kocevski/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.fits outfile=/scratch/kocevski/293556/cmap_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293556/ft1_filtered_4FGL_J2225.6+2120_daily_bin1379.fits scfile=/scratch/kocevski/293556/ft2_4FGL_J2225.6+2120_daily_bin1379.fits outfile=/scratch/kocevski/293556/cmap_HighResolution_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.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.55
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .68009       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.355       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5538       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .31857E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.0746       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0877       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3941       1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.4359       1.0000         .10000E-03   10000.    
    18 'Prefactor '    32.644       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59570       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2405       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .73930       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72646       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0394       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=   7936.785     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     3028 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.60        .91881E-06** at limit **
   2  norm          .68262        2.2402       -.68449E-06   -.50944E-03
   3  Prefactor     16.332        21.519        .48323E-05    .10181E-03
   4  norm          .10000E-03    .32239        .43130E-07** at limit **
   5  Prefactor     .10000E-03    11.917       -.99154E-06** at limit **
   6  norm          .10000E-03    .31466       -.70250E-07** at limit **
   7  Prefactor     1.5528        3.6230        .17767E-05   -.16327E-02
   8  norm          .10000E-03    1.4618        .78630E-07** at limit **
   9  Prefactor     .10000E-03    4.9297        .38538E-07** at limit **
  10  Prefactor     .10000E-03    26.200        .58008E-05** at limit **
  11  Prefactor     .10107E-03    6.5250       -.99172E-06** at limit **
  12  Prefactor     1.0746        .25947        .14440E-07    .60523E-03
  13  Prefactor     .10000E-03    3.7832        .10510E-06** at limit **
  14  norm          1.0878        .95117       -.80599E-07   -.87933E-03
  15  Prefactor     .10000E-03    16.088        .14059E-04** at limit **
  16  norm          3.3942        1.9088        .14576E-07    .11499E-03
  17  Prefactor     7.4370        15.505       -.78703E-06    .14794E-04
  18  Prefactor     32.645        14.507       -.20290E-06    .75017E-04
  19  Prefactor     .10000E-03    17.846       -.17278E-04** at limit **
  20  Prefactor     .59573        .16668        .20504E-07    .33229E-02
  21  Prefactor     1.2429        17.245        .41384E-07   -.73494E-04
  22  Prefactor     .73715        6.3936       -.69059E-06    .12616E-03
  23  Prefactor     .10000E-03    7.5688       -.15527E-07** at limit **
  24  Normalizat    .72623        .21877       -.15210E-06    .14994E-03
  25  Prefactor     1.0394        .10706       -.31782E-07    .25953E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.682618
  Prefactor  = 16.3317
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.55282
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000101066
  Prefactor  = 1.07463
  Prefactor  = 0.0001
  norm       = 1.08778
  Prefactor  = 0.0001
  norm       = 3.39418
  Prefactor  = 7.43705
  Prefactor  = 32.6449
  Prefactor  = 0.0001
  Prefactor  = 0.595732
  Prefactor  = 1.24289
  Prefactor  = 0.737152
  Prefactor  = 0.0001
  Normalizat = 0.726232
  Prefactor  = 1.03944
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.785     FROM HESSE     STATUS=OK           441 CALLS     3469 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    114.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .68262        2.2221        .21738E-03   -1.5543    
   3  Prefactor     16.332        21.223        .99036E-04   -1.4899    
   4  norm          .10000E-03    .47632        .98437E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .32891        .97470E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.5528        11.868        .17080E-02   -1.5459    
   8  norm          .10000E-03    1.4669        .10517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.9391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    26.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10107E-03    12.044        .66030E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.0746        .25933        .21288E-04   -1.5501    
  13  Prefactor     .10000E-03    3.7852        .16923E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0878        .88809        .77513E-03   -1.5499    
  15  Prefactor     .10000E-03    16.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3942        1.9087        .87718E-04   -1.5339    
  17  Prefactor     7.4370        15.506        .14708E-03   -1.5162    
  18  Prefactor     32.645        14.487        .70133E-04   -1.4565    
  19  Prefactor     .10000E-03    17.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .59573        .16530        .18067E-04   -1.5554    
  21  Prefactor     1.2429        17.462        .40261E-03   -1.5485    
  22  Prefactor     .73715        18.815        .42881E-02   -1.5536    
  23  Prefactor     .10000E-03    7.5820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .72623        .25032        .38407E-03   -1.0287    
  25  Prefactor     1.0394        .12389        .17041E-03   -.91426    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42565e-08
Minuit parameter uncertainties:
  1  6.01244e-05
  2  2.22232
  3  21.2329
  4  1.35358e-06
  5  1.44202e-05
  6  8.37541e-07
  7  8.58801
  8  7.93304e-07
  9  4.52632e-07
  10  9.23731e-05
  11  0.00716607
  12  0.259329
  13  3.1136e-07
  14  0.888098
  15  0.000156748
  16  1.90878
  17  15.514
  18  14.4886
  19  0.000188277
  20  0.165299
  21  9.32024
  22  7.45039
  23  2.5077e-07
  24  0.250713
  25  0.123929
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.011e-04  7.166e-03  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.039e+00  1.239e-01  0.000e+00  1.000e+01 ( 1.000e+00)
513        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
514        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
511   Normalization:  7.262e-01  2.507e-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.03e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.12e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293556/likelihoodResults_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.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) = 7936.78490606
delta logL = -3.38280506185e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7936.78490598
delta logL = -3.37523761118e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96340E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8111       1.0000          .0000       10.000    
     3 'Normalizat'    .72614       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0395       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7936.594     FROM MIGRAD    STATUS=FAILED       284 CALLS      460 TOTAL
                     EDM=   .32E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47879E-03    .20665E-02    .38613E-05** at limit **
   2  Index         9.8845        9.5540        .12319       -.75809E-03
   3  Normalizat    .69165        .23959        .39304E-03   -.69247E-04
   4  Prefactor     1.0519        .12436        .16953E-03   -.35906E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7936.594     FROM SIMPLEX   STATUS=UNCHANGED     65 CALLS      525 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47879E-03    .20665E-02    .29583E-05   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8845        9.5540        .14880E-01    1.3555    
   3  Normalizat    .69165        .23959        .18119E-03   -1.0422    
   4  Prefactor     1.0519        .12436        .89440E-04   -.91020    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7936.594     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      555 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .47879E-03    .15020E-01    .15445E-06** at limit **
   2  Index         9.8845        5.0182        .24637E-01   -.15403E-05
   3  Normalizat    .69165        .24001        .15722E-04    .26033E-05
   4  Prefactor     1.0519        .12448        .33906E-04    .26153E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000478786
  Index      = 9.88452
  Normalizat = 0.691646
  Prefactor  = 1.05186
 **********
 **   18 **HESSE 
 **********

 FCN=   7936.594     FROM HESSE     STATUS=OK            25 CALLS      580 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .47879E-03    .18882        .37441E-06   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         9.8845        9.4290        .98548E-03    1.3555    
   3  Normalizat    .69165        .24289        .31443E-05   -1.0422    
   4  Prefactor     1.0519        .12506        .67812E-05   -.91020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66373e-10
Minuit parameter uncertainties:
  1  0.0169142
  2  23.9621
  3  0.243267
  4  0.125095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293556': 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) = 7936.59441763
delta logL = 0.190454605646

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  4.788e-04  1.691e-02  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  9.885e+00  2.396e+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:  1.052e+00  1.251e-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:  6.916e-01  2.433e-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/293556/cmap_HighResolution_596764801_597024001_4FGL_J2225.6+2120_daily_bin1379.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.12e-03', job_status='DONE', photon_flux_upper_limit='1.03e-07', time_completed='2021-09-28 11:16:37.020377', job_id='293556', GAL2='1.05', fit_tolerance='1e-08', EG2='0.69', EG='0.73', time_epoch_completed='1632852997.02', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='1.90e-01', ts2='0.40', photon_index_error='0.00', photon_index='2.81' WHERE bin_id='1379' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:16:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 293556: <4FGL_J2225.6+2120_daily_bin1379> in cluster <slac> Done

Job <4FGL_J2225.6+2120_daily_bin1379> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 11:00:26 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 11:00:29 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:29 2021
Terminated at Tue Sep 28 11:16:37 2021
Results reported at Tue Sep 28 11:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1379 336.414 21.3418 596764801 597024001 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 :                                   818.05 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             307.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

