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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin722
RA = 335.497, Dec = -35.0712
tmin = 426470401, tmax = 426729601
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='272096', job_status='RUN', time_executed='2021-09-28 09:51:22.888101', time_epoch_executed='1632847882.89' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='722'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272096

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272096/ft1_4FGL_J2221.9-3504_daily_bin722.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272096/ft2_4FGL_J2221.9-3504_daily_bin722.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272096/ft1_4FGL_J2221.9-3504_daily_bin722.fits outfile=/scratch/kocevski/272096/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin722.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=426470401.0 tmax=426729601.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 4.23
user 3.99
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272096/ft1_filtered_4FGL_J2221.9-3504_daily_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/272096/ft2_4FGL_J2221.9-3504_daily_bin722.fits sctable="SC_DATA" expcube=/scratch/kocevski/272096/ltcube_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.fits outfile=/scratch/kocevski/272096/expmap_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.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/272096/ltcube_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.fits
.....................!
real 191.49
user 185.60
sys 5.55

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/272096/ft1_filtered_4FGL_J2221.9-3504_daily_bin722.fits scfile=/scratch/kocevski/272096/ft2_4FGL_J2221.9-3504_daily_bin722.fits outfile=/scratch/kocevski/272096/cmap_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272096/ft1_filtered_4FGL_J2221.9-3504_daily_bin722.fits scfile=/scratch/kocevski/272096/ft2_4FGL_J2221.9-3504_daily_bin722.fits outfile=/scratch/kocevski/272096/cmap_HighResolution_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.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/272096/ft1_filtered_4FGL_J2221.9-3504_daily_bin722.fits evtable="EVENTS" scfile=/scratch/kocevski/272096/ft2_4FGL_J2221.9-3504_daily_bin722.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/272096/Model_4FGL_J2221.9-3504_daily_bin722.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/272096/ft1_filtered_4FGL_J2221.9-3504_daily_bin722.fits.....................!
real 41.81
user 40.43
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3142       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.6229       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.933       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    15.060       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6451       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.701       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    7.0546       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .84587E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    20.029       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    21.104       1.0000         .10000E-03   10000.    
    17 'norm      '    1.2442       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .99237E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.183       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7729       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    33.028       1.0000         .10000E-03   10000.    
    24 'norm      '    .10640E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10262E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2251       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .62598       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=   4650.693     FROM MIGRAD    STATUS=CONVERGED    728 CALLS     3646 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3140        4.4175       -.75457E-08    .10472E-04
   2  Prefactor     7.6238        12.608       -.28481E-05    .30271E-03
   3  Prefactor     18.932        14.491        .87702E-06    .68381E-04
   4  norm          .10000E-03    3.1803        .22664E-08** at limit **
   5  Prefactor     .10000E-03    14.765        .79542E-07** at limit **
   6  Prefactor     .10001E-03    37.224        .90279E-06** at limit **
   7  norm          15.061        7.7445       -.16605E-06    .35752E-05
   8  norm          1.6450        .53326       -.32850E-08    .17961E-04
   9  Prefactor     13.699        15.578       -.22611E-06    .63679E-04
  10  Prefactor     .10000E-03    9.2352        .14156E-06** at limit **
  11  Prefactor     7.0519        10.966        .32755E-06   -.39177E-04
  12  Prefactor     .10001E-03    34.608        .98542E-05** at limit **
  13  norm          20.029        19.336       -.18356E-06   -.50907E-04
  14  Prefactor     .10000E-03    67.920        .11462E-06** at limit **
  15  Prefactor     1.7932        62.970       -.32186E-05    .10696E-03
  16  Prefactor     21.099        37.357        .94968E-06   -.13014E-04
  17  norm          1.2448        2.3302       -.15650E-05   -.16018E-02
  18  Prefactor     .10011E-03    85.949        .25257E-05** at limit **
  19  Prefactor     .10000E-03    13.528        .39047E-06** at limit **
  20  Prefactor     12.184        9.2787       -.62227E-07    .14948E-04
  21  norm          3.7711        5.0005       -.22800E-06   -.11268E-03
  22  Prefactor     .10000E-03    12.009        .34002E-06** at limit **
  23  Prefactor     33.036        16.793       -.24773E-06   -.57916E-03
  24  norm          .10000E-03    .78908        .39911E-06** at limit **
  25  Prefactor     .10000E-03    24.495       -.15546E-06** at limit **
  26  Prefactor     .10001E-03    38.225        .94378E-07** at limit **
  27  Normalizat    1.2251        .23681        .92218E-06   -.24774E-03
  28  Prefactor     .62604        .17831       -.70153E-06   -.39837E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.31395
  Prefactor  = 7.62382
  Prefactor  = 18.9324
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  norm       = 15.0615
  norm       = 1.64502
  Prefactor  = 13.6994
  Prefactor  = 0.0001
  Prefactor  = 7.05194
  Prefactor  = 0.000100011
  norm       = 20.0286
  Prefactor  = 0.0001
  Prefactor  = 1.7932
  Prefactor  = 21.0995
  norm       = 1.24478
  Prefactor  = 0.000100112
  Prefactor  = 0.0001
  Prefactor  = 12.1841
  norm       = 3.7711
  Prefactor  = 0.0001
  Prefactor  = 33.0359
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100012
  Normalizat = 1.22506
  Prefactor  = 0.626038
 **********
 **   18 **HESSE 
 **********

 FCN=   4650.693     FROM HESSE     STATUS=OK           531 CALLS     4177 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3140        4.4197        .12642E-03   -1.5247    
   2  Prefactor     7.6238        12.568        .72624E-03   -1.5156    
   3  Prefactor     18.932        14.489        .92048E-04   -1.4837    
   4  norm          .10000E-03    3.1873        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    37.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          15.061        7.7582        .10321E-03   -1.4932    
   8  norm          1.6450        .53473        .25980E-04   -1.5451    
   9  Prefactor     13.699        15.574        .10821E-03   -1.4968    
  10  Prefactor     .10000E-03    9.2531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.0519        11.031        .15103E-03   -1.5177    
  12  Prefactor     .10001E-03    34.621        .22783E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          20.029        19.335        .89495E-04   -1.4813    
  14  Prefactor     .10000E-03    68.064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7932        62.253        .31431E-03   -1.5440    
  16  Prefactor     21.099        37.485        .87189E-04   -1.4789    
  17  norm          1.2448        2.6219        .13666E-03   -1.5485    
  18  Prefactor     .10011E-03    83.633        .15333       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     12.184        9.2718        .11477E-03   -1.5010    
  21  norm          3.7711        4.9755        .16016E-03   -1.5320    
  22  Prefactor     .10000E-03    12.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     33.036        16.094        .69725E-04   -1.4558    
  24  norm          .10000E-03    2.7508        .10552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    24.496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10001E-03    38.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2251        .28005        .25276E-03   -.85832    
  28  Prefactor     .62604        .20994        .27736E-03   -1.0650    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.92596e-09
Minuit parameter uncertainties:
  1  4.41993
  2  12.5728
  3  14.4913
  4  9.94102e-06
  5  2.72793e-05
  6  0.00108123
  7  7.75869
  8  0.534734
  9  15.5791
  10  1.26725e-06
  11  11.0344
  12  0.00124012
  13  19.3414
  14  0.00023364
  15  21.1544
  16  37.5266
  17  2.62213
  18  0.00612462
  19  2.68895e-05
  20  9.27291
  21  4.976
  22  1.31249e-05
  23  16.096
  24  0.000107866
  25  0.000231744
  26  0.00134689
  27  0.280399
  28  0.210201
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  7.052e+00  1.103e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.677e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.260e-01  2.102e-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.225e+00  2.804e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/272096/likelihoodResults_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.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) = 4649.9544098
delta logL = 0.738804987918

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4649.93086771
delta logL = 0.762347075061

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8060       1.0000         .10000E-03   10000.    
     2 'Index     '    4.6610       1.0000          .0000       10.000    
     3 'Normalizat'    1.1458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67083       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=   4649.931     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      288 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8069        59.592        .71392E-04    .41370E-02
   2  Index         4.6617        7.2955        .64066E-02    .44637E-03
   3  Normalizat    1.1458        .24309        .25987E-03    .61578E-03
   4  Prefactor     .67082        .19282        .26877E-03    .39852E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80685
  Index      = 4.66173
  Normalizat = 1.14583
  Prefactor  = 0.670816
 **********
 **   18 **HESSE 
 **********

 FCN=   4649.931     FROM HESSE     STATUS=OK            23 CALLS      311 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8069        6.1842        .28557E-05   -1.5439    
   2  Index         4.6617        2.3786        .25626E-03   -.67705E-01
   3  Normalizat    1.1458        .26570        .51974E-04   -.88294    
   4  Prefactor     .67082        .21016        .53754E-04   -1.0468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15096e-09
Minuit parameter uncertainties:
  1  6.18643
  2  2.47943
  3  0.266007
  4  0.210412
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272096': 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) = 4649.93086619
delta logL = 0.762348597947

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.807e+00  6.186e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  4.662e+00  2.479e+00  0.000e+00  1.000e+01 (-1.000e+00)
255        Scale:  5.158e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.708e-01  2.104e-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.146e+00  2.660e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.27
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 4.66 +/- 2.48
Photon Flux (Free Index): 1.04e-07 +/- 8.77e-08
Energy Flux (Free Index): 1.43e-05 +/- 1.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/272096/cmap_HighResolution_426470401_426729601_4FGL_J2221.9-3504_daily_bin722.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-02', comment='SUCCESS', energy_flux2='1.43e-05', dlogl='7.62e-01', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-28 10:02:23.346896', photon_index_error2='2.48', photon_index2='4.66', ts='0.57', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', photon_flux_upper_limit='1.56e-07', energy_flux_error2='1.23e-05', EG='1.23', time_epoch_completed='1632848543.35', return_code='0', job_id='272096', GAL2='0.67', EG2='1.15', return_code2='0', photon_flux_error2='8.77e-08', ts2='2.27', photon_index='2.68' WHERE bin_id='722' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:02:23 PDT 2021


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

Job <4FGL_J2221.9-3504_daily_bin722> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:51:08 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:51:09 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:51:09 2021
Terminated at Tue Sep 28 10:02:23 2021
Results reported at Tue Sep 28 10:02:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin722 335.497 -35.0712 426470401 426729601 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 :                                   660.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             297.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   674 sec.
    Turnaround time :                            675 sec.

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

