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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin844
RA = 335.497, Dec = -35.0712
tmin = 458092801, tmax = 458352001
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='273254', job_status='RUN', time_executed='2021-09-28 09:58:52.619851', time_epoch_executed='1632848332.62' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='844'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273254

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273254/ft1_4FGL_J2221.9-3504_daily_bin844.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273254/ft2_4FGL_J2221.9-3504_daily_bin844.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273254/ft1_4FGL_J2221.9-3504_daily_bin844.fits outfile=/scratch/kocevski/273254/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin844.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=458092801.0 tmax=458352001.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.62
user 3.38
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273254/ft1_filtered_4FGL_J2221.9-3504_daily_bin844.fits" evtable="EVENTS" scfile=/scratch/kocevski/273254/ft2_4FGL_J2221.9-3504_daily_bin844.fits sctable="SC_DATA" outfile=/scratch/kocevski/273254/ltcube_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.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/273254/ft2_4FGL_J2221.9-3504_daily_bin844.fits
.....................!
real 11.98
user 11.66
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273254/ft1_filtered_4FGL_J2221.9-3504_daily_bin844.fits evtable="EVENTS" scfile=/scratch/kocevski/273254/ft2_4FGL_J2221.9-3504_daily_bin844.fits sctable="SC_DATA" expcube=/scratch/kocevski/273254/ltcube_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.fits outfile=/scratch/kocevski/273254/expmap_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.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/273254/ltcube_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.fits
.....................!
real 189.99
user 185.52
sys 4.11

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/273254/ft1_filtered_4FGL_J2221.9-3504_daily_bin844.fits scfile=/scratch/kocevski/273254/ft2_4FGL_J2221.9-3504_daily_bin844.fits outfile=/scratch/kocevski/273254/cmap_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.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/273254/ft1_filtered_4FGL_J2221.9-3504_daily_bin844.fits scfile=/scratch/kocevski/273254/ft2_4FGL_J2221.9-3504_daily_bin844.fits outfile=/scratch/kocevski/273254/cmap_HighResolution_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.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.56
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3469       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10508E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    54.862       1.0000         .10000E-03   10000.    
     7 'norm      '    6.8112       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4565       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3234       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .55382       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.2461       1.0000         .10000E-03   10000.    
    13 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.907       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.6107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .22002E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.508       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    67.849       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1215       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .70929       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=   5739.745     FROM MIGRAD    STATUS=CONVERGED    698 CALLS     3523 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.654        5.8335        .25172E-07   -.52654E-05
   2  Prefactor     .10000E-03    4.1440        .23336E-07** at limit **
   3  Prefactor     12.872        8.3577        .21220E-07   -.66487E-05
   4  norm          2.3476        5.7844        .11318E-06   -.25208E-04
   5  Prefactor     .10000E-03    20.188       -.16396E-05** at limit **
   6  Prefactor     54.898        60.458       -.35280E-06   -.29991E-04
   7  norm          6.8107        5.6167        .67583E-07    .34645E-04
   8  norm          1.4564        .45460       -.38839E-08    .27842E-03
   9  Prefactor     1.3232        6.8730        .37534E-05   -.14111E-03
  10  Prefactor     .10000E-03    8.8805       -.10981E-07** at limit **
  11  Prefactor     .55578        4.7597       -.72944E-06   -.76548E-04
  12  Prefactor     6.2470        4.2234        .15205E-07    .63304E-06
  13  norm          .10000E-03    6.7507        .85873E-07** at limit **
  14  Prefactor     .10000E-03    15.057       -.34666E-07** at limit **
  15  Prefactor     19.899        23.612       -.39264E-06   -.12058E-03
  16  Prefactor     .10000E-03    8.1012       -.10043E-06** at limit **
  17  norm          2.6038        2.2199       -.26535E-06   -.55727E-03
  18  Prefactor     .10000E-03    41.526        .28946E-05** at limit **
  19  Prefactor     5.1851        12.623        .15147E-06   -.47455E-04
  20  Prefactor     .10000E-03    2.0563        .79819E-08** at limit **
  21  norm          .10000E-03    1.3273        .14791E-06** at limit **
  22  Prefactor     .10000E-03    5.9237        .24562E-06** at limit **
  23  Prefactor     33.509        10.776       -.12523E-05   -.73315E-03
  24  norm          .10000E-03    .28929        .38269E-06** at limit **
  25  Prefactor     67.803        53.366        .79242E-06    .36674E-04
  26  Prefactor     .10000E-03    6.9358        .26786E-06** at limit **
  27  Normalizat    1.1214        .19529        .26299E-06   -.32397E-03
  28  Prefactor     .70931        .15746       -.43562E-06   -.14687E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 13.6542
  Prefactor  = 0.0001
  Prefactor  = 12.8717
  norm       = 2.34762
  Prefactor  = 0.000100004
  Prefactor  = 54.8984
  norm       = 6.8107
  norm       = 1.45642
  Prefactor  = 1.32323
  Prefactor  = 0.0001
  Prefactor  = 0.555784
  Prefactor  = 6.24703
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8988
  Prefactor  = 0.0001
  norm       = 2.60381
  Prefactor  = 0.000100003
  Prefactor  = 5.18507
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 33.509
  norm       = 0.0001
  Prefactor  = 67.8031
  Prefactor  = 0.0001
  Normalizat = 1.12141
  Prefactor  = 0.709306
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.745     FROM HESSE     STATUS=OK           531 CALLS     4054 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.654        5.8349        .54199E-03   -1.4969    
   2  Prefactor     .10000E-03    4.1686        .15052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.872        8.3569        .11165E-03   -1.4990    
   4  norm          2.3476        5.7579        .26759E-03   -1.5402    
   5  Prefactor     .10000E-03    19.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     54.898        60.356        .54155E-04   -1.4225    
   7  norm          6.8107        5.6270        .14063E-03   -1.5186    
   8  norm          1.4564        .45657        .26225E-04   -1.5467    
   9  Prefactor     1.3232        7.0654        .19114E-02   -1.5478    
  10  Prefactor     .10000E-03    8.9047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55578        20.934        .29988E-02   -1.5559    
  12  Prefactor     6.2470        4.2435        .12164E-03   -1.5208    
  13  norm          .10000E-03    6.7534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    15.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     19.899        23.615        .89770E-04   -1.4816    
  16  Prefactor     .10000E-03    8.1112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.6038        2.3049        .93450E-04   -1.5385    
  18  Prefactor     .10000E-03    46.573        .14415       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.1851        12.642        .17659E-03   -1.5253    
  20  Prefactor     .10000E-03    2.0625        .10609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.3317        .85275E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.9346        .18014E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.509        11.478        .69225E-04   -1.4550    
  24  norm          .10000E-03    .41072        .76138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     67.803        53.453        .24364E-03   -1.4059    
  26  Prefactor     .10000E-03    6.9543        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1214        .22995        .24379E-03   -.89067    
  28  Prefactor     .70931        .18411        .25684E-03   -1.0316    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.79009e-08
Minuit parameter uncertainties:
  1  5.83511
  2  6.68248e-06
  3  8.35764
  4  5.75921
  5  0.000564058
  6  60.4236
  7  5.62746
  8  0.45657
  9  6.11618
  10  8.74987e-06
  11  6.82399
  12  4.24367
  13  2.56699e-06
  14  2.84016e-06
  15  23.6262
  16  1.42647e-05
  17  2.30496
  18  0.000770513
  19  12.6485
  20  1.82886e-06
  21  6.22063e-07
  22  1.78647e-06
  23  11.479
  24  9.85541e-06
  25  53.4904
  26  6.89099e-06
  27  0.230156
  28  0.184265
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  5.558e-01  6.824e+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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  7.093e-01  1.843e-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.121e+00  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/273254/likelihoodResults_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.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) = 5739.7352351
delta logL = 0.00926926670309

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5739.7142313
delta logL = 0.0302730630237

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10433       1.0000         .10000E-03   10000.    
     2 'Index     '    5.1604       1.0000          .0000       10.000    
     3 'Normalizat'    1.1082       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71710       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.

 FCN=   5739.714     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      278 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10064        1.8181        .19054E-01    .12545E-02
   2  Index         5.1841        2.0297        .50000       -.11495E-05
   3  Normalizat    1.1083        .13487E-01    .55425E-01    .87451E-05
   4  Prefactor     .71711        .11611E-01    .42628E-01   -.13654E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.100641
  Index      = 5.18415
  Normalizat = 1.10827
  Prefactor  = 0.717108
 **********
 **   18 **HESSE 
 **********

 FCN=   5739.714     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      313 TOTAL
                     EDM=   .83E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10064        72.551        .69038E-03   -1.5645    
   2  Index         5.1841        7.1365        .10709E-01    .36838E-01
   3  Normalizat    1.1083        .12404        .24508E-03   -.89487    
   4  Prefactor     .71711        .10322        .25559E-03   -1.0286    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.33876e-11
Minuit parameter uncertainties:
  1  5.4082
  2  36.363
  3  0.124069
  4  0.103243
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273254': 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) = 5739.71422647
delta logL = 0.0302778973028

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.006e-01  5.408e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  5.184e+00  3.636e+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:  7.171e-01  1.032e-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.108e+00  1.241e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/273254/cmap_HighResolution_458092801_458352001_4FGL_J2221.9-3504_daily_bin844.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.13e-03', job_status='DONE', photon_flux_upper_limit='9.07e-08', time_completed='2021-09-28 10:11:07.504435', job_id='273254', GAL2='0.72', fit_tolerance='1e-08', EG2='1.11', EG='1.12', time_epoch_completed='1632849067.5', return_code2='102', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.71', dlogl='3.03e-02', ts2='0.07', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='844' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:11:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 273254: <4FGL_J2221.9-3504_daily_bin844> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin844> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep 28 09:55:34 2021
Job was executed on host(s) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:55:35 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:55:35 2021
Terminated at Tue Sep 28 10:11:07 2021
Results reported at Tue Sep 28 10:11:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin844 335.497 -35.0712 458092801 458352001 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 :                                   735.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   932 sec.
    Turnaround time :                            933 sec.

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

