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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1411
RA = 185.378, Dec = 28.2382
tmin = 605059201, tmax = 605318401
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='532493', job_status='RUN', time_executed='2021-09-05 10:01:36.524193', time_epoch_executed='1630861296.52' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1411'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532493/ft1_4FGL_J1221.5+2814_daily_bin1411.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532493/ft2_4FGL_J1221.5+2814_daily_bin1411.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532493/ft1_4FGL_J1221.5+2814_daily_bin1411.fits outfile=/scratch/kocevski/532493/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1411.fits ra=185.378 dec=28.2382 rad=12.0 tmin=605059201.0 tmax=605318401.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.38
user 5.12
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532493/ft1_filtered_4FGL_J1221.5+2814_daily_bin1411.fits evtable="EVENTS" scfile=/scratch/kocevski/532493/ft2_4FGL_J1221.5+2814_daily_bin1411.fits sctable="SC_DATA" expcube=/scratch/kocevski/532493/ltcube_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.fits outfile=/scratch/kocevski/532493/expmap_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.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/532493/ltcube_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.fits
.....................!
real 191.43
user 186.78
sys 4.22

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/532493/ft1_filtered_4FGL_J1221.5+2814_daily_bin1411.fits scfile=/scratch/kocevski/532493/ft2_4FGL_J1221.5+2814_daily_bin1411.fits outfile=/scratch/kocevski/532493/cmap_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532493/ft1_filtered_4FGL_J1221.5+2814_daily_bin1411.fits scfile=/scratch/kocevski/532493/ft2_4FGL_J1221.5+2814_daily_bin1411.fits outfile=/scratch/kocevski/532493/cmap_HighResolution_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.6215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3806       1.0000         .10000E-03   10000.    
     6 'Prefactor '    38.264       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8618       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9064       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11978E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.3332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    7.9213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.593       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1064       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    6.3181       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.3289       1.0000         .10000E-03   10000.    
    27 'norm      '    40.672       1.0000         .10000E-03   10000.    
    28 'norm      '    39.497       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.2229       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .88053       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=   5675.873     FROM MIGRAD    STATUS=CONVERGED    779 CALLS     3967 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.848        .12999E-04** at limit **
   2  Prefactor     5.6216        8.4860       -.12350E-06   -.11136E-03
   3  Prefactor     .35832        4.9032        .16702E-05   -.42267E-03
   4  Prefactor     .10000E-03    6.4128       -.14427E-05** at limit **
   5  Prefactor     2.3809        1.8761        .24632E-07    .21113E-03
   6  Prefactor     38.249        32.623       -.87970E-05   -.19299E-03
   7  norm          1.8615        1.2631        .96460E-07   -.11478E-03
   8  Prefactor     .10000E-03    8.8223       -.59774E-05** at limit **
   9  Prefactor     .10000E-03    41.790        .30662E-04** at limit **
  10  Prefactor     5.9137        4.3046        .51715E-06    .14180E-02
  11  Prefactor     .10019E-03    2.7461       -.12719E-05** at limit **
  12  norm          .10000E-03    3.4317        .11999E-07** at limit **
  13  Prefactor     .10000E-03    7.6694        .30638E-05** at limit **
  14  Prefactor     6.3232        3.6978       -.59678E-08   -.11258E-03
  15  Prefactor     .10000E-03    1.6563        .13436E-06** at limit **
  16  Prefactor     .10000E-03    2.4888       -.12769E-06** at limit **
  17  norm          .10000E-03    .10745        .22954E-07** at limit **
  18  norm          7.9200        5.9107       -.10452E-06    .27222E-04
  19  Prefactor     16.587        16.516       -.11938E-07   -.48458E-05
  20  Prefactor     .10000E-03    9.7678        .30528E-05** at limit **
  21  Prefactor     .10000E-03    75.998       -.20093E-04** at limit **
  22  Prefactor     1.1045        3.1852        .10342E-05   -.13556E-02
  23  Prefactor     .10000E-03    2.2717       -.19595E-06** at limit **
  24  norm          6.3143        7.4549        .27780E-06   -.23592E-03
  25  Prefactor     .10000E-03    28.526       -.18893E-04** at limit **
  26  norm          7.3298        5.7814       -.22734E-06   -.50492E-03
  27  norm          40.674        17.515        .65913E-06    .26548E-03
  28  norm          39.495        29.437       -.13016E-05    .10007E-03
  29  Normalizat    1.2227        .21150        .49281E-06    .12614E-03
  30  Prefactor     .88078        .22398        .59417E-07    .12918E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 5.62162
  Prefactor  = 0.35832
  Prefactor  = 0.0001
  Prefactor  = 2.38092
  Prefactor  = 38.2493
  norm       = 1.86151
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 5.91368
  Prefactor  = 0.000100186
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.32324
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.91998
  Prefactor  = 16.5873
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.10445
  Prefactor  = 0.0001
  norm       = 6.31427
  Prefactor  = 0.0001
  norm       = 7.32975
  norm       = 40.6742
  norm       = 39.4946
  Normalizat = 1.22265
  Prefactor  = 0.88078
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.873     FROM HESSE     STATUS=OK           592 CALLS     4559 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.6216        8.4789        .16943E-03   -1.5234    
   3  Prefactor     .35832        15.008        .32002E-02   -1.5588    
   4  Prefactor     .10000E-03    6.4165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3809        1.8776        .88426E-04   -1.5399    
   6  Prefactor     38.249        32.857        .64794E-04   -1.4470    
   7  norm          1.8615        1.2590        .66937E-04   -1.5435    
   8  Prefactor     .10000E-03    9.1424        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.029        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.9137        4.0576        .11885E-03   -1.5222    
  11  Prefactor     .10019E-03    24.332        .22431E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    5.6122        .24052E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.7398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.3232        3.3134        .94527E-04   -1.5205    
  15  Prefactor     .10000E-03    1.6891        .18873E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.4914        .11600E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .12789        .47790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          7.9200        5.9057        .14246E-03   -1.5145    
  19  Prefactor     16.587        16.516        .98324E-04   -1.4893    
  20  Prefactor     .10000E-03    9.7776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    76.049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1045        21.552        .22505E-02   -1.5498    
  23  Prefactor     .10000E-03    2.2732        .11090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          6.3143        7.5217        .79845E-03   -1.5205    
  25  Prefactor     .10000E-03    28.529        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.3298        5.7711        .74078E-03   -1.5166    
  27  norm          40.674        17.831        .62853E-04   -1.4432    
  28  norm          39.495        29.938        .63779E-04   -1.4450    
  29  Normalizat    1.2227        .25605        .26058E-03   -.85906    
  30  Prefactor     .88078        .27088        .32565E-03   -.96816    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.39829e-08
Minuit parameter uncertainties:
  1  1.4959e-06
  2  8.4807
  3  4.63854
  4  1.07301e-06
  5  1.87762
  6  32.8726
  7  1.25897
  8  3.02482e-05
  9  0.000335053
  10  4.05776
  11  0.00425856
  12  1.17499e-05
  13  4.24934e-06
  14  3.31349
  15  5.30118e-08
  16  2.77283e-08
  17  2.58798e-07
  18  5.90609
  19  16.5205
  20  5.99773e-06
  21  0.000169812
  22  9.7612
  23  6.94792e-07
  24  7.52282
  25  0.000106425
  26  5.77156
  27  17.8338
  28  29.9491
  29  0.256318
  30  0.271299
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  5.301e-08  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:  8.808e-01  2.713e-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.223e+00  2.563e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 8.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532493/likelihoodResults_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.txt

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) = 5675.87544057
delta logL = -0.00280728082726

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5675.87263341
delta logL = -1.17922354548e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1623       1.0000          .0000       10.000    
     3 'Normalizat'    1.2227       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88081       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=   5675.796     FROM MIGRAD    STATUS=CONVERGED    175 CALLS      334 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .87361E-02    .37612E-03** at limit **
   2  Index         6.9933        3.5732        .20000        .77600E-04
   3  Normalizat    1.1919        .34860E-01    .26058E-03    .55278E-04
   4  Prefactor     .90411        .37624E-01    .32565E-03    .22374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.99335
  Normalizat = 1.19189
  Prefactor  = 0.904114
 **********
 **   18 **HESSE 
 **********

 FCN=   5675.796     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      371 TOTAL
                     EDM=   .79E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .31646E-01    .32373E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9933        8.0360        .10251E-01    .41007    
   3  Normalizat    1.1919        .68948E-01    .10423E-04   -.86854    
   4  Prefactor     .90411        .74021E-01    .13026E-04   -.95997    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.8539e-07
Minuit parameter uncertainties:
  1  2.07242e-07
  2  11.9116
  3  0.068953
  4  0.0740292
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532493': 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): 102
logL (Free Index) = 5675.79626341
delta logL = 0.0763698833489

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  2.072e-07  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  6.993e+00  1.191e+01  0.000e+00  1.000e+01 (-1.000e+00)
326        Scale:  1.082e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  9.041e-01  7.403e-02  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.192e+00  6.895e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.378 28.238

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/532493/cmap_HighResolution_605059201_605318401_4FGL_J1221.5+2814_daily_bin1411.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.17e-08', time_completed='2021-09-05 10:15:43.267822', job_id='532493', GAL2='0.90', fit_tolerance='1e-08', EG2='1.19', EG='1.22', time_epoch_completed='1630862143.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='7.64e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1411' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:15:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 532493: <4FGL_J1221.5+2814_daily_bin1411> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1411 185.378 28.2382 605059201 605318401 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 :                                   842.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             321.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

