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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin241
RA = 335.391, Dec = -52.4307
tmin = 301795201, tmax = 302054401
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='264281', job_status='RUN', time_executed='2021-09-28 09:27:24.682747', time_epoch_executed='1632846444.68' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264281/ft1_4FGL_J2221.5-5225_daily_bin241.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264281/ft1_4FGL_J2221.5-5225_daily_bin241.fits outfile=/scratch/kocevski/264281/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin241.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=301795201.0 tmax=302054401.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 4.04
user 3.82
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.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/264281/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin241.fits evtable="EVENTS" outfile="/scratch/kocevski/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits" evtable="EVENTS" scfile=/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits sctable="SC_DATA" outfile=/scratch/kocevski/264281/ltcube_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.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/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits
.....................!
real 11.85
user 11.48
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits sctable="SC_DATA" expcube=/scratch/kocevski/264281/ltcube_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.fits outfile=/scratch/kocevski/264281/expmap_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.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/264281/ltcube_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.fits
.....................!
real 190.79
user 185.06
sys 5.42

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/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits scfile=/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits outfile=/scratch/kocevski/264281/cmap_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits scfile=/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits outfile=/scratch/kocevski/264281/cmap_HighResolution_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits evtable="EVENTS" scfile=/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264281/Model_4FGL_J2221.5-5225_daily_bin241.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/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits.....................!
real 47.31
user 45.97
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits', '/scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits', expMap='/scratch/kocevski/264281/expmap_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.fits', expCube='/scratch/kocevski/264281/ltcube_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/264281/Model_4FGL_J2221.5-5225_daily_bin241.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/264281/ft1_filtered_4FGL_J2221.5-5225_daily_bin241.fits
Spacecraft file(s): /scratch/kocevski/264281/ft2_4FGL_J2221.5-5225_daily_bin241.fits
Exposure map: /scratch/kocevski/264281/expmap_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.fits
Exposure cube: /scratch/kocevski/264281/ltcube_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/264281/Model_4FGL_J2221.5-5225_daily_bin241.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) = 5915.19853071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.1643       1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.372       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7693       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44607       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36728       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1332       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.2213       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11452E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9712       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2159       1.0000         .10000E-03   10000.    
    17 'Prefactor '    36.554       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.015       1.0000         .10000E-03   10000.    
    19 'norm      '    8.9174       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.2907       1.0000         .10000E-03   10000.    
    23 'norm      '    10.416       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3576       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .61593       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5915.195     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2907 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.372         .0000    ** at limit **
   2  Prefactor     8.1643        6.8048         .0000       -.53069E-03
   3  Prefactor     33.373        25.663         .0000       -.61277E-04
   4  Prefactor     5.3372        4.2111         .0000        .69519E-02
   5  Prefactor     3.7651        46.444         .0000        .29581E-03
   6  Prefactor     .44563        5.2280         .0000        .83175E-03
   7  Prefactor     .37252        2.1540         .0000        .38208E-03
   8  Prefactor     .10000E-03    67.947         .0000    ** at limit **
   9  norm          .10000E-03    2.0615         .0000    ** at limit **
  10  Prefactor     .10000E-03    .98770         .0000    ** at limit **
  11  Prefactor     5.1347        36.926         .0000       -.13544E-03
  12  Prefactor     5.2228        5.8081         .0000        .15218E-02
  13  Prefactor     .10000E-03    28.660         .0000    ** at limit **
  14  Prefactor     3.9658        9.8408         .0000       -.33191E-03
  15  Prefactor     .10000E-03    44.994         .0000    ** at limit **
  16  Prefactor     2.2161        7.0057         .0000        .10141E-01
  17  Prefactor     36.555        39.145         .0000       -.66365E-03
  18  Prefactor     14.019        18.734         .0000        .27700E-04
  19  norm          8.9178        9.0002         .0000        .64569E-04
  20  norm          .10000E-03    2.6072         .0000    ** at limit **
  21  Prefactor     .10000E-03    4.3479         .0000    ** at limit **
  22  Prefactor     2.2984        39.687         .0000        .18061E-02
  23  norm          10.417        2.4452         .0000       -.96221E-04
  24  Normalizat    1.3574        .19023         .0000       -.60482E-04
  25  Prefactor     .61611        .14393         .0000       -.22339E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.1643
  Prefactor  = 33.3725
  Prefactor  = 5.33725
  Prefactor  = 3.76512
  Prefactor  = 0.445625
  Prefactor  = 0.372524
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.13472
  Prefactor  = 5.22276
  Prefactor  = 0.0001
  Prefactor  = 3.96581
  Prefactor  = 0.0001
  Prefactor  = 2.21608
  Prefactor  = 36.5552
  Prefactor  = 14.0194
  norm       = 8.91779
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29839
  norm       = 10.4169
  Normalizat = 1.35738
  Prefactor  = 0.616106
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.195     FROM HESSE     STATUS=OK           435 CALLS     3342 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.1643        6.8027        .14031E-03   -1.5136    
   3  Prefactor     33.373        25.658        .69365E-04   -1.4552    
   4  Prefactor     5.3372        4.2047        .66627E-03   -1.5246    
   5  Prefactor     3.7651        45.612        .20794E-03   -1.5320    
   6  Prefactor     .44563        12.960        .32797E-02   -1.5574    
   7  Prefactor     .37252        11.069        .20938E-02   -1.5586    
   8  Prefactor     .10000E-03    68.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.0628        .10784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .99129        .74631E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.1347        36.907        .17745E-03   -1.5255    
  12  Prefactor     5.2228        5.8361        .17592E-03   -1.5251    
  13  Prefactor     .10000E-03    28.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9658        9.8378        .20240E-03   -1.5310    
  15  Prefactor     .10000E-03    45.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2161        6.9913        .13814E-02   -1.5410    
  17  Prefactor     36.555        39.157        .66287E-04   -1.4498    
  18  Prefactor     14.019        18.763        .10699E-03   -1.4959    
  19  norm          8.9178        9.0024        .13422E-03   -1.5111    
  20  norm          .10000E-03    2.6098        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.3589        .15593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.2984        39.363        .13561E-02   -1.5405    
  23  norm          10.417        2.4454        .53806E-04   -1.5062    
  24  Normalizat    1.3574        .22358        .22653E-03   -.81870    
  25  Prefactor     .61611        .16755        .25572E-03   -1.0691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80679e-08
Minuit parameter uncertainties:
  1  5.7835e-06
  2  6.80336
  3  25.6665
  4  4.20495
  5  26.2341
  6  4.8069
  7  4.06153
  8  8.97567e-06
  9  1.8244e-06
  10  1.06732e-06
  11  27.5562
  12  5.83669
  13  0.000118922
  14  9.84176
  15  0.000164703
  16  6.99392
  17  39.1848
  18  18.7711
  19  9.00374
  20  8.05468e-07
  21  4.48279e-07
  22  19.0376
  23  2.44538
  24  0.223741
  25  0.167686
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.824e-06  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:  6.161e-01  1.677e-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:  1.357e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/264281/likelihoodResults_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.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) = 5915.19683357
delta logL = -0.0018522191931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5915.19498135
delta logL = 7.88804754848e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6039       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61610       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=   5915.195     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      230 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    13.409        .10798E-02** at limit **
   2  alpha         1.4297        2.6444        .18050        .43334E-07
   3  Normalizat    1.3574        .20660        .22653E-03    .12346E-04
   4  Prefactor     .61611        .16427        .25572E-03    .12048E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.42975
  Normalizat = 1.35738
  Prefactor  = 0.616106
 **********
 **   18 **HESSE 
 **********

 FCN=   5915.195     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1084        .21596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4297        3.0632        .72199E-02   -.44239    
   3  Normalizat    1.3574        .20679        .90613E-05   -.81870    
   4  Prefactor     .61611        .16442        .10229E-04   -1.0691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00597e-11
Minuit parameter uncertainties:
  1  1.22947e-05
  2  171.774
  3  0.206919
  4  0.164548
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264281': 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) = 5915.19498083
delta logL = 5.23285962117e-07

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  1.229e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.430e+00  1.718e+02  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:  6.161e-01  1.645e-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:  1.357e+00  2.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.391 -52.431

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/264281/cmap_HighResolution_301795201_302054401_4FGL_J2221.5-5225_daily_bin241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-05', job_status='DONE', photon_flux_upper_limit='1.97e-08', time_completed='2021-09-28 09:39:01.945115', job_id='264281', GAL2='0.62', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1632847141.95', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.62', dlogl='5.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='241' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:39:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 264281: <4FGL_J2221.5-5225_daily_bin241> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin241 335.391 -52.4307 301795201 302054401 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 :                                   697.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             314.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            824 sec.

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

