/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 191 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 = 7405
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin93
RA = 185.378, Dec = 28.2382
tmin = 263433601, tmax = 263692801
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='524795', job_status='RUN', time_executed='2021-09-05 09:40:23.371602', time_epoch_executed='1630860023.37' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='93'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524795/ft1_4FGL_J1221.5+2814_daily_bin93.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524795/ft1_4FGL_J1221.5+2814_daily_bin93.fits outfile=/scratch/kocevski/524795/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin93.fits ra=185.378 dec=28.2382 rad=12.0 tmin=263433601.0 tmax=263692801.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.51
user 3.29
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.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/524795/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin93.fits evtable="EVENTS" outfile="/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits" evtable="EVENTS" scfile=/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits sctable="SC_DATA" outfile=/scratch/kocevski/524795/ltcube_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.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/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits
.....................!
real 11.85
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits sctable="SC_DATA" expcube=/scratch/kocevski/524795/ltcube_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.fits outfile=/scratch/kocevski/524795/expmap_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.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/524795/ltcube_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.fits
.....................!
real 191.48
user 185.81
sys 5.23

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

Setting source of interest to:
4FGL J1221.5+2814 @ 185.378 28.2382

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits scfile=/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits outfile=/scratch/kocevski/524795/cmap_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.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.378 yref=28.2382 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits scfile=/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits outfile=/scratch/kocevski/524795/cmap_HighResolution_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.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.378 yref=28.2382 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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits evtable="EVENTS" scfile=/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524795/Model_4FGL_J1221.5+2814_daily_bin93.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/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits.....................!
real 50.50
user 48.43
sys 1.35

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits', '/scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits', expMap='/scratch/kocevski/524795/expmap_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.fits', expCube='/scratch/kocevski/524795/ltcube_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524795/Model_4FGL_J1221.5+2814_daily_bin93.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.5+2814'

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.206e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/524795/ft1_filtered_4FGL_J1221.5+2814_daily_bin93.fits
Spacecraft file(s): /scratch/kocevski/524795/ft2_4FGL_J1221.5+2814_daily_bin93.fits
Exposure map: /scratch/kocevski/524795/expmap_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.fits
Exposure cube: /scratch/kocevski/524795/ltcube_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524795/Model_4FGL_J1221.5+2814_daily_bin93.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) = 5206.74988851

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.5251       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0710       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10449E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.0712       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3640       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.0088       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.5514       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1930       1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.4107       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.4470       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .20274       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4902       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    31.550       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1825       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .37338E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    45.201       1.0000         .10000E-03   10000.    
    26 'norm      '    5.9590       1.0000         .10000E-03   10000.    
    27 'norm      '    6.8427       1.0000         .10000E-03   10000.    
    28 'norm      '    .10700E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.5129       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .45985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5206.691     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     3986 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.632       -.67385E-06** at limit **
   2  Prefactor     .10000E-03    4.4483       -.97286E-08** at limit **
   3  Prefactor     .10000E-03    3.2231       -.81413E-07** at limit **
   4  Prefactor     9.5272        16.465       -.68035E-06   -.78867E-04
   5  Prefactor     1.0714        1.1014       -.21796E-07    .16932E-03
   6  Prefactor     .10000E-03    26.575       -.26492E-06** at limit **
   7  norm          3.0719        1.4251        .16715E-07    .78967E-04
   8  Prefactor     1.3621        2.7403        .34458E-06   -.12547E-02
   9  Prefactor     8.9896        25.862       -.46189E-06   -.21948E-04
  10  Prefactor     1.5528        3.1676        .33112E-07   -.18329E-04
  11  Prefactor     3.1931        3.2773        .10056E-07   -.51581E-04
  12  norm          .10000E-03    2.8107       -.39254E-07** at limit **
  13  Prefactor     .10000E-03    3.2016        .38553E-07** at limit **
  14  Prefactor     4.4105        2.9427        .49026E-07   -.54773E-05
  15  Prefactor     9.4481        3.4222       -.22588E-08   -.17695E-03
  16  Prefactor     .10000E-03    3.6001        .62662E-06** at limit **
  17  norm          .20276        .17324        .15215E-07   -.28623E-03
  18  norm          3.4916        4.3919        .35928E-06    .13901E-03
  19  Prefactor     .10000E-03    12.814        .56481E-06** at limit **
  20  Prefactor     .10000E-03    5.8415        .33723E-07** at limit **
  21  Prefactor     31.286        68.187       -.38961E-05   -.20912E-04
  22  Prefactor     2.1811        4.9829        .33987E-06   -.86775E-03
  23  Prefactor     .10000E-03    4.7021        .11905E-06** at limit **
  24  norm          .10000E-03    13.383        .48917E-05** at limit **
  25  Prefactor     45.159        26.261       -.11117E-05   -.10801E-03
  26  norm          5.9593        3.9734        .79866E-08   -.51976E-05
  27  norm          6.8453        4.1664        .15199E-06   -.68870E-03
  28  norm          .10000E-03    10.887        .18644E-05** at limit **
  29  Normalizat    1.5124        .20871       -.17134E-06   -.15693E-03
  30  Prefactor     .46040        .22561       -.64847E-06   -.48408E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.52725
  Prefactor  = 1.0714
  Prefactor  = 0.0001
  norm       = 3.07188
  Prefactor  = 1.36215
  Prefactor  = 8.98956
  Prefactor  = 1.5528
  Prefactor  = 3.19313
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.41054
  Prefactor  = 9.44812
  Prefactor  = 0.0001
  norm       = 0.202759
  norm       = 3.49161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.2859
  Prefactor  = 2.18107
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 45.1594
  norm       = 5.95934
  norm       = 6.84534
  norm       = 0.0001
  Normalizat = 1.5124
  Prefactor  = 0.460403
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.691     FROM HESSE     STATUS=OK           586 CALLS     4572 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.4566        .14863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.2544        .12647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.5272        16.530        .12985E-03   -1.5091    
   5  Prefactor     1.0714        1.1175        .74055E-04   -1.5501    
   6  Prefactor     .10000E-03    26.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.0719        1.4270        .56014E-04   -1.5357    
   8  Prefactor     1.3621        3.8489        .11168E-02   -1.5475    
   9  Prefactor     8.9896        25.927        .13354E-03   -1.5108    
  10  Prefactor     1.5528        3.1191        .16330E-03   -1.5459    
  11  Prefactor     3.1931        3.2400        .12180E-03   -1.5351    
  12  norm          .10000E-03    2.8914        .23489E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2161        .12609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.4105        2.9297        .95556E-04   -1.5288    
  15  Prefactor     9.4481        3.4217        .74843E-04   -1.5093    
  16  Prefactor     .10000E-03    3.5898        .13289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .20276        .17554        .26667E-04   -1.5618    
  18  norm          3.4916        4.3923        .16289E-03   -1.5334    
  19  Prefactor     .10000E-03    12.939        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.8426        .17034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     31.286        67.933        .71334E-04   -1.4589    
  22  Prefactor     2.1811        6.5275        .13933E-02   -1.5413    
  23  Prefactor     .10000E-03    4.7631        .15282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    13.746        .23486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     45.159        26.267        .59634E-04   -1.4363    
  26  norm          5.9593        3.9743        .11337E-03   -1.5220    
  27  norm          6.8453        4.0547        .10756E-03   -1.5185    
  28  norm          .10000E-03    10.667        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.5124        .23791        .20941E-03   -.77430    
  30  Prefactor     .46040        .25102        .39531E-03   -1.1383    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3917e-09
Minuit parameter uncertainties:
  1  3.99971e-05
  2  6.76883e-06
  3  1.22217e-06
  4  16.538
  5  1.11753
  6  5.7434e-05
  7  1.42698
  8  3.84964
  9  25.9598
  10  3.11944
  11  3.24014
  12  4.15988e-06
  13  5.4014e-06
  14  2.92984
  15  3.42175
  16  2.68191e-05
  17  0.175544
  18  4.39266
  19  1.2464e-05
  20  1.99299e-06
  21  68.1019
  22  6.52958
  23  7.21402e-06
  24  0.00027444
  25  26.2736
  26  3.97452
  27  4.05486
  28  0.000112056
  29  0.238082
  30  0.251626
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  9.448e+00  3.422e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.153e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  4.604e-01  2.516e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.512e+00  2.381e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.71
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.38e-07 +/- 5.01e-08
Energy Flux (Fixed Index): 6.80e-05 +/- 2.46e-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) = 5206.66239795
delta logL = 0.0286782868407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5206.66172439
delta logL = 0.0293518455601

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9054       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2216       1.0000          .0000       10.000    
     3 'Normalizat'    1.5045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .46643       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6240E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5206.662     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      237 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9054        50.644        .33578E-02    .26977E-03
   2  Index         2.2216        2.7005        .84474E-01    .14075E-03
   3  Normalizat    1.5045        .15795        .47465E-01    .14872E-04
   4  Prefactor     .46643        .16006        .88664E-01    .99491E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.90543
  Index      = 2.22162
  Normalizat = 1.50452
  Prefactor  = 0.466429
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.662     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9054        4.0044        .71912E-04   -1.5111    
   2  Index         2.2216        .29214        .35514E-02   -.58917    
   3  Normalizat    1.5045        .22871        .20982E-03   -.77651    
   4  Prefactor     .46643        .24969        .39290E-03   -1.1354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46565e-11
Minuit parameter uncertainties:
  1  4.00456
  2  0.292377
  3  0.228868
  4  0.250275
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524795': 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) = 5206.66172439
delta logL = 0.029351845712

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  8.905e+00  4.005e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.222e+00  2.924e-01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  4.664e-01  2.503e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.505e+00  2.289e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.78
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.22 +/- 0.29
Photon Flux (Free Index): 1.45e-07 +/- 5.67e-08
Energy Flux (Free Index): 6.26e-05 +/- 3.09e-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/524795/cmap_HighResolution_263433601_263692801_4FGL_J1221.5+2814_daily_bin93.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-07', energy_flux2='6.26e-05', photon_flux_error='5.01e-08', dlogl='2.94e-02', energy_flux='6.80e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-05 09:52:37.826027', photon_index_error2='0.29', photon_index2='2.22', ts='20.71', fit_tolerance='1e-08', GAL='0.46', photon_index_error='0.00', energy_flux_error2='3.09e-05', EG='1.51', time_epoch_completed='1630860757.83', return_code='0', job_id='524795', GAL2='0.47', EG2='1.50', return_code2='0', energy_flux_error='2.46e-05', photon_flux_error2='5.67e-08', ts2='20.78', photon_index='2.15' WHERE bin_id='93' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:52:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 524795: <4FGL_J1221.5+2814_daily_bin93> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin93> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:26 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:28 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:36:28 2021
Terminated at Sun Sep  5 09:52:38 2021
Results reported at Sun Sep  5 09:52:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin93 185.378 28.2382 263433601 263692801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.5+2814 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            972 sec.

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

