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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin500
RA = 335.497, Dec = -35.0712
tmin = 368928001, tmax = 369187201
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='271741', job_status='RUN', time_executed='2021-09-28 09:50:46.450898', time_epoch_executed='1632847846.45' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='500'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271741

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271741/ft1_4FGL_J2221.9-3504_daily_bin500.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271741/ft1_4FGL_J2221.9-3504_daily_bin500.fits outfile=/scratch/kocevski/271741/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin500.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=368928001.0 tmax=369187201.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.34
user 3.12
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271741/ft1_filtered_4FGL_J2221.9-3504_daily_bin500.fits" evtable="EVENTS" scfile=/scratch/kocevski/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits sctable="SC_DATA" outfile=/scratch/kocevski/271741/ltcube_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.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/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits
.....................!
real 12.12
user 11.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271741/ft1_filtered_4FGL_J2221.9-3504_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits sctable="SC_DATA" expcube=/scratch/kocevski/271741/ltcube_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.fits outfile=/scratch/kocevski/271741/expmap_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.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/271741/ltcube_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.fits
.....................!
real 190.33
user 185.33
sys 4.48

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/271741/ft1_filtered_4FGL_J2221.9-3504_daily_bin500.fits scfile=/scratch/kocevski/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits outfile=/scratch/kocevski/271741/cmap_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.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.55
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271741/ft1_filtered_4FGL_J2221.9-3504_daily_bin500.fits scfile=/scratch/kocevski/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits outfile=/scratch/kocevski/271741/cmap_HighResolution_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271741/ft1_filtered_4FGL_J2221.9-3504_daily_bin500.fits evtable="EVENTS" scfile=/scratch/kocevski/271741/ft2_4FGL_J2221.9-3504_daily_bin500.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271741/Model_4FGL_J2221.9-3504_daily_bin500.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/271741/ft1_filtered_4FGL_J2221.9-3504_daily_bin500.fits.....................!
real 60.64
user 59.28
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1956       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.9470       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .54823       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9610       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.119       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5645       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4726       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69047E-01   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.959       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.8385       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.624       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.1245       1.0000         .10000E-03   10000.    
    21 'norm      '    1.4462       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.1088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.279       1.0000         .10000E-03   10000.    
    24 'norm      '    2.9817       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .76860       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=   7948.700     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3049 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1957        2.6204        .21130E-06   -.31348E-03
   2  Prefactor     9.9466        6.9478       -.12985E-06   -.12237E-04
   3  Prefactor     .55245        5.0032       -.32996E-06   -.42972E-04
   4  norm          7.9616        6.5922        .11055E-06   -.21412E-05
   5  Prefactor     .10000E-03    12.238        .49356E-05** at limit **
   6  Prefactor     .10000E-03    26.914        .14300E-05** at limit **
   7  norm          13.119        4.8090        .51676E-06    .36270E-03
   8  norm          1.5645        .38302       -.32323E-07   -.24442E-03
   9  Prefactor     3.4723        4.4745        .20369E-05   -.21247E-02
  10  Prefactor     .10000E-03    3.8514       -.54065E-07** at limit **
  11  Prefactor     .10000E-03    2.6137        .95711E-08** at limit **
  12  Prefactor     .74210E-01    1.2681        .44803E-06   -.81219E-03
  13  norm          .10000E-03    8.6376        .14750E-05** at limit **
  14  Prefactor     .10000E-03    12.364        .48198E-05** at limit **
  15  Prefactor     27.960        17.560       -.45276E-06   -.63198E-04
  16  Prefactor     .10000E-03    13.951       -.65532E-05** at limit **
  17  norm          6.8376        2.6208       -.18146E-07   -.42692E-04
  18  Prefactor     .10000E-03    144.19       -.25461E-05** at limit **
  19  Prefactor     12.625        9.3775        .27802E-06    .40701E-04
  20  Prefactor     5.1245        5.9622       -.53081E-07   -.17275E-03
  21  norm          1.4461        1.8422        .27533E-08   -.13466E-07
  22  Prefactor     9.1086        9.0248        .10148E-06    .33121E-04
  23  Prefactor     12.278        11.549       -.15324E-06   -.52024E-04
  24  norm          2.9820        .93836        .20481E-07   -.85084E-04
  25  Prefactor     .10000E-03    10.060       -.51858E-05** at limit **
  26  Prefactor     .10000E-03    6.0204       -.10069E-06** at limit **
  27  Normalizat    1.0359        .16201       -.34550E-06   -.41015E-04
  28  Prefactor     .76856        .13991       -.17217E-06   -.48893E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.19572
  Prefactor  = 9.94664
  Prefactor  = 0.552445
  norm       = 7.96155
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 13.1194
  norm       = 1.56455
  Prefactor  = 3.47233
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0742096
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 27.96
  Prefactor  = 0.000100004
  norm       = 6.83756
  Prefactor  = 0.0001
  Prefactor  = 12.6247
  Prefactor  = 5.1245
  norm       = 1.44608
  Prefactor  = 9.10859
  Prefactor  = 12.2781
  norm       = 2.98198
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Normalizat = 1.03589
  Prefactor  = 0.768558
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1957        2.5914        .20693E-03   -1.5489    
   2  Prefactor     9.9466        6.8440        .12705E-03   -1.5077    
   3  Prefactor     .55245        13.712        .36536E-02   -1.5559    
   4  norm          7.9616        6.5985        .14211E-03   -1.5144    
   5  Prefactor     .10000E-03    12.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    26.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.119        4.8115        .10809E-03   -1.4983    
   8  norm          1.5645        .38446        .25606E-04   -1.5458    
   9  Prefactor     3.4723        6.5382        .10850E-02   -1.5335    
  10  Prefactor     .10000E-03    3.8598        .17088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6327        .14071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .74210E-01    17.562        .19012E-02   -1.5654    
  13  norm          .10000E-03    8.6831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.563        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.960        17.593        .75766E-04   -1.4650    
  16  Prefactor     .10000E-03    14.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.8376        2.6129        .85920E-04   -1.5185    
  18  Prefactor     .10000E-03    146.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.625        9.4064        .11274E-03   -1.4997    
  20  Prefactor     5.1245        5.9712        .17760E-03   -1.5255    
  21  norm          1.4461        1.8228        .13126E-03   -1.5467    
  22  Prefactor     9.1086        9.0136        .13280E-03   -1.5104    
  23  Prefactor     12.278        11.975        .11431E-03   -1.5007    
  24  norm          2.9820        .97500        .36888E-04   -1.5363    
  25  Prefactor     .10000E-03    10.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.0322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0359        .18845        .24312E-03   -.91838    
  28  Prefactor     .76856        .16293        .25002E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.60104e-08
Minuit parameter uncertainties:
  1  2.59168
  2  6.84454
  3  5.50549
  4  6.59912
  5  0.0003177
  6  0.000103075
  7  4.81161
  8  0.384462
  9  6.53951
  10  2.24611e-06
  11  2.15715e-06
  12  2.28235
  13  8.87252e-05
  14  0.000348945
  15  17.5962
  16  0.000474164
  17  2.61294
  18  0.000407977
  19  9.40755
  20  5.97189
  21  1.82287
  22  9.01495
  23  11.9771
  24  0.97501
  25  0.000337081
  26  1.80818e-06
  27  0.188569
  28  0.16303
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.157e-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:  7.686e-01  1.630e-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.036e+00  1.886e-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.06e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271741/likelihoodResults_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.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): 102
logL (Free Index) = 7948.70196779
delta logL = -0.00180859599914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7948.70015912
delta logL = 8.28904376249e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6639       1.0000          .0000       10.000    
     3 'Normalizat'    1.0359       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76858       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=   7948.700     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      276 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.887        .45007E-01** at limit **
   2  Index         1.3072        5.2388        .50000       -.13668E-05
   3  Normalizat    1.0359        .20157E-01    .24312E-03    .13421E-04
   4  Prefactor     .76856        .18221E-01    .25002E-03    .72346E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.30721
  Normalizat = 1.03589
  Prefactor  = 0.768559
 **********
 **   18 **HESSE 
 **********

 FCN=   7948.700     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      307 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1299.9        .25664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3072        5.3102        .50000       -.83093    
   3  Normalizat    1.0359        .64775E-01    .97248E-05   -.91838    
   4  Prefactor     .76856        .58603E-01    .10001E-04   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17032e-08
Minuit parameter uncertainties:
  1  0.000188782
  2  533.789
  3  0.0647797
  4  0.058608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271741': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7948.70014608
delta logL = 1.31141432576e-05

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  1.888e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.307e+00  5.338e+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:  7.686e-01  5.861e-02  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.036e+00  6.478e-02  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/271741/cmap_HighResolution_368928001_369187201_4FGL_J2221.9-3504_daily_bin500.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.06e-08', time_completed='2021-09-28 10:05:13.708348', job_id='271741', GAL2='0.77', fit_tolerance='1e-08', EG2='1.04', EG='1.04', time_epoch_completed='1632848713.71', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='1.31e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='500' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:05:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 271741: <4FGL_J2221.9-3504_daily_bin500> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin500> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:50:35 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:50:36 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:50:36 2021
Terminated at Tue Sep 28 10:05:14 2021
Results reported at Tue Sep 28 10:05:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin500 335.497 -35.0712 368928001 369187201 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 :                                   866.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             336.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   878 sec.
    Turnaround time :                            879 sec.

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

