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


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1419
RA = 185.378, Dec = 28.2382
tmin = 607132801, tmax = 607392001
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='532510', job_status='RUN', time_executed='2021-09-05 10:04:23.173694', time_epoch_executed='1630861463.17' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532510

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532510/ft1_4FGL_J1221.5+2814_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532510/ft1_4FGL_J1221.5+2814_daily_bin1419.fits outfile=/scratch/kocevski/532510/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1419.fits ra=185.378 dec=28.2382 rad=12.0 tmin=607132801.0 tmax=607392001.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.28
user 5.03
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/532510/ltcube_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.fits outfile=/scratch/kocevski/532510/expmap_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.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/532510/ltcube_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.fits
.....................!
real 192.19
user 186.73
sys 4.90

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/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits scfile=/scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits outfile=/scratch/kocevski/532510/cmap_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits scfile=/scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits outfile=/scratch/kocevski/532510/cmap_HighResolution_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.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/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/532510/Model_4FGL_J1221.5+2814_daily_bin1419.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/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits.....................!
real 45.22
user 43.34
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits', '/scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits', expMap='/scratch/kocevski/532510/expmap_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.fits', expCube='/scratch/kocevski/532510/ltcube_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/532510/Model_4FGL_J1221.5+2814_daily_bin1419.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/532510/ft1_filtered_4FGL_J1221.5+2814_daily_bin1419.fits
Spacecraft file(s): /scratch/kocevski/532510/ft2_4FGL_J1221.5+2814_daily_bin1419.fits
Exposure map: /scratch/kocevski/532510/expmap_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.fits
Exposure cube: /scratch/kocevski/532510/ltcube_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/532510/Model_4FGL_J1221.5+2814_daily_bin1419.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4906.20710727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.2082       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10456E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7299       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.8160       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .99247E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .54452E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .26878       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9871       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.2951       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.025       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.087       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    14.045       1.0000         .10000E-03   10000.    
    28 'norm      '    4.9743       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .95051       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .74065       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=   4906.159     FROM MIGRAD    STATUS=CONVERGED    744 CALLS     3357 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.4285       -.15331E-05** at limit **
   2  Prefactor     4.2064        7.3426        .17746E-05   -.11011E-02
   3  Prefactor     .10000E-03    2.4868       -.53877E-07** at limit **
   4  Prefactor     .10000E-03    27.461       -.83640E-05** at limit **
   5  Prefactor     2.7311        1.8126       -.17730E-07    .28050E-03
   6  Prefactor     .10000E-03    6.2725       -.19853E-06** at limit **
   7  norm          3.8162        1.1930       -.69975E-08    .20546E-03
   8  Prefactor     .10000E-03    1.7998       -.85897E-08** at limit **
   9  Prefactor     .10000E-03    7.1079        .46602E-06** at limit **
  10  Prefactor     .10616        1.2373       -.33422E-07   -.37390E-04
  11  Prefactor     .10000E-03    1.4147        .11743E-07** at limit **
  12  norm          6.2711        3.0576       -.10301E-06   -.19921E-03
  13  Prefactor     .10000E-03    3.6276        .82466E-07** at limit **
  14  Prefactor     5.6927        2.7369       -.11409E-06   -.21567E-03
  15  Prefactor     .26875        1.7626        .33335E-06   -.53721E-03
  16  Prefactor     4.9870        5.1978        .55715E-06   -.12406E-02
  17  norm          .10000E-03    .13230       -.88731E-08** at limit **
  18  norm          2.2953        3.4515        .15688E-06    .12668E-04
  19  Prefactor     23.026        11.327       -.56926E-07   -.24309E-04
  20  Prefactor     23.084        22.216       -.12390E-05   -.14185E-03
  21  Prefactor     .10001E-03    25.520        .88568E-05** at limit **
  22  Prefactor     .10000E-03    3.6085       -.12130E-05** at limit **
  23  Prefactor     .10000E-03    3.6042        .11502E-05** at limit **
  24  norm          .10000E-03    1.3471        .24028E-08** at limit **
  25  Prefactor     .10000E-03    10.048        .71530E-06** at limit **
  26  norm          .10000E-03    .90974       -.15465E-07** at limit **
  27  norm          14.042        6.7885       -.13599E-07   -.12910E-03
  28  norm          4.9762        9.6951       -.17613E-06   -.88773E-04
  29  Normalizat    .95068        .16144       -.37229E-07    .74796E-04
  30  Prefactor     .74046        .18381       -.39648E-06    .55894E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.20636
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 2.73107
  Prefactor  = 0.0001
  norm       = 3.81624
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.10616
  Prefactor  = 0.0001
  norm       = 6.27105
  Prefactor  = 0.0001
  Prefactor  = 5.69269
  Prefactor  = 0.268749
  Prefactor  = 4.98695
  norm       = 0.0001
  norm       = 2.29527
  Prefactor  = 23.0257
  Prefactor  = 23.0845
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.0421
  norm       = 4.97621
  Normalizat = 0.950677
  Prefactor  = 0.740458
 **********
 **   18 **HESSE 
 **********

 FCN=   4906.159     FROM HESSE     STATUS=OK           590 CALLS     3947 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.2064        9.4570        .98223E-03   -1.5298    
   3  Prefactor     .10000E-03    2.5091        .10785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7311        1.8056        .73578E-04   -1.5377    
   6  Prefactor     .10000E-03    6.2800        .17134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.8162        1.1935        .41384E-04   -1.5317    
   8  Prefactor     .10000E-03    1.8411        .91700E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.1173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10616        6.9198        .14967E-02   -1.5643    
  11  Prefactor     .10000E-03    1.4331        .81240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2711        3.0584        .79050E-04   -1.5207    
  13  Prefactor     .10000E-03    13.323        .25967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6927        2.7405        .74338E-04   -1.5231    
  15  Prefactor     .26875        1.8124        .17679E-03   -1.5604    
  16  Prefactor     4.9870        5.5711        .82421E-03   -1.5261    
  17  norm          .10000E-03    .24529        .48781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.2953        3.4329        .15071E-03   -1.5405    
  19  Prefactor     23.026        11.307        .83476E-04   -1.4748    
  20  Prefactor     23.084        22.322        .83365E-04   -1.4747    
  21  Prefactor     .10001E-03    26.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.6872        .13007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.6443        .13022E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    1.3531        .79383E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .91144        .65242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          14.042        6.8493        .97657E-04   -1.4958    
  28  norm          4.9762        9.7695        .18032E-03   -1.5262    
  29  Normalizat    .95068        .19195        .21097E-03   -.94702    
  30  Prefactor     .74046        .21937        .27250E-03   -1.0196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9503e-08
Minuit parameter uncertainties:
  1  8.98811e-05
  2  9.46039
  3  1.47931e-06
  4  0.000728166
  5  1.80567
  6  9.46225e-06
  7  1.19356
  8  4.43737e-07
  9  2.43269e-05
  10  1.71358
  11  9.3745e-07
  12  3.05845
  13  3.50432e-05
  14  2.74056
  15  1.39563
  16  5.5717
  17  5.65332e-08
  18  3.43315
  19  11.3078
  20  22.3299
  21  0.000885607
  22  4.05812e-05
  23  4.74653e-05
  24  3.5263e-08
  25  4.51879e-05
  26  3.07784e-07
  27  6.84968
  28  9.7726
  29  0.192091
  30  0.219624
Done.

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

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.687e-01  1.396e+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.405e-01  2.196e-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.507e-01  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/532510/likelihoodResults_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.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) = 4906.15180274
delta logL = 0.00712539945653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4906.15175802
delta logL = 0.00717011715369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26139       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3693       1.0000          .0000       10.000    
     3 'Normalizat'    .94947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74093       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=   4906.152     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      243 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26173        12.045        .10254E-01    .16958E-02
   2  Index         2.3697        1.3608        .48062        .34103E-06
   3  Normalizat    .94953        .12674E-01    .45531E-01    .12858E-04
   4  Prefactor     .74093        .14678E-01    .61586E-01    .21644E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.261729
  Index      = 2.36974
  Normalizat = 0.949525
  Prefactor  = 0.740934
 **********
 **   18 **HESSE 
 **********

 FCN=   4906.152     FROM HESSE     STATUS=OK            33 CALLS      276 TOTAL
                     EDM=   .59E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26173        1.5453        .15233E-03   -1.5606    
   2  Index         2.3697        1.8035        .71473E-02   -.55395    
   3  Normalizat    .94953        .18789        .21107E-03   -.94741    
   4  Prefactor     .74093        .21705        .27240E-03   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.90062e-12
Minuit parameter uncertainties:
  1  1.27175
  2  1.86243
  3  0.188021
  4  0.217297
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532510': 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) = 4906.15175763
delta logL = 0.00717051500851

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  2.617e-01  1.272e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        Index:  2.370e+00  1.862e+00  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.409e-01  2.173e-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.495e-01  1.880e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/532510/cmap_HighResolution_607132801_607392001_4FGL_J1221.5+2814_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.96e-03', job_status='DONE', photon_flux_upper_limit='6.53e-08', time_completed='2021-09-05 10:17:11.467104', job_id='532510', GAL2='0.74', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630862231.47', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='7.17e-03', ts2='0.06', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1419' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:17:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 532510: <4FGL_J1221.5+2814_daily_bin1419> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1419> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:01:06 2021
Job was executed on host(s) <bullet0219>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:01:07 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:07 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_bin1419 185.378 28.2382 607132801 607392001 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 :                                   756.42 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             243.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            966 sec.

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

