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


Performing analysis on: 4FGL_J2221.9-3504_daily_bin1255
RA = 335.497, Dec = -35.0712
tmin = 564624001, tmax = 564883201
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='274888', job_status='RUN', time_executed='2021-09-28 10:02:55.546517', time_epoch_executed='1632848575.55' WHERE source_name='4FGL J2221.9-3504' and cadence='daily' and bin_id='1255'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/274888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/274888/ft1_4FGL_J2221.9-3504_daily_bin1255.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/274888/ft1_4FGL_J2221.9-3504_daily_bin1255.fits outfile=/scratch/kocevski/274888/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1255.fits ra=335.497 dec=-35.0712 rad=12.0 tmin=564624001.0 tmax=564883201.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.61
user 3.39
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.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/274888/ft1_filteredMKT_4FGL_J2221.9-3504_daily_bin1255.fits evtable="EVENTS" outfile="/scratch/kocevski/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.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/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.fits" evtable="EVENTS" scfile=/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits sctable="SC_DATA" outfile=/scratch/kocevski/274888/ltcube_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.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/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits
.....................!
real 11.54
user 11.15
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits sctable="SC_DATA" expcube=/scratch/kocevski/274888/ltcube_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.fits outfile=/scratch/kocevski/274888/expmap_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.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/274888/ltcube_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.fits
.....................!
real 191.03
user 185.62
sys 5.10

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/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.fits scfile=/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits outfile=/scratch/kocevski/274888/cmap_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.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/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.fits scfile=/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits outfile=/scratch/kocevski/274888/cmap_HighResolution_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.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.51
user 0.37
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.fits evtable="EVENTS" scfile=/scratch/kocevski/274888/ft2_4FGL_J2221.9-3504_daily_bin1255.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/274888/Model_4FGL_J2221.9-3504_daily_bin1255.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/274888/ft1_filtered_4FGL_J2221.9-3504_daily_bin1255.fits......................!
real 27.88
user 26.59
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    16.232       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.113       1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.725       1.0000         .10000E-03   10000.    
     4 'norm      '    13.909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    145.96       1.0000         .10000E-03   10000.    
     7 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.9425       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.568       1.0000         .10000E-03   10000.    
    11 'Prefactor '    33.185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.597       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12266E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .17916E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6400       1.0000         .10000E-03   10000.    
    18 'Prefactor '    181.32       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11780E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.3097       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10207E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    61.382       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .10054E-01   1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.4539       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2258.684     FROM MIGRAD    STATUS=CONVERGED    101 CALLS     3086 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.238        1.1065        .76433E-08   -.45499E-03
   2  Prefactor     15.122        1.2523        .41749E-08   -.35373E-03
   3  Prefactor     37.736        1.3754        .78755E-07   -.46355E-03
   4  norm          13.923        1.3351        .59597E-07   -.94013E-03
   5  Prefactor     .10028E-03    20.642       -.10574E-05** at limit **
   6  Prefactor     145.98        3.9097        .14671E-06   -.88809E-02
   7  norm          .10000E-03    5.8083        .69359E-05** at limit **
   8  norm          3.9429        .96503        .10343E-06   -.24365E-03
   9  Prefactor     .10000E-03    12.009        .83280E-06** at limit **
  10  Prefactor     20.582        1.6717        .11296E-06    .66406E-03
  11  Prefactor     33.193        1.2847        .54868E-07    .42979E-03
  12  Prefactor     .10045E-03    16.791        .58587E-06** at limit **
  13  norm          23.589        1.3070       -.84570E-07   -.57052E-04
  14  Prefactor     .13746E-03    92.461       -.82608E-05** at limit **
  15  Prefactor     .10003E-03    27.093       -.83132E-05** at limit **
  16  Prefactor     .12687E-03    141.10       -.10776E-04** at limit **
  17  norm          1.6481        3.3830       -.14591E-05    .20560E-04
  18  Prefactor     181.30        4.6723       -.16243E-06    .12427E-01
  19  Prefactor     .10000E-03    11.929       -.45952E-06** at limit **
  20  Prefactor     .10137E-03    8.2549        .56327E-06** at limit **
  21  norm          .10000E-03    3.5428       -.21166E-05** at limit **
  22  Prefactor     .10005E-03    28.092       -.85610E-05** at limit **
  23  Prefactor     .10185E-03    50.792       -.10290E-05** at limit **
  24  norm          6.3077        1.9956        .14058E-05   -.47511E-03
  25  Prefactor     .10006E-03    47.303       -.14586E-05** at limit **
  26  Prefactor     61.424        7.5486        .45292E-06   -.87365E-02
  27  Normalizat    .10000E-01    6.7597        .47817E-04** at limit **
  28  Prefactor     1.4537        .18733        .52444E-05   -.51561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 16.2376
  Prefactor  = 15.1216
  Prefactor  = 37.736
  norm       = 13.9231
  Prefactor  = 0.000100278
  Prefactor  = 145.979
  norm       = 0.0001
  norm       = 3.94292
  Prefactor  = 0.000100002
  Prefactor  = 20.5819
  Prefactor  = 33.1934
  Prefactor  = 0.000100455
  norm       = 23.5886
  Prefactor  = 0.000137464
  Prefactor  = 0.00010003
  Prefactor  = 0.00012687
  norm       = 1.6481
  Prefactor  = 181.298
  Prefactor  = 0.000100001
  Prefactor  = 0.000101371
  norm       = 0.0001
  Prefactor  = 0.000100048
  Prefactor  = 0.000101848
  norm       = 6.3077
  Prefactor  = 0.000100058
  Prefactor  = 61.4239
  Normalizat = 0.01
  Prefactor  = 1.45374
 **********
 **   18 **HESSE 
 **********

 FCN=   2258.684     FROM HESSE     STATUS=OK           575 CALLS     3661 TOTAL
                     EDM=   .30E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.238        19.740        .24852E-02   -1.4902    
   2  Prefactor     15.122        23.305        .25757E-02   -1.4930    
   3  Prefactor     37.736        36.200        .16313E-02   -1.4479    
   4  norm          13.923        19.279        .26849E-02   -1.4962    
   5  Prefactor     .10028E-03    23.816        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     145.98        122.11        .83383E-03   -1.3286    
   7  norm          .10000E-03    5.7792        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.9429        .97440        .49885E-02   -1.5311    
   9  Prefactor     .10000E-03    11.960        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.582        27.976        .22079E-02   -1.4800    
  11  Prefactor     33.193        27.869        .17390E-02   -1.4555    
  12  Prefactor     .10045E-03    20.996        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.589        35.952        .20615E-02   -1.4736    
  14  Prefactor     .13746E-03    187.56        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10003E-03    55.419        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12687E-03    284.53        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6481        3.8442        .82489E-02   -1.5451    
  18  Prefactor     181.30        113.71        .74946E-03   -1.3007    
  19  Prefactor     .10000E-03    11.930        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10137E-03    21.985        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.5362        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10005E-03    54.806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10185E-03    96.718        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.3077        2.5345        .39950E-02   -1.5206    
  25  Prefactor     .10006E-03    104.34        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     61.424        59.644        .12804E-02   -1.4139    
  27  Normalizat    .10000E-01    .49170        .32095       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     1.4537        .29545        .53601E-01   -.78844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9988e-06
Minuit parameter uncertainties:
  1  19.7481
  2  23.3194
  3  36.2211
  4  19.2871
  5  0.00514897
  6  122.319
  7  3.89448e-05
  8  0.974408
  9  0.000283065
  10  27.9937
  11  27.8796
  12  0.00618111
  13  35.9848
  14  0.16818
  15  0.00256355
  16  0.175713
  17  3.84478
  18  113.853
  19  0.000257117
  20  0.0109844
  21  1.20088e-05
  22  0.00326185
  23  0.0267824
  24  2.53455
  25  0.00491335
  26  59.7019
  27  7.74896e-06
  28  0.295799
Done.

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

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  3.319e+01  2.788e+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:  1.454e+00  2.958e-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.000e-02  7.749e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.58
Ra Dec: 335.497 -35.071
Photon Index (Fixed Index): 2.68 +/- 0.00
Photon Flux (Fixed Index): 1.60e-07 +/- 1.34e-07
Energy Flux (Fixed Index): 3.93e-05 +/- 3.30e-05

TS (Fixed Index): 2.58
Ra Dec: 335.497 -35.071
Photon Flux Upper Limit: 4.69e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.68e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/274888/likelihoodResults_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2258.0769261
delta logL = 0.606654807025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2258.07620933
delta logL = 0.607371576695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.304       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6014       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4413       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=   2258.076     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      271 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.349        392.03        .23404E-02    .82708E-03
   2  Index         3.6036        6.7693        .11924        .29507E-03
   3  Normalizat    .10000E-01    .13915        .32111    ** at limit **
   4  Prefactor     1.4405        .16321        .53634E-01    .26444E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3488
  Index      = 3.60361
  Normalizat = 0.01
  Prefactor  = 1.44052
 **********
 **   18 **HESSE 
 **********

 FCN=   2258.076     FROM HESSE     STATUS=OK            31 CALLS      302 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.349        23.570        .93616E-04   -1.4851    
   2  Index         3.6036        1.0007        .50032E-02   -.28304    
   3  Normalizat    .10000E-01    1.1519        .11951E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.4405        .18355        .23707E-03   -.79220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68388e-09
Minuit parameter uncertainties:
  1  23.5818
  2  1.00806
  3  6.49588e-05
  4  0.183637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/274888': 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) = 2258.07617653
delta logL = 0.607404377625

Extracting fit parameters...

4FGL J2221.9-3504
   Spectrum: PowerLaw
253    Prefactor:  1.835e+01  2.358e+01  1.000e-04  1.000e+04 ( 1.000e-12)
254        Index:  3.604e+00  1.008e+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:  1.441e+00  1.836e-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.000e-02  6.496e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.72
Ra Dec: 335.497 -35.071
Photon Index (Free Index): 3.60 +/- 1.01
Photon Flux (Free Index): 2.61e-07 +/- 1.90e-07
Energy Flux (Free Index): 4.23e-05 +/- 2.98e-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/274888/cmap_HighResolution_564624001_564883201_4FGL_J2221.9-3504_daily_bin1255.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.68e-02', comment='SUCCESS', photon_flux='1.60e-07', energy_flux2='4.23e-05', photon_flux_error='1.34e-07', dlogl='6.07e-01', energy_flux='3.93e-05', photon_flux2='2.61e-07', job_status='DONE', time_completed='2021-09-28 10:10:40.739246', photon_index_error2='1.01', photon_index2='3.60', ts='2.58', fit_tolerance='1e-08', GAL='1.45', photon_index_error='0.00', photon_flux_upper_limit='4.69e-07', energy_flux_error2='2.98e-05', EG='0.01', time_epoch_completed='1632849040.74', return_code='0', job_id='274888', GAL2='1.44', EG2='0.01', return_code2='0', energy_flux_error='3.30e-05', photon_flux_error2='1.90e-07', ts2='3.72', photon_index='2.68' WHERE bin_id='1255' AND source_name='4FGL J2221.9-3504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 10:10:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 274888: <4FGL_J2221.9-3504_daily_bin1255> in cluster <slac> Done

Job <4FGL_J2221.9-3504_daily_bin1255> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Tue Sep 28 10:00:43 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 10:00:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 10:00:44 2021
Terminated at Tue Sep 28 10:10:41 2021
Results reported at Tue Sep 28 10:10:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2221.9-3504_daily_bin1255 335.497 -35.0712 564624001 564883201 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 :                                   465.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             322.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            598 sec.

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

