/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 146 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 = 7664
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2221.9-3504_daily_bin408
RA = 335.497, Dec = -35.0712
tmin = 345081601, tmax = 345340801
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='271575', job_status='RUN', time_executed='2021-09-28 09:52:55.743344', time_epoch_executed='1632847975.74' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='408'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271575

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271575/ft1_4FGL_J2221.9-3504_daily_bin408.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271575/ft1_4FGL_J2221.9-3504_daily_bin408.fits outfile=/scratch/kocevski/271575/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin408.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=345081601.0 tmax=345340801.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.48
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271575/ft1_filtered_4FGL_J2221.9-3504_daily_bin408.fits" evtable="EVENTS" scfile=/scratch/kocevski/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits sctable="SC_DATA" outfile=/scratch/kocevski/271575/ltcube_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.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/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits
.....................!
real 11.77
user 11.45
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271575/ft1_filtered_4FGL_J2221.9-3504_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits sctable="SC_DATA" expcube=/scratch/kocevski/271575/ltcube_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.fits outfile=/scratch/kocevski/271575/expmap_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.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/271575/ltcube_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.fits
.....................!
real 190.55
user 185.82
sys 4.43

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/271575/ft1_filtered_4FGL_J2221.9-3504_daily_bin408.fits scfile=/scratch/kocevski/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits outfile=/scratch/kocevski/271575/cmap_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271575/ft1_filtered_4FGL_J2221.9-3504_daily_bin408.fits scfile=/scratch/kocevski/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits outfile=/scratch/kocevski/271575/cmap_HighResolution_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271575/ft1_filtered_4FGL_J2221.9-3504_daily_bin408.fits evtable="EVENTS" scfile=/scratch/kocevski/271575/ft2_4FGL_J2221.9-3504_daily_bin408.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271575/Model_4FGL_J2221.9-3504_daily_bin408.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/271575/ft1_filtered_4FGL_J2221.9-3504_daily_bin408.fits....................!
real 43.32
user 41.93
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.7649       1.0000         .10000E-03   10000.    
     4 'norm      '    3.0896       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    12.191       1.0000         .10000E-03   10000.    
     8 'norm      '    .67595       1.0000         .10000E-03   10000.    
     9 'Prefactor '    38.580       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .60004       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.6846       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    12.347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10650E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    54.015       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.110       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .84730       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13927E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.5272       1.0000         .10000E-03   10000.    
    24 'norm      '    .41548       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .97641       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .95697       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=   5304.416     FROM MIGRAD    STATUS=CONVERGED   1225 CALLS     4037 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.9652        .99518E-03** at limit **
   2  Prefactor     .10000E-03    3.9908        .14089E-02** at limit **
   3  Prefactor     3.7656        7.8529        .20807E-03   -.36171E-04
   4  norm          3.0901        4.9112        .19759E-03   -.24684E-04
   5  Prefactor     .10000E-03    11.324        .18142E-02** at limit **
   6  Prefactor     .10000E-03    76.505        .18142E-02** at limit **
   7  norm          12.188        6.9487        .11473E-03    .64411E-05
   8  norm          .67596        .41896        .33596E-04   -.46361E-04
   9  Prefactor     38.577        19.678        .64529E-04   -.82029E-04
  10  Prefactor     .49378        169.07        .53951E-02    .10034E-03
  11  Prefactor     9.6837        9.9612        .12877E-03   -.13420E-04
  12  Prefactor     .10000E-03    4.1922        .21457E-02** at limit **
  13  norm          12.347        18.642        .11400E-03    .12466E-04
  14  Prefactor     .10000E-03    9.4037        .18142E-02** at limit **
  15  Prefactor     .10000E-03    20.787        .18142E-02** at limit **
  16  Prefactor     .10000E-03    5.0710        .16014E-02** at limit **
  17  norm          .10000E-03    1.4596        .85007E-03** at limit **
  18  Prefactor     54.025        61.733        .54575E-04    .10832E-04
  19  Prefactor     18.110        13.501        .47058E-03   -.64070E-04
  20  Prefactor     .10000E-03    1.8966        .97852E-03** at limit **
  21  norm          .84197        2.3172        .19604E-02    .29030E-03
  22  Prefactor     .10006E-03    51.606        .39202E-02** at limit **
  23  Prefactor     8.5363        10.237        .13728E-03    .19710E-04
  24  norm          .41521        .47626        .49329E-03    .93685E-04
  25  Prefactor     .10000E-03    32.553        .18142E-02** at limit **
  26  Prefactor     .10000E-03    7.0515        .18142E-02** at limit **
  27  Normalizat    .97661        .23285        .25661E-03   -.15063E-05
  28  Prefactor     .95683        .19966        .23130E-03    .39419E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76564
  norm       = 3.09015
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 12.1876
  norm       = 0.675959
  Prefactor  = 38.5774
  Prefactor  = 0.493777
  Prefactor  = 9.6837
  Prefactor  = 0.0001
  norm       = 12.3472
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 54.0255
  Prefactor  = 18.1101
  Prefactor  = 0.0001
  norm       = 0.841968
  Prefactor  = 0.00010006
  Prefactor  = 8.53627
  norm       = 0.415212
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.976607
  Prefactor  = 0.956827
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.416     FROM HESSE     STATUS=OK           497 CALLS     4534 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9653        .19904E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9924        .28179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.7656        7.8511        .83228E-05   -1.5320    
   4  norm          3.0901        4.9110        .79035E-05   -1.5356    
   5  Prefactor     .10000E-03    11.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    76.515        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          12.188        6.9487        .45891E-05   -1.5010    
   8  norm          .67596        .41897        .13438E-05   -1.5544    
   9  Prefactor     38.577        19.588        .12906E-04   -1.4465    
  10  Prefactor     .49378        170.83        .21581E-03   -1.5567    
  11  Prefactor     9.6837        9.9601        .51508E-05   -1.5085    
  12  Prefactor     .10000E-03    4.2031        .42913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          12.347        18.642        .45600E-05   -1.5005    
  14  Prefactor     .10000E-03    9.4037        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    20.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.0711        .32029E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.4597        .17001E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     54.025        61.717        .21830E-05   -1.4237    
  19  Prefactor     18.110        13.499        .18823E-04   -1.4857    
  20  Prefactor     .10000E-03    1.8967        .19570E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .84197        2.3122        .78418E-04   -1.5524    
  22  Prefactor     .10006E-03    52.436        .78404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     8.5363        10.217        .54910E-05   -1.5124    
  24  norm          .41521        .47579        .19732E-04   -1.5579    
  25  Prefactor     .10000E-03    32.554        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.0518        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .97661        .23304        .10264E-04   -.93818    
  28  Prefactor     .95683        .19950        .92521E-05   -.94183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6483e-09
Minuit parameter uncertainties:
  1  4.80076e-07
  2  3.47939e-06
  3  7.85329
  4  4.9116
  5  5.20348e-06
  6  0.000446443
  7  6.9492
  8  0.41897
  9  19.5913
  10  18.4199
  11  9.96178
  12  7.1475e-05
  13  18.6506
  14  4.04607e-06
  15  1.41294e-05
  16  9.17252e-08
  17  1.66643e-07
  18  61.7903
  19  13.5015
  20  5.94413e-07
  21  2.31244
  22  0.0035432
  23  10.2192
  24  0.475791
  25  0.000112648
  26  2.17361e-05
  27  0.23328
  28  0.199656
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  9.684e+00  9.962e+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:  9.568e-01  1.997e-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.766e-01  2.333e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.24
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 4.67e-08 +/- 4.80e-08
Energy Flux (Fixed Index): 1.15e-05 +/- 1.18e-05

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

Saving results to:
/scratch/kocevski/271575/likelihoodResults_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.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) = 5304.06458078
delta logL = 0.35180534993

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5304.05276016
delta logL = 0.363625970236

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8781       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0110       1.0000          .0000       10.000    
     3 'Normalizat'    .94005       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98354       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=   5304.053     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      291 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8709        48.293        .59894E-02    .30582E-03
   2  Index         4.0127        4.0596        .19252        .74858E-04
   3  Normalizat    .93993        .56963E-01    .45411E-01   -.25795E-05
   4  Prefactor     .98368        .51030E-01    .46061E-01    .38724E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.87092
  Index      = 4.01269
  Normalizat = 0.939931
  Prefactor  = 0.983678
 **********
 **   18 **HESSE 
 **********

 FCN=   5304.053     FROM HESSE     STATUS=OK            33 CALLS      324 TOTAL
                     EDM=   .31E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8709        867.09        .96728E-04   -1.5369    
   2  Index         4.0127        7.3316        .67836E-02   -.19877    
   3  Normalizat    .93993        .22566        .26092E-03   -.95071    
   4  Prefactor     .98368        .21834        .22852E-03   -.93276    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0844e-06
Minuit parameter uncertainties:
  1  101.302
  2  25.7749
  3  0.225884
  4  0.218533
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271575': 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) = 5304.0527594
delta logL = 0.363626728184

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  2.871e+00  1.013e+02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  4.013e+00  2.577e+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.837e-01  2.185e-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.399e-01  2.259e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 4.01 +/- 25.77
Photon Flux (Free Index): 6.91e-08 +/- 1.21e-07
Energy Flux (Free Index): 1.03e-05 +/- 6.04e-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/271575/cmap_HighResolution_345081601_345340801_4FGL_J2221.9-3504_daily_bin408.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-02', comment='SUCCESS', photon_flux='4.67e-08', energy_flux2='1.03e-05', photon_flux_error='4.80e-08', dlogl='3.64e-01', energy_flux='1.15e-05', photon_flux2='6.91e-08', job_status='DONE', time_completed='2021-09-28 10:05:04.951606', photon_index_error2='25.77', photon_index2='4.01', ts='1.24', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.46e-07', energy_flux_error2='6.04e-05', EG='0.98', time_epoch_completed='1632848704.95', return_code='0', job_id='271575', GAL2='0.98', EG2='0.94', return_code2='0', energy_flux_error='1.18e-05', photon_flux_error2='1.21e-07', ts2='2.05', photon_index='2.68' WHERE bin_id='408' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:05:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 271575: <4FGL_J2221.9-3504_daily_bin408> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin408> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 28 09:50:19 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 09:50:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 09:50:20 2021
Terminated at Tue Sep 28 10:05:05 2021
Results reported at Tue Sep 28 10:05:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin408 335.497 -35.0712 345081601 345340801 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 :                                   729.16 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            886 sec.

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

