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


Performing analysis on: 4FGL_J2225.6+2120_daily_bin639
RA = 336.414, Dec = 21.3418
tmin = 404956801, tmax = 405216001
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='287546', job_status='RUN', time_executed='2021-09-28 10:45:44.016256', time_epoch_executed='1632851144.02' WHERE source_name='4FGL J2225.6+2120' and cadence='daily' and bin_id='639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287546/ft1_4FGL_J2225.6+2120_daily_bin639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287546/ft2_4FGL_J2225.6+2120_daily_bin639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287546/ft1_4FGL_J2225.6+2120_daily_bin639.fits outfile=/scratch/kocevski/287546/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin639.fits ra=336.414 dec=21.3418 rad=12.0 tmin=404956801.0 tmax=405216001.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.44
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/287546/ft2_4FGL_J2225.6+2120_daily_bin639.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/287546/ft1_filteredMKT_4FGL_J2225.6+2120_daily_bin639.fits evtable="EVENTS" outfile="/scratch/kocevski/287546/ft1_filtered_4FGL_J2225.6+2120_daily_bin639.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/287546/ft1_filtered_4FGL_J2225.6+2120_daily_bin639.fits" evtable="EVENTS" scfile=/scratch/kocevski/287546/ft2_4FGL_J2225.6+2120_daily_bin639.fits sctable="SC_DATA" outfile=/scratch/kocevski/287546/ltcube_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.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/287546/ft2_4FGL_J2225.6+2120_daily_bin639.fits
.....................!
real 12.01
user 11.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287546/ft1_filtered_4FGL_J2225.6+2120_daily_bin639.fits evtable="EVENTS" scfile=/scratch/kocevski/287546/ft2_4FGL_J2225.6+2120_daily_bin639.fits sctable="SC_DATA" expcube=/scratch/kocevski/287546/ltcube_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.fits outfile=/scratch/kocevski/287546/expmap_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.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/287546/ltcube_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.fits
.....................!
real 190.14
user 185.43
sys 4.38

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/287546/ft1_filtered_4FGL_J2225.6+2120_daily_bin639.fits scfile=/scratch/kocevski/287546/ft2_4FGL_J2225.6+2120_daily_bin639.fits outfile=/scratch/kocevski/287546/cmap_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.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/287546/ft1_filtered_4FGL_J2225.6+2120_daily_bin639.fits scfile=/scratch/kocevski/287546/ft2_4FGL_J2225.6+2120_daily_bin639.fits outfile=/scratch/kocevski/287546/cmap_HighResolution_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.5414       1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.041       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .28030       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1897       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.379       1.0000         .10000E-03   10000.    
    10 'Prefactor '    117.17       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6281       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .83259       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.1753       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 '    7.3619       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0039       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0737       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0187       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=   9486.850     FROM MIGRAD    STATUS=CONVERGED    576 CALLS     3010 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.014       -.22790E-06** at limit **
   2  norm          6.5421        3.1852        .10840E-05   -.20798E-02
   3  Prefactor     36.030        34.812       -.36164E-05   -.39930E-03
   4  norm          .10000E-03    .37859        .24843E-07** at limit **
   5  Prefactor     .10000E-03    16.987       -.17810E-05** at limit **
   6  norm          .28095        .65078        .16934E-06   -.59195E-03
   7  Prefactor     .10000E-03    6.6572        .14792E-07** at limit **
   8  norm          3.1901        3.8414        .12374E-06   -.12310E-03
   9  Prefactor     15.380        17.531        .55790E-08   -.14393E-04
  10  Prefactor     117.15        93.754       -.24518E-05   -.19654E-03
  11  Prefactor     18.094        14.065        .23850E-07    .72872E-06
  12  Prefactor     1.6281        .31849       -.63805E-09    .36220E-04
  13  Prefactor     .10000E-03    4.6346        .40912E-07** at limit **
  14  norm          .83320        1.1785        .23463E-06   -.67983E-04
  15  Prefactor     9.1681        18.847       -.75323E-06   -.11316E-03
  16  norm          .10000E-03    .42202       -.38850E-08** at limit **
  17  Prefactor     .10000E-03    15.161        .77083E-06** at limit **
  18  Prefactor     7.3610        12.081        .82447E-07   -.29441E-04
  19  Prefactor     .10000E-03    7.9771        .28820E-09** at limit **
  20  Prefactor     2.0039        .25981       -.89659E-09    .20169E-03
  21  Prefactor     .10000E-03    15.166        .40627E-06** at limit **
  22  Prefactor     .10000E-03    19.392       -.11265E-06** at limit **
  23  Prefactor     .10000E-03    20.868        .14105E-05** at limit **
  24  Normalizat    1.0738        .24599        .38498E-06   -.71532E-04
  25  Prefactor     1.0186        .11346       -.27771E-06   -.36755E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.54209
  Prefactor  = 36.0299
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.280951
  Prefactor  = 0.0001
  norm       = 3.19011
  Prefactor  = 15.38
  Prefactor  = 117.149
  Prefactor  = 18.0939
  Prefactor  = 1.6281
  Prefactor  = 0.0001
  norm       = 0.833204
  Prefactor  = 9.16808
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.361
  Prefactor  = 0.0001
  Prefactor  = 2.00386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.07381
  Prefactor  = 1.01863
 **********
 **   18 **HESSE 
 **********

 FCN=   9486.850     FROM HESSE     STATUS=OK           429 CALLS     3439 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    50.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.5421        3.2853        .56500E-03   -1.5196    
   3  Prefactor     36.030        35.233        .66756E-04   -1.4507    
   4  norm          .10000E-03    .39189        .11698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .28095        .68151        .11347E-02   -1.5602    
   7  Prefactor     .10000E-03    6.6736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1901        3.8333        .20295E-03   -1.5351    
   9  Prefactor     15.380        17.602        .10213E-03   -1.4923    
  10  Prefactor     117.15        96.568        .37173E-04   -1.3539    
  11  Prefactor     18.094        14.165        .94148E-04   -1.4857    
  12  Prefactor     1.6281        .31983        .22393E-04   -1.5453    
  13  Prefactor     .10000E-03    4.6453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .83320        1.0694        .11236E-02   -1.5525    
  15  Prefactor     9.1681        18.611        .13231E-03   -1.5102    
  16  norm          .10000E-03    .42247        .61767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    15.277        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.3610        12.108        .14782E-03   -1.5165    
  19  Prefactor     .10000E-03    7.9853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.0039        .26034        .17008E-04   -1.5425    
  21  Prefactor     .10000E-03    15.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0738        .28704        .39365E-03   -.90597    
  25  Prefactor     1.0186        .13346        .20152E-03   -.92111    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44534e-08
Minuit parameter uncertainties:
  1  5.9927e-05
  2  3.28537
  3  35.2529
  4  7.39997e-08
  5  0.000480535
  6  0.68153
  7  1.05607e-05
  8  3.83356
  9  17.6079
  10  96.698
  11  14.1677
  12  0.319827
  13  4.27631e-06
  14  1.06938
  15  18.6228
  16  3.53306e-07
  17  0.000191525
  18  12.1119
  19  3.14926e-06
  20  0.260343
  21  4.40652e-05
  22  6.47411e-05
  23  0.000377686
  24  0.28746
  25  0.133506
Done.

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

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.809e+01  1.417e+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.019e+00  1.335e-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.074e+00  2.875e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.30
Ra Dec: 336.414 21.342
Photon Index (Fixed Index): 2.81 +/- 0.00
Photon Flux (Fixed Index): 7.42e-08 +/- 5.80e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.29e-05

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

Saving results to:
/scratch/kocevski/287546/likelihoodResults_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.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) = 9486.52864738
delta logL = 0.321224949992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9486.51734555
delta logL = 0.332526773851

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.648       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5642       1.0000          .0000       10.000    
     3 'Normalizat'    1.0355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0333       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=   9486.517     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.649        18.196        .12279E-03    .22314E-03
   2  Index         3.5643        1.3901        .85935E-02    .84703E-04
   3  Normalizat    1.0355        .27448        .40002E-03    .23674E-03
   4  Prefactor     1.0334        .13461        .20028E-03    .37288E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6489
  Index      = 3.56425
  Normalizat = 1.03549
  Prefactor  = 1.03335
 **********
 **   18 **HESSE 
 **********

 FCN=   9486.517     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.649        14.193        .49114E-05   -1.5055    
   2  Index         3.5643        1.0886        .34374E-03   -.29125    
   3  Normalizat    1.0355        .27481        .16001E-04   -.91851    
   4  Prefactor     1.0334        .13459        .40055E-04   -.91626    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42605e-10
Minuit parameter uncertainties:
  1  14.1974
  2  1.09817
  3  0.275186
  4  0.134635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287546': 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) = 9486.51734553
delta logL = 0.332526796627

Extracting fit parameters...

4FGL J2225.6+2120
   Spectrum: PowerLaw
273    Prefactor:  1.065e+01  1.420e+01  1.000e-04  1.000e+04 ( 1.000e-12)
274        Index:  3.564e+00  1.098e+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.033e+00  1.346e-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.035e+00  2.752e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.06
Ra Dec: 336.414 21.342
Photon Index (Free Index): 3.56 +/- 1.10
Photon Flux (Free Index): 9.79e-08 +/- 6.89e-08
Energy Flux (Free Index): 1.60e-05 +/- 1.14e-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/287546/cmap_HighResolution_404956801_405216001_4FGL_J2225.6+2120_daily_bin639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.48e-02', comment='SUCCESS', photon_flux='7.42e-08', energy_flux2='1.60e-05', photon_flux_error='5.80e-08', dlogl='3.33e-01', energy_flux='1.65e-05', photon_flux2='9.79e-08', job_status='DONE', time_completed='2021-09-28 11:00:44.759192', photon_index_error2='1.10', photon_index2='3.56', ts='2.30', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.14e-05', EG='1.07', time_epoch_completed='1632852044.76', return_code='0', job_id='287546', GAL2='1.03', EG2='1.04', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='6.89e-08', ts2='3.06', photon_index='2.81' WHERE bin_id='639' AND source_name='4FGL J2225.6+2120' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 11:00:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 287546: <4FGL_J2225.6+2120_daily_bin639> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2225.6+2120_daily_bin639 336.414 21.3418 404956801 405216001 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 :                                   900.14 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             362.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

