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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin863
RA = 335.497, Dec = -35.0712
tmin = 463017601, tmax = 463276801
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='273284', job_status='RUN', time_executed='2021-09-28 09:56:18.575069', time_epoch_executed='1632848178.58' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='863'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273284/ft1_4FGL_J2221.9-3504_daily_bin863.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273284/ft1_4FGL_J2221.9-3504_daily_bin863.fits outfile=/scratch/kocevski/273284/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin863.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=463017601.0 tmax=463276801.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.65
user 3.45
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273284/ft1_filtered_4FGL_J2221.9-3504_daily_bin863.fits" evtable="EVENTS" scfile=/scratch/kocevski/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits sctable="SC_DATA" outfile=/scratch/kocevski/273284/ltcube_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.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/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits
.....................!
real 12.03
user 11.64
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273284/ft1_filtered_4FGL_J2221.9-3504_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits sctable="SC_DATA" expcube=/scratch/kocevski/273284/ltcube_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.fits outfile=/scratch/kocevski/273284/expmap_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.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/273284/ltcube_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.fits
.....................!
real 190.48
user 184.79
sys 5.38

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/273284/ft1_filtered_4FGL_J2221.9-3504_daily_bin863.fits scfile=/scratch/kocevski/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits outfile=/scratch/kocevski/273284/cmap_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273284/ft1_filtered_4FGL_J2221.9-3504_daily_bin863.fits scfile=/scratch/kocevski/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits outfile=/scratch/kocevski/273284/cmap_HighResolution_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273284/ft1_filtered_4FGL_J2221.9-3504_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/273284/ft2_4FGL_J2221.9-3504_daily_bin863.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273284/Model_4FGL_J2221.9-3504_daily_bin863.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/273284/ft1_filtered_4FGL_J2221.9-3504_daily_bin863.fits.....................!
real 41.77
user 40.44
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.742       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .24058E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.7713       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2570       1.0000         .10000E-03   10000.    
     6 'Prefactor '    37.099       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2639       1.0000         .10000E-03   10000.    
     8 'norm      '    2.0142       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    4.2295       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4829       1.0000         .10000E-03   10000.    
    15 'Prefactor '    35.489       1.0000         .10000E-03   10000.    
    16 'Prefactor '    51.237       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7471       1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.652       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.0495       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52967       1.0000         .10000E-03   10000.    
    24 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .19267E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    9.9921       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76029       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2588       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=   4846.358     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     4087 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.745        6.2309        .11030E-07   -.28127E-04
   2  Prefactor     .10002E-03    36.825       -.28297E-05** at limit **
   3  Prefactor     .10000E-03    3.5086        .76550E-07** at limit **
   4  norm          4.7741        6.9846       -.38386E-07   -.45161E-04
   5  Prefactor     6.3343        56.183        .18067E-05    .30380E-04
   6  Prefactor     37.006        146.19       -.14281E-05    .19906E-04
   7  norm          4.2673        6.6023        .37545E-07   -.10038E-04
   8  norm          2.0141        .58644        .92885E-08   -.14910E-03
   9  Prefactor     .10000E-03    14.766        .14852E-05** at limit **
  10  Prefactor     .10000E-03    9.8489        .42751E-06** at limit **
  11  Prefactor     .10000E-03    8.4583        .12025E-06** at limit **
  12  Prefactor     .10000E-03    7.4850        .91774E-06** at limit **
  13  norm          4.1757        69.701       -.37605E-06    .19529E-05
  14  Prefactor     5.5488        221.91        .14032E-05    .16478E-04
  15  Prefactor     35.523        34.899       -.20535E-06   -.44236E-04
  16  Prefactor     51.267        40.698       -.37567E-06   -.16880E-04
  17  norm          .10000E-03    2.2577       -.33231E-06** at limit **
  18  Prefactor     2.7686        316.01       -.13726E-05   -.31118E-06
  19  Prefactor     24.661        20.799       -.29239E-06   -.37487E-04
  20  Prefactor     5.0429        12.124       -.22077E-06    .26046E-04
  21  norm          .10000E-03    1.4954        .60531E-07** at limit **
  22  Prefactor     .10000E-03    9.2798        .47278E-07** at limit **
  23  Prefactor     .54720        22.951       -.73146E-06    .21148E-05
  24  norm          .10000E-03    .67578        .70294E-06** at limit **
  25  Prefactor     .10000E-03    65.483       -.80704E-06** at limit **
  26  Prefactor     9.9598        23.554       -.52373E-06   -.27585E-03
  27  Normalizat    .76037        .26729        .23808E-05   -.94423E-04
  28  Prefactor     1.2586        .21727       -.25281E-05   -.31671E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.7452
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  norm       = 4.77405
  Prefactor  = 6.33427
  Prefactor  = 37.0064
  norm       = 4.26734
  norm       = 2.01407
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  norm       = 4.17569
  Prefactor  = 5.54883
  Prefactor  = 35.5231
  Prefactor  = 51.2665
  norm       = 0.0001
  Prefactor  = 2.76861
  Prefactor  = 24.6614
  Prefactor  = 5.04287
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.5472
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 9.95978
  Normalizat = 0.760369
  Prefactor  = 1.2586
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.358     FROM HESSE     STATUS=OK           529 CALLS     4616 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.745        6.2326        .11221E-03   -1.4994    
   2  Prefactor     .10002E-03    52.791        .35521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.5158        .12733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.7741        6.9866        .18419E-03   -1.5271    
   5  Prefactor     6.3343        54.328        .16048E-03   -1.5205    
   6  Prefactor     37.006        144.35        .65800E-04   -1.4491    
   7  norm          4.2673        6.5848        .19251E-03   -1.5295    
   8  norm          2.0141        .58789        .26502E-04   -1.5424    
   9  Prefactor     .10000E-03    15.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.8712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.6296        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.315        .22209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          4.1757        68.946        .19594E-03   -1.5299    
  14  Prefactor     5.5488        217.49        .17160E-03   -1.5237    
  15  Prefactor     35.523        34.870        .67271E-04   -1.4515    
  16  Prefactor     51.267        40.602        .56028E-04   -1.4275    
  17  norm          .10000E-03    2.2701        .20232E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7686        300.16        .24562E-03   -1.5375    
  19  Prefactor     24.661        20.839        .80679E-04   -1.4714    
  20  Prefactor     5.0429        12.061        .17894E-03   -1.5259    
  21  norm          .10000E-03    1.4971        .83119E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.3008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .54720        84.083        .38955E-02   -1.5560    
  24  norm          .10000E-03    .91259        .94569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    65.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     9.9598        26.966        .12676E-03   -1.5077    
  27  Normalizat    .76037        .29444        .31719E-03   -1.0156    
  28  Prefactor     1.2586        .23756        .22452E-03   -.84546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91431e-09
Minuit parameter uncertainties:
  1  6.23289
  2  0.00195423
  3  3.98325e-06
  4  6.98777
  5  37.1465
  6  145.745
  7  6.58589
  8  0.587895
  9  0.000127637
  10  2.65362e-05
  11  5.67167e-06
  12  0.000498215
  13  33.981
  14  69.7515
  15  34.8898
  16  40.6238
  17  8.08323e-06
  18  57.9547
  19  20.845
  20  12.0667
  21  2.19289e-06
  22  1.10478e-05
  23  13.5844
  24  8.47898e-07
  25  0.000375382
  26  26.999
  27  0.295059
  28  0.237764
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.000e-04  5.672e-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:  1.259e+00  2.378e-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:  7.604e-01  2.951e-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: 9.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/273284/likelihoodResults_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.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) = 4846.35841559
delta logL = -0.000552079734916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4846.35786584
delta logL = -2.33495484281e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11917E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6555       1.0000          .0000       10.000    
     3 'Normalizat'    .75997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2590       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=   4846.358     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      254 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10158E-03    1.9195        .63207E-01** at limit **
   2  Index         2.5856        8.6733        .50000        .13822E-04
   3  Normalizat    .76037        .32869E-02    .31720E-03    .74442E-04
   4  Prefactor     1.2586        .29355E-02    .22452E-03    .86325E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101577
  Index      = 2.58561
  Normalizat = 0.760372
  Prefactor  = 1.2586
 **********
 **   18 **HESSE 
 **********

 FCN=   4846.358     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      285 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10158E-03    82.910        .31407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5856        7.6194        .50000       -.50394    
   3  Normalizat    .76037        .16624E-01    .12688E-04   -1.0156    
   4  Prefactor     1.2586        .14847E-01    .44903E-04   -.84546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.70442e-09
Minuit parameter uncertainties:
  1  0.0229021
  2  371.814
  3  0.0166246
  4  0.0148473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273284': 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) = 4846.35786323
delta logL = 2.77701474261e-07

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.016e-04  2.290e-02  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  2.586e+00  3.718e+02  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.259e+00  1.485e-02  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:  7.604e-01  1.662e-02  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/273284/cmap_HighResolution_463017601_463276801_4FGL_J2221.9-3504_daily_bin863.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.44e-03', job_status='DONE', photon_flux_upper_limit='9.47e-08', time_completed='2021-09-28 10:07:44.814372', job_id='273284', GAL2='1.26', fit_tolerance='1e-08', EG2='0.76', EG='0.76', time_epoch_completed='1632848864.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='2.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.68' WHERE bin_id='863' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:07:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 273284: <4FGL_J2221.9-3504_daily_bin863> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin863> 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) <bullet0221>, 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:07:45 2021
Results reported at Tue Sep 28 10:07:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin863 335.497 -35.0712 463017601 463276801 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 :                                   686.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             334.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   726 sec.
    Turnaround time :                            728 sec.

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

