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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1007
RA = 185.378, Dec = 28.2382
tmin = 500342401, tmax = 500601601
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='530613', job_status='RUN', time_executed='2021-09-05 09:55:59.535097', time_epoch_executed='1630860959.54' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/530613

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/530613/ft1_4FGL_J1221.5+2814_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/530613/ft2_4FGL_J1221.5+2814_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/530613/ft1_4FGL_J1221.5+2814_daily_bin1007.fits outfile=/scratch/kocevski/530613/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1007.fits ra=185.378 dec=28.2382 rad=12.0 tmin=500342401.0 tmax=500601601.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.06
user 4.43
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/530613/ft1_filtered_4FGL_J1221.5+2814_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/530613/ft2_4FGL_J1221.5+2814_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/530613/ltcube_500342401_500601601_4FGL_J1221.5+2814_daily_bin1007.fits outfile=/scratch/kocevski/530613/expmap_500342401_500601601_4FGL_J1221.5+2814_daily_bin1007.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/530613/ltcube_500342401_500601601_4FGL_J1221.5+2814_daily_bin1007.fits
.....................!
real 191.23
user 186.09
sys 4.72

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/530613/ft1_filtered_4FGL_J1221.5+2814_daily_bin1007.fits scfile=/scratch/kocevski/530613/ft2_4FGL_J1221.5+2814_daily_bin1007.fits outfile=/scratch/kocevski/530613/cmap_500342401_500601601_4FGL_J1221.5+2814_daily_bin1007.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.1813       1.0000         .10000E-03   10000.    
     4 'Prefactor '    30.224       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.375       1.0000         .10000E-03   10000.    
     7 'norm      '    1.6685       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .32154E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.068       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5224       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.3271       1.0000         .10000E-03   10000.    
    17 'norm      '    .23814       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.7942       1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.899       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.3909       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .28955E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5330       1.0000         .10000E-03   10000.    
    27 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.4362       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .73641       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=   5405.059     FROM MIGRAD    STATUS=CONVERGED    788 CALLS     4026 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.209       -.31987E-06** at limit **
   2  Prefactor     .10000E-03    7.4552       -.42658E-07** at limit **
   3  Prefactor     4.1807        7.1391        .41299E-06   -.50611E-03
   4  Prefactor     30.217        25.727        .42297E-06   -.67664E-05
   5  Prefactor     .10000E-03    .75261       -.63195E-07** at limit **
   6  Prefactor     36.365        31.791        .12920E-05    .64681E-04
   7  norm          1.6679        1.4140        .12959E-07   -.20895E-03
   8  Prefactor     .22157E-01    3.4309       -.28353E-05    .85008E-03
   9  Prefactor     .10000E-03    41.535       -.18672E-05** at limit **
  10  Prefactor     13.075        4.8426       -.22879E-07   -.26131E-03
  11  Prefactor     .10000E-03    6.1132        .34884E-06** at limit **
  12  norm          6.5220        3.1627        .60363E-07    .58172E-04
  13  Prefactor     .10000E-03    2.2439        .24381E-07** at limit **
  14  Prefactor     .10000E-03    .83376        .10615E-07** at limit **
  15  Prefactor     .10000E-03    1.1770        .43877E-07** at limit **
  16  Prefactor     2.3288        4.3646        .10150E-05   -.10806E-02
  17  norm          .23812        .26252        .50058E-07    .57846E-03
  18  norm          .10000E-03    1.8961        .49989E-07** at limit **
  19  Prefactor     9.7921        12.015        .17882E-06   -.40060E-04
  20  Prefactor     11.885        20.396       -.22765E-05   -.24925E-03
  21  Prefactor     .10000E-03    105.17       -.21351E-06** at limit **
  22  Prefactor     2.3913        6.0790        .94672E-06   -.81596E-03
  23  Prefactor     .10001E-03    18.842       -.12660E-04** at limit **
  24  norm          .10000E-03    2.7085        .23492E-07** at limit **
  25  Prefactor     .10000E-03    34.141        .15149E-05** at limit **
  26  norm          2.5327        3.9016        .45718E-06   -.69196E-04
  27  norm          .10000E-03    4.7541        .94115E-07** at limit **
  28  norm          .10000E-03    2.9357        .99140E-08** at limit **
  29  Normalizat    1.4367        .20758        .22955E-06   -.19134E-03
  30  Prefactor     .73586        .22108       -.26530E-05   -.25908E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.18067
  Prefactor  = 30.2166
  Prefactor  = 0.0001
  Prefactor  = 36.3648
  norm       = 1.66787
  Prefactor  = 0.0221572
  Prefactor  = 0.000100001
  Prefactor  = 13.0745
  Prefactor  = 0.0001
  norm       = 6.52195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.3288
  norm       = 0.238123
  norm       = 0.0001
  Prefactor  = 9.79207
  Prefactor  = 11.8845
  Prefactor  = 0.000100001
  Prefactor  = 2.39129
  Prefactor  = 0.00010001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.53271
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.43668
  Prefactor  = 0.735857
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.059     FROM HESSE     STATUS=OK           594 CALLS     4620 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    7.4726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.1807        7.5351        .98547E-03   -1.5299    
   4  Prefactor     30.217        25.897        .72879E-04   -1.4608    
   5  Prefactor     .10000E-03    .75849        .62182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.365        31.953        .66450E-04   -1.4501    
   7  norm          1.6679        1.3973        .75800E-04   -1.5450    
   8  Prefactor     .22157E-01    5.3836        .36802E-01   -1.5678    
   9  Prefactor     .10000E-03    41.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.075        4.8063        .91379E-04   -1.4985    
  11  Prefactor     .10000E-03    6.2626        .35189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5220        3.1601        .87893E-04   -1.5197    
  13  Prefactor     .10000E-03    2.2457        .10755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .83703        .65506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.1935        .77756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.3288        5.6755        .13108E-02   -1.5403    
  17  norm          .23812        .24866        .37040E-03   -1.5610    
  18  norm          .10000E-03    1.9065        .98838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.7921        12.010        .12804E-03   -1.5082    
  20  Prefactor     11.885        20.095        .11613E-03   -1.5018    
  21  Prefactor     .10000E-03    105.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     2.3913        7.5455        .13243E-02   -1.5399    
  23  Prefactor     .10001E-03    19.519        .35768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    2.7345        .11813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    34.335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.5327        3.8874        .17337E-03   -1.5390    
  27  norm          .10000E-03    4.9364        .31288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    2.9403        .12302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.4367        .24623        .23076E-03   -.79574    
  30  Prefactor     .73586        .26076        .33823E-03   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04227e-09
Minuit parameter uncertainties:
  1  5.90302e-05
  2  6.50301e-07
  3  7.53677
  4  25.9071
  5  3.20324e-06
  6  31.9685
  7  1.39737
  8  0.689259
  9  0.000381549
  10  4.80642
  11  6.7218e-05
  12  3.16019
  13  3.64842e-06
  14  1.35591e-06
  15  4.02511e-06
  16  5.67681
  17  0.248659
  18  5.08544e-06
  19  12.0127
  20  20.1062
  21  0.000477286
  22  7.5485
  23  0.000897219
  24  6.24887e-06
  25  0.000265748
  26  3.8878
  27  2.39228e-05
  28  3.65938e-06
  29  0.246439
  30  0.261195
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  4.025e-06  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.359e-01  2.612e-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.437e+00  2.464e-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: 6.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.31e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/530613/likelihoodResults_500342401_500601601_4FGL_J1221.5+2814_daily_bin1007.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): 102
logL (Free Index) = 5405.06253774
delta logL = -0.00391237474196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5405.0586254
delta logL = -3.52447386831e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1439       1.0000          .0000       10.000    
     3 'Normalizat'    1.4367       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73590       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5405.059     FROM MIGRAD    STATUS=FAILED        88 CALLS      243 TOTAL
                     EDM=   .55E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10106E-03    124.29        .78042E-03** at limit **
   2  Index         2.0589        5.8399        .50000        .46380E-04
   3  Normalizat    1.4367        .58098E-01    .23075E-03   -.23767E-04
   4  Prefactor     .73586        .63377E-01    .33823E-03   -.10790E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5405.059     FROM SIMPLEX   STATUS=PROGRESS     139 CALLS      382 TOTAL
                     EDM=   .69E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10038E-03    124.29        .14699E-03** at limit **
   2  Index         2.0588        5.8399        .62770E-04    .46380E-04
   3  Normalizat    1.4367        .58098E-01    .12763E-05   -.23767E-04
   4  Prefactor     .73586        .63377E-01    .24462E-05   -.10790E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5405.059     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      435 TOTAL
                     EDM=   .64E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.6870        .15608E-03** at limit **
   2  Index         1.8777        5.9353        .50000       -.39533E-06
   3  Normalizat    1.4367        .23352        .46151E-04    .47789E-05
   4  Prefactor     .73586        .25498        .13529E-04   -.53780E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.87766
  Normalizat = 1.43668
  Prefactor  = 0.73586
 **********
 **   18 **HESSE 
 **********

 FCN=   5405.059     FROM HESSE     STATUS=OK            29 CALLS      464 TOTAL
                     EDM=   .48E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2787        .31217E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8777        8.5773        .50000       -.67445    
   3  Normalizat    1.4367        .23344        .92302E-05   -.79574    
   4  Prefactor     .73586        .25488        .27058E-05   -1.0214    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75188e-11
Minuit parameter uncertainties:
  1  6.13523e-07
  2  67.3149
  3  0.233614
  4  0.255284
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/530613': 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) = 5405.05862297
delta logL = 2.39131804847e-06

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  6.135e-07  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  1.878e+00  6.731e+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.359e-01  2.553e-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.437e+00  2.336e-01  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/530613/cmap_HighResolution_500342401_500601601_4FGL_J1221.5+2814_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.31e-03', job_status='DONE', photon_flux_upper_limit='6.99e-08', time_completed='2021-09-05 10:10:14.712102', job_id='530613', GAL2='0.74', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630861814.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='2.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1007' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:10:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 530613: <4FGL_J1221.5+2814_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1007> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep  5 09:55:40 2021
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:55:41 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:55:41 2021
Terminated at Sun Sep  5 10:10:15 2021
Results reported at Sun Sep  5 10:10:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1007 185.378 28.2382 500342401 500601601 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 :                                   844.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   873 sec.
    Turnaround time :                            875 sec.

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

