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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1185
RA = 185.345, Dec = 30.1677
tmin = 546480001, tmax = 546739201
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='521639', job_status='RUN', time_executed='2021-09-05 09:28:43.363265', time_epoch_executed='1630859323.36' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1185'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521639

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521639/ft1_4FGL_J1221.3+3010_daily_bin1185.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521639/ft1_4FGL_J1221.3+3010_daily_bin1185.fits outfile=/scratch/kocevski/521639/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1185.fits ra=185.345 dec=30.1677 rad=12.0 tmin=546480001.0 tmax=546739201.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 3.88
user 3.61
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.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/521639/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1185.fits evtable="EVENTS" outfile="/scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits" evtable="EVENTS" scfile=/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits sctable="SC_DATA" outfile=/scratch/kocevski/521639/ltcube_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.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/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits
.....................!
real 11.52
user 11.20
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits sctable="SC_DATA" expcube=/scratch/kocevski/521639/ltcube_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.fits outfile=/scratch/kocevski/521639/expmap_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.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/521639/ltcube_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.fits
.....................!
real 189.72
user 185.19
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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1221.3+3010 @ 185.345 30.1677

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits scfile=/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits outfile=/scratch/kocevski/521639/cmap_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.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.345 yref=30.1677 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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits scfile=/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits outfile=/scratch/kocevski/521639/cmap_HighResolution_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.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.345 yref=30.1677 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/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits evtable="EVENTS" scfile=/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/521639/Model_4FGL_J1221.3+3010_daily_bin1185.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/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits.......................!
real 22.33
user 20.67
sys 1.09

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits', '/scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits', expMap='/scratch/kocevski/521639/expmap_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.fits', expCube='/scratch/kocevski/521639/ltcube_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/521639/Model_4FGL_J1221.3+3010_daily_bin1185.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1221.3+3010'

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.833e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/521639/ft1_filtered_4FGL_J1221.3+3010_daily_bin1185.fits
Spacecraft file(s): /scratch/kocevski/521639/ft2_4FGL_J1221.3+3010_daily_bin1185.fits
Exposure map: /scratch/kocevski/521639/expmap_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.fits
Exposure cube: /scratch/kocevski/521639/ltcube_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/521639/Model_4FGL_J1221.3+3010_daily_bin1185.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) = 1126.13075503

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.154       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    112.13       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12414E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    28.716       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43117E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9994       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.608       1.0000         .10000E-03   10000.    
    16 'norm      '    .63086       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10156E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10321E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10752E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10233E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.7586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1126.113     FROM MIGRAD    STATUS=CONVERGED    806 CALLS     4117 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.136        68.956       -.45501E-05    .28850E-03
   2  Prefactor     .10002E-03    162.47       -.92666E-04** at limit **
   3  Prefactor     .10000E-03    16.818        .19809E-06** at limit **
   4  Prefactor     112.10        78.337       -.78052E-05    .11596E-03
   5  Prefactor     .10000E-03    1.7402        .13099E-06** at limit **
   6  Prefactor     .10000E-03    86.062        .58927E-04** at limit **
   7  Prefactor     .10000E-03    1477.7       -.92254E-03** at limit **
   8  norm          28.715        7.8003        .94723E-06    .15059E-03
   9  Prefactor     .25038E-01    7.1983        .26154E-06   -.42653E-04
  10  Prefactor     .10000E-03    89.238        .42499E-04** at limit **
  11  norm          .10000E-03    5.5656       -.10862E-06** at limit **
  12  Prefactor     3.0452        447.45        .48912E-04   -.97592E-05
  13  Prefactor     .10000E-03    10.264       -.28930E-06** at limit **
  14  Prefactor     .10000E-03    3.6829       -.30581E-07** at limit **
  15  Prefactor     14.607        14.851        .10313E-05   -.42670E-04
  16  norm          .63068        .62716       -.51755E-07   -.96695E-03
  17  norm          .10000E-03    7.6974       -.52643E-07** at limit **
  18  Prefactor     .10000E-03    17.817       -.14404E-06** at limit **
  19  Prefactor     .10000E-03    958.32       -.52753E-03** at limit **
  20  Prefactor     .10000E-03    233.59        .98950E-04** at limit **
  21  Prefactor     .10000E-03    9.9780       -.13641E-07** at limit **
  22  Prefactor     .10000E-03    340.71        .18708E-03** at limit **
  23  norm          .10000E-03    41.428        .13940E-05** at limit **
  24  Prefactor     .10000E-03    357.86        .18110E-03** at limit **
  25  norm          .10000E-03    8.1427        .10981E-07** at limit **
  26  Prefactor     .10000E-03    8010.2       -.17099E-02** at limit **
  27  norm          .10000E-03    707.98       -.24086E-03** at limit **
  28  norm          .10000E-03    66.209       -.28102E-04** at limit **
  29  norm          .10000E-03    113.54       -.95017E-04** at limit **
  30  Normalizat    .10000E-01    .25535        .53401E-05** at limit **
  31  Prefactor     1.7586        .38182       -.28742E-06   -.43871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.1364
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 112.104
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 28.715
  Prefactor  = 0.0250382
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.04516
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.607
  norm       = 0.630681
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.75863
 **********
 **   18 **HESSE 
 **********

 FCN=   1126.113     FROM HESSE     STATUS=OK           608 CALLS     4725 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.136        68.747        .69593E-04   -1.4556    
   2  Prefactor     .10002E-03    162.57        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    16.837        .13445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     112.10        78.283        .37989E-04   -1.3586    
   5  Prefactor     .10000E-03    1.7446        .43187E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    86.081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    1478.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          28.715        7.8086        .45720E-04   -1.4636    
   9  Prefactor     .25038E-01    42.479        .26561E-01   -1.5676    
  10  Prefactor     .10000E-03    89.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    5.5706        .77322E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0452        454.68        .23438E-03   -1.5359    
  13  Prefactor     .10000E-03    10.460        .10494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.6974        .62895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.607        14.890        .10480E-03   -1.4943    
  16  norm          .63068        .62642        .23328E-04   -1.5549    
  17  norm          .10000E-03    7.7105        .90914E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.821        .13840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    958.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    233.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9815        .10355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    340.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    41.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    357.87        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.1477        .93545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    8010.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    708.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    66.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    113.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .29154        .91183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.7586        .39788        .24672E-03   -.70532    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78431e-09
Minuit parameter uncertainties:
  1  68.912
  2  0.00358015
  3  4.1402e-05
  4  78.3557
  5  1.75237e-05
  6  5.52547e-05
  7  1.70514e-05
  8  7.8089
  9  2.05995
  10  3.72782e-05
  11  2.58517e-05
  12  75.0061
  13  8.56682e-05
  14  6.44658e-06
  15  14.8935
  16  0.62643
  17  1.17148e-05
  18  9.49914e-06
  19  1.50095e-05
  20  5.93157e-06
  21  1.65317e-06
  22  7.56361e-07
  23  1.73173e-06
  24  1.91626e-06
  25  1.44268e-06
  26  0.000111084
  27  3.90952e-06
  28  3.27166e-07
  29  1.23339e-06
  30  9.62795e-06
  31  0.398612
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  8.567e-05  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.707e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.759e+00  3.986e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.000e-02  9.628e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 2.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.75e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521639/likelihoodResults_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.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) = 1126.11327323
delta logL = -0.000438138894651

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1126.11283619
delta logL = -1.09671441351e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12463E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.6533       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7585       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   1126.113     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10054E-03    54.522        .11727E-02** at limit **
   2  Index         1.5936        6.1619        .50000        .24084E-04
   3  Normalizat    .10000E-01    .24464E-02    .91185E-02** at limit **
   4  Prefactor     1.7586        .26129E-01    .24672E-03    .48728E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100542
  Index      = 1.59357
  Normalizat = 0.01
  Prefactor  = 1.75863
 **********
 **   18 **HESSE 
 **********

 FCN=   1126.113     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10054E-03    240.05        .23454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.5936        5.7956        .50000       -.74952    
   3  Normalizat    .10000E-01    .11158E-01    .18237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.7586        .55788E-01    .98689E-05   -.70532    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.60176e-09
Minuit parameter uncertainties:
  1  0.0229094
  2  141.101
  3  4.68309e-08
  4  0.0557902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521639': 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) = 1126.11283412
delta logL = 9.7807514976e-07

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.005e-04  2.291e-02  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.594e+00  1.411e+02  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  4.501e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.759e+00  5.579e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.000e-02  4.683e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 185.345 30.168

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/521639/cmap_HighResolution_546480001_546739201_4FGL_J1221.3+3010_daily_bin1185.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.75e-02', job_status='DONE', photon_flux_upper_limit='2.40e-07', time_completed='2021-09-05 09:38:23.914840', job_id='521639', GAL2='1.76', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630859903.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.76', dlogl='9.78e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='1185' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:38:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 521639: <4FGL_J1221.3+3010_daily_bin1185> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1185> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:52 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:54 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:25:54 2021
Terminated at Sun Sep  5 09:38:24 2021
Results reported at Sun Sep  5 09:38:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1185 185.345 30.1677 546480001 546739201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1221.3+3010 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   429.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             190.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   750 sec.
    Turnaround time :                            752 sec.

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

