/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 38 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 = 7449
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1005
RA = 185.345, Dec = 30.1677
tmin = 499824001, tmax = 500083201
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='521330', job_status='RUN', time_executed='2021-09-05 09:26:39.599356', time_epoch_executed='1630859199.6' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521330

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521330/ft1_4FGL_J1221.3+3010_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521330/ft1_4FGL_J1221.3+3010_daily_bin1005.fits outfile=/scratch/kocevski/521330/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1005.fits ra=185.345 dec=30.1677 rad=12.0 tmin=499824001.0 tmax=500083201.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 5.26
user 4.96
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.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/521330/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.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.59
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/521330/ltcube_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.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/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits
.....................!
real 12.57
user 11.95
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/521330/ltcube_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.fits outfile=/scratch/kocevski/521330/expmap_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.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/521330/ltcube_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.fits
.....................!
real 205.75
user 188.46
sys 5.85

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits scfile=/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits outfile=/scratch/kocevski/521330/cmap_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.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=185.345 yref=30.1677 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits scfile=/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits outfile=/scratch/kocevski/521330/cmap_HighResolution_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.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=185.345 yref=30.1677 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/521330/Model_4FGL_J1221.3+3010_daily_bin1005.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/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits.....................!
real 45.46
user 44.07
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits', '/scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits', expMap='/scratch/kocevski/521330/expmap_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.fits', expCube='/scratch/kocevski/521330/ltcube_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/521330/Model_4FGL_J1221.3+3010_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/521330/ft1_filtered_4FGL_J1221.3+3010_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/521330/ft2_4FGL_J1221.3+3010_daily_bin1005.fits
Exposure map: /scratch/kocevski/521330/expmap_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.fits
Exposure cube: /scratch/kocevski/521330/ltcube_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/521330/Model_4FGL_J1221.3+3010_daily_bin1005.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) = 4787.44708422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .45542       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .25766       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.0720       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.870       1.0000         .10000E-03   10000.    
    11 'norm      '    7.5847       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10561E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.5168       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2501       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17128       1.0000         .10000E-03   10000.    
    17 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    28.178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.843       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5542       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13518E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    17.697       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3040       1.0000         .10000E-03   10000.    
    26 'Prefactor '    28.128       1.0000         .10000E-03   10000.    
    27 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    2.3004       1.0000         .10000E-03   10000.    
    29 'norm      '    .15158E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.1366       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .85851       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4787.435     FROM MIGRAD    STATUS=CONVERGED    167 CALLS     3587 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.375       -.12026E-05** at limit **
   2  Prefactor     .10000E-03    4.6598       -.58464E-06** at limit **
   3  Prefactor     .10000E-03    4.3027        .70373E-07** at limit **
   4  Prefactor     .52979E-01    6636.5        .22185E-03   -.50449E-05
   5  Prefactor     .26302        2.9515       -.15707E-05    .32267E-05
   6  Prefactor     .10001E-03    27.369        .18911E-05** at limit **
   7  Prefactor     .10001E-03    37.628        .35895E-06** at limit **
   8  norm          8.0770        2.1780       -.16682E-06    .33270E-03
   9  Prefactor     .10000E-03    6.4134        .46813E-06** at limit **
  10  Prefactor     22.827        11.454        .23797E-05    .22790E-02
  11  norm          7.5837        2.1742        .26228E-06   -.88400E-02
  12  Prefactor     .10004E-03    9.2015       -.23314E-05** at limit **
  13  Prefactor     4.5167        2.6270       -.90706E-07    .26361E-02
  14  Prefactor     5.2496        2.7008        .58834E-07    .57499E-03
  15  Prefactor     .10000E-03    2.1658        .56682E-06** at limit **
  16  norm          .17124        .15731        .21944E-07   -.78254E-04
  17  norm          .10000E-03    3.6991        .76301E-06** at limit **
  18  Prefactor     .10000E-03    3.4700        .69984E-08** at limit **
  19  Prefactor     28.087        16.968        .41409E-05   -.28150E-02
  20  Prefactor     74.823        5.0747        .58918E-06    .43360E-02
  21  Prefactor     3.5496        1.1094        .44502E-06    .29058E-03
  22  Prefactor     .10001E-03    22.270       -.20301E-05** at limit **
  23  norm          17.693        1.2850        .14984E-06   -.47469E-03
  24  Prefactor     .10001E-03    17.144        .33738E-05** at limit **
  25  norm          3.3023        1.1190        .15472E-06    .31166E-02
  26  Prefactor     28.055        22.584        .29730E-05    .28921E-02
  27  norm          .10000E-03    3.9804       -.46979E-06** at limit **
  28  norm          2.3025        4.0711        .57259E-07    .24214E-02
  29  norm          .10006E-03    7.1178       -.12864E-05** at limit **
  30  Normalizat    1.1369        .26313       -.47806E-05   -.86508E-04
  31  Prefactor     .85877        .28076        .16657E-05   -.65811E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0529792
  Prefactor  = 0.263023
  Prefactor  = 0.000100006
  Prefactor  = 0.000100005
  norm       = 8.07705
  Prefactor  = 0.0001
  Prefactor  = 22.8268
  norm       = 7.58371
  Prefactor  = 0.000100042
  Prefactor  = 4.51674
  Prefactor  = 5.24959
  Prefactor  = 0.0001
  norm       = 0.17124
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.0865
  Prefactor  = 74.823
  Prefactor  = 3.54961
  Prefactor  = 0.000100008
  norm       = 17.6926
  Prefactor  = 0.000100007
  norm       = 3.30226
  Prefactor  = 28.055
  norm       = 0.0001
  norm       = 2.30246
  norm       = 0.000100061
  Normalizat = 1.13691
  Prefactor  = 0.858771
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.435     FROM HESSE     STATUS=OK           706 CALLS     4293 TOTAL
                     EDM=   .34E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.337        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.6669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.2682        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .52979E-01    33.794        .11087       -1.5662    
   5  Prefactor     .26302        1.9569        .30826E-01   -1.5605    
   6  Prefactor     .10001E-03    27.806        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    38.037        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.0770        2.1808        .35280E-02   -1.5139    
   9  Prefactor     .10000E-03    3.1884        .43109E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.827        46.133        .20940E-02   -1.4752    
  11  norm          7.5837        4.0328        .36404E-02   -1.5157    
  12  Prefactor     .10004E-03    15.136        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.5167        2.9304        .47358E-02   -1.5283    
  14  Prefactor     5.2496        2.7145        .43856E-02   -1.5250    
  15  Prefactor     .10000E-03    2.1652        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .17124        .15146        .57683E-02   -1.5625    
  17  norm          .10000E-03    3.6501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4685        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     28.087        35.108        .18868E-02   -1.4648    
  20  Prefactor     74.823        81.419        .11603E-02   -1.3976    
  21  Prefactor     3.5496        8.2827        .53597E-02   -1.5331    
  22  Prefactor     .10001E-03    6.4117        .90712E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          17.693        8.0704        .23801E-02   -1.4866    
  24  Prefactor     .10001E-03    17.815        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3023        4.6890        .55682E-02   -1.5345    
  26  Prefactor     28.055        30.397        .18885E-02   -1.4648    
  27  norm          .10000E-03    3.9839        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          2.3025        5.3563        .67645E-02   -1.5404    
  29  norm          .10006E-03    7.7517        .61408E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.1369        .22082        .56913E-01   -.88575    
  31  Prefactor     .85877        .23509        .71561E-01   -.97597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37065e-07
Minuit parameter uncertainties:
  1  5.8975e-06
  2  1.63359e-05
  3  3.46009e-05
  4  2.67509
  5  1.43467
  6  0.000842974
  7  0.000882396
  8  2.18083
  9  1.89235e-05
  10  46.205
  11  4.03297
  12  0.00160275
  13  2.93045
  14  2.7146
  15  9.27354e-06
  16  0.151457
  17  9.07136e-06
  18  6.65949e-06
  19  35.1339
  20  81.5404
  21  8.28538
  22  0.000459269
  23  8.07092
  24  0.000727514
  25  4.68953
  26  30.4137
  27  2.72327e-05
  28  5.35738
  29  0.00137336
  30  0.220995
  31  0.235367
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  4.517e+00  2.930e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.588e-01  2.354e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.137e+00  2.210e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.71
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.22e-08 +/- 2.73e-08
Energy Flux (Fixed Index): 6.72e-05 +/- 4.36e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4787.38021307
delta logL = 0.0549634758736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4787.36663721
delta logL = 0.0685393409076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.0938       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5573       1.0000          .0000       10.000    
     3 'Normalizat'    1.1429       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85665       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   4787.367     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      271 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.0941        3.4934        .96965E-04   -.16967E-02
   2  Index         1.5572        .41128        .54629E-02   -.33412E-03
   3  Normalizat    1.1429        .25058        .25118E-03    .12481E-03
   4  Prefactor     .85663        .27860        .31713E-03    .16074E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.0941
  Index      = 1.55717
  Normalizat = 1.14294
  Prefactor  = 0.856633
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.367     FROM HESSE     STATUS=OK            23 CALLS      294 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.0941        3.4567        .19393E-04   -1.5257    
   2  Index         1.5572        .40695        .21852E-03   -.75951    
   3  Normalizat    1.1429        .25079        .50237E-04   -.88385    
   4  Prefactor     .85663        .27887        .12685E-04   -.97673    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58992e-09
Minuit parameter uncertainties:
  1  3.4568
  2  0.407805
  3  0.251049
  4  0.27933
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521330': 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) = 4787.36663715
delta logL = 0.0685393946205

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.094e+00  3.457e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.557e+00  4.078e-01  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.566e-01  2.793e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.143e+00  2.510e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.94
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.56 +/- 0.41
Photon Flux (Free Index): 3.36e-08 +/- 3.06e-08
Energy Flux (Free Index): 8.77e-05 +/- 8.40e-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/521330/cmap_HighResolution_499824001_500083201_4FGL_J1221.3+3010_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.22e-08', energy_flux2='8.77e-05', photon_flux_error='2.73e-08', dlogl='6.85e-02', energy_flux='6.72e-05', photon_flux2='3.36e-08', job_status='DONE', time_completed='2021-09-05 09:38:09.839533', photon_index_error2='0.41', photon_index2='1.56', ts='15.71', fit_tolerance='1e-08', GAL='0.86', photon_index_error='0.00', energy_flux_error2='8.40e-05', EG='1.14', time_epoch_completed='1630859889.84', return_code='0', job_id='521330', GAL2='0.86', EG2='1.14', return_code2='0', energy_flux_error='4.36e-05', photon_flux_error2='3.06e-08', ts2='15.94', photon_index='1.71' WHERE bin_id='1005' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:38:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 521330: <4FGL_J1221.3+3010_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1005> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:36 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:37 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:25:37 2021
Terminated at Sun Sep  5 09:38:10 2021
Results reported at Sun Sep  5 09:38:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1005 185.345 30.1677 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            754 sec.

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

