/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 36 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 = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1048
RA = 335.497, Dec = -35.0712
tmin = 510969601, tmax = 511228801
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='274588', job_status='RUN', time_executed='2021-09-28 10:01:11.246808', time_epoch_executed='1632848471.25' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1048'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274588

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274588/ft1_4FGL_J2221.9-3504_daily_bin1048.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274588/ft1_4FGL_J2221.9-3504_daily_bin1048.fits outfile=/scratch/kocevski/274588/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1048.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=510969601.0 tmax=511228801.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.48
user 3.22
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.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/274588/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1048.fits evtable="EVENTS" outfile="/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits" evtable="EVENTS" scfile=/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits sctable="SC_DATA" outfile=/scratch/kocevski/274588/ltcube_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.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/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits
.....................!
real 12.22
user 11.79
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits sctable="SC_DATA" expcube=/scratch/kocevski/274588/ltcube_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.fits outfile=/scratch/kocevski/274588/expmap_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.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/274588/ltcube_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.fits
.....................!
real 190.58
user 184.02
sys 6.18

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

Setting source of interest to:
4FGL J2221.9-3504 @ 335.497 -35.0712

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits scfile=/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits outfile=/scratch/kocevski/274588/cmap_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.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.497 yref=-35.0712 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits scfile=/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits outfile=/scratch/kocevski/274588/cmap_HighResolution_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.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.497 yref=-35.0712 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits evtable="EVENTS" scfile=/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274588/Model_4FGL_J2221.9-3504_daily_bin1048.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/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits.....................!
real 61.08
user 59.68
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits', '/scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits', expMap='/scratch/kocevski/274588/expmap_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.fits', expCube='/scratch/kocevski/274588/ltcube_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/274588/Model_4FGL_J2221.9-3504_daily_bin1048.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2221.9-3504'

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.240e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/274588/ft1_filtered_4FGL_J2221.9-3504_daily_bin1048.fits
Spacecraft file(s): /scratch/kocevski/274588/ft2_4FGL_J2221.9-3504_daily_bin1048.fits
Exposure map: /scratch/kocevski/274588/expmap_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.fits
Exposure cube: /scratch/kocevski/274588/ltcube_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/274588/Model_4FGL_J2221.9-3504_daily_bin1048.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) = 8309.43948589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.297       1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.0684       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10287E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    43.888       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2309       1.0000         .10000E-03   10000.    
     8 'norm      '    2.6453       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.9497       1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.289       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .77213       1.0000         .10000E-03   10000.    
    13 'norm      '    14.477       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.196       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .67697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.6999       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.214       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13909E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .41044       1.0000         .10000E-03   10000.    
    25 'Prefactor '    8.5866       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .85773       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93126       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8309.399     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3533 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.297        4.7254       -.22965E-07   -.15870E-03
   2  Prefactor     4.0685        5.9206        .18587E-05   -.70201E-03
   3  Prefactor     .10000E-03    1.8924       -.33835E-08** at limit **
   4  norm          .10000E-03    1.7713        .36225E-08** at limit **
   5  Prefactor     .10000E-03    17.987       -.89433E-07** at limit **
   6  Prefactor     43.882        57.766        .81805E-06   -.39817E-04
   7  norm          2.2331        4.8775        .44964E-07   -.11974E-03
   8  norm          2.6452        .49759        .43300E-08    .52882E-03
   9  Prefactor     3.9497        5.7801        .28209E-07   -.14388E-04
  10  Prefactor     20.288        15.647        .40173E-07   -.62765E-04
  11  Prefactor     .10000E-03    3.6995       -.27718E-08** at limit **
  12  Prefactor     .77235        2.9613        .36009E-06   -.22931E-03
  13  norm          14.477        14.392        .97223E-07    .26817E-04
  14  Prefactor     .10001E-03    23.109       -.78041E-06** at limit **
  15  Prefactor     19.196        15.272        .22052E-08   -.10932E-04
  16  Prefactor     .10000E-03    6.6295        .10879E-07** at limit **
  17  norm          .67702        1.4887        .11074E-06   -.16271E-03
  18  Prefactor     .10000E-03    16.841       -.13771E-06** at limit **
  19  Prefactor     .10000E-03    15.692       -.66549E-06** at limit **
  20  Prefactor     3.6998        3.6434       -.42039E-07   -.12200E-03
  21  norm          .10000E-03    1.1792       -.35814E-07** at limit **
  22  Prefactor     11.212        10.094        .11265E-05    .44073E-03
  23  Prefactor     .10003E-03    10.498        .23033E-05** at limit **
  24  norm          .41038        .48314        .32813E-06    .33365E-02
  25  Prefactor     8.5889        61.974        .57090E-06    .32612E-04
  26  Prefactor     .85610        12.319       -.36618E-05   -.14704E-03
  27  Normalizat    1.1667        .15716       -.23042E-07    .12053E-03
  28  Prefactor     .93121        .13921       -.34584E-06    .13574E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.2974
  Prefactor  = 4.06846
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 43.8825
  norm       = 2.2331
  norm       = 2.64525
  Prefactor  = 3.9497
  Prefactor  = 20.2879
  Prefactor  = 0.0001
  Prefactor  = 0.772349
  norm       = 14.4773
  Prefactor  = 0.000100007
  Prefactor  = 19.196
  Prefactor  = 0.0001
  norm       = 0.67702
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 3.69982
  norm       = 0.0001
  Prefactor  = 11.2116
  Prefactor  = 0.000100027
  norm       = 0.410375
  Prefactor  = 8.58887
  Prefactor  = 0.856101
  Normalizat = 1.16669
  Prefactor  = 0.931205
 **********
 **   18 **HESSE 
 **********

 FCN=   8309.399     FROM HESSE     STATUS=OK           531 CALLS     4064 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.297        4.7273        .12486E-03   -1.5066    
   2  Prefactor     4.0685        6.7872        .99946E-03   -1.5305    
   3  Prefactor     .10000E-03    1.8950        .12246E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.7748        .11847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     43.882        57.198        .60516E-04   -1.4382    
   7  norm          2.2331        4.7966        .24421E-03   -1.5409    
   8  norm          2.6452        .49752        .25356E-04   -1.5383    
   9  Prefactor     3.9497        5.7711        .20297E-03   -1.5310    
  10  Prefactor     20.288        15.656        .88921E-04   -1.4807    
  11  Prefactor     .10000E-03    3.7583        .17114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .77235        3.0340        .29206E-03   -1.5532    
  13  norm          14.477        14.372        .10527E-03   -1.4947    
  14  Prefactor     .10001E-03    23.808        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.196        15.308        .91415E-04   -1.4831    
  16  Prefactor     .10000E-03    6.6421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .67702        1.3817        .15922E-02   -1.5543    
  18  Prefactor     .10000E-03    16.884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    16.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.6998        3.6498        .16785E-03   -1.5323    
  21  norm          .10000E-03    1.1890        .96588E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     11.212        9.9769        .11964E-03   -1.5038    
  23  Prefactor     .10003E-03    20.549        .35283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .41038        .46597        .58322E-03   -1.5580    
  25  Prefactor     8.5889        62.325        .13680E-03   -1.5122    
  26  Prefactor     .85610        31.751        .45097E-02   -1.5523    
  27  Normalizat    1.1667        .18087        .24688E-03   -.87639    
  28  Prefactor     .93121        .16106        .24931E-03   -.95059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.61824e-08
Minuit parameter uncertainties:
  1  4.72744
  2  6.78848
  3  1.17286e-06
  4  4.28898e-07
  5  0.000420681
  6  57.2698
  7  4.79742
  8  0.497519
  9  5.77187
  10  15.6593
  11  1.17638e-06
  12  3.03462
  13  14.3756
  14  0.000834037
  15  15.3108
  16  6.33609e-06
  17  1.38174
  18  0.000133459
  19  0.000442539
  20  3.65005
  21  6.49663e-06
  22  9.97834
  23  0.00148927
  24  0.465975
  25  46.3411
  26  10.4326
  27  0.180969
  28  0.16114
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.176e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.312e-01  1.611e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.167e+00  1.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 5.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274588/likelihoodResults_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.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) = 8309.4003829
delta logL = -0.00126783213091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8309.39911508
delta logL = -1.09703250928e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6862       1.0000          .0000       10.000    
     3 'Normalizat'    1.1667       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93124       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+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=   8309.399     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      257 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .58651        .40056E-01** at limit **
   2  Index         3.4539        8.0627        .20000       -.21714E-07
   3  Normalizat    1.1667        .22639E-02    .24688E-03    .13047E-02
   4  Prefactor     .93121        .20789E-02    .24931E-03    .12499E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 3.45394
  Normalizat = 1.16669
  Prefactor  = 0.931206
 **********
 **   18 **HESSE 
 **********

 FCN=   8309.399     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.7179        .23844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.4539        5.5958        .80000E-02   -.31436    
   3  Normalizat    1.1667        .17329        .49375E-04   -.87639    
   4  Prefactor     .93121        .15911        .49862E-04   -.95059    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36878e-09
Minuit parameter uncertainties:
  1  6.6682e-06
  2  488.709
  3  0.17338
  4  0.159191
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274588': 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) = 8309.39911331
delta logL = 1.75470813701e-06

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  6.668e-06  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.454e+00  4.887e+02  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  9.312e-01  1.592e-01  0.000e+00  1.000e+01 ( 1.000e+00)
561        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
562        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
559   Normalization:  1.167e+00  1.734e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.497 -35.071

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/274588/cmap_HighResolution_510969601_511228801_4FGL_J2221.9-3504_daily_bin1048.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.30e-03', job_status='DONE', photon_flux_upper_limit='5.47e-08', time_completed='2021-09-28 10:16:48.456570', job_id='274588', GAL2='0.93', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1632849408.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.75e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1048' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:16:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 274588: <4FGL_J2221.9-3504_daily_bin1048> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1048> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 28 10:00:18 2021
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:00:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:00:19 2021
Terminated at Tue Sep 28 10:16:49 2021
Results reported at Tue Sep 28 10:16:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1048 335.497 -35.0712 510969601 511228801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2221.9-3504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   936.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            991 sec.

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

