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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin867
RA = 335.497, Dec = -35.0712
tmin = 464054401, tmax = 464313601
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='273290', job_status='RUN', time_executed='2021-09-28 09:58:18.414368', time_epoch_executed='1632848298.41' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='867'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273290/ft1_4FGL_J2221.9-3504_daily_bin867.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273290/ft1_4FGL_J2221.9-3504_daily_bin867.fits outfile=/scratch/kocevski/273290/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin867.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=464054401.0 tmax=464313601.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.45
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273290/ft1_filtered_4FGL_J2221.9-3504_daily_bin867.fits" evtable="EVENTS" scfile=/scratch/kocevski/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits sctable="SC_DATA" outfile=/scratch/kocevski/273290/ltcube_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.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/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits
.....................!
real 11.65
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273290/ft1_filtered_4FGL_J2221.9-3504_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits sctable="SC_DATA" expcube=/scratch/kocevski/273290/ltcube_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.fits outfile=/scratch/kocevski/273290/expmap_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.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/273290/ltcube_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.fits
.....................!
real 191.97
user 186.68
sys 4.93

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/273290/ft1_filtered_4FGL_J2221.9-3504_daily_bin867.fits scfile=/scratch/kocevski/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits outfile=/scratch/kocevski/273290/cmap_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273290/ft1_filtered_4FGL_J2221.9-3504_daily_bin867.fits scfile=/scratch/kocevski/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits outfile=/scratch/kocevski/273290/cmap_HighResolution_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273290/ft1_filtered_4FGL_J2221.9-3504_daily_bin867.fits evtable="EVENTS" scfile=/scratch/kocevski/273290/ft2_4FGL_J2221.9-3504_daily_bin867.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273290/Model_4FGL_J2221.9-3504_daily_bin867.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/273290/ft1_filtered_4FGL_J2221.9-3504_daily_bin867.fits.....................!
real 40.02
user 38.59
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.372       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.690       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .94524E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    57.449       1.0000         .10000E-03   10000.    
     7 'norm      '    14.486       1.0000         .10000E-03   10000.    
     8 'norm      '    1.6083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.176       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.9575       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6323       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.970       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11533E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.4605       1.0000         .10000E-03   10000.    
    18 'Prefactor '    36.397       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-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'    1.3529       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .63450       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=   4467.992     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3591 TOTAL
                     EDM=   .82E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.376        7.0775        .63498E-07   -.10751E-03
   2  Prefactor     14.702        13.210        .11075E-06   -.13247E-03
   3  Prefactor     .10001E-03    9.9296        .34899E-07** at limit **
   4  norm          .10000E-03    3.0518        .42471E-07** at limit **
   5  Prefactor     .10000E-03    18.981        .13269E-05** at limit **
   6  Prefactor     57.501        113.02        .58515E-05   -.48358E-05
   7  norm          14.484        9.3948       -.58592E-06   -.81173E-04
   8  norm          1.6082        .56526       -.22127E-07   -.31889E-03
   9  Prefactor     .10000E-03    5.4335       -.15796E-06** at limit **
  10  Prefactor     29.179        25.766       -.45280E-07   -.71621E-05
  11  Prefactor     .10000E-03    4.1259        .85016E-07** at limit **
  12  Prefactor     4.9570        5.3432       -.99543E-06   -.46513E-04
  13  norm          2.6655        59.486        .34147E-05    .60048E-05
  14  Prefactor     24.984        47.376        .23122E-05    .80293E-06
  15  Prefactor     .10000E-03    146.09       -.10196E-04** at limit **
  16  Prefactor     .10000E-03    44.841        .18374E-05** at limit **
  17  norm          2.4601        4.8519       -.23955E-06   -.76193E-04
  18  Prefactor     36.390        91.354        .11304E-06   -.85203E-05
  19  Prefactor     .10000E-03    6.8875        .16085E-06** at limit **
  20  Prefactor     .10000E-03    11.900       -.33528E-06** at limit **
  21  norm          .10000E-03    1.1463       -.28461E-07** at limit **
  22  Prefactor     .10000E-03    3.4846       -.19545E-07** at limit **
  23  Prefactor     .10000E-03    2.0364        .14625E-07** at limit **
  24  norm          .10000E-03    .14668        .19037E-07** at limit **
  25  Prefactor     .10000E-03    21.816       -.28094E-05** at limit **
  26  Prefactor     .10000E-03    3.3115        .43978E-07** at limit **
  27  Normalizat    1.3528        .22443        .14896E-06   -.15299E-03
  28  Prefactor     .63452        .18649       -.93145E-06   -.96958E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.3762
  Prefactor  = 14.702
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.5009
  norm       = 14.4845
  norm       = 1.60822
  Prefactor  = 0.0001
  Prefactor  = 29.1793
  Prefactor  = 0.0001
  Prefactor  = 4.95704
  norm       = 2.66554
  Prefactor  = 24.9836
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 2.46006
  Prefactor  = 36.3903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35278
  Prefactor  = 0.634524
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.992     FROM HESSE     STATUS=OK           517 CALLS     4108 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.376        7.0488        .10215E-03   -1.4924    
   2  Prefactor     14.702        12.930        .10450E-03   -1.4941    
   3  Prefactor     .10001E-03    27.951        .37844E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.0553        .11404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     57.501        112.65        .52928E-04   -1.4190    
   7  norm          14.484        9.3963        .10523E-03   -1.4947    
   8  norm          1.6082        .56633        .27791E-04   -1.5454    
   9  Prefactor     .10000E-03    5.4370        .15219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     29.179        25.752        .74173E-04   -1.4627    
  11  Prefactor     .10000E-03    4.1373        .13259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     4.9570        5.3571        .75154E-03   -1.5263    
  13  norm          2.6655        59.300        .25134E-03   -1.5381    
  14  Prefactor     24.984        47.383        .80164E-04   -1.4708    
  15  Prefactor     .10000E-03    145.41        .61581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    45.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.4601        4.9808        .13125E-03   -1.5394    
  18  Prefactor     36.390        94.412        .66429E-04   -1.4501    
  19  Prefactor     .10000E-03    6.9104        .17132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.299        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1480        .69880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4852        .12186E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    2.0382        .93153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .15112        .49990E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    21.845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    3.3123        .11880E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3528        .26350        .23766E-03   -.82004    
  28  Prefactor     .63452        .21760        .28182E-03   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57015e-10
Minuit parameter uncertainties:
  1  7.04914
  2  12.9322
  3  0.000958204
  4  2.04526e-06
  5  6.6089e-05
  6  113.069
  7  9.39722
  8  0.566329
  9  5.84626e-06
  10  25.7623
  11  2.98479e-06
  12  5.35759
  13  25.1728
  14  47.4548
  15  0.00117763
  16  1.40108e-05
  17  4.98169
  18  94.8035
  19  5.30313e-06
  20  1.31912e-05
  21  9.97198e-09
  22  1.87555e-07
  23  4.78957e-07
  24  1.38694e-07
  25  4.02361e-05
  26  6.81929e-07
  27  0.263761
  28  0.21789
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.345e-01  2.179e-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.353e+00  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 8.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.02e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273290/likelihoodResults_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.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): 102
logL (Free Index) = 4467.99280512
delta logL = -0.00114300911446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4467.99166212
delta logL = -8.43556335894e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6733       1.0000          .0000       10.000    
     3 'Normalizat'    1.3528       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63454       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=   4467.992     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      245 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    258.97        .13266E-02** at limit **
   2  Index         2.6303        5.6634        .50000        .57379E-05
   3  Normalizat    1.3528        .47291E-01    .23766E-03   -.11098E-04
   4  Prefactor     .63452        .40068E-01    .28182E-03    .66966E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100208
  Index      = 2.63028
  Normalizat = 1.35278
  Prefactor  = 0.634524
 **********
 **   18 **HESSE 
 **********

 FCN=   4467.992     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    821.73        .26531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.6303        7.1660        .50000       -.49376    
   3  Normalizat    1.3528        .12717        .95062E-05   -.82004    
   4  Prefactor     .63452        .10771        .11273E-04   -1.0615    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.79331e-08
Minuit parameter uncertainties:
  1  0.0264937
  2  2485.76
  3  0.127198
  4  0.107743
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273290': 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): 102
logL (Free Index) = 4467.99166207
delta logL = 4.67944119009e-08

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
560    Prefactor:  6.345e-01  1.077e-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.353e+00  1.272e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 335.497 -35.071

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/273290/cmap_HighResolution_464054401_464313601_4FGL_J2221.9-3504_daily_bin867.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.02e-03', job_status='DONE', photon_flux_upper_limit='8.92e-08', time_completed='2021-09-28 10:09:08.965179', job_id='273290', GAL2='0.63', fit_tolerance='1e-08', EG2='1.35', EG='1.35', time_epoch_completed='1632848948.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.63', dlogl='4.68e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='867' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:09:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 273290: <4FGL_J2221.9-3504_daily_bin867> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin867> 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) <bullet0266>, 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:09:09 2021
Results reported at Tue Sep 28 10:09:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin867 335.497 -35.0712 464054401 464313601 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 :                                   651.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             323.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

