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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1127
RA = 335.497, Dec = -35.0712
tmin = 531446401, tmax = 531705601
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='274704', job_status='RUN', time_executed='2021-09-28 10:02:01.788708', time_epoch_executed='1632848521.79' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274704

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274704/ft1_4FGL_J2221.9-3504_daily_bin1127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274704/ft1_4FGL_J2221.9-3504_daily_bin1127.fits outfile=/scratch/kocevski/274704/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1127.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=531446401.0 tmax=531705601.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.59
user 3.35
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/274704/ft1_filtered_4FGL_J2221.9-3504_daily_bin1127.fits" evtable="EVENTS" scfile=/scratch/kocevski/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits sctable="SC_DATA" outfile=/scratch/kocevski/274704/ltcube_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.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/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits
.....................!
real 11.98
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274704/ft1_filtered_4FGL_J2221.9-3504_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits sctable="SC_DATA" expcube=/scratch/kocevski/274704/ltcube_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.fits outfile=/scratch/kocevski/274704/expmap_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.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/274704/ltcube_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.fits
.....................!
real 191.24
user 185.47
sys 5.45

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/274704/ft1_filtered_4FGL_J2221.9-3504_daily_bin1127.fits scfile=/scratch/kocevski/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits outfile=/scratch/kocevski/274704/cmap_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/274704/ft1_filtered_4FGL_J2221.9-3504_daily_bin1127.fits scfile=/scratch/kocevski/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits outfile=/scratch/kocevski/274704/cmap_HighResolution_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274704/ft1_filtered_4FGL_J2221.9-3504_daily_bin1127.fits evtable="EVENTS" scfile=/scratch/kocevski/274704/ft2_4FGL_J2221.9-3504_daily_bin1127.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274704/Model_4FGL_J2221.9-3504_daily_bin1127.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/274704/ft1_filtered_4FGL_J2221.9-3504_daily_bin1127.fits.....................!
real 47.59
user 46.36
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    27.778       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.9570       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0274       1.0000         .10000E-03   10000.    
     4 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.399       1.0000         .10000E-03   10000.    
     7 'norm      '    .33925E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8484       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.4187       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.981       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.3944       1.0000         .10000E-03   10000.    
    13 'norm      '    14.757       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    40.043       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.861       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.8876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.280       1.0000         .10000E-03   10000.    
    21 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10243E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.4358       1.0000         .10000E-03   10000.    
    25 'Prefactor '    109.82       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2843       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .65060       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=   5446.619     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     4121 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          27.780        7.7417        .11553E-05    .60754E-04
   2  Prefactor     3.9580        6.5262       -.44929E-05   -.30729E-03
   3  Prefactor     5.0288        7.5517        .62393E-07   -.12345E-03
   4  norm          .10000E-03    5.3512       -.49514E-06** at limit **
   5  Prefactor     .10006E-03    78.875       -.57694E-04** at limit **
   6  Prefactor     18.348        97.895       -.52584E-04   -.34972E-05
   7  norm          .10001E-03    3.6577        .26714E-05** at limit **
   8  norm          2.8480        .68559        .10275E-06   -.43067E-02
   9  Prefactor     6.4229        14.901        .15616E-05   -.22679E-03
  10  Prefactor     .10002E-03    81.476        .62447E-04** at limit **
  11  Prefactor     13.988        11.866        .18929E-06   -.80881E-04
  12  Prefactor     5.3962        3.8524       -.30307E-06    .52359E-04
  13  norm          14.751        17.151       -.12543E-05   -.37748E-04
  14  Prefactor     .10000E-03    23.882       -.27126E-05** at limit **
  15  Prefactor     40.063        30.987       -.11691E-04    .87415E-05
  16  Prefactor     32.865        30.781        .20424E-05    .29424E-04
  17  norm          .10000E-03    1.4290       -.26141E-06** at limit **
  18  Prefactor     3.0726        231.00        .96296E-05   -.20218E-04
  19  Prefactor     11.608        20.313        .15281E-05   -.11522E-04
  20  Prefactor     13.289        12.354       -.84866E-06    .21409E-04
  21  norm          .10000E-03    3.1995        .22765E-06** at limit **
  22  Prefactor     .10000E-03    31.126       -.17031E-05** at limit **
  23  Prefactor     .10000E-03    30.704        .39052E-05** at limit **
  24  norm          6.4350        1.3315       -.13892E-06   -.47981E-03
  25  Prefactor     109.73        83.855       -.46594E-04    .69020E-05
  26  Prefactor     .10000E-03    8.3236       -.44021E-07** at limit **
  27  Normalizat    1.2834        .23637        .63839E-05   -.73325E-03
  28  Prefactor     .65108        .17621        .15111E-05   -.16776E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 27.7805
  Prefactor  = 3.95797
  Prefactor  = 5.02876
  norm       = 0.000100004
  Prefactor  = 0.000100056
  Prefactor  = 18.3477
  norm       = 0.000100015
  norm       = 2.84796
  Prefactor  = 6.42287
  Prefactor  = 0.000100023
  Prefactor  = 13.9879
  Prefactor  = 5.3962
  norm       = 14.7506
  Prefactor  = 0.0001
  Prefactor  = 40.0631
  Prefactor  = 32.8648
  norm       = 0.0001
  Prefactor  = 3.07261
  Prefactor  = 11.6075
  Prefactor  = 13.2895
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.43496
  Prefactor  = 109.733
  Prefactor  = 0.0001
  Normalizat = 1.28341
  Prefactor  = 0.651077
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.619     FROM HESSE     STATUS=OK           525 CALLS     4646 TOTAL
                     EDM=   .51E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          27.780        7.7428        .76013E-04   -1.4653    
   2  Prefactor     3.9580        6.5167        .20278E-03   -1.5310    
   3  Prefactor     5.0288        7.5297        .17934E-03   -1.5259    
   4  norm          .10000E-03    18.706        .32796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    77.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.348        89.788        .93374E-04   -1.4851    
   7  norm          .10001E-03    13.041        .24554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8480        .67129        .27231E-04   -1.5370    
   9  Prefactor     6.4229        14.871        .15842E-03   -1.5201    
  10  Prefactor     .10002E-03    83.500        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.988        11.931        .10712E-03   -1.4960    
  12  Prefactor     5.3962        3.8628        .11748E-03   -1.5243    
  13  norm          14.751        17.139        .10426E-03   -1.4940    
  14  Prefactor     .10000E-03    23.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     40.063        30.981        .63344E-04   -1.4441    
  16  Prefactor     32.865        30.876        .69901E-04   -1.4561    
  17  norm          .10000E-03    1.4329        .85695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.0726        229.48        .23916E-03   -1.5357    
  19  Prefactor     11.608        20.543        .11767E-03   -1.5026    
  20  Prefactor     13.289        12.420        .10992E-03   -1.4979    
  21  norm          .10000E-03    3.2228        .12879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.4350        1.3221        .36766E-04   -1.5201    
  25  Prefactor     109.73        84.007        .19190E-03   -1.3609    
  26  Prefactor     .10000E-03    8.3302        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2834        .28153        .26507E-03   -.84063    
  28  Prefactor     .65108        .20571        .29803E-03   -1.0548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.06973e-09
Minuit parameter uncertainties:
  1  7.74306
  2  6.51782
  3  7.53115
  4  0.00051804
  5  0.00417131
  6  81.3733
  7  0.000870941
  8  0.671288
  9  14.8791
  10  0.00278046
  11  11.9328
  12  3.86296
  13  17.1447
  14  1.94842e-05
  15  30.9935
  16  30.8906
  17  1.78711e-05
  18  53.32
  19  20.5553
  20  12.4229
  21  1.51482e-05
  22  6.23893e-05
  23  0.000195775
  24  1.32208
  25  84.0981
  26  1.01162e-05
  27  0.281871
  28  0.205949
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.399e+01  1.193e+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:  6.511e-01  2.059e-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.283e+00  2.819e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.12
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 6.75e-08 +/- 5.75e-08
Energy Flux (Fixed Index): 1.65e-05 +/- 1.41e-05

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

Saving results to:
/scratch/kocevski/274704/likelihoodResults_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.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) = 5446.61913889
delta logL = 0.000127329096358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5446.61904187
delta logL = 0.000224346472351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.801       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6977       1.0000          .0000       10.000    
     3 'Normalizat'    1.2824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65164       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=   5446.619     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      258 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.800        15.495        .10782E-03    .28111E-03
   2  Index         2.6976        1.0334        .91648E-02    .55557E-04
   3  Normalizat    1.2825        .25032        .26515E-03   -.20114E-03
   4  Prefactor     .65175        .20421        .29789E-03   -.19506E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7998
  Index      = 2.69763
  Normalizat = 1.2825
  Prefactor  = 0.651753
 **********
 **   18 **HESSE 
 **********

 FCN=   5446.619     FROM HESSE     STATUS=OK            25 CALLS      283 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.800        14.697        .43128E-05   -1.4965    
   2  Index         2.6976        .97999        .36659E-03   -.47853    
   3  Normalizat    1.2825        .25036        .53029E-04   -.84090    
   4  Prefactor     .65175        .20411        .11916E-04   -1.0545    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.92991e-10
Minuit parameter uncertainties:
  1  14.7012
  2  0.988131
  3  0.250594
  4  0.204344
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274704': 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) = 5446.61904019
delta logL = 0.000226025288612

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.380e+01  1.470e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.698e+00  9.881e-01  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:  6.518e-01  2.043e-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.282e+00  2.506e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.10
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 2.70 +/- 0.99
Photon Flux (Free Index): 6.80e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.64e-05 +/- 1.52e-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/274704/cmap_HighResolution_531446401_531705601_4FGL_J2221.9-3504_daily_bin1127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.47e-02', comment='SUCCESS', photon_flux='6.75e-08', energy_flux2='1.64e-05', photon_flux_error='5.75e-08', dlogl='2.26e-04', energy_flux='1.65e-05', photon_flux2='6.80e-08', job_status='DONE', time_completed='2021-09-28 10:14:45.249675', photon_index_error2='0.99', photon_index2='2.70', ts='2.12', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.87e-07', energy_flux_error2='1.52e-05', EG='1.28', time_epoch_completed='1632849285.25', return_code='0', job_id='274704', GAL2='0.65', EG2='1.28', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='6.26e-08', ts2='2.10', photon_index='2.68' WHERE bin_id='1127' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:14:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 274704: <4FGL_J2221.9-3504_daily_bin1127> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1127> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 28 10:00:29 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:00:31 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:31 2021
Terminated at Tue Sep 28 10:14:45 2021
Results reported at Tue Sep 28 10:14:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1127 335.497 -35.0712 531446401 531705601 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 :                                   763.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   854 sec.
    Turnaround time :                            856 sec.

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

