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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin931
RA = 335.497, Dec = -35.0712
tmin = 480643201, tmax = 480902401
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='273393', job_status='RUN', time_executed='2021-09-28 09:56:48.774669', time_epoch_executed='1632848208.77' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273393

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273393/ft1_4FGL_J2221.9-3504_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273393/ft1_4FGL_J2221.9-3504_daily_bin931.fits outfile=/scratch/kocevski/273393/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin931.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=480643201.0 tmax=480902401.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.61
user 3.32
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273393/ft1_filtered_4FGL_J2221.9-3504_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/273393/ltcube_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.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/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits
.....................!
real 12.28
user 11.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273393/ft1_filtered_4FGL_J2221.9-3504_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/273393/ltcube_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.fits outfile=/scratch/kocevski/273393/expmap_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.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/273393/ltcube_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.fits
.....................!
real 189.29
user 184.79
sys 4.14

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/273393/ft1_filtered_4FGL_J2221.9-3504_daily_bin931.fits scfile=/scratch/kocevski/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits outfile=/scratch/kocevski/273393/cmap_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273393/ft1_filtered_4FGL_J2221.9-3504_daily_bin931.fits scfile=/scratch/kocevski/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits outfile=/scratch/kocevski/273393/cmap_HighResolution_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.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/273393/ft1_filtered_4FGL_J2221.9-3504_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/273393/ft2_4FGL_J2221.9-3504_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273393/Model_4FGL_J2221.9-3504_daily_bin931.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/273393/ft1_filtered_4FGL_J2221.9-3504_daily_bin931.fits.....................!
real 51.94
user 50.57
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.576       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.6618       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14211E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12452E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.0476       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4724       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.875       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.5562       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.0699       1.0000         .10000E-03   10000.    
    13 'norm      '    73.087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10110E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.5678       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5895       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6928       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4718       1.0000         .10000E-03   10000.    
    24 'norm      '    1.4266       1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.341       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0019       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .89440       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=   6320.885     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3033 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.576        5.7070        .70045E-08    .11784E-04
   2  Prefactor     .10000E-03    8.5556       -.15886E-06** at limit **
   3  Prefactor     .10000E-03    3.1665       -.43564E-07** at limit **
   4  norm          8.6611        7.1038        .10665E-07    .88843E-05
   5  Prefactor     .10002E-03    12.839        .10921E-05** at limit **
   6  Prefactor     .10000E-03    23.080        .59347E-06** at limit **
   7  norm          4.0512        3.9429        .90925E-07   -.31028E-04
   8  norm          1.4725        .42535        .35610E-08   -.59918E-04
   9  Prefactor     .10000E-03    4.5853        .12593E-06** at limit **
  10  Prefactor     24.896        18.112       -.10859E-05    .54623E-04
  11  Prefactor     3.5565        6.0400        .20082E-06    .28854E-05
  12  Prefactor     4.0701        3.4030        .10641E-06    .10270E-03
  13  norm          73.088        29.674       -.33435E-06   -.83266E-05
  14  Prefactor     .10000E-03    26.033       -.25656E-05** at limit **
  15  Prefactor     .10000E-03    4.8648       -.18596E-07** at limit **
  16  Prefactor     .10000E-03    5.8526       -.71558E-08** at limit **
  17  norm          3.5677        2.4424       -.97522E-07   -.12891E-03
  18  Prefactor     .10000E-03    27.189        .20702E-05** at limit **
  19  Prefactor     4.5873        13.459        .46624E-06   -.36041E-05
  20  Prefactor     1.6923        3.9320        .21289E-06    .28362E-04
  21  norm          .10000E-03    1.4563        .49396E-07** at limit **
  22  Prefactor     .10000E-03    6.5684        .13560E-06** at limit **
  23  Prefactor     4.4730        11.565        .53229E-05    .19693E-04
  24  norm          1.4264        .93376       -.54598E-06   -.27231E-03
  25  Prefactor     15.466        55.300       -.14492E-05    .45490E-05
  26  Prefactor     .10000E-03    10.188        .21006E-06** at limit **
  27  Normalizat    1.0016        .19342       -.11074E-05    .16341E-04
  28  Prefactor     .89467        .16141        .84613E-06   -.53241E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.576
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.66112
  Prefactor  = 0.000100017
  Prefactor  = 0.0001
  norm       = 4.0512
  norm       = 1.47254
  Prefactor  = 0.0001
  Prefactor  = 24.8965
  Prefactor  = 3.5565
  Prefactor  = 4.07005
  norm       = 73.0879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.56768
  Prefactor  = 0.0001
  Prefactor  = 4.58734
  Prefactor  = 1.69233
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.47297
  norm       = 1.42643
  Prefactor  = 15.4663
  Prefactor  = 0.0001
  Normalizat = 1.00164
  Prefactor  = 0.894673
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.885     FROM HESSE     STATUS=OK           527 CALLS     3560 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.576        5.7071        .92927E-04   -1.4846    
   2  Prefactor     .10000E-03    8.8220        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.1925        .13815E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.6611        7.0990        .13620E-03   -1.5119    
   5  Prefactor     .10002E-03    77.748        .53779E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    23.099        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.0512        3.9112        .14248E-03   -1.5305    
   8  norm          1.4725        .42555        .26016E-04   -1.5465    
   9  Prefactor     .10000E-03    4.5969        .16628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.896        18.122        .80318E-04   -1.4710    
  11  Prefactor     3.5565        6.0489        .21433E-03   -1.5331    
  12  Prefactor     4.0701        3.4049        .12808E-03   -1.5304    
  13  norm          73.088        29.688        .23481E-03   -1.3996    
  14  Prefactor     .10000E-03    26.073        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.8662        .17126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.8578        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.5677        2.4409        .99154E-04   -1.5330    
  18  Prefactor     .10000E-03    27.224        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5873        13.540        .18789E-03   -1.5280    
  20  Prefactor     1.6923        3.8931        .23321E-03   -1.5448    
  21  norm          .10000E-03    1.4619        .93680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.5843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.4730        11.640        .95204E-03   -1.5285    
  24  norm          1.4264        .93494        .45288E-04   -1.5469    
  25  Prefactor     15.466        55.382        .10226E-03   -1.4921    
  26  Prefactor     .10000E-03    10.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0016        .22763        .25546E-03   -.92976    
  28  Prefactor     .89467        .18955        .23920E-03   -.96327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.50761e-10
Minuit parameter uncertainties:
  1  5.7073
  2  2.44257e-05
  3  3.34345e-06
  4  7.09969
  5  0.00229192
  6  2.62484e-05
  7  3.91145
  8  0.425555
  9  1.3148e-05
  10  18.1256
  11  6.04993
  12  3.40511
  13  29.6943
  14  9.37803e-05
  15  1.33672e-06
  16  1.32822e-06
  17  2.44101
  18  7.14594e-05
  19  13.5487
  20  3.89364
  21  9.39204e-08
  22  3.15501e-06
  23  11.6454
  24  0.934954
  25  55.567
  26  6.19675e-06
  27  0.227849
  28  0.189686
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.556e+00  6.050e+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:  8.947e-01  1.897e-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.002e+00  2.278e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/273393/likelihoodResults_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.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) = 6320.76377338
delta logL = 0.12154123025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6320.74972552
delta logL = 0.135589087858

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2426       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1257       1.0000          .0000       10.000    
     3 'Normalizat'    .97077       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91467       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=   6320.750     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      248 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2328        34.403        .10051E-01    .58017E-03
   2  Index         4.1331        7.0264        .20469        .63260E-04
   3  Normalizat    .97101        .41359E-01    .45800E-01   -.43395E-04
   4  Prefactor     .91448        .36679E-01    .45192E-01   -.30685E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.23283
  Index      = 4.13306
  Normalizat = 0.971011
  Prefactor  = 0.91448
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.750     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      281 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2328        94.773        .10717E-03   -1.5486    
   2  Index         4.1331        5.1214        .11108E-01   -.17427    
   3  Normalizat    .97101        .17687        .25909E-03   -.94008    
   4  Prefactor     .91448        .15392        .23697E-03   -.95637    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.56665e-10
Minuit parameter uncertainties:
  1  21.6532
  2  13.9956
  3  0.176973
  4  0.153995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273393': 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) = 6320.74972284
delta logL = 0.135591768386

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.233e+00  2.165e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  4.133e+00  1.400e+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:  9.145e-01  1.540e-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:  9.710e-01  1.770e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.47
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/273393/cmap_HighResolution_480643201_480902401_4FGL_J2221.9-3504_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.05e-03', job_status='DONE', photon_flux_upper_limit='8.96e-08', time_completed='2021-09-28 10:09:08.263769', job_id='273393', GAL2='0.91', fit_tolerance='1e-08', EG2='0.97', EG='1.00', time_epoch_completed='1632848948.26', return_code2='102', ts='0.47', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='1.36e-01', ts2='0.78', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='931' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 273393: <4FGL_J2221.9-3504_daily_bin931> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin931 335.497 -35.0712 480643201 480902401 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 :                                   739.54 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             358.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            802 sec.

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

