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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin865
RA = 335.497, Dec = -35.0712
tmin = 463536001, tmax = 463795201
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='273287', job_status='RUN', time_executed='2021-09-28 09:58:39.644773', time_epoch_executed='1632848319.64' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273287

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273287/ft1_4FGL_J2221.9-3504_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273287/ft1_4FGL_J2221.9-3504_daily_bin865.fits outfile=/scratch/kocevski/273287/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin865.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=463536001.0 tmax=463795201.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.47
user 3.28
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.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/273287/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin865.fits evtable="EVENTS" outfile="/scratch/kocevski/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.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/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.fits" evtable="EVENTS" scfile=/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits sctable="SC_DATA" outfile=/scratch/kocevski/273287/ltcube_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.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/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits
.....................!
real 11.20
user 10.86
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/273287/ltcube_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.fits outfile=/scratch/kocevski/273287/expmap_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.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/273287/ltcube_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.fits
.....................!
real 189.78
user 185.27
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/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.fits scfile=/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits outfile=/scratch/kocevski/273287/cmap_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.fits scfile=/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits outfile=/scratch/kocevski/273287/cmap_HighResolution_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.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.53
user 0.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/273287/ft2_4FGL_J2221.9-3504_daily_bin865.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273287/Model_4FGL_J2221.9-3504_daily_bin865.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/273287/ft1_filtered_4FGL_J2221.9-3504_daily_bin865.fits.....................!
real 36.01
user 34.71
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.7867       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .46540       1.0000         .10000E-03   10000.    
     4 'norm      '    5.7258       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27123E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9305       1.0000         .10000E-03   10000.    
     7 'norm      '    2.3238       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4501       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13855E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.147       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    36.222       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    46.576       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4736       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0061       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .68089       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0770       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=   3828.165     FROM MIGRAD    STATUS=CONVERGED    705 CALLS     3026 TOTAL
                     EDM=   .22E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.7863        4.9731        .11297E-06    .86743E-04
   2  Prefactor     .10000E-03    7.6938        .16997E-07** at limit **
   3  Prefactor     .46446        12.806       -.58892E-07    .11228E-04
   4  norm          5.7248        6.3014       -.46081E-07    .16842E-05
   5  Prefactor     .10000E-03    73.722       -.12877E-04** at limit **
   6  Prefactor     7.8519        179.85       -.43228E-05   -.30214E-06
   7  norm          2.3235        3.7054       -.78971E-07    .86069E-04
   8  norm          1.4502        .52676        .24119E-07    .47788E-03
   9  Prefactor     .10022E-03    10.400        .55777E-06** at limit **
  10  Prefactor     .10000E-03    21.387       -.51135E-07** at limit **
  11  Prefactor     17.147        12.535       -.22234E-07   -.34431E-05
  12  Prefactor     .10000E-03    4.6971        .29041E-06** at limit **
  13  norm          36.221        26.064       -.70117E-08   -.66141E-05
  14  Prefactor     .10000E-03    47.376        .39620E-06** at limit **
  15  Prefactor     .10000E-03    9.8242       -.64178E-07** at limit **
  16  Prefactor     .10000E-03    9.4986        .11207E-06** at limit **
  17  norm          .10000E-03    1.6089        .11011E-06** at limit **
  18  Prefactor     .10000E-03    46.221       -.21831E-06** at limit **
  19  Prefactor     46.577        21.195       -.89931E-07   -.23818E-04
  20  Prefactor     2.4745        7.8566        .85319E-06    .14244E-04
  21  norm          5.0055        4.0042       -.14574E-07   -.30920E-04
  22  Prefactor     .10000E-03    6.4227        .77018E-07** at limit **
  23  Prefactor     .10000E-03    9.4647        .21073E-06** at limit **
  24  norm          .10000E-03    .22150        .29196E-07** at limit **
  25  Prefactor     .10000E-03    39.004        .12203E-06** at limit **
  26  Prefactor     .10000E-03    6.1959        .15250E-09** at limit **
  27  Normalizat    .68085        .23263        .35545E-06   -.24710E-05
  28  Prefactor     1.0770        .19990       -.37746E-06    .27492E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.78633
  Prefactor  = 0.0001
  Prefactor  = 0.46446
  norm       = 5.7248
  Prefactor  = 0.0001
  Prefactor  = 7.85191
  norm       = 2.32348
  norm       = 1.45019
  Prefactor  = 0.000100223
  Prefactor  = 0.0001
  Prefactor  = 17.1475
  Prefactor  = 0.0001
  norm       = 36.2206
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.5768
  Prefactor  = 2.47448
  norm       = 5.00547
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.680846
  Prefactor  = 1.07703
 **********
 **   18 **HESSE 
 **********

 FCN=   3828.165     FROM HESSE     STATUS=OK           527 CALLS     3553 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.7863        4.9687        .12358E-03   -1.5227    
   2  Prefactor     .10000E-03    7.7181        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .46446        65.349        .41086E-02   -1.5572    
   4  norm          5.7248        6.3005        .15822E-03   -1.5229    
   5  Prefactor     .10000E-03    73.546        .21432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     7.8519        182.74        .14238E-03   -1.5147    
   7  norm          2.3235        3.6716        .14084E-03   -1.5403    
   8  norm          1.4502        .52750        .25565E-04   -1.5467    
   9  Prefactor     .10022E-03    14.644        .67694E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     17.147        12.571        .96722E-04   -1.4880    
  12  Prefactor     .10000E-03    4.8047        .26138E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          36.221        26.051        .66590E-04   -1.4504    
  14  Prefactor     .10000E-03    47.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.5051        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.9042        .15255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    46.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     46.577        21.283        .58751E-04   -1.4342    
  20  Prefactor     2.4745        7.8532        .25997E-03   -1.5393    
  21  norm          5.0055        3.9958        .10723E-03   -1.5260    
  22  Prefactor     .10000E-03    6.4303        .15313E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.6166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .22520        .28387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    39.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    6.2034        .15041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .68085        .27182        .29451E-03   -1.0465    
  28  Prefactor     1.0770        .23628        .21082E-03   -.90204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13294e-10
Minuit parameter uncertainties:
  1  4.96909
  2  1.61679e-06
  3  11.0296
  4  6.30127
  5  4.81064e-05
  6  76.0205
  7  3.67196
  8  0.527499
  9  0.00361102
  10  5.35915e-06
  11  12.5732
  12  9.17164e-07
  13  26.0594
  14  2.66242e-05
  15  5.49014e-06
  16  3.68384e-06
  17  1.03034e-05
  18  4.47602e-05
  19  21.286
  20  7.85645
  21  3.99599
  22  2.8343e-06
  23  6.1229e-06
  24  9.15644e-08
  25  8.312e-06
  26  1.50624e-06
  27  0.272357
  28  0.236513
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.715e+01  1.257e+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:  1.077e+00  2.365e-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.808e-01  2.724e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.75
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.27e-08 +/- 6.06e-08
Energy Flux (Fixed Index): 2.03e-05 +/- 1.49e-05

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

Saving results to:
/scratch/kocevski/273287/likelihoodResults_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.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) = 3828.10093125
delta logL = 0.0642988291966

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3828.09707508
delta logL = 0.0681550040804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3977       1.0000          .0000       10.000    
     3 'Normalizat'    .70031       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0648       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=   3828.097     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      303 TOTAL
                     EDM=   .40E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.654        14.056        .46385E-03    .18835E-04
   2  Index         2.3988        .72301        .77018E-02    .83916E-06
   3  Normalizat    .70018        .26788        .29077E-03   -.58649E-06
   4  Prefactor     1.0650        .23223        .21181E-03   -.11271E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.6545
  Index      = 2.3988
  Normalizat = 0.700177
  Prefactor  = 1.06497
 **********
 **   18 **HESSE 
 **********

 FCN=   3828.097     FROM HESSE     STATUS=OK            27 CALLS      330 TOTAL
                     EDM=   .16E-14    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.654        14.035        .92770E-04   -1.4844    
   2  Index         2.3988        .72156        .30807E-03   -.54713    
   3  Normalizat    .70018        .26830        .11631E-04   -1.0389    
   4  Prefactor     1.0650        .23247        .84726E-05   -.90594    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.61494e-15
Minuit parameter uncertainties:
  1  14.0379
  2  0.725038
  3  0.268807
  4  0.232694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273287': 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) = 3828.09707308
delta logL = 0.0681570069241

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.865e+01  1.404e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.399e+00  7.250e-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:  1.065e+00  2.327e-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:  7.002e-01  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.84
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 2.40 +/- 0.73
Photon Flux (Free Index): 6.83e-08 +/- 6.83e-08
Energy Flux (Free Index): 2.24e-05 +/- 1.82e-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/273287/cmap_HighResolution_463536001_463795201_4FGL_J2221.9-3504_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.63e-02', comment='SUCCESS', photon_flux='8.27e-08', energy_flux2='2.24e-05', photon_flux_error='6.06e-08', dlogl='6.82e-02', energy_flux='2.03e-05', photon_flux2='6.83e-08', job_status='DONE', time_completed='2021-09-28 10:07:56.524794', photon_index_error2='0.73', photon_index2='2.40', ts='2.75', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='2.08e-07', energy_flux_error2='1.82e-05', EG='0.68', time_epoch_completed='1632848876.52', return_code='0', job_id='273287', GAL2='1.06', EG2='0.70', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='6.83e-08', ts2='2.84', photon_index='2.68' WHERE bin_id='865' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:07:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 273287: <4FGL_J2221.9-3504_daily_bin865> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin865 335.497 -35.0712 463536001 463795201 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 :                                   558.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             313.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            740 sec.

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

