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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin820
RA = 335.391, Dec = -52.4307
tmin = 451872001, tmax = 452131201
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='265876', job_status='RUN', time_executed='2021-09-28 09:31:10.130506', time_epoch_executed='1632846670.13' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/265876

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/265876/ft1_4FGL_J2221.5-5225_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/265876/ft1_4FGL_J2221.5-5225_daily_bin820.fits outfile=/scratch/kocevski/265876/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin820.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=451872001.0 tmax=452131201.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.43
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.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/265876/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin820.fits evtable="EVENTS" outfile="/scratch/kocevski/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.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/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/265876/ltcube_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.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/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits
.....................!
real 11.80
user 11.46
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/265876/ltcube_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.fits outfile=/scratch/kocevski/265876/expmap_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.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/265876/ltcube_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.fits
.....................!
real 191.44
user 185.57
sys 5.53

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/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.fits scfile=/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits outfile=/scratch/kocevski/265876/cmap_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.fits scfile=/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits outfile=/scratch/kocevski/265876/cmap_HighResolution_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/265876/ft2_4FGL_J2221.5-5225_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/265876/Model_4FGL_J2221.5-5225_daily_bin820.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/265876/ft1_filtered_4FGL_J2221.5-5225_daily_bin820.fits.....................!
real 53.11
user 51.82
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10763E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.638       1.0000         .10000E-03   10000.    
     5 'Prefactor '    16.367       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2971       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7045       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12632E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1266       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3563       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    32.783       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10673E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.2483       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0509       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .91309       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=   7124.594     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2915 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.897       -.83845E-07** at limit **
   2  Prefactor     .10035E-03    4.1024        .95494E-06** at limit **
   3  Prefactor     .10000E-03    5.7192       -.88481E-07** at limit **
   4  Prefactor     11.638        4.3848        .57766E-07    .11881E-03
   5  Prefactor     16.374        35.637        .25762E-05    .62961E-04
   6  Prefactor     2.2926        7.6541       -.57179E-06    .66444E-05
   7  Prefactor     2.7049        2.0273        .10968E-06    .13941E-03
   8  Prefactor     .10000E-03    57.564        .11769E-05** at limit **
   9  norm          .10000E-03    4.5897        .45868E-07** at limit **
  10  Prefactor     .10000E-03    1.6482        .16686E-06** at limit **
  11  Prefactor     .10000E-03    18.099       -.12813E-06** at limit **
  12  Prefactor     2.1312        5.1379        .16040E-05    .29814E-03
  13  Prefactor     3.3092        26.978       -.13843E-05   -.19192E-04
  14  Prefactor     .10000E-03    2.5923        .89446E-06** at limit **
  15  Prefactor     .10000E-03    48.164        .92204E-06** at limit **
  16  Prefactor     .10000E-03    3.4811       -.18580E-06** at limit **
  17  Prefactor     32.760        38.683       -.39919E-07    .21052E-04
  18  Prefactor     .10000E-03    18.093        .51944E-06** at limit **
  19  norm          .10000E-03    3.4833       -.31371E-07** at limit **
  20  norm          .10000E-03    1.8127        .59812E-08** at limit **
  21  Prefactor     .10000E-03    3.2223       -.12417E-06** at limit **
  22  Prefactor     .10000E-03    12.176       -.23780E-06** at limit **
  23  norm          1.2480        .87598       -.26787E-07   -.55354E-04
  24  Normalizat    1.0511        .18217       -.22828E-05    .18494E-03
  25  Prefactor     .91298        .15038        .25309E-05    .29865E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100354
  Prefactor  = 0.0001
  Prefactor  = 11.6381
  Prefactor  = 16.3745
  Prefactor  = 2.29264
  Prefactor  = 2.70486
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 2.13116
  Prefactor  = 3.30924
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 32.7599
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.24805
  Normalizat = 1.05108
  Prefactor  = 0.912983
 **********
 **   18 **HESSE 
 **********

 FCN=   7124.594     FROM HESSE     STATUS=OK           427 CALLS     3342 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10035E-03    59.711        .28140E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.7309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.638        4.3805        .51898E-03   -1.5026    
   5  Prefactor     16.374        35.846        .99001E-04   -1.4898    
   6  Prefactor     2.2926        7.7203        .13540E-02   -1.5405    
   7  Prefactor     2.7049        2.0289        .10089E-03   -1.5379    
   8  Prefactor     .10000E-03    57.627        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6627        .17657E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.8354        .20395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.1312        5.1879        .13517E-02   -1.5416    
  13  Prefactor     3.3092        27.385        .22090E-03   -1.5344    
  14  Prefactor     .10000E-03    2.6224        .13332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    48.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5122        .15383E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     32.760        38.637        .69985E-04   -1.4563    
  18  Prefactor     .10000E-03    18.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4861        .15386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.8141        .11097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.2705        .14790E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    12.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.2480        .86289        .64053E-04   -1.5485    
  24  Normalizat    1.0511        .19641        .23872E-03   -.91338    
  25  Prefactor     .91298        .15981        .21636E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.91562e-09
Minuit parameter uncertainties:
  1  3.48438e-06
  2  0.0091982
  3  4.23005e-06
  4  4.38059
  5  35.8927
  6  7.72362
  7  2.0289
  8  0.000349155
  9  5.18224e-06
  10  0.000101598
  11  4.21463e-06
  12  5.18894
  13  19.0507
  14  2.57886e-05
  15  3.00215e-05
  16  7.58821e-06
  17  38.6666
  18  3.25902e-05
  19  1.97894e-06
  20  4.47358e-08
  21  2.35871e-06
  22  1.67272e-05
  23  0.862902
  24  0.196549
  25  0.159895
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  5.182e-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:  9.130e-01  1.599e-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.051e+00  1.965e-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: 2.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.84e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/265876/likelihoodResults_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.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) = 7124.59488133
delta logL = -0.00102159549169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7124.59385236
delta logL = 7.37458321964e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .15967E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6012       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91291       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.

 FCN=   7124.594     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      271 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .15747        .51394E-01** at limit **
   2  alpha         2.6046        3.5242        .41194       -.15475E-05
   3  Normalizat    1.0511        .16705E-02    .40488E-01   -.30811E-03
   4  Prefactor     .91298        .14287E-02    .45169E-01   -.30353E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 2.6046
  Normalizat = 1.05108
  Prefactor  = 0.912984
 **********
 **   18 **HESSE 
 **********

 FCN=   7124.594     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      310 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41342        .28864E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.6046        3.4516        .50000        .41850E-01
   3  Normalizat    1.0511        .19141E-02    .23872E-03   -.91338    
   4  Prefactor     .91298        .16369E-02    .21636E-03   -.95689    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.70167e-10
Minuit parameter uncertainties:
  1  7.43127e-05
  2  41.6694
  3  0.00191415
  4  0.00163686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/265876': 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): 102
logL (Free Index) = 7124.59385037
delta logL = 9.36926880968e-06

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.000e-04  7.431e-05  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  2.605e+00  4.167e+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:  9.130e-01  1.637e-03  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.051e+00  1.914e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/265876/cmap_HighResolution_451872001_452131201_4FGL_J2221.5-5225_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.84e-05', job_status='DONE', photon_flux_upper_limit='2.39e-08', time_completed='2021-09-28 09:44:04.320361', job_id='265876', GAL2='0.91', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1632847444.32', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='9.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.61' WHERE bin_id='820' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:44:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 265876: <4FGL_J2221.5-5225_daily_bin820> in cluster <slac> Done

Job <4FGL_J2221.5-5225_daily_bin820> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:31:01 2021
Job was executed on host(s) <bullet0241>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:31:02 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:31:02 2021
Terminated at Tue Sep 28 09:44:05 2021
Results reported at Tue Sep 28 09:44:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin820 335.391 -52.4307 451872001 452131201 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 :                                   774.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             351.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            784 sec.

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

