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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1304
RA = 185.378, Dec = 28.2382
tmin = 577324801, tmax = 577584001
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='532363', job_status='RUN', time_executed='2021-09-05 10:02:56.034544', time_epoch_executed='1630861376.03' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1304'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532363/ft1_4FGL_J1221.5+2814_daily_bin1304.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532363/ft2_4FGL_J1221.5+2814_daily_bin1304.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532363/ft1_4FGL_J1221.5+2814_daily_bin1304.fits outfile=/scratch/kocevski/532363/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1304.fits ra=185.378 dec=28.2382 rad=12.0 tmin=577324801.0 tmax=577584001.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.06
user 2.79
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/532363/ft2_4FGL_J1221.5+2814_daily_bin1304.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/532363/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1304.fits evtable="EVENTS" outfile="/scratch/kocevski/532363/ft1_filtered_4FGL_J1221.5+2814_daily_bin1304.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.57
user 0.34
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532363/ft1_filtered_4FGL_J1221.5+2814_daily_bin1304.fits evtable="EVENTS" scfile=/scratch/kocevski/532363/ft2_4FGL_J1221.5+2814_daily_bin1304.fits sctable="SC_DATA" expcube=/scratch/kocevski/532363/ltcube_577324801_577584001_4FGL_J1221.5+2814_daily_bin1304.fits outfile=/scratch/kocevski/532363/expmap_577324801_577584001_4FGL_J1221.5+2814_daily_bin1304.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/532363/ltcube_577324801_577584001_4FGL_J1221.5+2814_daily_bin1304.fits
.....................!
real 191.62
user 185.84
sys 5.11

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/532363/ft1_filtered_4FGL_J1221.5+2814_daily_bin1304.fits scfile=/scratch/kocevski/532363/ft2_4FGL_J1221.5+2814_daily_bin1304.fits outfile=/scratch/kocevski/532363/cmap_577324801_577584001_4FGL_J1221.5+2814_daily_bin1304.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.60
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.033       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.490       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7813       1.0000         .10000E-03   10000.    
     6 'Prefactor '    34.542       1.0000         .10000E-03   10000.    
     7 'norm      '    .54239E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.5255       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.290       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3907       1.0000         .10000E-03   10000.    
    12 'norm      '    6.5295       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8756       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.4962       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .39410       1.0000         .10000E-03   10000.    
    18 'norm      '    14.568       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    42.990       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8939       1.0000         .10000E-03   10000.    
    25 'Prefactor '    28.354       1.0000         .10000E-03   10000.    
    26 'norm      '    5.4423       1.0000         .10000E-03   10000.    
    27 'norm      '    .10068E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93337       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1018       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=   7242.385     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3930 TOTAL
                     EDM=   .47E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.033        12.970        .16012E-06    .92556E-04
   2  Prefactor     .10000E-03    4.0672        .26585E-06** at limit **
   3  Prefactor     .10000E-03    1.5847       -.15956E-07** at limit **
   4  Prefactor     22.492        19.860        .68228E-07   -.45877E-04
   5  Prefactor     1.7810        1.7265        .29117E-07   -.44062E-04
   6  Prefactor     34.542        24.723        .25304E-07   -.97555E-04
   7  norm          .52742E-01    .47584        .11331E-06   -.53474E-03
   8  Prefactor     5.5258        5.8129        .13901E-06   -.31258E-04
   9  Prefactor     14.278        17.892        .87835E-07    .40857E-05
  10  Prefactor     .10000E-03    3.0363       -.80843E-07** at limit **
  11  Prefactor     1.3909        3.2676        .56604E-06   -.10599E-04
  12  norm          6.5294        3.0556        .15347E-07   -.56205E-04
  13  Prefactor     .10000E-03    2.3391        .11230E-07** at limit **
  14  Prefactor     1.8756        1.7752       -.50059E-08   -.20132E-04
  15  Prefactor     5.4960        2.7209        .32122E-07   -.71691E-04
  16  Prefactor     .10000E-03    2.1633        .22322E-08** at limit **
  17  norm          .39407        .31999        .30542E-07   -.70151E-04
  18  norm          14.567        6.1773        .53300E-08   -.18219E-04
  19  Prefactor     .10000E-03    7.8365       -.26677E-07** at limit **
  20  Prefactor     .10000E-03    5.6450        .51986E-07** at limit **
  21  Prefactor     42.856        67.336       -.17423E-05   -.34133E-04
  22  Prefactor     .10000E-03    6.3329        .26950E-07** at limit **
  23  Prefactor     .10000E-03    3.4755        .25529E-06** at limit **
  24  norm          5.8944        4.5485        .11354E-05   -.16082E-03
  25  Prefactor     28.350        25.565       -.99236E-06    .95068E-05
  26  norm          5.4421        4.1021        .52480E-07   -.12117E-04
  27  norm          .10000E-03    3.4910        .72909E-06** at limit **
  28  norm          .10000E-03    2.0245        .12534E-06** at limit **
  29  Normalizat    .93330        .18158       -.34242E-06   -.84426E-04
  30  Prefactor     1.1020        .19505       -.61183E-07   -.73371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0328
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.4916
  Prefactor  = 1.78096
  Prefactor  = 34.5422
  norm       = 0.0527419
  Prefactor  = 5.52578
  Prefactor  = 14.2785
  Prefactor  = 0.0001
  Prefactor  = 1.39094
  norm       = 6.52944
  Prefactor  = 0.0001
  Prefactor  = 1.87564
  Prefactor  = 5.496
  Prefactor  = 0.0001
  norm       = 0.394073
  norm       = 14.5667
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.8944
  Prefactor  = 28.3497
  norm       = 5.44213
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.933301
  Prefactor  = 1.102
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.385     FROM HESSE     STATUS=OK           596 CALLS     4526 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.033        12.949        .11096E-03   -1.4986    
   2  Prefactor     .10000E-03    4.0762        .16756E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.6020        .10459E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     22.492        19.784        .84461E-04   -1.4759    
   5  Prefactor     1.7810        1.7132        .10292E-03   -1.5441    
   6  Prefactor     34.542        24.737        .68185E-04   -1.4532    
   7  norm          .52742E-01    3.2954        .10925E-02   -1.5662    
   8  Prefactor     5.5258        5.7864        .17092E-03   -1.5238    
   9  Prefactor     14.278        17.888        .10595E-03   -1.4952    
  10  Prefactor     .10000E-03    3.0965        .14445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3909        3.2201        .22827E-03   -1.5472    
  12  norm          6.5294        3.0491        .92745E-04   -1.5197    
  13  Prefactor     .10000E-03    2.3553        .12709E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8756        1.7784        .10219E-03   -1.5434    
  15  Prefactor     5.4960        2.7154        .91870E-04   -1.5239    
  16  Prefactor     .10000E-03    2.1675        .12220E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .39407        .30610        .40464E-03   -1.5582    
  18  norm          14.567        6.1681        .10494E-03   -1.4944    
  19  Prefactor     .10000E-03    8.0184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.6529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     42.856        67.327        .61142E-04   -1.4398    
  22  Prefactor     .10000E-03    6.4187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.5258        .15492E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8944        4.5376        .70883E-03   -1.5222    
  25  Prefactor     28.350        25.735        .75238E-04   -1.4643    
  26  norm          5.4421        4.1005        .14466E-03   -1.5241    
  27  norm          .10000E-03    3.5654        .30829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.0271        .11821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .93330        .21492        .26931E-03   -.95300    
  30  Prefactor     1.1020        .23220        .28487E-03   -.89403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.42111e-10
Minuit parameter uncertainties:
  1  12.9513
  2  1.80538e-06
  3  4.06923e-07
  4  19.7901
  5  1.71321
  6  24.744
  7  0.833057
  8  5.78698
  9  17.895
  10  6.87458e-06
  11  3.22054
  12  3.04915
  13  6.4117e-07
  14  1.77848
  15  2.71545
  16  3.20115e-07
  17  0.306103
  18  6.16832
  19  1.93348e-06
  20  5.16965e-07
  21  67.4469
  22  3.06679e-07
  23  2.41181e-06
  24  4.5379
  25  25.7448
  26  4.10069
  27  1.37926e-05
  28  1.38555e-06
  29  0.215123
  30  0.232415
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.496e+00  2.715e+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.102e+00  2.324e-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:  9.333e-01  2.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.56
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 8.04e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 3.95e-05 +/- 1.95e-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) = 7242.3846329
delta logL = 0.000265103484708

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7242.38459634
delta logL = 0.00030166882334

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.5057       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1417       1.0000          .0000       10.000    
     3 'Normalizat'    .93460       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1013       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=   7242.385     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      233 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.5103        54.060        .42808E-02    .15121E-03
   2  Index         2.1426        6.0502        .13254        .82838E-04
   3  Normalizat    .93448        .16690        .45342E-01    .17315E-04
   4  Prefactor     1.1012        .10768        .64424E-01    .11089E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.51031
  Index      = 2.14258
  Normalizat = 0.934484
  Prefactor  = 1.10125
 **********
 **   18 **HESSE 
 **********

 FCN=   7242.385     FROM HESSE     STATUS=OK            33 CALLS      266 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.5103        2.7487        .92363E-04   -1.5238    
   2  Index         2.1426        .43201        .67312E-02   -.60831    
   3  Normalizat    .93448        .20686        .26917E-03   -.95259    
   4  Prefactor     1.1012        .23102        .28496E-03   -.89427    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23801e-09
Minuit parameter uncertainties:
  1  2.74876
  2  0.432813
  3  0.207041
  4  0.231229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532363': 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) = 7242.38459161
delta logL = 0.000306394672407

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  5.510e+00  2.749e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.143e+00  4.328e-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.101e+00  2.312e-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:  9.345e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.63
Ra Dec: 185.378 28.238
Photon Index (Free Index): 2.14 +/- 0.43
Photon Flux (Free Index): 7.94e-08 +/- 5.70e-08
Energy Flux (Free Index): 3.98e-05 +/- 2.37e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/532363/cmap_HighResolution_577324801_577584001_4FGL_J1221.5+2814_daily_bin1304.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.04e-08', energy_flux2='3.98e-05', photon_flux_error='3.97e-08', dlogl='3.06e-04', energy_flux='3.95e-05', photon_flux2='7.94e-08', job_status='DONE', time_completed='2021-09-05 10:17:12.236831', photon_index_error2='0.43', photon_index2='2.14', ts='12.56', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='0.93', time_epoch_completed='1630862232.24', return_code='0', job_id='532363', GAL2='1.10', EG2='0.93', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='5.70e-08', ts2='12.63', photon_index='2.15' WHERE bin_id='1304' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:17:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 532363: <4FGL_J1221.5+2814_daily_bin1304> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1304 185.378 28.2382 577324801 577584001 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 :                                   849.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            980 sec.

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

