/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 218 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 = 7487
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.5-5225_daily_bin319
RA = 335.391, Dec = -52.4307
tmin = 322012801, tmax = 322272001
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='264395', job_status='RUN', time_executed='2021-09-28 09:29:17.349817', time_epoch_executed='1632846557.35' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264395

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264395/ft1_4FGL_J2221.5-5225_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264395/ft1_4FGL_J2221.5-5225_daily_bin319.fits outfile=/scratch/kocevski/264395/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin319.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=322012801.0 tmax=322272001.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.41
user 3.16
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.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/264395/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin319.fits evtable="EVENTS" outfile="/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/264395/ltcube_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.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/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits
.....................!
real 12.27
user 11.75
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/264395/ltcube_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.fits outfile=/scratch/kocevski/264395/expmap_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.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/264395/ltcube_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.fits
.....................!
real 192.40
user 186.53
sys 5.33

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J2221.5-5225 @ 335.391 -52.4307

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits scfile=/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits outfile=/scratch/kocevski/264395/cmap_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.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=335.391 yref=-52.4307 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits scfile=/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits outfile=/scratch/kocevski/264395/cmap_HighResolution_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.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=335.391 yref=-52.4307 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264395/Model_4FGL_J2221.5-5225_daily_bin319.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/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits.....................!
real 49.51
user 48.08
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits', '/scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits', expMap='/scratch/kocevski/264395/expmap_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.fits', expCube='/scratch/kocevski/264395/ltcube_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264395/Model_4FGL_J2221.5-5225_daily_bin319.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.5-5225'

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.615e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/264395/ft1_filtered_4FGL_J2221.5-5225_daily_bin319.fits
Spacecraft file(s): /scratch/kocevski/264395/ft2_4FGL_J2221.5-5225_daily_bin319.fits
Exposure map: /scratch/kocevski/264395/expmap_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.fits
Exposure cube: /scratch/kocevski/264395/ltcube_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264395/Model_4FGL_J2221.5-5225_daily_bin319.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) = 6651.51576635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9936       1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.268       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.602       1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.978       1.0000         .10000E-03   10000.    
     5 'Prefactor '    48.350       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .59164E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6192       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.3590       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .90701E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.3543       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7712       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3296       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.081       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.1339       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.4955       1.0000         .10000E-03   10000.    
    23 'norm      '    9.2607       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88591       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0917       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6651.509     FROM MIGRAD    STATUS=CONVERGED    588 CALLS     2905 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9717        54.020        .25265E-05   -.25981E-04
   2  Prefactor     33.269        12.304        .62723E-07   -.94514E-04
   3  Prefactor     26.606        22.075       -.11572E-06   -.41869E-04
   4  Prefactor     17.981        6.3863        .98266E-08   -.51841E-03
   5  Prefactor     48.398        42.649       -.42012E-05   -.22592E-03
   6  Prefactor     .10001E-03    7.6324        .31226E-05** at limit **
   7  Prefactor     4.6207        4.2135       -.25713E-07   -.40834E-03
   8  Prefactor     .10000E-03    48.856        .10595E-05** at limit **
   9  norm          4.3594        4.7479       -.17777E-06   -.28944E-05
  10  Prefactor     .10001E-03    1.6983       -.25651E-06** at limit **
  11  Prefactor     7.3424        64.083        .22890E-05   -.78055E-05
  12  Prefactor     4.7692        5.5399        .11006E-05   -.13510E-04
  13  Prefactor     .10000E-03    12.522        .92671E-08** at limit **
  14  Prefactor     7.3234        12.447        .15922E-06   -.59569E-04
  15  Prefactor     .10000E-03    63.467       -.15425E-05** at limit **
  16  Prefactor     12.080        8.4497        .16882E-08    .15735E-05
  17  Prefactor     .10000E-03    20.228       -.86288E-07** at limit **
  18  Prefactor     1.0810        15.840        .84475E-06   -.11807E-03
  19  norm          .10000E-03    5.7636        .13378E-07** at limit **
  20  norm          .10000E-03    2.3355        .20806E-07** at limit **
  21  Prefactor     .10000E-03    3.8233        .48191E-06** at limit **
  22  Prefactor     2.4992        41.452        .47373E-05   -.56777E-05
  23  norm          9.2597        2.2001       -.51106E-07   -.40512E-03
  24  Normalizat    .88626        .20077       -.18247E-05   -.35016E-03
  25  Prefactor     1.0914        .16080        .93734E-06   -.41919E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.97172
  Prefactor  = 33.2686
  Prefactor  = 26.606
  Prefactor  = 17.9808
  Prefactor  = 48.3983
  Prefactor  = 0.000100012
  Prefactor  = 4.62073
  Prefactor  = 0.0001
  norm       = 4.35941
  Prefactor  = 0.000100007
  Prefactor  = 7.34236
  Prefactor  = 4.76919
  Prefactor  = 0.0001
  Prefactor  = 7.32342
  Prefactor  = 0.0001
  Prefactor  = 12.0796
  Prefactor  = 0.0001
  Prefactor  = 1.08102
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.49922
  norm       = 9.2597
  Normalizat = 0.886259
  Prefactor  = 1.09143
 **********
 **   18 **HESSE 
 **********

 FCN=   6651.509     FROM HESSE     STATUS=OK           431 CALLS     3336 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9717        54.045        .16401E-03   -1.5219    
   2  Prefactor     33.269        12.303        .69473E-04   -1.4554    
   3  Prefactor     26.606        22.072        .77671E-04   -1.4676    
   4  Prefactor     17.981        6.3717        .94459E-04   -1.4860    
   5  Prefactor     48.398        43.883        .57669E-04   -1.4315    
   6  Prefactor     .10001E-03    18.952        .37852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6207        4.1989        .15131E-03   -1.5278    
   8  Prefactor     .10000E-03    48.806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.3594        4.7489        .18082E-03   -1.5290    
  10  Prefactor     .10001E-03    19.194        .20168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.3424        63.331        .14790E-03   -1.5166    
  12  Prefactor     4.7692        5.5366        .92098E-03   -1.5271    
  13  Prefactor     .10000E-03    12.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3234        12.455        .14815E-03   -1.5167    
  15  Prefactor     .10000E-03    63.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     12.080        8.4466        .11525E-03   -1.5013    
  17  Prefactor     .10000E-03    20.256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.0810        84.036        .56438E-02   -1.5500    
  19  norm          .10000E-03    5.7728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.3363        .12171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.8559        .15563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.4992        42.033        .12936E-02   -1.5392    
  23  norm          9.2597        2.1948        .51742E-04   -1.5099    
  24  Normalizat    .88626        .22751        .29380E-03   -.96945    
  25  Prefactor     1.0914        .18477        .22759E-03   -.89741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56709e-09
Minuit parameter uncertainties:
  1  35.973
  2  12.3037
  3  22.0786
  4  6.37198
  5  43.9118
  6  0.000969984
  7  4.19916
  8  0.000147212
  9  4.74927
  10  0.000750005
  11  43.189
  12  5.53722
  13  4.14665e-06
  14  12.4592
  15  0.00020093
  16  8.44741
  17  3.30003e-06
  18  19.0894
  19  2.59017e-07
  20  4.49806e-07
  21  4.05352e-06
  22  20.5152
  23  2.19486
  24  0.227756
  25  0.184876
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  4.359e+00  4.749e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.609e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.091e+00  1.849e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.863e-01  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.94
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 7.27e-09 +/- 7.92e-09
Energy Flux (Fixed Index): 1.47e-05 +/- 1.60e-05

TS (Fixed Index): 2.94
Ra Dec: 335.391 -52.431
Photon Flux Upper Limit: 3.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.11e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/264395/likelihoodResults_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.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) = 6651.46001983
delta logL = 0.0491464626957

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6651.45995711
delta logL = 0.049209183544

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3868       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3456       1.0000          .0000       5.0000    
     3 'Normalizat'    .88754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0914       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5900E+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=   6651.460     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3868        4.7790        .90763E-03    .12995E-03
   2  alpha         1.3456        .78120        .12317       -.45820E-05
   3  Normalizat    .88756        .21066        .29361E-03    .61179E-04
   4  Prefactor     1.0914        .18036        .22759E-03    .25326E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.38682
  alpha      = 1.34556
  Normalizat = 0.887561
  Prefactor  = 1.09136
 **********
 **   18 **HESSE 
 **********

 FCN=   6651.460     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3868        4.8322        .36305E-04   -1.5289    
   2  alpha         1.3456        .79625        .28640E-02   -.48000    
   3  Normalizat    .88756        .21083        .11744E-04   -.96899    
   4  Prefactor     1.0914        .18052        .91037E-05   -.89743    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.00686e-11
Minuit parameter uncertainties:
  1  4.8326
  2  0.814436
  3  0.211021
  4  0.180625
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264395': 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) = 6651.45995711
delta logL = 0.0492091901551

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  4.387e+00  4.833e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.346e+00  8.144e-01  0.000e+00  5.000e+00 ( 1.000e+00)
347         beta:  1.036e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
348           Eb:  2.313e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
587    Prefactor:  1.091e+00  1.806e-01  0.000e+00  1.000e+01 ( 1.000e+00)
588        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
589        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
586   Normalization:  8.876e-01  2.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.03
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.35 +/- 0.81
Photon Flux (Free Index): 5.53e-09 +/- 7.48e-09
Energy Flux (Free Index): 2.20e-05 +/- 3.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/264395/cmap_HighResolution_322012801_322272001_4FGL_J2221.5-5225_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.11e-05', comment='SUCCESS', photon_flux='7.27e-09', energy_flux2='2.20e-05', photon_flux_error='7.92e-09', dlogl='4.92e-02', energy_flux='1.47e-05', photon_flux2='5.53e-09', job_status='DONE', time_completed='2021-09-28 09:41:40.709798', photon_index_error2='0.81', photon_index2='1.35', ts='2.94', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='3.51e-08', energy_flux_error2='3.73e-05', EG='0.89', time_epoch_completed='1632847300.71', return_code='0', job_id='264395', GAL2='1.09', EG2='0.89', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='7.48e-09', ts2='3.03', photon_index='1.61' WHERE bin_id='319' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:41:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0049>
Subject: Job 264395: <4FGL_J2221.5-5225_daily_bin319> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin319> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:25:27 2021
Job was executed on host(s) <bullet0049>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:25: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 09:25:29 2021
Terminated at Tue Sep 28 09:41:41 2021
Results reported at Tue Sep 28 09:41:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin319 335.391 -52.4307 322012801 322272001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.5-5225 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   741.47 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             265.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            974 sec.

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

