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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin720
RA = 335.497, Dec = -35.0712
tmin = 425952001, tmax = 426211201
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='272093', job_status='RUN', time_executed='2021-09-28 09:53:03.068230', time_epoch_executed='1632847983.07' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='720'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/272093

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/272093/ft1_4FGL_J2221.9-3504_daily_bin720.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/272093/ft2_4FGL_J2221.9-3504_daily_bin720.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/272093/ft1_4FGL_J2221.9-3504_daily_bin720.fits outfile=/scratch/kocevski/272093/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin720.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=425952001.0 tmax=426211201.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.63
user 3.39
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/272093/ft1_filtered_4FGL_J2221.9-3504_daily_bin720.fits" evtable="EVENTS" scfile=/scratch/kocevski/272093/ft2_4FGL_J2221.9-3504_daily_bin720.fits sctable="SC_DATA" outfile=/scratch/kocevski/272093/ltcube_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.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/272093/ft2_4FGL_J2221.9-3504_daily_bin720.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/272093/ft1_filtered_4FGL_J2221.9-3504_daily_bin720.fits evtable="EVENTS" scfile=/scratch/kocevski/272093/ft2_4FGL_J2221.9-3504_daily_bin720.fits sctable="SC_DATA" expcube=/scratch/kocevski/272093/ltcube_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.fits outfile=/scratch/kocevski/272093/expmap_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.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/272093/ltcube_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.fits
.....................!
real 191.74
user 186.34
sys 5.06

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/272093/ft1_filtered_4FGL_J2221.9-3504_daily_bin720.fits scfile=/scratch/kocevski/272093/ft2_4FGL_J2221.9-3504_daily_bin720.fits outfile=/scratch/kocevski/272093/cmap_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/272093/ft1_filtered_4FGL_J2221.9-3504_daily_bin720.fits scfile=/scratch/kocevski/272093/ft2_4FGL_J2221.9-3504_daily_bin720.fits outfile=/scratch/kocevski/272093/cmap_HighResolution_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0141       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1340       1.0000         .10000E-03   10000.    
     4 'norm      '    3.1050       1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.523       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12585E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    21.104       1.0000         .10000E-03   10000.    
     8 'norm      '    .80820       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.1836       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11664E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.274       1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.6855       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10452E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0461       1.0000         .10000E-03   10000.    
    16 'Prefactor '    35.518       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5678       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.5470       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10249E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    7.6174       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.6822       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    26.965       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99306       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79374       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=   5879.308     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3507 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0142        3.3761        .98669E-07   -.18946E-03
   2  Prefactor     .10000E-03    3.5489        .28046E-06** at limit **
   3  Prefactor     7.1350        7.0249       -.58912E-06    .52197E-03
   4  norm          3.1055        4.6995       -.16627E-06   -.39576E-04
   5  Prefactor     11.489        15.923        .25678E-06   -.35278E-04
   6  Prefactor     .10002E-03    140.42        .54304E-05** at limit **
   7  norm          21.098        6.6501       -.74674E-09   -.17039E-03
   8  norm          .80821        .40195       -.70332E-08   -.45411E-03
   9  Prefactor     3.1822        8.7962       -.58976E-07   -.12034E-04
  10  Prefactor     .10001E-03    49.306        .42196E-05** at limit **
  11  Prefactor     18.274        10.225        .44834E-06    .45445E-03
  12  Prefactor     6.6860        4.4136       -.29447E-07    .37676E-03
  13  norm          .10000E-03    6.5767       -.12429E-06** at limit **
  14  Prefactor     .10006E-03    54.626       -.87004E-05** at limit **
  15  Prefactor     1.0094        77.645       -.20496E-04    .12448E-03
  16  Prefactor     35.512        28.182        .39974E-06    .16595E-03
  17  norm          2.5678        1.9087       -.62408E-08   -.18614E-05
  18  Prefactor     .10000E-03    11.468       -.26544E-06** at limit **
  19  Prefactor     8.5481        12.196       -.35575E-06   -.66701E-04
  20  Prefactor     .10000E-03    3.4550       -.10551E-05** at limit **
  21  norm          7.6175        5.4827        .15968E-06    .22594E-03
  22  Prefactor     4.6804        14.621       -.45355E-06   -.79943E-05
  23  Prefactor     .10000E-03    5.7926        .10911E-06** at limit **
  24  norm          .10000E-03    .23155       -.19203E-07** at limit **
  25  Prefactor     26.966        42.484       -.17328E-06   -.76752E-05
  26  Prefactor     .10000E-03    4.2197       -.10567E-07** at limit **
  27  Normalizat    .99289        .19146        .77762E-06    .14566E-04
  28  Prefactor     .79383        .15812       -.37409E-06   -.16170E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.01419
  Prefactor  = 0.0001
  Prefactor  = 7.13497
  norm       = 3.10551
  Prefactor  = 11.4891
  Prefactor  = 0.000100017
  norm       = 21.0976
  norm       = 0.808208
  Prefactor  = 3.18216
  Prefactor  = 0.000100006
  Prefactor  = 18.2738
  Prefactor  = 6.68602
  norm       = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 1.00935
  Prefactor  = 35.5123
  norm       = 2.56784
  Prefactor  = 0.0001
  Prefactor  = 8.54805
  Prefactor  = 0.0001
  norm       = 7.61754
  Prefactor  = 4.68044
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.9664
  Prefactor  = 0.0001
  Normalizat = 0.992889
  Prefactor  = 0.793834
 **********
 **   18 **HESSE 
 **********

 FCN=   5879.308     FROM HESSE     STATUS=OK           531 CALLS     4038 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0142        3.3825        .51403E-03   -1.5217    
   2  Prefactor     .10000E-03    3.5993        .14114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1350        7.1335        .75092E-03   -1.5174    
   4  norm          3.1055        4.6882        .19774E-03   -1.5356    
   5  Prefactor     11.489        15.887        .11802E-03   -1.5030    
   6  Prefactor     .10002E-03    142.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          21.098        6.6471        .87188E-04   -1.4789    
   8  norm          .80821        .40082        .31237E-04   -1.5528    
   9  Prefactor     3.1822        8.7810        .22711E-03   -1.5351    
  10  Prefactor     .10001E-03    51.756        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.274        10.226        .93693E-04   -1.4853    
  12  Prefactor     6.6860        4.4280        .12387E-03   -1.5191    
  13  norm          .10000E-03    6.5798        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    59.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.0094        82.177        .56614E-02   -1.5507    
  16  Prefactor     35.512        28.028        .67243E-04   -1.4515    
  17  norm          2.5678        1.9063        .88758E-04   -1.5387    
  18  Prefactor     .10000E-03    11.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.5481        12.241        .13712E-03   -1.5123    
  20  Prefactor     .10000E-03    9.9179        .27168E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          7.6175        5.4726        .12808E-03   -1.5156    
  22  Prefactor     4.6804        14.308        .18598E-03   -1.5275    
  23  Prefactor     .10000E-03    5.8229        .17951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .25628        .69892E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     26.966        42.502        .77148E-04   -1.4669    
  26  Prefactor     .10000E-03    4.2219        .15380E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .99289        .22223        .25304E-03   -.93269    
  28  Prefactor     .79383        .18285        .24453E-03   -.99956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67193e-09
Minuit parameter uncertainties:
  1  3.38257
  2  3.66861e-05
  3  7.13433
  4  4.68877
  5  15.8927
  6  0.00312326
  7  6.64732
  8  0.400825
  9  8.78455
  10  0.00111718
  11  10.2267
  12  4.42824
  13  1.87116e-05
  14  0.00374019
  15  18.2399
  16  28.0383
  17  1.90637
  18  5.18671e-05
  19  12.2447
  20  0.00010393
  21  5.47294
  22  14.3184
  23  1.02003e-05
  24  1.13374e-06
  25  42.5497
  26  1.34555e-06
  27  0.222437
  28  0.182991
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.827e+01  1.023e+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:  7.938e-01  1.830e-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.929e-01  2.224e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.89
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 8.81e-08 +/- 4.93e-08
Energy Flux (Fixed Index): 2.16e-05 +/- 1.21e-05

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) = 5878.84080697
delta logL = 0.466848435463

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5878.81134062
delta logL = 0.496314793209

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.474       1.0000         .10000E-03   10000.    
     2 'Index     '    3.3298       1.0000          .0000       10.000    
     3 'Normalizat'    .95596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81718       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=   5878.811     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.475        11.725        .11827E-03   -.27607E-03
   2  Index         3.3297        .83799        .56590E-02   -.51898E-04
   3  Normalizat    .95597        .21204        .25718E-03    .30313E-03
   4  Prefactor     .81717        .18150        .24141E-03    .15390E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.4748
  Index      = 3.32971
  Normalizat = 0.955969
  Prefactor  = 0.817171
 **********
 **   18 **HESSE 
 **********

 FCN=   5878.811     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.475        10.453        .47308E-05   -1.5030    
   2  Index         3.3297        .74709        .22636E-03   -.34060    
   3  Normalizat    .95597        .21221        .51436E-04   -.94520    
   4  Prefactor     .81717        .18153        .96564E-05   -.99098    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85154e-10
Minuit parameter uncertainties:
  1  10.4546
  2  0.75026
  3  0.212395
  4  0.181658
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/272093': 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) = 5878.8113406
delta logL = 0.496314803816

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.147e+01  1.045e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.330e+00  7.503e-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:  8.172e-01  1.817e-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.560e-01  2.124e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.97
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 3.33 +/- 0.75
Photon Flux (Free Index): 1.16e-07 +/- 6.15e-08
Energy Flux (Free Index): 2.04e-05 +/- 1.05e-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/272093/cmap_HighResolution_425952001_426211201_4FGL_J2221.9-3504_daily_bin720.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.81e-08', energy_flux2='2.04e-05', photon_flux_error='4.93e-08', dlogl='4.96e-01', energy_flux='2.16e-05', photon_flux2='1.16e-07', job_status='DONE', time_completed='2021-09-28 10:03:58.133583', photon_index_error2='0.75', photon_index2='3.33', ts='4.89', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.05e-05', EG='0.99', time_epoch_completed='1632848638.13', return_code='0', job_id='272093', GAL2='0.82', EG2='0.96', return_code2='0', energy_flux_error='1.21e-05', photon_flux_error2='6.15e-08', ts2='5.97', photon_index='2.68' WHERE bin_id='720' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:03:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 272093: <4FGL_J2221.9-3504_daily_bin720> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin720> 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) <bullet0117>, 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:03:58 2021
Results reported at Tue Sep 28 10:03:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin720 335.497 -35.0712 425952001 426211201 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 :                                   655.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            770 sec.

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

