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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin904
RA = 335.497, Dec = -35.0712
tmin = 473644801, tmax = 473904001
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='273349', job_status='RUN', time_executed='2021-09-28 09:57:19.975693', time_epoch_executed='1632848239.98' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273349/ft1_4FGL_J2221.9-3504_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273349/ft1_4FGL_J2221.9-3504_daily_bin904.fits outfile=/scratch/kocevski/273349/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin904.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=473644801.0 tmax=473904001.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.76
user 3.56
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.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/273349/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin904.fits evtable="EVENTS" outfile="/scratch/kocevski/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/273349/ltcube_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.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/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits
.....................!
real 11.56
user 11.21
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/273349/ltcube_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.fits outfile=/scratch/kocevski/273349/expmap_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.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/273349/ltcube_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.fits
.....................!
real 191.06
user 185.87
sys 4.88

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/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits scfile=/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits outfile=/scratch/kocevski/273349/cmap_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits scfile=/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits outfile=/scratch/kocevski/273349/cmap_HighResolution_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/273349/ft2_4FGL_J2221.9-3504_daily_bin904.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273349/Model_4FGL_J2221.9-3504_daily_bin904.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/273349/ft1_filtered_4FGL_J2221.9-3504_daily_bin904.fits.....................!
real 46.54
user 45.23
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.361       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.8730       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    18.201       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .35310E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.912       1.0000         .10000E-03   10000.    
     7 'norm      '    6.7639       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.712       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.182       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    89.037       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.235       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.4485       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12727E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10488E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10115E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .19650       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    10.911       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1078       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .97392       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=   5619.473     FROM MIGRAD    STATUS=CONVERGED    729 CALLS     3542 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.361        6.8417        .73142E-07    .55520E-04
   2  Prefactor     2.8713        9.7885        .12023E-05    .33545E-04
   3  Prefactor     .10000E-03    4.2655        .14870E-06** at limit **
   4  norm          18.202        9.9351        .57519E-07   -.55024E-04
   5  Prefactor     .10000E-03    46.050       -.72242E-05** at limit **
   6  Prefactor     14.649        111.63        .57297E-05    .24822E-04
   7  norm          6.7696        5.6294       -.73426E-07    .97107E-04
   8  norm          1.7493        .50826       -.69795E-08    .13296E-03
   9  Prefactor     17.721        18.402       -.27939E-07    .55167E-04
  10  Prefactor     18.160        28.067        .32541E-06   -.28586E-04
  11  Prefactor     .10000E-03    5.1798       -.22764E-06** at limit **
  12  Prefactor     .10000E-03    1.0841        .19559E-07** at limit **
  13  norm          88.948        40.951       -.10081E-05   -.22771E-03
  14  Prefactor     53.234        41.784        .16066E-06   -.21311E-05
  15  Prefactor     4.4267        32.151        .76960E-06   -.66844E-05
  16  Prefactor     .10000E-03    15.702       -.26237E-06** at limit **
  17  norm          .10000E-03    2.7793        .14624E-05** at limit **
  18  Prefactor     .10000E-03    33.435        .52082E-06** at limit **
  19  Prefactor     .10000E-03    7.9951       -.73211E-08** at limit **
  20  Prefactor     .10000E-03    2.1811        .84757E-08** at limit **
  21  norm          .10000E-03    2.4948        .12380E-06** at limit **
  22  Prefactor     .10000E-03    5.1293       -.22424E-07** at limit **
  23  Prefactor     .10000E-03    8.9555       -.21740E-06** at limit **
  24  norm          .19713        .52446        .39310E-06    .23155E-04
  25  Prefactor     .10000E-03    15.831       -.32112E-07** at limit **
  26  Prefactor     10.911        11.284       -.53013E-06   -.15582E-03
  27  Normalizat    1.1080        .21009        .27250E-06   -.23949E-03
  28  Prefactor     .97377        .18787       -.13597E-05   -.19562E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.361
  Prefactor  = 2.87126
  Prefactor  = 0.0001
  norm       = 18.2023
  Prefactor  = 0.000100002
  Prefactor  = 14.6494
  norm       = 6.76959
  norm       = 1.74928
  Prefactor  = 17.7206
  Prefactor  = 18.1605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 88.9476
  Prefactor  = 53.2344
  Prefactor  = 4.42668
  Prefactor  = 0.0001
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.197132
  Prefactor  = 0.0001
  Prefactor  = 10.9109
  Normalizat = 1.10795
  Prefactor  = 0.973766
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.473     FROM HESSE     STATUS=OK           519 CALLS     4061 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.361        6.8390        .99018E-04   -1.4899    
   2  Prefactor     2.8713        9.7800        .23980E-03   -1.5369    
   3  Prefactor     .10000E-03    4.2719        .15109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          18.202        9.9350        .93879E-04   -1.4854    
   5  Prefactor     .10000E-03    47.408        .21320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.649        114.16        .10372E-03   -1.4942    
   7  norm          6.7696        5.6022        .14135E-03   -1.5188    
   8  norm          1.7493        .50929        .27127E-04   -1.5443    
   9  Prefactor     17.721        18.306        .95167E-04   -1.4866    
  10  Prefactor     18.160        28.025        .93929E-04   -1.4855    
  11  Prefactor     .10000E-03    5.2139        .16647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.0888        .76208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          88.948        40.966        .21291E-03   -1.3819    
  14  Prefactor     53.234        41.794        .54972E-04   -1.4247    
  15  Prefactor     4.4267        32.726        .19092E-03   -1.5287    
  16  Prefactor     .10000E-03    15.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.8705        .20821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    33.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.1861        .10811E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.5146        .11541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    5.1330        .16577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.1374        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .19713        .52525        .79787E-03   -1.5619    
  25  Prefactor     .10000E-03    15.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     10.911        11.175        .12129E-03   -1.5047    
  27  Normalizat    1.1080        .25026        .26398E-03   -.89497    
  28  Prefactor     .97377        .22218        .25228E-03   -.93609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26115e-09
Minuit parameter uncertainties:
  1  6.83934
  2  9.78544
  3  6.78356e-07
  4  9.93586
  5  0.000594399
  6  82.006
  7  5.60266
  8  0.509294
  9  18.3117
  10  28.0454
  11  2.61019e-06
  12  8.35128e-07
  13  40.9795
  14  41.8174
  15  24.0905
  16  2.2488e-06
  17  0.00030124
  18  1.03513e-05
  19  1.82244e-06
  20  9.62977e-07
  21  4.44732e-06
  22  6.63496e-06
  23  5.14232e-05
  24  0.525262
  25  4.58178e-06
  26  11.1771
  27  0.250528
  28  0.222383
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  2.610e-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:  9.738e-01  2.224e-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  2.505e-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: 8.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273349/likelihoodResults_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.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) = 5619.47409788
delta logL = -0.000913522796509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5619.47318491
delta logL = -5.52643541596e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6759       1.0000          .0000       10.000    
     3 'Normalizat'    1.1078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97392       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=   5619.473     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    469.85        .16648E-02** at limit **
   2  Index         2.6666        5.9281        .50000        .10009E-05
   3  Normalizat    1.1080        .54280E-01    .26398E-03    .98622E-05
   4  Prefactor     .97377        .49243E-01    .25228E-03    .81113E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  Index      = 2.66659
  Normalizat = 1.10795
  Prefactor  = 0.973766
 **********
 **   18 **HESSE 
 **********

 FCN=   5619.473     FROM HESSE     STATUS=OK            29 CALLS      271 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    16.935        .33296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6666        8.4711        .50000       -.48554    
   3  Normalizat    1.1080        .23906        .10559E-04   -.89497    
   4  Prefactor     .97377        .21689        .10091E-04   -.93609    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.14355e-09
Minuit parameter uncertainties:
  1  0.000838595
  2  350.351
  3  0.239295
  4  0.217082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273349': 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) = 5619.47318436
delta logL = 1.90630089492e-09

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  8.386e-04  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.667e+00  3.504e+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:  9.738e-01  2.171e-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  2.393e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/273349/cmap_HighResolution_473644801_473904001_4FGL_J2221.9-3504_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-03', job_status='DONE', photon_flux_upper_limit='8.35e-08', time_completed='2021-09-28 10:09:21.552384', job_id='273349', GAL2='0.97', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1632848961.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.91e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='904' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:09:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 273349: <4FGL_J2221.9-3504_daily_bin904> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin904 335.497 -35.0712 473644801 473904001 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             354.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            821 sec.

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

