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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin950
RA = 335.497, Dec = -35.0712
tmin = 485568001, tmax = 485827201
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='273426', job_status='RUN', time_executed='2021-09-28 09:56:04.881542', time_epoch_executed='1632848164.88' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='950'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273426

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273426/ft1_4FGL_J2221.9-3504_daily_bin950.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273426/ft1_4FGL_J2221.9-3504_daily_bin950.fits outfile=/scratch/kocevski/273426/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin950.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=485568001.0 tmax=485827201.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.21
user 3.94
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273426/ft1_filtered_4FGL_J2221.9-3504_daily_bin950.fits" evtable="EVENTS" scfile=/scratch/kocevski/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits sctable="SC_DATA" outfile=/scratch/kocevski/273426/ltcube_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.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/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits
.....................!
real 16.40
user 16.00
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273426/ft1_filtered_4FGL_J2221.9-3504_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits sctable="SC_DATA" expcube=/scratch/kocevski/273426/ltcube_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.fits outfile=/scratch/kocevski/273426/expmap_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.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/273426/ltcube_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.fits
.....................!
real 195.77
user 190.11
sys 5.26

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/273426/ft1_filtered_4FGL_J2221.9-3504_daily_bin950.fits scfile=/scratch/kocevski/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits outfile=/scratch/kocevski/273426/cmap_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.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.61
user 0.43
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273426/ft1_filtered_4FGL_J2221.9-3504_daily_bin950.fits scfile=/scratch/kocevski/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits outfile=/scratch/kocevski/273426/cmap_HighResolution_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.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.61
user 0.44
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273426/ft1_filtered_4FGL_J2221.9-3504_daily_bin950.fits evtable="EVENTS" scfile=/scratch/kocevski/273426/ft2_4FGL_J2221.9-3504_daily_bin950.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273426/Model_4FGL_J2221.9-3504_daily_bin950.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/273426/ft1_filtered_4FGL_J2221.9-3504_daily_bin950.fits.....................!
real 49.83
user 48.37
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    24.134       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6795       1.0000         .10000E-03   10000.    
     4 'norm      '    6.4584       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.9147       1.0000         .10000E-03   10000.    
     8 'norm      '    1.7796       1.0000         .10000E-03   10000.    
     9 'Prefactor '    20.806       1.0000         .10000E-03   10000.    
    10 'Prefactor '    14.862       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .47783E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    86.814       1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.650       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.7185       1.0000         .10000E-03   10000.    
    17 'norm      '    .11529E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    51.837       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .20363       1.0000         .10000E-03   10000.    
    25 'Prefactor '    23.677       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.6690       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .21958       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=   5503.082     FROM MIGRAD    STATUS=CONVERGED    706 CALLS     3585 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.134        6.6462        .10404E-06    .96539E-04
   2  Prefactor     .10000E-03    8.5825        .17899E-06** at limit **
   3  Prefactor     3.6799        4.9125        .85801E-06   -.91948E-04
   4  norm          6.4572        6.3738        .92215E-07    .51817E-04
   5  Prefactor     .10000E-03    6.8840        .76310E-07** at limit **
   6  Prefactor     .10000E-03    21.011        .41867E-06** at limit **
   7  norm          6.9137        5.1382       -.19763E-05   -.11662E-03
   8  norm          1.7796        .47519        .10005E-06   -.13652E-05
   9  Prefactor     20.811        14.242        .43032E-05    .26836E-04
  10  Prefactor     14.863        19.929        .69596E-08    .46993E-06
  11  Prefactor     .10000E-03    9.0349        .48054E-06** at limit **
  12  Prefactor     .10000E-03    2.5028       -.11520E-06** at limit **
  13  norm          86.818        33.732        .18457E-04   -.11581E-03
  14  Prefactor     26.640        29.663        .14161E-04    .14561E-04
  15  Prefactor     .10000E-03    12.212       -.55211E-07** at limit **
  16  Prefactor     2.7190        19.047        .89273E-06   -.93126E-04
  17  norm          .10000E-03    1.9311        .98052E-06** at limit **
  18  Prefactor     51.702        57.988       -.18754E-04   -.20050E-03
  19  Prefactor     .10000E-03    4.4308        .13356E-06** at limit **
  20  Prefactor     .10000E-03    1.6597       -.85835E-07** at limit **
  21  norm          .10000E-03    1.1453       -.11963E-07** at limit **
  22  Prefactor     .10000E-03    3.3624        .47173E-07** at limit **
  23  Prefactor     .10000E-03    3.6858        .97239E-07** at limit **
  24  norm          .20366        .30645        .18582E-07    .35560E-04
  25  Prefactor     23.676        65.782       -.76272E-05    .10929E-04
  26  Prefactor     .10000E-03    4.0216       -.80406E-07** at limit **
  27  Normalizat    1.6691        .21913        .15684E-05   -.12522E-03
  28  Prefactor     .21946        .17658       -.64916E-05   -.21483E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 24.1339
  Prefactor  = 0.0001
  Prefactor  = 3.67995
  norm       = 6.45725
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.91375
  norm       = 1.77957
  Prefactor  = 20.8111
  Prefactor  = 14.8632
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 86.8183
  Prefactor  = 26.6404
  Prefactor  = 0.0001
  Prefactor  = 2.71898
  norm       = 0.000100002
  Prefactor  = 51.7018
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.203657
  Prefactor  = 23.6759
  Prefactor  = 0.0001
  Normalizat = 1.66914
  Prefactor  = 0.219463
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.082     FROM HESSE     STATUS=OK           523 CALLS     4108 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.134        6.6348        .81538E-04   -1.4725    
   2  Prefactor     .10000E-03    8.9091        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6799        4.8969        .18374E-03   -1.5324    
   4  norm          6.4572        6.3593        .15793E-03   -1.5200    
   5  Prefactor     .10000E-03    6.8972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.030        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.9137        5.1549        .13223E-03   -1.5182    
   8  norm          1.7796        .47703        .24637E-04   -1.5441    
   9  Prefactor     20.811        14.223        .87810E-04   -1.4795    
  10  Prefactor     14.863        19.872        .10389E-03   -1.4937    
  11  Prefactor     .10000E-03    67.607        .41578E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5624        .22902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          86.818        33.407        .21559E-03   -1.3842    
  14  Prefactor     26.640        29.656        .77601E-04   -1.4675    
  15  Prefactor     .10000E-03    12.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.7190        18.964        .24701E-03   -1.5378    
  17  norm          .10000E-03    2.8571        .18374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     51.702        54.281        .55704E-04   -1.4269    
  19  Prefactor     .10000E-03    4.4393        .15249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6607        .93332E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    1.1475        .77519E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.3633        .13285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.7085        .13898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .20366        .26301        .48988E-03   -1.5618    
  25  Prefactor     23.676        66.053        .82321E-04   -1.4734    
  26  Prefactor     .10000E-03    4.0268        .14528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.6691        .21698        .20256E-03   -.73130    
  28  Prefactor     .21946        .17230        .42052E-03   -1.2734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36851e-09
Minuit parameter uncertainties:
  1  6.63501
  2  3.61019e-05
  3  4.8974
  4  6.35997
  5  1.55767e-05
  6  2.91542e-05
  7  5.1552
  8  0.477033
  9  14.2255
  10  19.8808
  11  0.000796806
  12  2.29339e-05
  13  33.4139
  14  29.672
  15  6.65844e-06
  16  14.3678
  17  0.000138404
  18  54.3329
  19  1.72657e-06
  20  1.11644e-06
  21  2.76799e-06
  22  9.204e-07
  23  1.10376e-05
  24  0.263012
  25  66.2579
  26  6.69489e-06
  27  0.217106
  28  0.172698
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  7.968e-04  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:  2.195e-01  1.727e-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.669e+00  2.171e-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: 1.11e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.76e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273426/likelihoodResults_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.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) = 5503.08197999
delta logL = -6.89581702318e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5503.08197994
delta logL = -6.89135940775e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96305E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6768       1.0000          .0000       10.000    
     3 'Normalizat'    1.6691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .21948       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=   5503.080     FROM MIGRAD    STATUS=CONVERGED    117 CALLS      279 TOTAL
                     EDM=   .75E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .37353        82.793        .55130E-01   -.38723E-03
   2  Index         3.1899        6.4517        .50000        .10505E-04
   3  Normalizat    1.6652        .18167E-01    .45876E-01   -.28146E-04
   4  Prefactor     .22109        .14844E-01    .94624E-01    .57707E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.373533
  Index      = 3.18995
  Normalizat = 1.66519
  Prefactor  = 0.221091
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.080     FROM HESSE     STATUS=OK            35 CALLS      314 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .37353        34.650        .34334E-02   -1.5830    
   2  Index         3.1899        6.5809        .29025E-01   -.37042    
   3  Normalizat    1.6652        .21741        .20277E-03   -.73236    
   4  Prefactor     .22109        .17189        .41907E-03   -1.2723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.48206e-08
Minuit parameter uncertainties:
  1  7.19862
  2  5.09965
  3  0.217539
  4  0.172285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273426': 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) = 5503.08047137
delta logL = 0.0014396573979

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.735e-01  7.199e+00  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.190e+00  5.100e+00  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:  2.211e-01  1.723e-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.665e+00  2.175e-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/273426/cmap_HighResolution_485568001_485827201_4FGL_J2221.9-3504_daily_bin950.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.76e-03', job_status='DONE', photon_flux_upper_limit='1.11e-07', time_completed='2021-09-28 10:08:50.324113', job_id='273426', GAL2='0.22', fit_tolerance='1e-08', EG2='1.67', EG='1.67', time_epoch_completed='1632848930.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.22', dlogl='1.44e-03', ts2='0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='950' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:08:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 273426: <4FGL_J2221.9-3504_daily_bin950> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin950 335.497 -35.0712 485568001 485827201 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 :                                   765.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   777 sec.
    Turnaround time :                            781 sec.

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

