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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1367
RA = 185.345, Dec = 30.1677
tmin = 593654401, tmax = 593913601
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='524366', job_status='RUN', time_executed='2021-09-05 09:36:04.335990', time_epoch_executed='1630859764.34' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524366

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524366/ft1_4FGL_J1221.3+3010_daily_bin1367.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524366/ft1_4FGL_J1221.3+3010_daily_bin1367.fits outfile=/scratch/kocevski/524366/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1367.fits ra=185.345 dec=30.1677 rad=12.0 tmin=593654401.0 tmax=593913601.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.55
user 3.35
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.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/524366/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1367.fits evtable="EVENTS" outfile="/scratch/kocevski/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.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.51
user 0.33
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.fits" evtable="EVENTS" scfile=/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits sctable="SC_DATA" outfile=/scratch/kocevski/524366/ltcube_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.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/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits
.....................!
real 11.84
user 11.49
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits sctable="SC_DATA" expcube=/scratch/kocevski/524366/ltcube_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.fits outfile=/scratch/kocevski/524366/expmap_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.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/524366/ltcube_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.fits
.....................!
real 192.16
user 186.82
sys 4.84

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/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.fits scfile=/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits outfile=/scratch/kocevski/524366/cmap_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.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.63
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.fits scfile=/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits outfile=/scratch/kocevski/524366/cmap_HighResolution_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.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.55
user 0.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.fits', '/scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits', expMap='/scratch/kocevski/524366/expmap_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.fits', expCube='/scratch/kocevski/524366/ltcube_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524366/Model_4FGL_J1221.3+3010_daily_bin1367.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/524366/ft1_filtered_4FGL_J1221.3+3010_daily_bin1367.fits
Spacecraft file(s): /scratch/kocevski/524366/ft2_4FGL_J1221.3+3010_daily_bin1367.fits
Exposure map: /scratch/kocevski/524366/expmap_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.fits
Exposure cube: /scratch/kocevski/524366/ltcube_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524366/Model_4FGL_J1221.3+3010_daily_bin1367.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) = 5233.16748181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.581       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11430E-01   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.8366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.526       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.3643       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.2912       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1584       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5548       1.0000         .10000E-03   10000.    
    16 'norm      '    .24232       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.464       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    74.351       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1493       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2916       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    6.5107       1.0000         .10000E-03   10000.    
    28 'norm      '    6.8728       1.0000         .10000E-03   10000.    
    29 'norm      '    6.3301       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96568       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0019       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=   5233.149     FROM MIGRAD    STATUS=CONVERGED    109 CALLS     3416 TOTAL
                     EDM=   .43E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.571        1.5305        .33390E-06   -.14796E-02
   2  Prefactor     .10000E-03    9.1570        .64085E-05** at limit **
   3  Prefactor     .10000E-03    2.3542        .14975E-06** at limit **
   4  Prefactor     .10000E-03    115.88       -.68789E-05** at limit **
   5  Prefactor     2.8352        1.8859       -.12974E-06    .14768E-04
   6  Prefactor     .10000E-03    3.9562        .86671E-06** at limit **
   7  Prefactor     39.527        1.0191        .46141E-07   -.47991E-03
   8  norm          .10000E-03    .32544        .10451E-07** at limit **
   9  Prefactor     .10000E-03    1.9722        .22171E-07** at limit **
  10  Prefactor     .10000E-03    5.6014       -.34042E-05** at limit **
  11  norm          5.3644        2.1813        .17256E-06    .26683E-04
  12  Prefactor     .10000E-03    3.0830        .22211E-05** at limit **
  13  Prefactor     7.2914        1.9989        .12870E-06    .29683E-04
  14  Prefactor     3.1582        2.3505       -.18969E-06    .18720E-07
  15  Prefactor     2.5574        1.0271        .35887E-07    .14664E-05
  16  norm          .24234        .21119       -.17469E-07    .74602E-04
  17  norm          .10000E-03    3.4323       -.23295E-05** at limit **
  18  Prefactor     13.464        1.0108       -.53295E-07    .15533E-03
  19  Prefactor     .10000E-03    11.606       -.62227E-05** at limit **
  20  Prefactor     74.352        1.0026        .76803E-08   -.18587E-03
  21  Prefactor     4.1484        1.0104        .45669E-07   -.47344E-05
  22  Prefactor     .10000E-03    1.2303        .34155E-07** at limit **
  23  norm          2.2913        2.9997       -.24785E-05   -.11780E-03
  24  Prefactor     .10000E-03    18.111        .22242E-05** at limit **
  25  norm          .10000E-03    2.7544       -.10247E-05** at limit **
  26  Prefactor     .10000E-03    4.3329        .14611E-05** at limit **
  27  norm          6.5110        1.0052       -.21288E-07    .56781E-05
  28  norm          6.8770        1.3726       -.68878E-06    .83999E-03
  29  norm          6.3247        1.6305        .68955E-06   -.13159E-02
  30  Normalizat    .96563        .20011        .44707E-06    .24923E-04
  31  Prefactor     1.0018        .23687       -.16687E-06    .15158E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 2.83516
  Prefactor  = 0.000100003
  Prefactor  = 39.5275
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 5.3644
  Prefactor  = 0.0001
  Prefactor  = 7.29144
  Prefactor  = 3.15818
  Prefactor  = 2.55737
  norm       = 0.242343
  norm       = 0.0001
  Prefactor  = 13.4643
  Prefactor  = 0.0001
  Prefactor  = 74.3516
  Prefactor  = 4.14838
  Prefactor  = 0.0001
  norm       = 2.29131
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.51097
  norm       = 6.87695
  norm       = 6.32471
  Normalizat = 0.965627
  Prefactor  = 1.00184
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.149     FROM HESSE     STATUS=OK           688 CALLS     4104 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.571        19.345        .27172E-02   -1.4971    
   2  Prefactor     .10000E-03    10.217        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.3363        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.902        .90801E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.8352        1.9274        .60360E-02   -1.5371    
   6  Prefactor     .10000E-03    8.4078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.527        43.262        .15939E-02   -1.4450    
   8  norm          .10000E-03    .31889        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.9510        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.1405        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.3644        3.3958        .43378E-02   -1.5245    
  12  Prefactor     .10000E-03    3.0709        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.2914        3.5133        .37135E-02   -1.5168    
  14  Prefactor     3.1582        2.3928        .57016E-02   -1.5353    
  15  Prefactor     2.5574        6.4309        .63859E-02   -1.5388    
  16  norm          .24234        .22240        .67341E-02   -1.5610    
  17  norm          .10000E-03    3.4016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.464        12.133        .27291E-02   -1.4974    
  19  Prefactor     .10000E-03    11.888        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     74.352        59.812        .11641E-02   -1.3981    
  21  Prefactor     4.1484        8.8002        .49469E-02   -1.5301    
  22  Prefactor     .10000E-03    1.2304        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2913        3.1222        .67789E-02   -1.5405    
  24  Prefactor     .10000E-03    18.042        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.6524        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.3281        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          6.5110        4.6298        .39321E-02   -1.5198    
  28  norm          6.8770        8.1027        .38260E-02   -1.5183    
  29  norm          6.3247        12.115        .39884E-02   -1.5205    
  30  Normalizat    .96563        .18113        .45735E-01   -.94191    
  31  Prefactor     1.0018        .20845        .44998E-01   -.92668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44891e-08
Minuit parameter uncertainties:
  1  19.3539
  2  1.86957e-05
  3  2.00832e-07
  4  0.000478924
  5  1.92742
  6  0.000336852
  7  43.296
  8  1.16353e-07
  9  9.38077e-07
  10  0.000292474
  11  3.39596
  12  5.34346e-06
  13  3.51338
  14  2.39286
  15  6.43265
  16  0.222403
  17  6.38881e-06
  18  12.135
  19  0.000103106
  20  59.8606
  21  8.80293
  22  2.00809e-06
  23  3.12239
  24  0.00012179
  25  2.61008e-06
  26  2.59761e-06
  27  4.63008
  28  8.10394
  29  12.1199
  30  0.181244
  31  0.208619
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.291e+00  3.513e+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:  1.002e+00  2.086e-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:  9.656e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 27.93
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 6.81e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.09e-04 +/- 5.23e-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) = 5233.14109339
delta logL = 0.00784101560839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5233.13627015
delta logL = 0.0126642544192

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6108       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6529       1.0000          .0000       10.000    
     3 'Normalizat'    .97020       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0000       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=   5233.136     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      240 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6110        4.0236        .88528E-04   -.55968E-03
   2  Index         1.6529        .35527        .47066E-02   -.20539E-04
   3  Normalizat    .97021        .19976        .23424E-03   -.95029E-04
   4  Prefactor     1.0000        .23633        .27502E-03   -.74739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.61104
  Index      = 1.65291
  Normalizat = 0.970213
  Prefactor  = 1.00001
 **********
 **   18 **HESSE 
 **********

 FCN=   5233.136     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6110        3.9296        .17706E-04   -1.5156    
   2  Index         1.6529        .34670        .18826E-03   -.73343    
   3  Normalizat    .97021        .19978        .93698E-05   -.94035    
   4  Prefactor     1.0000        .23653        .11001E-04   -.92729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.49652e-11
Minuit parameter uncertainties:
  1  3.9297
  2  0.347203
  3  0.199932
  4  0.236771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524366': 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) = 5233.13627015
delta logL = 0.0126642600271

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  7.611e+00  3.930e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.653e+00  3.472e-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:  1.000e+00  2.368e-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:  9.702e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 28.11
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.65 +/- 0.35
Photon Flux (Free Index): 6.23e-08 +/- 4.59e-08
Energy Flux (Free Index): 1.19e-04 +/- 8.53e-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/524366/cmap_HighResolution_593654401_593913601_4FGL_J1221.3+3010_daily_bin1367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.81e-08', energy_flux2='1.19e-04', photon_flux_error='3.28e-08', dlogl='1.27e-02', energy_flux='1.09e-04', photon_flux2='6.23e-08', job_status='DONE', time_completed='2021-09-05 09:47:40.440718', photon_index_error2='0.35', photon_index2='1.65', ts='27.93', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='8.53e-05', EG='0.97', time_epoch_completed='1630860460.44', return_code='0', job_id='524366', GAL2='1.00', EG2='0.97', return_code2='0', energy_flux_error='5.23e-05', photon_flux_error2='4.59e-08', ts2='28.11', photon_index='1.71' WHERE bin_id='1367' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:47:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0159>
Subject: Job 524366: <4FGL_J1221.3+3010_daily_bin1367> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1367> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:35:53 2021
Job was executed on host(s) <bullet0159>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:35:54 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:35:54 2021
Terminated at Sun Sep  5 09:47:41 2021
Results reported at Sun Sep  5 09:47:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1367 185.345 30.1677 593654401 593913601 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 :                                   682.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             322.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

