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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin650
RA = 335.497, Dec = -35.0712
tmin = 407808001, tmax = 408067201
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='271981', job_status='RUN', time_executed='2021-09-28 09:54:57.782251', time_epoch_executed='1632848097.78' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='650'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271981

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271981/ft1_4FGL_J2221.9-3504_daily_bin650.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271981/ft2_4FGL_J2221.9-3504_daily_bin650.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271981/ft1_4FGL_J2221.9-3504_daily_bin650.fits outfile=/scratch/kocevski/271981/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin650.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=407808001.0 tmax=408067201.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.10
user 3.90
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271981/ft1_filtered_4FGL_J2221.9-3504_daily_bin650.fits" evtable="EVENTS" scfile=/scratch/kocevski/271981/ft2_4FGL_J2221.9-3504_daily_bin650.fits sctable="SC_DATA" outfile=/scratch/kocevski/271981/ltcube_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.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/271981/ft2_4FGL_J2221.9-3504_daily_bin650.fits
.....................!
real 11.67
user 11.35
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271981/ft1_filtered_4FGL_J2221.9-3504_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/271981/ft2_4FGL_J2221.9-3504_daily_bin650.fits sctable="SC_DATA" expcube=/scratch/kocevski/271981/ltcube_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.fits outfile=/scratch/kocevski/271981/expmap_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.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/271981/ltcube_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.fits
.....................!
real 189.65
user 184.74
sys 4.60

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/271981/ft1_filtered_4FGL_J2221.9-3504_daily_bin650.fits scfile=/scratch/kocevski/271981/ft2_4FGL_J2221.9-3504_daily_bin650.fits outfile=/scratch/kocevski/271981/cmap_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/271981/ft1_filtered_4FGL_J2221.9-3504_daily_bin650.fits evtable="EVENTS" scfile=/scratch/kocevski/271981/ft2_4FGL_J2221.9-3504_daily_bin650.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/271981/Model_4FGL_J2221.9-3504_daily_bin650.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/271981/ft1_filtered_4FGL_J2221.9-3504_daily_bin650.fits.....................!
real 49.72
user 48.46
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    16.930       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .25785E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    15.177       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.960       1.0000         .10000E-03   10000.    
     7 'norm      '    3.3280       1.0000         .10000E-03   10000.    
     8 'norm      '    1.0008       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8964       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.9634       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10682E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.477       1.0000         .10000E-03   10000.    
    17 'norm      '    .70412       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.717       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .86800E-02   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.3987       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0828       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0462       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=   5981.288     FROM MIGRAD    STATUS=CONVERGED    708 CALLS     3559 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0791        3.2704       -.25834E-06   -.18443E-03
   2  Prefactor     16.920        10.613       -.30187E-06    .27701E-04
   3  Prefactor     .10000E-03    7.6733        .30486E-07** at limit **
   4  norm          .11452        8.6642        .43509E-05    .72904E-05
   5  Prefactor     15.180        35.878       -.28447E-05   -.16689E-05
   6  Prefactor     35.128        98.342        .64253E-05    .33286E-04
   7  norm          3.3251        4.5143       -.94160E-06   -.43630E-03
   8  norm          1.0008        .38772       -.21427E-07   -.10246E-02
   9  Prefactor     4.8964        8.8872       -.48592E-06   -.62490E-04
  10  Prefactor     .10000E-03    17.242       -.59979E-06** at limit **
  11  Prefactor     6.9609        6.3710       -.15516E-06    .35022E-04
  12  Prefactor     .10000E-03    2.9251        .17901E-06** at limit **
  13  norm          .10000E-03    11.572        .10487E-06** at limit **
  14  Prefactor     .10000E-03    26.953        .84315E-07** at limit **
  15  Prefactor     .10000E-03    9.5318       -.24796E-07** at limit **
  16  Prefactor     28.442        24.773       -.58123E-06    .16799E-04
  17  norm          .70584        2.7560       -.15494E-05   -.44788E-03
  18  Prefactor     .10000E-03    26.011        .67482E-07** at limit **
  19  Prefactor     24.721        15.880        .68398E-07    .13149E-03
  20  Prefactor     .10000E-03    3.2315        .57043E-07** at limit **
  21  norm          .10000E-03    1.9128        .97691E-07** at limit **
  22  Prefactor     .10000E-03    9.2732       -.14315E-07** at limit **
  23  Prefactor     .10001E-03    72.823        .16478E-04** at limit **
  24  norm          .10000E-03    .28686       -.18048E-06** at limit **
  25  Prefactor     .10000E-03    47.171        .29322E-06** at limit **
  26  Prefactor     7.4384        14.630        .59709E-05    .14063E-03
  27  Normalizat    1.0834        .22185        .36079E-05   -.24220E-04
  28  Prefactor     1.0455        .18390       -.18339E-05    .66091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.07908
  Prefactor  = 16.9202
  Prefactor  = 0.0001
  norm       = 0.114523
  Prefactor  = 15.1805
  Prefactor  = 35.1276
  norm       = 3.32512
  norm       = 1.00075
  Prefactor  = 4.89644
  Prefactor  = 0.0001
  Prefactor  = 6.96088
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.4422
  norm       = 0.705843
  Prefactor  = 0.0001
  Prefactor  = 24.7208
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.43839
  Normalizat = 1.08344
  Prefactor  = 1.04554
 **********
 **   18 **HESSE 
 **********

 FCN=   5981.288     FROM HESSE     STATUS=OK           529 CALLS     4088 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0791        3.2569        .17006E-03   -1.5420    
   2  Prefactor     16.920        10.603        .97340E-04   -1.4885    
   3  Prefactor     .10000E-03    7.7687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .11452        5.9736        .54740E-01   -1.5640    
   5  Prefactor     15.180        35.858        .10281E-03   -1.4929    
   6  Prefactor     35.128        98.260        .67777E-04   -1.4522    
   7  norm          3.3251        4.5100        .16967E-03   -1.5343    
   8  norm          1.0008        .38740        .27935E-04   -1.5508    
   9  Prefactor     4.8964        8.8859        .18177E-03   -1.5265    
  10  Prefactor     .10000E-03    17.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.9609        6.3712        .15203E-03   -1.5180    
  12  Prefactor     .10000E-03    2.9859        .12891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    11.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.5470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     28.442        24.805        .75076E-04   -1.4641    
  17  norm          .70584        2.8046        .24465E-03   -1.5540    
  18  Prefactor     .10000E-03    26.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.721        15.906        .80573E-04   -1.4713    
  20  Prefactor     .10000E-03    3.2773        .13576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.9232        .10441E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.2960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10001E-03    77.207        .38107E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .36420        .78705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    47.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.4384        15.051        .14745E-03   -1.5162    
  27  Normalizat    1.0834        .24276        .27292E-03   -.90285    
  28  Prefactor     1.0455        .20438        .23823E-03   -.91226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28054e-09
Minuit parameter uncertainties:
  1  3.25722
  2  10.6038
  3  1.23281e-06
  4  1.65367
  5  35.9085
  6  98.7174
  7  4.51042
  8  0.387397
  9  8.88825
  10  0.000113681
  11  6.37184
  12  2.40384e-05
  13  9.10009e-05
  14  1.21484e-05
  15  3.75793e-05
  16  24.8144
  17  2.80509
  18  0.000142863
  19  15.9091
  20  2.57395e-06
  21  1.97976e-05
  22  4.77736e-05
  23  0.00180988
  24  3.79476e-06
  25  0.000123623
  26  15.0585
  27  0.24301
  28  0.204537
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  6.961e+00  6.372e+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:  1.046e+00  2.045e-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.083e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.24
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 3.07e-08
Energy Flux (Fixed Index): 8.23e-06 +/- 7.53e-06

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

Saving results to:
/scratch/kocevski/271981/likelihoodResults_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.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) = 5979.07530723
delta logL = 2.21281998466

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5979.07480884
delta logL = 2.21331837513

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9514       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5124       1.0000          .0000       10.000    
     3 'Normalizat'    1.1076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0296       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=   5979.075     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      205 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.0273        5.7214        .38041E-02   -.34849E-04
   2  Index         1.5153        .32951        .17125       -.69236E-04
   3  Normalizat    1.1074        .19499        .61085E-01    .99779E-05
   4  Prefactor     1.0296        .16826        .41292E-01    .73602E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.02729
  Index      = 1.51526
  Normalizat = 1.10744
  Prefactor  = 1.02962
 **********
 **   18 **HESSE 
 **********

 FCN=   5979.075     FROM HESSE     STATUS=OK            33 CALLS      238 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.0273        7.2532        .15216E-03   -1.5178    
   2  Index         1.5153        .46438        .68190E-02   -.77113    
   3  Normalizat    1.1074        .22884        .27017E-03   -.89513    
   4  Prefactor     1.0296        .19759        .23960E-03   -.91748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.299e-09
Minuit parameter uncertainties:
  1  7.25409
  2  0.465689
  3  0.229047
  4  0.197726
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271981': 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) = 5979.07475631
delta logL = 2.21337090405

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  7.027e+00  7.254e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  1.515e+00  4.657e-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.030e+00  1.977e-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.107e+00  2.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.67
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 1.52 +/- 0.47
Photon Flux (Free Index): 1.59e-08 +/- 1.60e-08
Energy Flux (Free Index): 4.78e-05 +/- 5.96e-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/271981/cmap_HighResolution_407808001_408067201_4FGL_J2221.9-3504_daily_bin650.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.97e-03', comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='4.78e-05', photon_flux_error='3.07e-08', dlogl='2.21e+00', energy_flux='8.23e-06', photon_flux2='1.59e-08', job_status='DONE', time_completed='2021-09-28 10:07:11.496075', photon_index_error2='0.47', photon_index2='1.52', ts='3.24', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='5.96e-05', EG='1.08', time_epoch_completed='1632848831.5', return_code='0', job_id='271981', GAL2='1.03', EG2='1.11', return_code2='0', energy_flux_error='7.53e-06', photon_flux_error2='1.60e-08', ts2='7.67', photon_index='2.68' WHERE bin_id='650' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:07:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 271981: <4FGL_J2221.9-3504_daily_bin650> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin650 335.497 -35.0712 407808001 408067201 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 :                                   734.00 sec.
    Max Memory :                                 1240 MB
    Average Memory :                             237.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   972 sec.
    Turnaround time :                            975 sec.

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

