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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin1382
RA = 335.391, Dec = -52.4307
tmin = 597542401, tmax = 597801601
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='268653', job_status='RUN', time_executed='2021-09-28 09:41:26.189335', time_epoch_executed='1632847286.19' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='1382'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268653

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268653/ft1_4FGL_J2221.5-5225_daily_bin1382.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268653/ft1_4FGL_J2221.5-5225_daily_bin1382.fits outfile=/scratch/kocevski/268653/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin1382.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=597542401.0 tmax=597801601.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.58
user 3.37
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268653/ft1_filtered_4FGL_J2221.5-5225_daily_bin1382.fits" evtable="EVENTS" scfile=/scratch/kocevski/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits sctable="SC_DATA" outfile=/scratch/kocevski/268653/ltcube_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.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/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits
.....................!
real 14.24
user 13.82
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268653/ft1_filtered_4FGL_J2221.5-5225_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits sctable="SC_DATA" expcube=/scratch/kocevski/268653/ltcube_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.fits outfile=/scratch/kocevski/268653/expmap_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.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/268653/ltcube_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.fits
.....................!
real 193.58
user 188.09
sys 5.12

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/268653/ft1_filtered_4FGL_J2221.5-5225_daily_bin1382.fits scfile=/scratch/kocevski/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits outfile=/scratch/kocevski/268653/cmap_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268653/ft1_filtered_4FGL_J2221.5-5225_daily_bin1382.fits scfile=/scratch/kocevski/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits outfile=/scratch/kocevski/268653/cmap_HighResolution_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268653/ft1_filtered_4FGL_J2221.5-5225_daily_bin1382.fits evtable="EVENTS" scfile=/scratch/kocevski/268653/ft2_4FGL_J2221.5-5225_daily_bin1382.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268653/Model_4FGL_J2221.5-5225_daily_bin1382.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/268653/ft1_filtered_4FGL_J2221.5-5225_daily_bin1382.fits.....................!
real 56.06
user 54.61
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.209       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8317       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16895E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8525       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .28130E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.0328       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .18513E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.465       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.6443       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13011E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .40060E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.9172       1.0000         .10000E-03   10000.    
    20 'norm      '    .46737       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7968       1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.285       1.0000         .10000E-03   10000.    
    23 'norm      '    1.3373       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78763       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2952       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=   7581.949     FROM MIGRAD    STATUS=CONVERGED   1065 CALLS     3850 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.333        59.770        .99482E-04   -.42283E-04
   2  Prefactor     7.8222        8.5291        .14328E-03   -.18424E-03
   3  Prefactor     .10007E-03    28.855        .10719    ** at limit **
   4  Prefactor     5.8549        4.1998        .14341E-03   -.39732E-03
   5  Prefactor     .10104E-03    191.42        .58646E-02** at limit **
   6  Prefactor     .10000E-03    3.8324        .16576E-02** at limit **
   7  Prefactor     4.0378        4.0013        .81355E-03    .55179E-03
   8  Prefactor     .10010E-03    338.82        .18142E-02** at limit **
   9  norm          13.468        7.1468        .10916E-03   -.33849E-04
  10  Prefactor     1.6441        2.1532        .14274E-03    .36956E-04
  11  Prefactor     .10000E-03    13.278        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1.4844        .10331E-02** at limit **
  13  Prefactor     .10055E-03    106.43        .63347E-02** at limit **
  14  Prefactor     .10000E-03    9.4029        .18142E-02** at limit **
  15  Prefactor     .10000E-03    53.440        .18142E-02** at limit **
  16  Prefactor     .10000E-03    1.5382        .10540E-02** at limit **
  17  Prefactor     .10000E-03    27.433        .18142E-02** at limit **
  18  Prefactor     .10000E-03    2.6381        .13808E-02** at limit **
  19  norm          2.9134        8.8722        .23786E-03   -.51667E-04
  20  norm          .46689        4.4622        .35686E-03   -.39822E-04
  21  Prefactor     2.7879        7.3989        .12164E-02   -.10028E-03
  22  Prefactor     16.305        25.214        .99249E-04   -.20962E-04
  23  norm          1.3373        .88001        .63343E-04   -.22973E-04
  24  Normalizat    .78744        .20110        .28936E-03    .40244E-03
  25  Prefactor     1.2954        .17675        .20518E-03    .30759E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3327
  Prefactor  = 7.82221
  Prefactor  = 0.000100069
  Prefactor  = 5.85495
  Prefactor  = 0.000101036
  Prefactor  = 0.0001
  Prefactor  = 4.03784
  Prefactor  = 0.000100099
  norm       = 13.4683
  Prefactor  = 1.64408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.91339
  norm       = 0.466887
  Prefactor  = 2.78791
  Prefactor  = 16.3045
  norm       = 1.33726
  Normalizat = 0.787441
  Prefactor  = 1.29545
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.949     FROM HESSE     STATUS=OK           415 CALLS     4265 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.333        59.779        .39793E-05   -1.4899    
   2  Prefactor     7.8222        8.5287        .57313E-05   -1.5149    
   3  Prefactor     .10007E-03    26.842        .11236       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8549        4.1995        .57365E-05   -1.5224    
   5  Prefactor     .10104E-03    199.42        .23458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.8334        .33153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.0378        4.0001        .16271E-03   -1.5306    
   8  Prefactor     .10010E-03    339.11        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.468        7.1465        .43663E-05   -1.4974    
  10  Prefactor     1.6441        2.1531        .57096E-05   -1.5452    
  11  Prefactor     .10000E-03    13.279        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.4844        .20663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10055E-03    109.54        .25339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.4095        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    53.443        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.5382        .21080E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    27.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    2.6381        .27616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.9134        8.8722        .95145E-05   -1.5367    
  20  norm          .46689        4.4589        .14274E-04   -1.5571    
  21  Prefactor     2.7879        7.3545        .48655E-04   -1.5374    
  22  Prefactor     16.305        25.078        .39700E-05   -1.4900    
  23  norm          1.3373        .87995        .25337E-05   -1.5477    
  24  Normalizat    .78744        .20106        .11574E-04   -1.0054    
  25  Prefactor     1.2954        .17684        .41035E-04   -.83442    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12015e-08
Minuit parameter uncertainties:
  1  59.9995
  2  8.52999
  3  0.00272104
  4  4.19971
  5  0.028843
  6  7.44207e-05
  7  4.00032
  8  0.0116737
  9  7.14697
  10  2.15324
  11  2.36726e-05
  12  1.21194e-05
  13  0.0156192
  14  6.32865e-05
  15  0.00027853
  16  5.2094e-06
  17  9.39699e-05
  18  1.16226e-05
  19  8.87623
  20  2.88568
  21  7.35692
  22  25.0938
  23  0.879957
  24  0.201251
  25  0.176926
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.347e+01  7.147e+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.295e+00  1.769e-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:  7.874e-01  2.013e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.01
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 2.25e-08 +/- 1.19e-08
Energy Flux (Fixed Index): 4.55e-05 +/- 2.41e-05

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) = 7581.52455469
delta logL = 0.424814395977

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7581.51769184
delta logL = 0.431677246522

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.960       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.2262       1.0000          .0000       5.0000    
     3 'Normalizat'    .78984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2980       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=   7581.518     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      238 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.962        7.6468        .11127E-03   -.11178E-03
   2  alpha         1.2261        .41146        .14142E-01   -.45986E-04
   3  Normalizat    .78982        .19413        .28899E-03   -.27561E-03
   4  Prefactor     1.2980        .17322        .20507E-03   -.31381E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9618
  alpha      = 1.2261
  Normalizat = 0.789816
  Prefactor  = 1.29797
 **********
 **   18 **HESSE 
 **********

 FCN=   7581.518     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .94E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.962        7.7025        .44506E-05   -1.4988    
   2  alpha         1.2261        .41447        .28284E-02   -.53467    
   3  Normalizat    .78982        .19431        .11560E-04   -1.0045    
   4  Prefactor     1.2980        .17338        .41014E-04   -.83368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4337e-11
Minuit parameter uncertainties:
  1  7.70313
  2  0.417074
  3  0.194479
  4  0.173456
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268653': 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) = 7581.51769163
delta logL = 0.431677457601

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.296e+01  7.703e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.226e+00  4.171e-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.298e+00  1.735e-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:  7.898e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.87
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.23 +/- 0.42
Photon Flux (Free Index): 1.51e-08 +/- 1.05e-08
Energy Flux (Free Index): 8.18e-05 +/- 6.84e-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/268653/cmap_HighResolution_597542401_597801601_4FGL_J2221.5-5225_daily_bin1382.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.25e-08', energy_flux2='8.18e-05', photon_flux_error='1.19e-08', dlogl='4.32e-01', energy_flux='4.55e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-09-28 09:55:05.581575', photon_index_error2='0.42', photon_index2='1.23', ts='23.01', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', energy_flux_error2='6.84e-05', EG='0.79', time_epoch_completed='1632848105.58', return_code='0', job_id='268653', GAL2='1.30', EG2='0.79', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='1.05e-08', ts2='23.87', photon_index='1.61' WHERE bin_id='1382' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:55:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 268653: <4FGL_J2221.5-5225_daily_bin1382> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin1382 335.391 -52.4307 597542401 597801601 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 :                                   819.00 sec.
    Max Memory :                                 1083 MB
    Average Memory :                             323.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            881 sec.

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

