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


Performing analysis on: 4FGL_J2221.5-5225_daily_bin424
RA = 335.391, Dec = -52.4307
tmin = 349228801, tmax = 349488001
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='264556', job_status='RUN', time_executed='2021-09-28 09:28:58.697097', time_epoch_executed='1632846538.7' WHERE source_name='4FGL J2221.5-5225' and cadence='daily' and bin_id='424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/264556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/264556/ft1_4FGL_J2221.5-5225_daily_bin424.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/264556/ft1_4FGL_J2221.5-5225_daily_bin424.fits outfile=/scratch/kocevski/264556/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin424.fits ra=335.391 dec=-52.4307 rad=12.0 tmin=349228801.0 tmax=349488001.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.22
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.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/264556/ft1_filteredMKT_4FGL_J2221.5-5225_daily_bin424.fits evtable="EVENTS" outfile="/scratch/kocevski/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.fits" evtable="EVENTS" scfile=/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits sctable="SC_DATA" outfile=/scratch/kocevski/264556/ltcube_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.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/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits
.....................!
real 11.81
user 11.47
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits sctable="SC_DATA" expcube=/scratch/kocevski/264556/ltcube_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.fits outfile=/scratch/kocevski/264556/expmap_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.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/264556/ltcube_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.fits
.....................!
real 189.89
user 184.96
sys 4.62

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/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.fits scfile=/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits outfile=/scratch/kocevski/264556/cmap_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.fits scfile=/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits outfile=/scratch/kocevski/264556/cmap_HighResolution_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.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.57
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.fits evtable="EVENTS" scfile=/scratch/kocevski/264556/ft2_4FGL_J2221.5-5225_daily_bin424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/264556/Model_4FGL_J2221.5-5225_daily_bin424.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/264556/ft1_filtered_4FGL_J2221.5-5225_daily_bin424.fits.....................!
real 43.27
user 41.88
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.205       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.959       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.413       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12620E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .25386E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .31928       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    13.825       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5369       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.8871       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10533E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.9246       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .30421E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.995       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.0440       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11276E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    11.254       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4884       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74228       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=   5385.066     FROM MIGRAD    STATUS=CONVERGED    577 CALLS     2870 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.654        .59708E-06** at limit **
   2  Prefactor     17.206        12.809        .46430E-07   -.25397E-04
   3  Prefactor     15.962        30.258        .41239E-06   -.43482E-05
   4  Prefactor     10.411        6.5705       -.11824E-06   -.24336E-03
   5  Prefactor     .10000E-03    73.005       -.84167E-06** at limit **
   6  Prefactor     .10000E-03    10.308       -.67006E-07** at limit **
   7  Prefactor     .30605        3.3892        .73835E-06   -.48832E-03
   8  Prefactor     .10000E-03    70.517       -.19068E-08** at limit **
   9  norm          13.827        9.0474       -.16787E-06   -.13615E-03
  10  Prefactor     2.5364        5.3747        .63644E-06   -.27230E-04
  11  Prefactor     .10000E-03    32.048       -.24055E-06** at limit **
  12  Prefactor     9.8842        6.8032       -.34935E-06   -.29935E-03
  13  Prefactor     .10000E-03    47.787       -.56100E-06** at limit **
  14  Prefactor     9.9339        13.904       -.37623E-06   -.19395E-06
  15  Prefactor     .10003E-03    268.77       -.99713E-05** at limit **
  16  Prefactor     .10000E-03    3.5102       -.28967E-08** at limit **
  17  Prefactor     34.002        31.777        .41601E-06    .48628E-04
  18  Prefactor     .10000E-03    7.9988        .33816E-08** at limit **
  19  norm          .10000E-03    5.9951       -.76364E-08** at limit **
  20  norm          .10000E-03    2.5532       -.57344E-08** at limit **
  21  Prefactor     1.0409        8.3404        .36395E-05   -.33474E-04
  22  Prefactor     .10000E-03    53.654       -.72288E-06** at limit **
  23  norm          11.254        2.5267       -.92417E-07   -.27095E-03
  24  Normalizat    1.4887        .22191       -.39327E-07   -.15522E-03
  25  Prefactor     .74208        .17380       -.32862E-06   -.10538E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.2063
  Prefactor  = 15.962
  Prefactor  = 10.4113
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.306046
  Prefactor  = 0.0001
  norm       = 13.8266
  Prefactor  = 2.53642
  Prefactor  = 0.0001
  Prefactor  = 9.88418
  Prefactor  = 0.0001
  Prefactor  = 9.93393
  Prefactor  = 0.00010003
  Prefactor  = 0.0001
  Prefactor  = 34.0023
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.04087
  Prefactor  = 0.000100001
  norm       = 11.2535
  Normalizat = 1.48873
  Prefactor  = 0.742081
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.066     FROM HESSE     STATUS=OK           429 CALLS     3299 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    68.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.206        12.813        .96558E-04   -1.4878    
   3  Prefactor     15.962        30.286        .10026E-03   -1.4909    
   4  Prefactor     10.411        6.5868        .12417E-03   -1.5063    
   5  Prefactor     .10000E-03    73.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    87.770        .43584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .30605        23.904        .23729E-02   -1.5597    
   8  Prefactor     .10000E-03    70.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          13.827        9.0612        .10772E-03   -1.4964    
  10  Prefactor     2.5364        5.3766        .23413E-03   -1.5389    
  11  Prefactor     .10000E-03    32.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     9.8842        6.8778        .12744E-03   -1.5079    
  13  Prefactor     .10000E-03    47.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.9339        13.879        .12720E-03   -1.5077    
  15  Prefactor     .10003E-03    285.70        .21384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.5134        .13427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     34.002        31.860        .68729E-04   -1.4541    
  18  Prefactor     .10000E-03    8.0107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.9980        .17549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.5537        .11452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.0409        8.6700        .41320E-03   -1.5504    
  22  Prefactor     .10000E-03    54.818        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          11.254        2.5283        .52431E-04   -1.5037    
  24  Normalizat    1.4887        .26318        .24881E-03   -.78095    
  25  Prefactor     .74208        .20543        .27301E-03   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.948e-09
Minuit parameter uncertainties:
  1  0.000163127
  2  12.8146
  3  30.3156
  4  6.58728
  5  0.000230349
  6  0.000525301
  7  5.41084
  8  1.44689e-06
  9  9.06213
  10  5.37758
  11  5.49638e-05
  12  6.87833
  13  2.08082e-05
  14  13.8838
  15  0.0058853
  16  7.15811e-07
  17  31.8757
  18  1.52019e-06
  19  1.72932e-06
  20  6.9377e-07
  21  6.00899
  22  0.000416605
  23  2.52831
  24  0.263422
  25  0.20564
Done.

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

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.383e+01  9.062e+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:  7.421e-01  2.056e-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.489e+00  2.634e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.25
Ra Dec: 335.391 -52.431
Photon Index (Fixed Index): 1.61 +/- 0.00
Photon Flux (Fixed Index): 2.31e-08 +/- 1.51e-08
Energy Flux (Fixed Index): 4.67e-05 +/- 3.06e-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) = 5385.06197648
delta logL = 0.00377381679755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5385.06183608
delta logL = 0.00391421501536

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.697       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6584       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74215       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=   5385.062     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      275 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.698        9.1239        .10823E-03   -.11744E-03
   2  alpha         1.6584        .55946        .14154E-01    .91178E-04
   3  Normalizat    1.4877        .24919        .24887E-03   -.33758E-04
   4  Prefactor     .74214        .20153        .27298E-03   -.42812E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6977
  alpha      = 1.65836
  Normalizat = 1.48766
  Prefactor  = 0.742141
 **********
 **   18 **HESSE 
 **********

 FCN=   5385.062     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.698        9.0649        .43290E-05   -1.4968    
   2  alpha         1.6584        .55596        .28308E-02   -.34336    
   3  Normalizat    1.4877        .24938        .49775E-04   -.78126    
   4  Prefactor     .74214        .20170        .10919E-04   -1.0190    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13252e-11
Minuit parameter uncertainties:
  1  9.06584
  2  0.561261
  3  0.249586
  4  0.201904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/264556': 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) = 5385.06183608
delta logL = 0.0039142165906

Extracting fit parameters...

4FGL J2221.5-5225
   Spectrum: LogParabola
345         norm:  1.370e+01  9.066e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        alpha:  1.658e+00  5.613e-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:  7.421e-01  2.019e-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.488e+00  2.496e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.25
Ra Dec: 335.391 -52.431
Photon Index (Free Index): 1.66 +/- 0.56
Photon Flux (Free Index): 2.45e-08 +/- 2.25e-08
Energy Flux (Free Index): 4.37e-05 +/- 4.31e-05

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/264556/cmap_HighResolution_349228801_349488001_4FGL_J2221.5-5225_daily_bin424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.31e-08', energy_flux2='4.37e-05', photon_flux_error='1.51e-08', dlogl='3.91e-03', energy_flux='4.67e-05', photon_flux2='2.45e-08', job_status='DONE', time_completed='2021-09-28 09:38:45.702022', photon_index_error2='0.56', photon_index2='1.66', ts='14.25', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='4.31e-05', EG='1.49', time_epoch_completed='1632847125.7', return_code='0', job_id='264556', GAL2='0.74', EG2='1.49', return_code2='0', energy_flux_error='3.06e-05', photon_flux_error2='2.25e-08', ts2='14.25', photon_index='1.61' WHERE bin_id='424' AND source_name='4FGL J2221.5-5225' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 09:38:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 264556: <4FGL_J2221.5-5225_daily_bin424> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.5-5225_daily_bin424 335.391 -52.4307 349228801 349488001 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 :                                   587.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            787 sec.

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

