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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin1430
RA = 336.414, Dec = 21.3418
tmin = 609984001, tmax = 610243201
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='293641', job_status='RUN', time_executed='2021-09-28 11:04:07.223986', time_epoch_executed='1632852247.22' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293641

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293641/ft1_4FGL_J2225.6+2120_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293641/ft1_4FGL_J2225.6+2120_daily_bin1430.fits outfile=/scratch/kocevski/293641/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin1430.fits ra=336.414 dec=21.3418 rad=12.0 tmin=609984001.0 tmax=610243201.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 5.11
user 4.87
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293641/ft1_filtered_4FGL_J2225.6+2120_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/293641/ltcube_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.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/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits
.....................!
real 11.78
user 11.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293641/ft1_filtered_4FGL_J2225.6+2120_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/293641/ltcube_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.fits outfile=/scratch/kocevski/293641/expmap_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.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/293641/ltcube_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.fits
.....................!
real 191.38
user 185.03
sys 5.87

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/293641/ft1_filtered_4FGL_J2225.6+2120_daily_bin1430.fits scfile=/scratch/kocevski/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits outfile=/scratch/kocevski/293641/cmap_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.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/293641/ft1_filtered_4FGL_J2225.6+2120_daily_bin1430.fits scfile=/scratch/kocevski/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits outfile=/scratch/kocevski/293641/cmap_HighResolution_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.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/293641/ft1_filtered_4FGL_J2225.6+2120_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/293641/ft2_4FGL_J2225.6+2120_daily_bin1430.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293641/Model_4FGL_J2225.6+2120_daily_bin1430.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/293641/ft1_filtered_4FGL_J2225.6+2120_daily_bin1430.fits.....................!
real 73.96
user 72.61
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10938E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.2138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11244E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    80.019       1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18219       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.838       1.0000         .10000E-03   10000.    
    14 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8078       1.0000         .10000E-03   10000.    
    17 'Prefactor '    24.570       1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.075       1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .32288       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .28304E-02   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .87281       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91782       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=   7467.952     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3031 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.132       -.11259E-05** at limit **
   2  norm          1.2136        1.6726       -.23565E-06   -.34218E-03
   3  Prefactor     .10000E-03    29.963        .95377E-06** at limit **
   4  norm          .10000E-03    .50945       -.66365E-07** at limit **
   5  Prefactor     .10000E-03    18.932       -.13554E-06** at limit **
   6  norm          .10000E-03    .40480       -.41806E-06** at limit **
   7  Prefactor     .10000E-03    10.518       -.28041E-06** at limit **
   8  norm          .10000E-03    1.9020        .20606E-06** at limit **
   9  Prefactor     .10003E-03    50.158       -.17890E-04** at limit **
  10  Prefactor     80.131        79.491       -.24225E-05   -.17912E-03
  11  Prefactor     7.3637        8.3327       -.14687E-05   -.24116E-03
  12  Prefactor     .18211        .14586       -.70896E-07    .46061E-03
  13  Prefactor     15.838        9.8136       -.58328E-07    .26389E-04
  14  norm          .10000E-03    .31021        .56506E-06** at limit **
  15  Prefactor     .10000E-03    9.4251        .12947E-07** at limit **
  16  norm          1.8078        1.4927        .10298E-06    .31340E-03
  17  Prefactor     24.565        22.013        .15895E-07    .36768E-04
  18  Prefactor     18.075        13.205       -.70480E-06   -.15942E-03
  19  Prefactor     10.925        13.363       -.62396E-06   -.60501E-04
  20  Prefactor     .32287        .14082       -.29858E-08    .71605E-03
  21  Prefactor     .10007E-03    12.829        .74548E-05** at limit **
  22  Prefactor     .10000E-03    8.0419        .10589E-06** at limit **
  23  Prefactor     .10000E-03    5.6756        .96705E-08** at limit **
  24  Normalizat    .87284        .19788        .19428E-06    .34566E-03
  25  Prefactor     .91782        .98065E-01    .66290E-06    .94338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 1.21362
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100029
  Prefactor  = 80.1306
  Prefactor  = 7.36367
  Prefactor  = 0.182113
  Prefactor  = 15.8381
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.80776
  Prefactor  = 24.565
  Prefactor  = 18.0752
  Prefactor  = 10.9252
  Prefactor  = 0.322866
  Prefactor  = 0.000100067
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.872837
  Prefactor  = 0.917819
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.952     FROM HESSE     STATUS=OK           431 CALLS     3462 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.2136        1.6490        .12662E-03   -1.5488    
   3  Prefactor     .10000E-03    30.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .53433        .12042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.1329        .10504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.9171        .11644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    64.717        .49247E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     80.131        80.337        .22449E-03   -1.3915    
  11  Prefactor     7.3637        8.4028        .73899E-03   -1.5165    
  12  Prefactor     .18211        .14306        .27430E-04   -1.5623    
  13  Prefactor     15.838        9.8075        .10064E-03   -1.4912    
  14  norm          .10000E-03    .43030        .91649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.4625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8078        1.4941        .90452E-04   -1.5439    
  17  Prefactor     24.565        22.019        .80813E-04   -1.4716    
  18  Prefactor     18.075        13.175        .47104E-03   -1.4857    
  19  Prefactor     10.925        13.377        .60609E-03   -1.5047    
  20  Prefactor     .32287        .13927        .20013E-04   -1.5594    
  21  Prefactor     .10007E-03    50.675        .37130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    8.1383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.6815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .87284        .23154        .32677E-03   -.97421    
  25  Prefactor     .91782        .11733        .16659E-03   -.95521    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36579e-09
Minuit parameter uncertainties:
  1  0.000561399
  2  1.64909
  3  0.000203927
  4  4.44749e-06
  5  5.36189e-05
  6  2.58161e-05
  7  3.54371e-05
  8  1.5779e-05
  9  0.00276127
  10  80.4466
  11  8.40417
  12  0.143056
  13  9.80851
  14  4.27173e-05
  15  3.79006e-06
  16  1.49416
  17  22.0264
  18  13.1775
  19  13.3807
  20  0.139274
  21  0.0036939
  22  1.6676e-06
  23  3.66063e-06
  24  0.231802
  25  0.117362
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  7.364e+00  8.404e+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

GAL_V02
   Spectrum: PowerLaw
512    Prefactor:  9.178e-01  1.174e-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:  8.728e-01  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 3.02e-08 +/- 3.44e-08
Energy Flux (Fixed Index): 6.71e-06 +/- 7.65e-06

TS (Fixed Index): 1.32
Ra Dec: 336.414 21.342
Photon Flux Upper Limit: 1.14e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293641/likelihoodResults_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.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) = 7467.84159156
delta logL = 0.11052339872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7467.83454825
delta logL = 0.11756671791

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2631       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3018       1.0000          .0000       10.000    
     3 'Normalizat'    .88730       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91257       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=   7467.835     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      247 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2605        9.5533        .13947E-03    .13605E-03
   2  Index         2.3010        .94359        .14889E-01    .31252E-04
   3  Normalizat    .88751        .22317        .32428E-03    .54003E-03
   4  Prefactor     .91245        .11621        .16701E-03    .62996E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.26054
  Index      = 2.30098
  Normalizat = 0.887511
  Prefactor  = 0.912446
 **********
 **   18 **HESSE 
 **********

 FCN=   7467.835     FROM HESSE     STATUS=OK            25 CALLS      272 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2605        9.6190        .55787E-05   -1.5133    
   2  Index         2.3010        .95023        .59557E-03   -.57020    
   3  Normalizat    .88751        .22337        .64856E-04   -.96900    
   4  Prefactor     .91245        .11629        .33401E-04   -.95708    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.86676e-10
Minuit parameter uncertainties:
  1  9.62084
  2  0.958493
  3  0.223601
  4  0.116321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293641': 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) = 7467.83454734
delta logL = 0.117567623788

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  8.261e+00  9.621e+00  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  2.301e+00  9.585e-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:  9.124e-01  1.163e-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:  8.875e-01  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 336.414 21.342
Photon Index (Free Index): 2.30 +/- 0.96
Photon Flux (Free Index): 2.16e-08 +/- 3.18e-08
Energy Flux (Free Index): 8.15e-06 +/- 1.05e-05

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/293641/cmap_HighResolution_609984001_610243201_4FGL_J2225.6+2120_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', comment='SUCCESS', photon_flux='3.02e-08', energy_flux2='8.15e-06', photon_flux_error='3.44e-08', dlogl='1.18e-01', energy_flux='6.71e-06', photon_flux2='2.16e-08', job_status='DONE', time_completed='2021-09-28 11:17:00.284656', photon_index_error2='0.96', photon_index2='2.30', ts='1.32', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='1.05e-05', EG='0.87', time_epoch_completed='1632853020.28', return_code='0', job_id='293641', GAL2='0.91', EG2='0.89', return_code2='0', energy_flux_error='7.65e-06', photon_flux_error2='3.18e-08', ts2='1.54', photon_index='2.81' WHERE bin_id='1430' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0242>
Subject: Job 293641: <4FGL_J2225.6+2120_daily_bin1430> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin1430 336.414 21.3418 609984001 610243201 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 :                                   770.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             250.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

