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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1315
RA = 185.378, Dec = 28.2382
tmin = 580176001, tmax = 580435201
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='532380', job_status='RUN', time_executed='2021-09-05 10:01:12.602372', time_epoch_executed='1630861272.6' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1315'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532380/ft1_4FGL_J1221.5+2814_daily_bin1315.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532380/ft1_4FGL_J1221.5+2814_daily_bin1315.fits outfile=/scratch/kocevski/532380/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1315.fits ra=185.378 dec=28.2382 rad=12.0 tmin=580176001.0 tmax=580435201.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 4.73
user 4.47
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.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/532380/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1315.fits evtable="EVENTS" outfile="/scratch/kocevski/532380/ft1_filtered_4FGL_J1221.5+2814_daily_bin1315.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.82
user 0.36
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/532380/ft1_filtered_4FGL_J1221.5+2814_daily_bin1315.fits" evtable="EVENTS" scfile=/scratch/kocevski/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.fits sctable="SC_DATA" outfile=/scratch/kocevski/532380/ltcube_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.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/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.fits
.....................!
real 12.88
user 12.41
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532380/ft1_filtered_4FGL_J1221.5+2814_daily_bin1315.fits evtable="EVENTS" scfile=/scratch/kocevski/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.fits sctable="SC_DATA" expcube=/scratch/kocevski/532380/ltcube_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.fits outfile=/scratch/kocevski/532380/expmap_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.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/532380/ltcube_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.fits
.....................!
real 190.78
user 185.81
sys 4.30

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/532380/ft1_filtered_4FGL_J1221.5+2814_daily_bin1315.fits scfile=/scratch/kocevski/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.fits outfile=/scratch/kocevski/532380/cmap_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532380/ft1_filtered_4FGL_J1221.5+2814_daily_bin1315.fits scfile=/scratch/kocevski/532380/ft2_4FGL_J1221.5+2814_daily_bin1315.fits outfile=/scratch/kocevski/532380/cmap_HighResolution_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.199       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.344       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.5436       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.3540       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99005E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .80945E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    2.8093       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5752       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1266       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11890E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .33223       1.0000         .10000E-03   10000.    
    18 'norm      '    13.567       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.4821       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    11.804       1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.7922       1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .85037       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.3265       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6440.281     FROM MIGRAD    STATUS=CONVERGED    776 CALLS     3951 TOTAL
                     EDM=   .56E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.200        13.380         .0000       -.16146E-03
   2  Prefactor     .10000E-03    2.9625         .0000    ** at limit **
   3  Prefactor     1.3107        4.2974         .0000        .10708E-02
   4  Prefactor     23.343        20.223         .0000       -.30127E-03
   5  Prefactor     6.5439        2.4904         .0000        .98873E-04
   6  Prefactor     .10000E-03    9.3434         .0000    ** at limit **
   7  norm          1.3538        .86480         .0000        .73095E-04
   8  Prefactor     .10000E-03    1.9536         .0000    ** at limit **
   9  Prefactor     .10000E-03    141.71         .0000    ** at limit **
  10  Prefactor     .10000E-03    1.6696         .0000    ** at limit **
  11  Prefactor     .10572E-01    1.4855         .0000        .24897E-03
  12  norm          2.8091        1.9854         .0000       -.11386E-03
  13  Prefactor     .10000E-03    3.4506         .0000    ** at limit **
  14  Prefactor     2.5752        1.7146         .0000       -.17370E-03
  15  Prefactor     4.1269        2.5081         .0000        .33447E-03
  16  Prefactor     .10000E-03    2.3467         .0000    ** at limit **
  17  norm          .33226        .20875         .0000        .73346E-03
  18  norm          13.568        4.8489         .0000       -.80697E-03
  19  Prefactor     11.942        9.7492         .0000       -.83313E-03
  20  Prefactor     3.4365        12.719         .0000        .22573E-02
  21  Prefactor     .10000E-03    38.698         .0000    ** at limit **
  22  Prefactor     3.4846        7.0417         .0000        .76446E-02
  23  Prefactor     .10000E-03    3.7904         .0000    ** at limit **
  24  norm          .10000E-03    2.2357         .0000    ** at limit **
  25  Prefactor     11.802        23.374         .0000       -.25353E-03
  26  norm          .10000E-03    1.4956         .0000    ** at limit **
  27  norm          5.7926        3.6616         .0000        .44342E-03
  28  norm          .10000E-03    2.5553         .0000    ** at limit **
  29  Normalizat    .85046        .17890         .0000        .52906E-04
  30  Prefactor     1.3262        .20841         .0000        .27733E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.2004
  Prefactor  = 0.0001
  Prefactor  = 1.31071
  Prefactor  = 23.3432
  Prefactor  = 6.54393
  Prefactor  = 0.0001
  norm       = 1.35382
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0105718
  norm       = 2.80908
  Prefactor  = 0.0001
  Prefactor  = 2.57522
  Prefactor  = 4.12692
  Prefactor  = 0.0001
  norm       = 0.33226
  norm       = 13.5679
  Prefactor  = 11.9424
  Prefactor  = 3.43651
  Prefactor  = 0.0001
  Prefactor  = 3.48461
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.8017
  norm       = 0.0001
  norm       = 5.7926
  norm       = 0.0001
  Normalizat = 0.850461
  Prefactor  = 1.32623
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.281     FROM HESSE     STATUS=OK           598 CALLS     4549 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.200        13.374        .11469E-03   -1.5009    
   2  Prefactor     .10000E-03    2.9644        .13488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.3107        4.2877        .28926E-03   -1.5479    
   4  Prefactor     23.343        20.235        .82906E-04   -1.4741    
   5  Prefactor     6.5439        2.4892        .72149E-04   -1.5196    
   6  Prefactor     .10000E-03    9.3628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.3538        .86291        .57491E-04   -1.5475    
   8  Prefactor     .10000E-03    1.9800        .10946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    146.58        .36290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.4871        .19677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10572E-01    2.7270        .34145E-01   -1.5687    
  12  norm          2.8091        1.9872        .91283E-04   -1.5373    
  13  Prefactor     .10000E-03    3.4618        .14555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.5752        1.7196        .82626E-04   -1.5387    
  15  Prefactor     4.1269        2.4989        .92563E-04   -1.5302    
  16  Prefactor     .10000E-03    5.7919        .23845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .33226        .20506        .27743E-04   -1.5593    
  18  norm          13.568        4.8307        .10190E-03   -1.4971    
  19  Prefactor     11.942        9.7409        .11592E-03   -1.5017    
  20  Prefactor     3.4365        12.703        .10910E-02   -1.5337    
  21  Prefactor     .10000E-03    38.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     3.4846        7.0469        .10835E-02   -1.5335    
  23  Prefactor     .10000E-03    3.8755        .15252E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.2547        .11696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     11.802        23.355        .11660E-03   -1.5021    
  26  norm          .10000E-03    1.5202        .95821E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.7926        3.6530        .11558E-03   -1.5227    
  28  norm          .10000E-03    2.5597        .12512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .85046        .21097        .26875E-03   -.98223    
  30  Prefactor     1.3262        .24760        .26533E-03   -.82530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8355e-09
Minuit parameter uncertainties:
  1  13.377
  2  1.27385e-06
  3  4.28866
  4  20.2413
  5  2.48921
  6  8.16276e-06
  7  0.862913
  8  3.74102e-08
  9  0.00130958
  10  5.95078e-05
  11  0.337989
  12  1.98726
  13  5.74738e-05
  14  1.7196
  15  2.49896
  16  1.15943e-06
  17  0.205056
  18  4.83089
  19  9.74215
  20  12.7129
  21  3.59682e-05
  22  7.04854
  23  7.07217e-07
  24  4.45364e-07
  25  23.373
  26  3.1199e-07
  27  3.65317
  28  1.532e-06
  29  0.211172
  30  0.247822
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  4.127e+00  2.499e+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.326e+00  2.478e-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:  8.505e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.62
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 6.04e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 2.97e-05 +/- 1.80e-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) = 6440.09737534
delta logL = 0.183919782298

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6440.09017123
delta logL = 0.191123899724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.1919       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4315       1.0000          .0000       10.000    
     3 'Normalizat'    .83473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3385       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=   6440.090     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      268 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.1917        2.7400        .77329E-04    .12996E-02
   2  Index         2.4316        .50319        .50392E-02    .19136E-03
   3  Normalizat    .83473        .20438        .27091E-03   -.17730E-03
   4  Prefactor     1.3385        .24478        .26425E-03   -.20110E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.19167
  Index      = 2.43156
  Normalizat = 0.834726
  Prefactor  = 1.33853
 **********
 **   18 **HESSE 
 **********

 FCN=   6440.090     FROM HESSE     STATUS=OK            25 CALLS      293 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.1917        2.5791        .30931E-05   -1.5351    
   2  Index         2.4316        .47350        .20157E-03   -.53948    
   3  Normalizat    .83473        .20443        .10836E-04   -.98793    
   4  Prefactor     1.3385        .24483        .52851E-04   -.82168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.88593e-10
Minuit parameter uncertainties:
  1  2.57922
  2  0.474471
  3  0.204614
  4  0.24504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532380': 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) = 6440.09017122
delta logL = 0.191123906134

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  3.192e+00  2.579e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.432e+00  4.745e-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:  1.339e+00  2.450e-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:  8.347e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.43 +/- 0.47
Photon Flux (Free Index): 7.31e-08 +/- 4.42e-08
Energy Flux (Free Index): 2.30e-05 +/- 1.55e-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/532380/cmap_HighResolution_580176001_580435201_4FGL_J1221.5+2814_daily_bin1315.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.04e-08', energy_flux2='2.30e-05', photon_flux_error='3.66e-08', dlogl='1.91e-01', energy_flux='2.97e-05', photon_flux2='7.31e-08', job_status='DONE', time_completed='2021-09-05 10:15:00.677934', photon_index_error2='0.47', photon_index2='2.43', ts='4.62', fit_tolerance='1e-08', GAL='1.33', photon_index_error='0.00', energy_flux_error2='1.55e-05', EG='0.85', time_epoch_completed='1630862100.68', return_code='0', job_id='532380', GAL2='1.34', EG2='0.83', return_code2='0', energy_flux_error='1.80e-05', photon_flux_error2='4.42e-08', ts2='5.04', photon_index='2.15' WHERE bin_id='1315' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 532380: <4FGL_J1221.5+2814_daily_bin1315> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1315 185.378 28.2382 580176001 580435201 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 :                                   823.39 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            848 sec.

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

