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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1368
RA = 335.497, Dec = -35.0712
tmin = 593913601, tmax = 594172801
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='276042', job_status='RUN', time_executed='2021-09-28 10:05:49.826858', time_epoch_executed='1632848749.83' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/276042

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/276042/ft1_4FGL_J2221.9-3504_daily_bin1368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/276042/ft1_4FGL_J2221.9-3504_daily_bin1368.fits outfile=/scratch/kocevski/276042/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1368.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=593913601.0 tmax=594172801.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.58
user 3.33
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/276042/ft1_filtered_4FGL_J2221.9-3504_daily_bin1368.fits" evtable="EVENTS" scfile=/scratch/kocevski/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits sctable="SC_DATA" outfile=/scratch/kocevski/276042/ltcube_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.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/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits
.....................!
real 11.88
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/276042/ft1_filtered_4FGL_J2221.9-3504_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits sctable="SC_DATA" expcube=/scratch/kocevski/276042/ltcube_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.fits outfile=/scratch/kocevski/276042/expmap_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.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/276042/ltcube_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.fits
.....................!
real 190.25
user 184.89
sys 4.98

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/276042/ft1_filtered_4FGL_J2221.9-3504_daily_bin1368.fits scfile=/scratch/kocevski/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits outfile=/scratch/kocevski/276042/cmap_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/276042/ft1_filtered_4FGL_J2221.9-3504_daily_bin1368.fits scfile=/scratch/kocevski/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits outfile=/scratch/kocevski/276042/cmap_HighResolution_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.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/276042/ft1_filtered_4FGL_J2221.9-3504_daily_bin1368.fits evtable="EVENTS" scfile=/scratch/kocevski/276042/ft2_4FGL_J2221.9-3504_daily_bin1368.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/276042/Model_4FGL_J2221.9-3504_daily_bin1368.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/276042/ft1_filtered_4FGL_J2221.9-3504_daily_bin1368.fits.....................!
real 58.21
user 56.85
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.652       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10684E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2281       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45057       1.0000         .10000E-03   10000.    
    13 'norm      '    8.3142       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.831       1.0000         .10000E-03   10000.    
    16 'Prefactor '    20.590       1.0000         .10000E-03   10000.    
    17 'norm      '    3.0335       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.0180       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4576       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5845       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.1381       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5405       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0756       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .23812E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .62708       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1140       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.

 FCN=   7947.988     FROM MIGRAD    STATUS=CONVERGED    695 CALLS     3515 TOTAL
                     EDM=   .63E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.651        5.8157         .0000        .40496E-03
   2  Prefactor     .10000E-03    2.4803         .0000    ** at limit **
   3  Prefactor     .10000E-03    2.4691         .0000    ** at limit **
   4  norm          .10000E-03    10.305         .0000    ** at limit **
   5  Prefactor     .10000E-03    4.0689         .0000    ** at limit **
   6  Prefactor     .10000E-03    9.1228         .0000    ** at limit **
   7  norm          .10000E-03    .77561         .0000    ** at limit **
   8  norm          1.2280        .30104         .0000       -.11409E-03
   9  Prefactor     .10000E-03    2.0829         .0000    ** at limit **
  10  Prefactor     .10000E-03    2.9214         .0000    ** at limit **
  11  Prefactor     .10000E-03    2.9240         .0000    ** at limit **
  12  Prefactor     .45046        1.7898         .0000        .14655E-02
  13  norm          8.3158        14.254         .0000        .69291E-04
  14  Prefactor     .10000E-03    10.621         .0000    ** at limit **
  15  Prefactor     10.831        12.730         .0000        .69058E-03
  16  Prefactor     20.590        16.430         .0000        .57463E-04
  17  norm          3.0341        1.7620         .0000        .71625E-04
  18  Prefactor     .10000E-03    26.081         .0000    ** at limit **
  19  Prefactor     6.0203        8.9037         .0000        .20126E-03
  20  Prefactor     3.4579        4.9106         .0000        .89855E-02
  21  norm          1.5856        2.3988         .0000        .61243E-03
  22  Prefactor     5.1481        11.196         .0000        .25604E-03
  23  Prefactor     2.5270        17.422         .0000        .13165E-01
  24  norm          1.0755        .67924         .0000        .43297E-03
  25  Prefactor     .10000E-03    16.824         .0000    ** at limit **
  26  Prefactor     .10000E-03    8.9995         .0000    ** at limit **
  27  Normalizat    .62698        .14830         .0000        .35346E-04
  28  Prefactor     1.1141        .13118         .0000        .20334E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.6512
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.22805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.450464
  norm       = 8.31577
  Prefactor  = 0.000100001
  Prefactor  = 10.8309
  Prefactor  = 20.5896
  norm       = 3.03409
  Prefactor  = 0.0001
  Prefactor  = 6.02027
  Prefactor  = 3.45793
  norm       = 1.58558
  Prefactor  = 5.14808
  Prefactor  = 2.52699
  norm       = 1.07549
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.626978
  Prefactor  = 1.11408
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.988     FROM HESSE     STATUS=OK           523 CALLS     4038 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.651        5.8153        .80680E-04   -1.4715    
   2  Prefactor     .10000E-03    2.5045        .13707E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4914        .13678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    10.764        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.0757        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .78101        .76629E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2280        .30144        .23445E-04   -1.5486    
   9  Prefactor     .10000E-03    2.0851        .12565E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.9235        .14881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.9877        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .45046        3.2974        .22350E-02   -1.5574    
  13  norm          8.3158        14.243        .13903E-03   -1.5131    
  14  Prefactor     .10000E-03    10.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     10.831        12.725        .60869E-03   -1.5050    
  16  Prefactor     20.590        16.448        .88270E-04   -1.4800    
  17  norm          3.0341        1.7574        .86987E-04   -1.5360    
  18  Prefactor     .10000E-03    26.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.0203        8.9106        .16368E-03   -1.5217    
  20  Prefactor     3.4579        4.8965        .10875E-02   -1.5336    
  21  norm          1.5856        2.3271        .15486E-03   -1.5456    
  22  Prefactor     5.1481        10.461        .17736E-03   -1.5254    
  23  Prefactor     2.5270        13.199        .12811E-02   -1.5390    
  24  norm          1.0755        .69382        .41763E-04   -1.5501    
  25  Prefactor     .10000E-03    16.839        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    46.588        .42556E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .62698        .17136        .27769E-03   -1.0685    
  28  Prefactor     1.1141        .15310        .20128E-03   -.89018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.2732e-10
Minuit parameter uncertainties:
  1  5.81547
  2  2.68853e-07
  3  2.16971e-07
  4  0.000167697
  5  3.5208e-07
  6  3.03908e-06
  7  6.34702e-08
  8  0.30144
  9  2.25875e-07
  10  2.81646e-07
  11  9.4319e-07
  12  2.43742
  13  14.2491
  14  0.000165712
  15  12.7285
  16  16.4518
  17  1.75741
  18  2.88067e-05
  19  8.91252
  20  4.89707
  21  2.32724
  22  10.4643
  23  11.5545
  24  0.693827
  25  1.40095e-05
  26  2.19418e-05
  27  0.1715
  28  0.15316
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  9.432e-07  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.114e+00  1.532e-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:  6.270e-01  1.715e-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: 4.43e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.48e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/276042/likelihoodResults_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.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) = 7947.98911556
delta logL = -0.00159618674297

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7947.98751967
delta logL = -2.97134647553e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10120E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6803       1.0000          .0000       10.000    
     3 'Normalizat'    .62694       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1141       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=   7947.988     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      236 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10018E-03    137.67        .14884E-02** at limit **
   2  Index         2.7161        5.7692        .50000       -.81090E-05
   3  Normalizat    .62698        .24458E-01    .27769E-03    .27962E-04
   4  Prefactor     1.1141        .23234E-01    .20128E-03    .32229E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100177
  Index      = 2.71613
  Normalizat = 0.626978
  Prefactor  = 1.11408
 **********
 **   18 **HESSE 
 **********

 FCN=   7947.988     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10018E-03    519.49        .29767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7161        6.4957        .50000       -.47436    
   3  Normalizat    .62698        .63996E-01    .11108E-04   -1.0685    
   4  Prefactor     1.1141        .60759E-01    .40255E-04   -.89018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.31056e-08
Minuit parameter uncertainties:
  1  0.0193565
  2  1745.21
  3  0.0640035
  4  0.0607624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/276042': 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) = 7947.98751932
delta logL = 5.39239408681e-08

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.002e-04  1.936e-02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.716e+00  1.745e+03  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.114e+00  6.076e-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:  6.270e-01  6.400e-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/276042/cmap_HighResolution_593913601_594172801_4FGL_J2221.9-3504_daily_bin1368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.48e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-28 10:20:42.119884', job_id='276042', GAL2='1.11', fit_tolerance='1e-08', EG2='0.63', EG='0.63', time_epoch_completed='1632849642.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='5.39e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='1368' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 276042: <4FGL_J2221.9-3504_daily_bin1368> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1368> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep 28 10:05:18 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:05:20 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:05:20 2021
Terminated at Tue Sep 28 10:20:42 2021
Results reported at Tue Sep 28 10:20:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1368 335.497 -35.0712 593913601 594172801 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 :                                   890.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            924 sec.

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

