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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1083
RA = 185.378, Dec = 28.2382
tmin = 520041601, tmax = 520300801
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='531953', job_status='RUN', time_executed='2021-09-05 10:04:00.993445', time_epoch_executed='1630861440.99' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1083'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/531953

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/531953/ft1_4FGL_J1221.5+2814_daily_bin1083.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/531953/ft2_4FGL_J1221.5+2814_daily_bin1083.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/531953/ft1_4FGL_J1221.5+2814_daily_bin1083.fits outfile=/scratch/kocevski/531953/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1083.fits ra=185.378 dec=28.2382 rad=12.0 tmin=520041601.0 tmax=520300801.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.05
user 4.02
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/531953/ft1_filtered_4FGL_J1221.5+2814_daily_bin1083.fits evtable="EVENTS" scfile=/scratch/kocevski/531953/ft2_4FGL_J1221.5+2814_daily_bin1083.fits sctable="SC_DATA" expcube=/scratch/kocevski/531953/ltcube_520041601_520300801_4FGL_J1221.5+2814_daily_bin1083.fits outfile=/scratch/kocevski/531953/expmap_520041601_520300801_4FGL_J1221.5+2814_daily_bin1083.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/531953/ltcube_520041601_520300801_4FGL_J1221.5+2814_daily_bin1083.fits
.....................!
real 190.84
user 185.59
sys 4.79

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/531953/ft1_filtered_4FGL_J1221.5+2814_daily_bin1083.fits scfile=/scratch/kocevski/531953/ft2_4FGL_J1221.5+2814_daily_bin1083.fits outfile=/scratch/kocevski/531953/cmap_520041601_520300801_4FGL_J1221.5+2814_daily_bin1083.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/531953/ft1_filtered_4FGL_J1221.5+2814_daily_bin1083.fits scfile=/scratch/kocevski/531953/ft2_4FGL_J1221.5+2814_daily_bin1083.fits outfile=/scratch/kocevski/531953/cmap_HighResolution_520041601_520300801_4FGL_J1221.5+2814_daily_bin1083.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.61
user 0.40
sys 0.12

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.6344       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .83483       1.0000         .10000E-03   10000.    
     6 'Prefactor '    19.723       1.0000         .10000E-03   10000.    
     7 'norm      '    5.2511       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10718E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .73013       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.9432       1.0000         .10000E-03   10000.    
    12 'norm      '    8.5251       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2452       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8944       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .17318       1.0000         .10000E-03   10000.    
    18 'norm      '    11.505       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.1074       1.0000         .10000E-03   10000.    
    25 'Prefactor '    24.112       1.0000         .10000E-03   10000.    
    26 'norm      '    10.833       1.0000         .10000E-03   10000.    
    27 'norm      '    1.2887       1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2977       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74059       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=   5526.535     FROM MIGRAD    STATUS=CONVERGED    765 CALLS     3864 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2718        .22638E-05** at limit **
   2  Prefactor     .10000E-03    2.8550       -.17902E-06** at limit **
   3  Prefactor     2.6369        2.0993        .41661E-06   -.21723E-02
   4  Prefactor     .10000E-03    6.2625       -.23124E-05** at limit **
   5  Prefactor     .83469        1.1948        .15290E-07   -.56698E-05
   6  Prefactor     19.717        26.611       -.19284E-05   -.28863E-04
   7  norm          5.2515        1.6768        .67376E-08   -.66040E-05
   8  Prefactor     .10000E-03    1.5054       -.28495E-07** at limit **
   9  Prefactor     .10000E-03    35.919        .91251E-06** at limit **
  10  Prefactor     .72983        2.2672       -.35384E-06   -.25417E-03
  11  Prefactor     1.9440        3.1511        .55037E-06    .55041E-05
  12  norm          8.5254        4.5995        .33281E-07   -.78116E-04
  13  Prefactor     .10000E-03    6.5530        .62923E-05** at limit **
  14  Prefactor     5.2452        3.1242        .17801E-06   -.39354E-04
  15  Prefactor     1.8945        1.4952       -.18982E-07   -.28566E-04
  16  Prefactor     .10000E-03    2.1554        .21271E-09** at limit **
  17  norm          .17319        .19916        .41642E-08   -.23143E-03
  18  norm          11.506        5.0590       -.90098E-08   -.51954E-05
  19  Prefactor     .10000E-03    3.2847        .68291E-06** at limit **
  20  Prefactor     .10000E-03    6.0959       -.55377E-05** at limit **
  21  Prefactor     .10000E-03    110.87       -.13572E-05** at limit **
  22  Prefactor     .10000E-03    1.9363       -.15756E-07** at limit **
  23  Prefactor     .10000E-03    9.7411       -.35194E-06** at limit **
  24  norm          5.1061        4.7101        .38652E-06    .35961E-04
  25  Prefactor     24.106        29.721       -.28227E-05   -.13854E-04
  26  norm          10.834        4.7166       -.40844E-07    .53490E-06
  27  norm          1.2905        2.3789        .10362E-06    .66457E-04
  28  norm          .10000E-03    3.5610       -.76073E-06** at limit **
  29  Normalizat    1.2973        .18976        .38847E-06   -.11132E-03
  30  Prefactor     .74091        .20696       -.34825E-06   -.26147E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.63687
  Prefactor  = 0.0001
  Prefactor  = 0.834691
  Prefactor  = 19.7171
  norm       = 5.25155
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.729826
  Prefactor  = 1.94401
  norm       = 8.52538
  Prefactor  = 0.0001
  Prefactor  = 5.24521
  Prefactor  = 1.8945
  Prefactor  = 0.0001
  norm       = 0.173187
  norm       = 11.5059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.10609
  Prefactor  = 24.1057
  norm       = 10.834
  norm       = 1.29046
  norm       = 0.0001
  Normalizat = 1.29732
  Prefactor  = 0.740905
 **********
 **   18 **HESSE 
 **********

 FCN=   5526.535     FROM HESSE     STATUS=OK           590 CALLS     4454 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2797        .16674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.8578        .12268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6369        5.5020        .11946E-02   -1.5383    
   4  Prefactor     .10000E-03    6.2788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .83469        1.0433        .94172E-03   -1.5525    
   6  Prefactor     19.717        26.894        .90187E-04   -1.4820    
   7  norm          5.2515        1.6790        .51604E-04   -1.5250    
   8  Prefactor     .10000E-03    1.5174        .89033E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .72983        2.1870        .17936E-03   -1.5537    
  11  Prefactor     1.9440        3.0748        .15324E-03   -1.5429    
  12  norm          8.5254        4.6098        .10331E-03   -1.5124    
  13  Prefactor     .10000E-03    6.5766        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.2452        3.1314        .90759E-04   -1.5250    
  15  Prefactor     1.8945        1.4946        .78102E-04   -1.5433    
  16  Prefactor     .10000E-03    2.1609        .10655E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .17319        .18472        .33894E-03   -1.5625    
  18  norm          11.506        5.0566        .10722E-03   -1.5029    
  19  Prefactor     .10000E-03    3.2914        .13158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    6.1062        .17941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    111.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    1.9404        .10102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.096        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.1061        4.7025        .14245E-03   -1.5256    
  25  Prefactor     24.106        29.710        .81576E-04   -1.4726    
  26  norm          10.834        4.7208        .10336E-03   -1.5050    
  27  norm          1.2905        2.3171        .15008E-03   -1.5481    
  28  norm          .10000E-03    3.5755        .13651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.2973        .22581        .22515E-03   -.83647    
  30  Prefactor     .74091        .24271        .32587E-03   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13346e-09
Minuit parameter uncertainties:
  1  1.23895e-05
  2  6.31926e-07
  3  5.50305
  4  1.29889e-05
  5  1.04335
  6  26.9106
  7  1.67903
  8  3.90681e-08
  9  3.82249e-05
  10  2.18721
  11  3.07508
  12  4.60996
  13  2.18863e-05
  14  3.13154
  15  1.49463
  16  3.08458e-07
  17  0.184723
  18  5.05682
  19  1.98606e-06
  20  3.21076e-05
  21  1.37916e-05
  22  2.264e-07
  23  2.13855e-05
  24  4.70285
  25  29.7286
  26  4.721
  27  2.3173
  28  1.96818e-06
  29  0.225985
  30  0.243058
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.895e+00  1.495e+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:  7.409e-01  2.431e-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.297e+00  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.72
Ra Dec: 185.378 28.238
Photon Index (Fixed Index): 2.15 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.19e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.08e-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) = 5526.41577934
delta logL = 0.119396480376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5526.40923656
delta logL = 0.125939263472

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0681       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8051       1.0000          .0000       10.000    
     3 'Normalizat'    1.3075       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73398       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=   5526.409     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      203 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0681        6.4222        .71821E-02   -.12078E-02
   2  Index         1.8051        2.0637        .20770        .29545E-04
   3  Normalizat    1.3075        .19647        .50768E-01   -.41461E-04
   4  Prefactor     .73398        .21045        .73939E-01    .45734E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.06806
  Index      = 1.80507
  Normalizat = 1.30754
  Prefactor  = 0.733976
 **********
 **   18 **HESSE 
 **********

 FCN=   5526.409     FROM HESSE     STATUS=OK            31 CALLS      234 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0681        1.6420        .82670E-04   -1.5420    
   2  Index         1.8051        .64115        .10351E-01   -.69318    
   3  Normalizat    1.3075        .21304        .22445E-03   -.83342    
   4  Prefactor     .73398        .24007        .32726E-03   -1.0221    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.3362e-10
Minuit parameter uncertainties:
  1  1.64206
  2  0.644158
  3  0.213184
  4  0.240406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/531953': 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) = 5526.40923656
delta logL = 0.125939263547

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.068e+00  1.642e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.805e+00  6.442e-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:  7.340e-01  2.404e-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.308e+00  2.132e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 185.378 28.238
Photon Index (Free Index): 1.81 +/- 0.64
Photon Flux (Free Index): 1.89e-08 +/- 2.05e-08
Energy Flux (Free Index): 2.22e-05 +/- 3.17e-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/531953/cmap_HighResolution_520041601_520300801_4FGL_J1221.5+2814_daily_bin1083.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='2.22e-05', photon_flux_error='2.19e-08', dlogl='1.26e-01', energy_flux='1.36e-05', photon_flux2='1.89e-08', job_status='DONE', time_completed='2021-09-05 10:16:47.693070', photon_index_error2='0.64', photon_index2='1.81', ts='4.72', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', energy_flux_error2='3.17e-05', EG='1.30', time_epoch_completed='1630862207.69', return_code='0', job_id='531953', GAL2='0.73', EG2='1.31', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='2.05e-08', ts2='4.98', photon_index='2.15' WHERE bin_id='1083' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:16:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 531953: <4FGL_J1221.5+2814_daily_bin1083> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1083> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:23 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:25 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:25 2021
Terminated at Sun Sep  5 10:16:48 2021
Results reported at Sun Sep  5 10:16:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1083 185.378 28.2382 520041601 520300801 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 :                                   735.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

