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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1430
RA = 185.378, Dec = 28.2382
tmin = 609984001, tmax = 610243201
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='532535', job_status='RUN', time_executed='2021-09-05 10:04:45.901800', time_epoch_executed='1630861485.9' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1430'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532535

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532535/ft1_4FGL_J1221.5+2814_daily_bin1430.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532535/ft2_4FGL_J1221.5+2814_daily_bin1430.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532535/ft1_4FGL_J1221.5+2814_daily_bin1430.fits outfile=/scratch/kocevski/532535/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1430.fits ra=185.378 dec=28.2382 rad=12.0 tmin=609984001.0 tmax=610243201.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.24
user 4.84
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532535/ft1_filtered_4FGL_J1221.5+2814_daily_bin1430.fits" evtable="EVENTS" scfile=/scratch/kocevski/532535/ft2_4FGL_J1221.5+2814_daily_bin1430.fits sctable="SC_DATA" outfile=/scratch/kocevski/532535/ltcube_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.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/532535/ft2_4FGL_J1221.5+2814_daily_bin1430.fits
.....................!
real 11.62
user 11.24
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532535/ft1_filtered_4FGL_J1221.5+2814_daily_bin1430.fits evtable="EVENTS" scfile=/scratch/kocevski/532535/ft2_4FGL_J1221.5+2814_daily_bin1430.fits sctable="SC_DATA" expcube=/scratch/kocevski/532535/ltcube_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.fits outfile=/scratch/kocevski/532535/expmap_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.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/532535/ltcube_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.fits
.....................!
real 189.89
user 184.91
sys 4.61

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/532535/ft1_filtered_4FGL_J1221.5+2814_daily_bin1430.fits scfile=/scratch/kocevski/532535/ft2_4FGL_J1221.5+2814_daily_bin1430.fits outfile=/scratch/kocevski/532535/cmap_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532535/ft1_filtered_4FGL_J1221.5+2814_daily_bin1430.fits scfile=/scratch/kocevski/532535/ft2_4FGL_J1221.5+2814_daily_bin1430.fits outfile=/scratch/kocevski/532535/cmap_HighResolution_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.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.54
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4515       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10599E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.4160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22953E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.8295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5870       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1347       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .40693       1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2259       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    76.927       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2647       1.0000         .10000E-03   10000.    
    24 'norm      '    9.1613       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10489E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .19996E-01   1.0000         .10000E-03   10000.    
    27 'norm      '    11.119       1.0000         .10000E-03   10000.    
    28 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2780       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .44281       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=   4479.584     FROM MIGRAD    STATUS=CONVERGED    773 CALLS     3897 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1796        .34871E-07** at limit **
   2  Prefactor     .10000E-03    23.212        .86283E-06** at limit **
   3  Prefactor     .10000E-03    3.9962        .10105E-06** at limit **
   4  Prefactor     .10000E-03    8.0441        .91890E-07** at limit **
   5  Prefactor     1.4511        1.7346        .11277E-06   -.38104E-04
   6  Prefactor     .10000E-03    79.869        .10984E-05** at limit **
   7  norm          2.4154        1.3780        .31114E-07   -.72503E-04
   8  Prefactor     .10000E-03    4.2472        .53021E-06** at limit **
   9  Prefactor     13.208        44.881        .10207E-06    .14185E-04
  10  Prefactor     .10000E-03    2.1461        .48386E-07** at limit **
  11  Prefactor     .10000E-03    3.4346        .63312E-07** at limit **
  12  norm          1.8291        1.7872       -.25607E-07   -.10007E-04
  13  Prefactor     .10000E-03    6.4495        .13607E-06** at limit **
  14  Prefactor     2.5868        2.0771        .58577E-08   -.12836E-04
  15  Prefactor     8.1339        3.3219        .31366E-07   -.55936E-04
  16  Prefactor     .10000E-03    3.3230        .25765E-07** at limit **
  17  norm          .40693        .25369        .13655E-07   -.27334E-03
  18  norm          .10000E-03    1.9142        .86664E-08** at limit **
  19  Prefactor     7.2252        7.9697        .51373E-08   -.84137E-05
  20  Prefactor     .10000E-03    7.2049       -.13908E-06** at limit **
  21  Prefactor     76.854        69.374       -.12496E-05   -.21279E-03
  22  Prefactor     .10000E-03    9.7420        .54103E-07** at limit **
  23  Prefactor     4.2637        5.7640        .35688E-05    .19712E-04
  24  norm          9.1590        5.5868       -.79638E-07   -.32520E-05
  25  Prefactor     .10000E-03    26.176       -.61052E-06** at limit **
  26  norm          .10052E-03    3.0052        .79016E-06** at limit **
  27  norm          11.119        5.8734       -.22228E-07   -.25186E-04
  28  norm          .10000E-03    6.3635        .15303E-06** at limit **
  29  Normalizat    1.2782        .21147       -.71303E-06   -.21791E-03
  30  Prefactor     .44263        .21268        .24440E-06   -.13640E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.45111
  Prefactor  = 0.0001
  norm       = 2.41535
  Prefactor  = 0.0001
  Prefactor  = 13.2085
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.82913
  Prefactor  = 0.0001
  Prefactor  = 2.58683
  Prefactor  = 8.13387
  Prefactor  = 0.0001
  norm       = 0.406928
  norm       = 0.0001
  Prefactor  = 7.22525
  Prefactor  = 0.0001
  Prefactor  = 76.8538
  Prefactor  = 0.0001
  Prefactor  = 4.26367
  norm       = 9.15899
  Prefactor  = 0.0001
  norm       = 0.000100524
  norm       = 11.1191
  norm       = 0.0001
  Normalizat = 1.27823
  Prefactor  = 0.442625
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.584     FROM HESSE     STATUS=OK           586 CALLS     4483 TOTAL
                     EDM=   .83E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.1896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.0209        .13065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.4511        1.7081        .92649E-04   -1.5467    
   6  Prefactor     .10000E-03    80.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.4154        1.3722        .56718E-04   -1.5397    
   8  Prefactor     .10000E-03    8.7078        .26268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.208        44.957        .11026E-03   -1.4981    
  10  Prefactor     .10000E-03    2.1830        .95583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.5512        .24198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.8291        1.8028        .85392E-04   -1.5437    
  13  Prefactor     .10000E-03    6.5138        .16592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5868        2.0752        .83052E-04   -1.5386    
  15  Prefactor     8.1339        3.3200        .73455E-04   -1.5137    
  16  Prefactor     .10000E-03    3.3360        .11912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .40693        .25140        .25364E-04   -1.5580    
  18  norm          .10000E-03    1.9238        .90413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.2252        7.9678        .14922E-03   -1.5170    
  20  Prefactor     .10000E-03    7.2084        .17549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     76.854        69.355        .22892E-03   -1.3952    
  22  Prefactor     .10000E-03    9.8635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.2637        5.7739        .91053E-03   -1.5295    
  24  norm          9.1590        5.5867        .11643E-03   -1.5103    
  25  Prefactor     .10000E-03    26.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10052E-03    61.088        .21685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          11.119        5.8571        .11160E-03   -1.5041    
  28  norm          .10000E-03    6.3732        .16449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2782        .23347        .20908E-03   -.84218    
  30  Prefactor     .44263        .23364        .35561E-03   -1.1469    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.27246e-09
Minuit parameter uncertainties:
  1  4.4495e-06
  2  0.000169651
  3  2.37363e-06
  4  1.79088e-05
  5  1.7082
  6  0.000216857
  7  1.37221
  8  0.000108954
  9  45.0724
  10  1.75594e-07
  11  1.38224e-06
  12  1.80286
  13  4.73681e-06
  14  2.07524
  15  3.32004
  16  1.06716e-06
  17  0.251397
  18  9.09229e-07
  19  7.96895
  20  2.28047e-05
  21  69.428
  22  9.20558e-06
  23  5.77464
  24  5.58706
  25  0.000227821
  26  0.0113271
  27  5.85743
  28  1.21441e-05
  29  0.233667
  30  0.234145
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  8.134e+00  3.320e+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.426e-01  2.341e-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.278e+00  2.337e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.27
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 1.19e-07 +/- 4.86e-08
Energy Flux (Fixed Index): 5.85e-05 +/- 2.39e-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) = 4479.50913033
delta logL = 0.0747338898136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4479.5057604
delta logL = 0.0781038191099

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.3617       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3126       1.0000          .0000       10.000    
     3 'Normalizat'    1.2570       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45762       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=   4479.506     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      233 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.3617        47.459        .36956E-02    .70689E-03
   2  Index         2.3126        3.2455        .10677        .78089E-04
   3  Normalizat    1.2570        .17178        .33623E-01    .27225E-06
   4  Prefactor     .45758        .11393        .79034E-01    .28171E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.36173
  Index      = 2.31263
  Normalizat = 1.25702
  Prefactor  = 0.457579
 **********
 **   18 **HESSE 
 **********

 FCN=   4479.506     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.3617        3.8057        .67923E-04   -1.5165    
   2  Index         2.3126        .42531        .42634E-02   -.56744    
   3  Normalizat    1.2570        .23051        .21046E-03   -.84859    
   4  Prefactor     .45758        .23578        .35012E-03   -1.1396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.20667e-10
Minuit parameter uncertainties:
  1  3.80579
  2  0.426036
  3  0.230694
  4  0.236278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532535': 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) = 4479.50576035
delta logL = 0.0781038755222

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  7.362e+00  3.806e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.313e+00  4.260e-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.576e-01  2.363e-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.257e+00  2.307e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.48
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.31 +/- 0.43
Photon Flux (Free Index): 1.38e-07 +/- 7.32e-08
Energy Flux (Free Index): 5.14e-05 +/- 2.54e-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/532535/cmap_HighResolution_609984001_610243201_4FGL_J1221.5+2814_daily_bin1430.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-07', energy_flux2='5.14e-05', photon_flux_error='4.86e-08', dlogl='7.81e-02', energy_flux='5.85e-05', photon_flux2='1.38e-07', job_status='DONE', time_completed='2021-09-05 10:15:31.635696', photon_index_error2='0.43', photon_index2='2.31', ts='15.27', fit_tolerance='1e-08', GAL='0.44', photon_index_error='0.00', energy_flux_error2='2.54e-05', EG='1.28', time_epoch_completed='1630862131.64', return_code='0', job_id='532535', GAL2='0.46', EG2='1.26', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='7.32e-08', ts2='15.48', photon_index='2.15' WHERE bin_id='1430' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:15:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 532535: <4FGL_J1221.5+2814_daily_bin1430> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1430> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:07 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:09 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:01:09 2021
Terminated at Sun Sep  5 10:15:32 2021
Results reported at Sun Sep  5 10:15:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1430 185.378 28.2382 609984001 610243201 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 :                                   640.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             252.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

