/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 63 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 = 7451
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1221.5+2814_daily_bin1229
RA = 185.378, Dec = 28.2382
tmin = 557884801, tmax = 558144001
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='532242', job_status='RUN', time_executed='2021-09-05 10:02:07.084817', time_epoch_executed='1630861327.08' WHERE source_name='4FGL J1221.5+2814' and cadence='daily' and bin_id='1229'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/532242

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/532242/ft1_4FGL_J1221.5+2814_daily_bin1229.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/532242/ft2_4FGL_J1221.5+2814_daily_bin1229.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/532242/ft1_4FGL_J1221.5+2814_daily_bin1229.fits outfile=/scratch/kocevski/532242/ft1_filteredMKT_4FGL_J1221.5+2814_daily_bin1229.fits ra=185.378 dec=28.2382 rad=12.0 tmin=557884801.0 tmax=558144001.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 4.10
user 3.83
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/532242/ft1_filtered_4FGL_J1221.5+2814_daily_bin1229.fits evtable="EVENTS" scfile=/scratch/kocevski/532242/ft2_4FGL_J1221.5+2814_daily_bin1229.fits sctable="SC_DATA" expcube=/scratch/kocevski/532242/ltcube_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.fits outfile=/scratch/kocevski/532242/expmap_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.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/532242/ltcube_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.fits
.....................!
real 190.23
user 185.36
sys 4.13

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/532242/ft1_filtered_4FGL_J1221.5+2814_daily_bin1229.fits scfile=/scratch/kocevski/532242/ft2_4FGL_J1221.5+2814_daily_bin1229.fits outfile=/scratch/kocevski/532242/cmap_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.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.50
user 0.35
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/532242/ft1_filtered_4FGL_J1221.5+2814_daily_bin1229.fits scfile=/scratch/kocevski/532242/ft2_4FGL_J1221.5+2814_daily_bin1229.fits outfile=/scratch/kocevski/532242/cmap_HighResolution_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.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.36
sys 0.16

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

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 148.352462855

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 147.586689108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.4676       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.1322       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.8480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5663       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .71437E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.1288       1.0000         .10000E-03   10000.    
     7 'norm      '    6.1171       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33968E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.1752       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6541       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24727E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.8452       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.9412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .74654       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52312E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12695       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .13456E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.1594       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.2291       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6618       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .20396E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4720       1.0000         .10000E-03   10000.    
    24 'norm      '    .86147       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.4388       1.0000         .10000E-03   10000.    
    26 'norm      '    27.811       1.0000         .10000E-03   10000.    
    27 'norm      '    5.7038       1.0000         .10000E-03   10000.    
    28 'norm      '    .89058E-01   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2551       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   147.5598     FROM MIGRAD    STATUS=CONVERGED    220 CALLS      392 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4676        1.0222         .0000         .0000    
   2  Prefactor     2.1322        1.0305         .0000         .0000    
   3  Prefactor     1.8480        1.0423         .0000         .0000    
   4  Prefactor     1.0376        .54494        .30056E-04    .38714E-02
   5  Prefactor     .10000E-03    .21969       -.94821E-05** at limit **
   6  Prefactor     5.1288        1.0048         .0000         .0000    
   7  norm          6.1171        1.0034         .0000         .0000    
   8  Prefactor     .10000E-03    .24230       -.69184E-06** at limit **
   9  Prefactor     4.1752        1.0074         .0000         .0000    
  10  Prefactor     9.8050        1.0091       -.81418E-06   -.23569E-04
  11  Prefactor     .10000E-03    .20571       -.26703E-05** at limit **
  12  norm          .10171E-03    .36745E-01   -.12674E-04** at limit **
  13  Prefactor     1.9412        1.0378         .0000         .0000    
  14  Prefactor     .10000E-03    .37449        .17138E-05** at limit **
  15  Prefactor     .10000E-03    .22895       -.31762E-05** at limit **
  16  Prefactor     .10000E-03    .23227       -.56318E-07** at limit **
  17  norm          .10000E-03    .20571       -.11098E-05** at limit **
  18  norm          .10000E-03    .26404       -.95253E-06** at limit **
  19  Prefactor     .10000E-03    .48945E-01   -.24497E-05** at limit **
  20  Prefactor     2.2291        1.0277         .0000         .0000    
  21  Prefactor     .34446E-02    .32795E-01    .24667E-04   -.18609E-02
  22  Prefactor     .10000E-03    .25531       -.79906E-05** at limit **
  23  Prefactor     1.4720        1.0740         .0000         .0000    
  24  norm          .10000E-03    .40113        .26624E-05** at limit **
  25  Prefactor     .22327E-03    .57081E-01   -.49940E-04** at limit **
  26  norm          28.050        1.0044        .66063E-06    .11256E-03
  27  norm          10.623        1.3697        .32931E-04   -.26696E-02
  28  norm          .10000E-03    .22368       -.19046E-04** at limit **
  29  Normalizat    .10000E-01    .25750        .15603E-03** at limit **
  30  Prefactor     1.2466        1.0842        .93598E-05    .39837E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.46756
  Prefactor  = 2.13221
  Prefactor  = 1.84799
  Prefactor  = 1.03763
  Prefactor  = 0.0001
  Prefactor  = 5.12883
  norm       = 6.1171
  Prefactor  = 0.0001
  Prefactor  = 4.17517
  Prefactor  = 9.80499
  Prefactor  = 0.0001
  norm       = 0.000101712
  Prefactor  = 1.9412
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.22911
  Prefactor  = 0.00344461
  Prefactor  = 0.0001
  Prefactor  = 1.47196
  norm       = 0.0001
  Prefactor  = 0.000223269
  norm       = 28.0501
  norm       = 10.6232
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.24657
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   147.5598     FROM HESSE     STATUS=FAILED         9 CALLS      401 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     561.76        559.18         .0000       -1.5394    
   2  Prefactor     2.1322        1.0305         .0000       -1.5416    
   3  Prefactor     1.8480        1.0423         .0000       -1.5436    
   4  Prefactor     1.0376        .54494        .30056E-04   -1.5504    
   5  Prefactor     .10000E-03    .21969       -.94821E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.1288        1.0048         .0000       -1.5255    
   7  norm          6.1171        1.0034         .0000       -1.5213    
   8  Prefactor     .10000E-03    .24230       -.69184E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.1752        1.0074         .0000       -1.5299    
  10  Prefactor     9.8050        1.0091       -.81418E-06   -1.5082    
  11  Prefactor     .10000E-03    .20571       -.26703E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10171E-03    .36745E-01   -.12674E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.9412        1.0378         .0000       -1.5429    
  14  Prefactor     .10000E-03    .37449        .17138E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .22895       -.31762E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .23227       -.56318E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .20571       -.11098E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .26404       -.95253E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .48945E-01   -.24497E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.2291        1.0277         .0000       -1.5409    
  21  Prefactor     .34446E-02    .32795E-01    .24667E-04   -1.5720    
  22  Prefactor     .10000E-03    .25531       -.79906E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4720        1.0740         .0000       -1.5465    
  24  norm          .10000E-03    .40113        .26624E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .22327E-03    .57081E-01   -.49940E-04   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          28.050        1.0044        .66063E-06   -1.4648    
  27  norm          10.623        1.3697        .32931E-04   -1.5056    
  28  norm          .10000E-03    .22368       -.19046E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .10000E-01    .25750        .15603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     1.2466        1.0842        .93598E-05   -.84910    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 4.30156e-10
Minuit parameter uncertainties:
  1  1.02216
  2  1.03054
  3  1.04231
  4  0.544942
  5  2.61762e-06
  6  1.00483
  7  1.00338
  8  3.53744e-07
  9  1.00736
  10  1.00913
  11  1.37229e-06
  12  0.00050163
  13  1.03776
  14  6.83361e-06
  15  1.08301e-06
  16  9.48647e-08
  17  5.31814e-07
  18  5.12092e-07
  19  1.66289e-05
  20  1.02767
  21  0.0209463
  22  4.55846e-06
  23  1.07403
  24  1.11159e-06
  25  0.00530524
  26  1.00445
  27  1.3697
  28  1.70237e-05
  29  1.67481e-06
  30  1.10467
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 147.55980398

Extracting fit parameters...

4FGL J1221.5+2814
   Spectrum: PowerLaw
324    Prefactor:  1.000e-04  1.083e-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:  1.247e+00  1.105e+00  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.000e-02  1.675e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.378 28.238
Photon Flux Upper Limit: 5.24e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/532242/likelihoodResults_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.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) = 147.559876817
delta logL = -7.28371722403e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 147.55980655
delta logL = -2.57040048268e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11454E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6712       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2467       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=   147.5598     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      282 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10698E-03    119.93        .71829E-02** at limit **
   2  Index         2.5299        5.9347        .50000        .62213E-05
   3  Normalizat    .10000E-01    .13637E-01    .91396E-02** at limit **
   4  Prefactor     1.2466        .41611E-01    .19639E-03    .10835E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000106984
  Index      = 2.52991
  Normalizat = 0.01
  Prefactor  = 1.24658
 **********
 **   18 **HESSE 
 **********

 FCN=   147.5598     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      311 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10698E-03    934.37        .76663E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5299        7.4656        .50000       -.51671    
   3  Normalizat    .10000E-01    .11373        .18279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2466        .12025        .39277E-04   -.84910    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19383e-08
Minuit parameter uncertainties:
  1  0.164194
  2  1333.93
  3  1.66363e-05
  4  0.120279
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/532242': 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) = 147.559804428
delta logL = -4.4800506771e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  1.247e+00  1.203e-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.000e-02  1.664e-05  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/532242/cmap_HighResolution_557884801_558144001_4FGL_J1221.5+2814_daily_bin1229.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-01', job_status='DONE', photon_flux_upper_limit='5.24e-06', time_completed='2021-09-05 10:08:29.336344', job_id='532242', GAL2='1.25', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630861709.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.25', dlogl='-4.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.15' WHERE bin_id='1229' AND source_name='4FGL J1221.5+2814' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 10:08:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0065>
Subject: Job 532242: <4FGL_J1221.5+2814_daily_bin1229> in cluster <slac> Done

Job <4FGL_J1221.5+2814_daily_bin1229> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sun Sep  5 10:00:42 2021
Job was executed on host(s) <bullet0065>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 10:00:44 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:44 2021
Terminated at Sun Sep  5 10:08:30 2021
Results reported at Sun Sep  5 10:08:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.5+2814_daily_bin1229 185.378 28.2382 557884801 558144001 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 :                                   331.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             366.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   465 sec.
    Turnaround time :                            468 sec.

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

