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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1348
RA = 185.378, Dec = 28.2382
tmin = 588729601, tmax = 588988801
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='532416', job_status='RUN', time_executed='2021-09-05 10:01:12.485862', time_epoch_executed='1630861272.49' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532416

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532416/ft1_4FGL_J1221.5+2814_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532416/ft1_4FGL_J1221.5+2814_daily_bin1348.fits outfile=/scratch/kocevski/532416/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1348.fits ra=185.378 dec=28.2382 rad=12.0 tmin=588729601.0 tmax=588988801.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.13
user 2.91
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532416/ft1_filtered_4FGL_J1221.5+2814_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/532416/ltcube_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.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/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits
.....................!
real 12.21
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532416/ft1_filtered_4FGL_J1221.5+2814_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/532416/ltcube_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.fits outfile=/scratch/kocevski/532416/expmap_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.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/532416/ltcube_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.fits
.....................!
real 191.74
user 184.79
sys 5.26

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/532416/ft1_filtered_4FGL_J1221.5+2814_daily_bin1348.fits scfile=/scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits outfile=/scratch/kocevski/532416/cmap_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532416/ft1_filtered_4FGL_J1221.5+2814_daily_bin1348.fits scfile=/scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits outfile=/scratch/kocevski/532416/cmap_HighResolution_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.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.56
user 0.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532416/ft1_filtered_4FGL_J1221.5+2814_daily_bin1348.fits', '/scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits', expMap='/scratch/kocevski/532416/expmap_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.fits', expCube='/scratch/kocevski/532416/ltcube_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532416/Model_4FGL_J1221.5+2814_daily_bin1348.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/532416/ft1_filtered_4FGL_J1221.5+2814_daily_bin1348.fits
Spacecraft file(s): /scratch/kocevski/532416/ft2_4FGL_J1221.5+2814_daily_bin1348.fits
Exposure map: /scratch/kocevski/532416/expmap_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.fits
Exposure cube: /scratch/kocevski/532416/ltcube_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532416/Model_4FGL_J1221.5+2814_daily_bin1348.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) = 1501.40976997

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .30118E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    888.35       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4122       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.037       1.0000         .10000E-03   10000.    
     9 'Prefactor '    102.99       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3077       1.0000         .10000E-03   10000.    
    11 'Prefactor '    14.001       1.0000         .10000E-03   10000.    
    12 'norm      '    10.124       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.9446       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    81.239       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4994       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    22.190       1.0000         .10000E-03   10000.    
    28 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.8086       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .12074       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1501.108     FROM MIGRAD    STATUS=CONVERGED   1332 CALLS     5145 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    880.46        .19824E-02** at limit **
   2  Prefactor     .10000E-03    214.19        .18142E-02** at limit **
   3  Prefactor     888.37        706.62        .70297E-04   -.28706E-05
   4  Prefactor     .10000E-03    65.307        .18142E-02** at limit **
   5  Prefactor     .10000E-03    5.1330        .85693E-03** at limit **
   6  Prefactor     .10000E-03    83.485        .18142E-02** at limit **
   7  norm          4.4132        4.2663        .76245E-04   -.16588E-04
   8  Prefactor     14.043        17.803        .10691E-03   -.12548E-04
   9  Prefactor     103.02        116.01        .19810E-03   -.29842E-05
  10  Prefactor     2.3079        5.7086        .13707E-03   -.77552E-05
  11  Prefactor     14.003        10.769        .10644E-03   -.18931E-04
  12  norm          10.125        9.4915        .10724E-03   -.13888E-04
  13  Prefactor     .10000E-03    7.6675        .10480E-02** at limit **
  14  Prefactor     19.003        10.635        .87602E-04   -.17293E-04
  15  Prefactor     8.9459        6.5894        .81692E-04   -.26114E-04
  16  Prefactor     .10000E-03    28.507        .18142E-02** at limit **
  17  norm          .10000E-03    .66716        .56076E-03** at limit **
  18  norm          .10000E-03    8.3809        .10935E-02** at limit **
  19  Prefactor     .10000E-03    10.589        .12314E-02** at limit **
  20  Prefactor     81.259        61.467        .22281E-03   -.86487E-05
  21  Prefactor     .10000E-03    63.447        .18142E-02** at limit **
  22  Prefactor     .10000E-03    6.7181        .97965E-03** at limit **
  23  Prefactor     .10000E-03    7.5528        .10394E-02** at limit **
  24  norm          2.5029        13.396        .24671E-03   -.13018E-05
  25  Prefactor     .10000E-03    133.89        .18142E-02** at limit **
  26  norm          .10000E-03    2.8249        .63445E-03** at limit **
  27  norm          22.195        11.427        .82327E-04   -.45778E-04
  28  norm          .10000E-03    11.868        .13013E-02** at limit **
  29  Normalizat    1.8082        .53348        .22528E-03   -.14496E-04
  30  Prefactor     .12102        .62412        .80354E-02    .10287E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 888.37
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.41323
  Prefactor  = 14.0425
  Prefactor  = 103.019
  Prefactor  = 2.30792
  Prefactor  = 14.0026
  norm       = 10.1248
  Prefactor  = 0.0001
  Prefactor  = 19.0034
  Prefactor  = 8.94594
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 81.2592
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50285
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 22.1953
  norm       = 0.0001
  Normalizat = 1.80817
  Prefactor  = 0.121021
 **********
 **   18 **HESSE 
 **********

 FCN=   1501.108     FROM HESSE     STATUS=OK           558 CALLS     5703 TOTAL
                     EDM=   .92E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    880.46        .39648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    214.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     888.37        706.17        .14059E-04   -.96549    
   4  Prefactor     .10000E-03    65.307        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.1330        .17139E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    83.485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4132        4.2656        .30498E-05   -1.5288    
   8  Prefactor     14.043        17.802        .42762E-05   -1.4958    
   9  Prefactor     103.02        115.98        .79239E-05   -1.3674    
  10  Prefactor     2.3079        5.6943        .54827E-05   -1.5404    
  11  Prefactor     14.003        10.764        .42578E-05   -1.4959    
  12  norm          10.125        9.4919        .42895E-05   -1.5071    
  13  Prefactor     .10000E-03    7.6675        .20959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.003        10.635        .35041E-05   -1.4836    
  15  Prefactor     8.9459        6.5890        .16338E-04   -1.5110    
  16  Prefactor     .10000E-03    28.517        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .66760        .11215E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.3813        .21870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.589        .24628E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     81.259        61.463        .89122E-05   -1.3903    
  21  Prefactor     .10000E-03    63.447        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.7182        .19593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.5529        .20788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.5029        13.377        .98682E-05   -1.5392    
  25  Prefactor     .10000E-03    133.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.8250        .12689E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          22.195        11.422        .32931E-05   -1.4765    
  28  norm          .10000E-03    11.868        .26026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.8082        .51224        .90114E-05   -.69451    
  30  Prefactor     .12102        .57268        .16071E-02   -1.3503    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17251e-12
Minuit parameter uncertainties:
  1  0.000963326
  2  0.000140488
  3  713.628
  4  1.02606e-05
  5  4.01443e-07
  6  5.12785e-05
  7  4.26593
  8  17.8088
  9  116.24
  10  5.69563
  11  10.7653
  12  9.49332
  13  1.86052e-07
  14  10.6364
  15  6.58949
  16  9.04843e-06
  17  3.3251e-07
  18  1.50843e-06
  19  6.67785e-07
  20  61.5112
  21  5.52698e-05
  22  1.40145e-06
  23  3.86663e-06
  24  11.5762
  25  0.000524313
  26  8.76939e-07
  27  11.4234
  28  2.57414e-05
  29  0.513773
  30  0.535102
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  8.946e+00  6.589e+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:  1.210e-01  5.351e-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.808e+00  5.138e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.73
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 9.64e-08
Energy Flux (Fixed Index): 6.44e-05 +/- 4.74e-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) = 1499.84609361
delta logL = 1.26176207506

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1499.80906422
delta logL = 1.29879146417

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.3588       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3422       1.0000          .0000       10.000    
     3 'Normalizat'    1.8624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93215E-01   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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   1499.809     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      260 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.3606        8.8071        .87991E-04   -.30718E-04
   2  Index         1.3419        .51158        .42609E-02   -.58395E-04
   3  Normalizat    1.8624        .51673        .22310E-03   -.51836E-04
   4  Prefactor     .93437E-01    .77201        .87922E-02    .11131E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.36057
  Index      = 1.34191
  Normalizat = 1.86238
  Prefactor  = 0.0934373
 **********
 **   18 **HESSE 
 **********

 FCN=   1499.809     FROM HESSE     STATUS=OK            27 CALLS      287 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.3606        8.9149        .35196E-05   -1.5130    
   2  Index         1.3419        .51795        .85219E-03   -.82069    
   3  Normalizat    1.8624        .48940        .44621E-04   -.68046    
   4  Prefactor     .93437E-01    .69385        .17584E-02   -1.3772    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93128e-11
Minuit parameter uncertainties:
  1  8.91635
  2  0.51996
  3  0.490702
  4  0.517889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532416': 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) = 1499.80906339
delta logL = 1.29879229747

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  8.361e+00  8.916e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.342e+00  5.200e-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:  9.344e-02  5.179e-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.862e+00  4.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.36
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.34 +/- 0.52
Photon Flux (Free Index): 5.41e-08 +/- 6.11e-08
Energy Flux (Free Index): 2.90e-04 +/- 3.51e-04

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/532416/cmap_HighResolution_588729601_588988801_4FGL_J1221.5+2814_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='2.90e-04', photon_flux_error='9.64e-08', dlogl='1.30e+00', energy_flux='6.44e-05', photon_flux2='5.41e-08', job_status='DONE', time_completed='2021-09-05 10:09:00.266644', photon_index_error2='0.52', photon_index2='1.34', ts='6.73', fit_tolerance='1e-08', GAL='0.12', photon_index_error='0.00', energy_flux_error2='3.51e-04', EG='1.81', time_epoch_completed='1630861740.27', return_code='0', job_id='532416', GAL2='0.09', EG2='1.86', return_code2='0', energy_flux_error='4.74e-05', photon_flux_error2='6.11e-08', ts2='9.36', photon_index='2.15' WHERE bin_id='1348' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:09:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0212>
Subject: Job 532416: <4FGL_J1221.5+2814_daily_bin1348> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1348> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:57 2021
Job was executed on host(s) <bullet0212>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:59 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 10:00:59 2021
Terminated at Sun Sep  5 10:09:01 2021
Results reported at Sun Sep  5 10:09:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1348 185.378 28.2382 588729601 588988801 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 :                                   465.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             325.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   481 sec.
    Turnaround time :                            484 sec.

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

