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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin211
RA = 335.497, Dec = -35.0712
tmin = 294019201, tmax = 294278401
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='270296', job_status='RUN', time_executed='2021-09-28 09:49:26.247993', time_epoch_executed='1632847766.25' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='211'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270296

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270296/ft1_4FGL_J2221.9-3504_daily_bin211.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270296/ft1_4FGL_J2221.9-3504_daily_bin211.fits outfile=/scratch/kocevski/270296/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin211.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=294019201.0 tmax=294278401.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.13
user 2.97
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits" evtable="EVENTS" scfile=/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits sctable="SC_DATA" outfile=/scratch/kocevski/270296/ltcube_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.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/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits
.....................!
real 11.84
user 11.47
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits sctable="SC_DATA" expcube=/scratch/kocevski/270296/ltcube_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.fits outfile=/scratch/kocevski/270296/expmap_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.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/270296/ltcube_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.fits
.....................!
real 189.59
user 184.95
sys 4.29

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/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits scfile=/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits outfile=/scratch/kocevski/270296/cmap_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits scfile=/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits outfile=/scratch/kocevski/270296/cmap_HighResolution_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits evtable="EVENTS" scfile=/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270296/Model_4FGL_J2221.9-3504_daily_bin211.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/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits.....................!
real 43.84
user 42.40
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits', '/scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits', expMap='/scratch/kocevski/270296/expmap_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.fits', expCube='/scratch/kocevski/270296/ltcube_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/270296/Model_4FGL_J2221.9-3504_daily_bin211.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/270296/ft1_filtered_4FGL_J2221.9-3504_daily_bin211.fits
Spacecraft file(s): /scratch/kocevski/270296/ft2_4FGL_J2221.9-3504_daily_bin211.fits
Exposure map: /scratch/kocevski/270296/expmap_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.fits
Exposure cube: /scratch/kocevski/270296/ltcube_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/270296/Model_4FGL_J2221.9-3504_daily_bin211.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) = 5035.98853217

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2901       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.072       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .59849       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2173       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .77159       1.0000         .10000E-03   10000.    
     9 'Prefactor '    21.116       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.3447       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3112       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.9112       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13397E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.887       1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.9952       1.0000         .10000E-03   10000.    
    21 'norm      '    4.5529       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .77853       1.0000         .10000E-03   10000.    
    24 'norm      '    1.1550       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1440       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0223       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=   5035.915     FROM MIGRAD    STATUS=CONVERGED    707 CALLS     3000 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2903        3.8567       -.23314E-07   -.55048E-04
   2  Prefactor     14.061        11.814        .49555E-07   -.49474E-04
   3  Prefactor     .59241        7.5383        .60874E-06   -.18045E-03
   4  norm          1.2197        3.3163        .93508E-06   -.11829E-02
   5  Prefactor     .10000E-03    10.080       -.26562E-06** at limit **
   6  Prefactor     .10000E-03    43.303       -.16633E-04** at limit **
   7  norm          .10000E-03    2.8398       -.23090E-06** at limit **
   8  norm          .77150        .34543       -.32143E-07    .74523E-04
   9  Prefactor     21.117        20.046        .96654E-05    .88206E-04
  10  Prefactor     9.2140        36.193       -.36508E-05   -.48783E-05
  11  Prefactor     5.2963        10.756        .31267E-06   -.30976E-03
  12  Prefactor     .10000E-03    1.8225        .48693E-07** at limit **
  13  norm          .10000E-03    22.735       -.22260E-05** at limit **
  14  Prefactor     4.8912        122.29       -.42399E-04   -.80643E-05
  15  Prefactor     .10000E-03    13.795        .20119E-06** at limit **
  16  Prefactor     .10000E-03    6.4516        .27161E-06** at limit **
  17  norm          .10000E-03    1.2588        .11358E-06** at limit **
  18  Prefactor     .10000E-03    47.127        .82606E-05** at limit **
  19  Prefactor     14.880        12.048        .30256E-06    .35013E-04
  20  Prefactor     6.9937        6.7075        .47305E-06    .35118E-04
  21  norm          4.5512        4.1114        .38680E-07    .12208E-03
  22  Prefactor     .10000E-03    8.7379        .19258E-06** at limit **
  23  Prefactor     .74586        9.0071       -.72161E-06    .15474E-03
  24  norm          1.1563        .78806        .25338E-07    .59820E-03
  25  Prefactor     .10000E-03    30.195        .59733E-05** at limit **
  26  Prefactor     .10000E-03    7.4831        .16763E-06** at limit **
  27  Normalizat    1.1446        .22152        .51159E-06    .51652E-04
  28  Prefactor     1.0218        .18569       -.57000E-06    .88920E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.29031
  Prefactor  = 14.0606
  Prefactor  = 0.592407
  norm       = 1.21966
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.771502
  Prefactor  = 21.1175
  Prefactor  = 9.214
  Prefactor  = 5.2963
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.89119
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.8797
  Prefactor  = 6.99371
  norm       = 4.55117
  Prefactor  = 0.0001
  Prefactor  = 0.74586
  norm       = 1.15634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.14458
  Prefactor  = 1.02182
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.915     FROM HESSE     STATUS=OK           527 CALLS     3527 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2903        3.8377        .17542E-03   -1.5405    
   2  Prefactor     14.061        11.721        .10677E-03   -1.4958    
   3  Prefactor     .59241        18.914        .36428E-02   -1.5554    
   4  norm          1.2197        20.018        .20461E-02   -1.5487    
   5  Prefactor     .10000E-03    10.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.8690        .11671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .77150        .34708        .27088E-04   -1.5532    
   9  Prefactor     21.117        20.018        .87164E-04   -1.4789    
  10  Prefactor     9.2140        36.200        .13110E-03   -1.5101    
  11  Prefactor     5.2963        10.978        .87198E-03   -1.5248    
  12  Prefactor     .10000E-03    1.8420        .93500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    22.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.8912        123.29        .18150E-03   -1.5266    
  15  Prefactor     .10000E-03    13.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.4539        .17606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2705        .77724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    47.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     14.880        12.078        .10381E-03   -1.4936    
  20  Prefactor     6.9937        6.7088        .15168E-03   -1.5179    
  21  norm          4.5512        4.1473        .12730E-03   -1.5281    
  22  Prefactor     .10000E-03    8.7504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .74586        80.358        .32741E-02   -1.5535    
  24  norm          1.1563        .98384        .42140E-04   -1.5493    
  25  Prefactor     .10000E-03    30.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.4949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1446        .26463        .26303E-03   -.88333    
  28  Prefactor     1.0218        .22213        .24285E-03   -.92006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23404e-08
Minuit parameter uncertainties:
  1  3.83815
  2  11.7231
  3  6.69639
  4  9.88591
  5  1.29553e-05
  6  0.000190359
  7  8.14302e-06
  8  0.347082
  9  20.0242
  10  36.2866
  11  10.9826
  12  2.99163e-05
  13  1.57021e-05
  14  49.2259
  15  6.41766e-06
  16  1.70009e-05
  17  1.94137e-07
  18  4.89715e-05
  19  12.0801
  20  6.70953
  21  4.14755
  22  5.8265e-06
  23  15.504
  24  0.983854
  25  3.57205e-05
  26  5.08433e-06
  27  0.264939
  28  0.222325
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  5.296e+00  1.098e+01  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:  1.022e+00  2.223e-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.145e+00  2.649e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.28
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.12e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/270296/likelihoodResults_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.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) = 5035.89532762
delta logL = 0.0200744096946

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5035.88758673
delta logL = 0.0278152935634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9243       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1934       1.0000          .0000       10.000    
     3 'Normalizat'    1.1327       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0296       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5035.888     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      271 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8992        36.405        .10182E-02   -.34128E-03
   2  Index         3.2033        6.5883        .14816E-01   -.32039E-04
   3  Normalizat    1.1321        .25495        .26432E-03   -.83528E-04
   4  Prefactor     1.0300        .22069        .24202E-03   -.52800E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.89922
  Index      = 3.20327
  Normalizat = 1.13208
  Prefactor  = 1.03001
 **********
 **   18 **HESSE 
 **********

 FCN=   5035.888     FROM HESSE     STATUS=OK            25 CALLS      296 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8992        11.829        .40730E-04   -1.5313    
   2  Index         3.2033        2.4184        .59263E-03   -.36757    
   3  Normalizat    1.1321        .25334        .10573E-04   -.88728    
   4  Prefactor     1.0300        .21714        .96806E-05   -.91736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79189e-10
Minuit parameter uncertainties:
  1  11.8361
  2  2.54239
  3  0.253617
  4  0.21733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270296': 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) = 5035.8875765
delta logL = 0.0278255318253

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.899e+00  1.184e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.203e+00  2.542e+00  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:  1.030e+00  2.173e-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.132e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/270296/cmap_HighResolution_294019201_294278401_4FGL_J2221.9-3504_daily_bin211.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.12e-02', job_status='DONE', photon_flux_upper_limit='1.42e-07', time_completed='2021-09-28 10:00:07.789469', job_id='270296', GAL2='1.03', fit_tolerance='1e-08', EG2='1.13', EG='1.14', time_epoch_completed='1632848407.79', return_code2='0', ts='0.28', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='2.78e-02', ts2='0.34', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='211' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:00:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 270296: <4FGL_J2221.9-3504_daily_bin211> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin211> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 09:45:37 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:45:39 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:45:39 2021
Terminated at Tue Sep 28 10:00:08 2021
Results reported at Tue Sep 28 10:00:08 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin211 335.497 -35.0712 294019201 294278401 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 :                                   640.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             252.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

