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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1463
RA = 185.345, Dec = 30.1677
tmin = 618537601, tmax = 618796801
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='524462', job_status='RUN', time_executed='2021-09-05 09:37:00.771141', time_epoch_executed='1630859820.77' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/524462

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/524462/ft1_4FGL_J1221.3+3010_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/524462/ft1_4FGL_J1221.3+3010_daily_bin1463.fits outfile=/scratch/kocevski/524462/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1463.fits ra=185.345 dec=30.1677 rad=12.0 tmin=618537601.0 tmax=618796801.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.73
user 3.48
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/524462/ltcube_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.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/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits
.....................!
real 11.88
user 11.44
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/524462/ltcube_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.fits outfile=/scratch/kocevski/524462/expmap_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.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/524462/ltcube_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.fits
.....................!
real 192.40
user 185.75
sys 5.38

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/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits scfile=/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits outfile=/scratch/kocevski/524462/cmap_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits scfile=/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits outfile=/scratch/kocevski/524462/cmap_HighResolution_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.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.57
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/524462/Model_4FGL_J1221.3+3010_daily_bin1463.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/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits.....................!
real 54.21
user 52.67
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits', '/scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits', expMap='/scratch/kocevski/524462/expmap_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.fits', expCube='/scratch/kocevski/524462/ltcube_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/524462/Model_4FGL_J1221.3+3010_daily_bin1463.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/524462/ft1_filtered_4FGL_J1221.3+3010_daily_bin1463.fits
Spacecraft file(s): /scratch/kocevski/524462/ft2_4FGL_J1221.3+3010_daily_bin1463.fits
Exposure map: /scratch/kocevski/524462/expmap_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.fits
Exposure cube: /scratch/kocevski/524462/ltcube_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/524462/Model_4FGL_J1221.3+3010_daily_bin1463.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) = 6024.15913845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41480       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.3179       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .64191       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.530       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .37951E-02   1.0000         .10000E-03   10000.    
     8 'norm      '    .33622       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4350       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10268E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.2217       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.230       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7317       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.3844       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .41869       1.0000         .10000E-03   10000.    
    17 'norm      '    2.5640       1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.747       1.0000         .10000E-03   10000.    
    19 'Prefactor '    58.965       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5128       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.6347       1.0000         .10000E-03   10000.    
    23 'norm      '    17.314       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10560E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.4732       1.0000         .10000E-03   10000.    
    28 'norm      '    11.394       1.0000         .10000E-03   10000.    
    29 'norm      '    1.5531       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.6870       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .18404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6024.144     FROM MIGRAD    STATUS=CONVERGED     75 CALLS     4080 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.2107       -.23755E-06** at limit **
   2  Prefactor     .10000E-03    4.0474       -.31860E-07** at limit **
   3  Prefactor     .41346        .74744        .76879E-06   -.40426E-03
   4  Prefactor     6.3166        1.0088       -.10977E-07    .40825E-04
   5  Prefactor     .64201        1.7599       -.64914E-07    .67945E-04
   6  Prefactor     20.530        1.0039        .34889E-07   -.67209E-03
   7  Prefactor     .32152E-02    .81643       -.22614E-05    .23122E-02
   8  norm          .33684        1.1174        .97844E-07    .54333E-04
   9  Prefactor     1.4338        1.1694        .73360E-06   -.48877E-03
  10  Prefactor     .10008E-03    6.4659        .81770E-06** at limit **
  11  norm          2.2219        2.4410       -.17473E-05   -.12810E-02
  12  Prefactor     13.231        1.0014        .57676E-08   -.27422E-04
  13  Prefactor     3.7317        2.2508        .16632E-05    .20197E-02
  14  Prefactor     3.3838        2.7305       -.18733E-05   -.22217E-02
  15  Prefactor     .10000E-03    3.0319       -.15693E-06** at limit **
  16  norm          .41870        .22593        .94965E-09    .19506E-03
  17  norm          2.5640        3.1574        .43440E-06    .45339E-03
  18  Prefactor     16.750        1.0267       -.60179E-07    .45363E-03
  19  Prefactor     58.966        1.0039        .52973E-08   -.13709E-03
  20  Prefactor     .10013E-03    6.7954       -.47358E-06** at limit **
  21  Prefactor     3.5133        1.0224       -.14880E-06    .41841E-03
  22  Prefactor     6.6381        1.0560       -.82217E-07    .79196E-03
  23  norm          17.312        1.0168       -.60389E-07    .93039E-03
  24  Prefactor     .10000E-03    6.5593        .28205E-06** at limit **
  25  norm          .10000E-03    .93039       -.35491E-07** at limit **
  26  Prefactor     .10017E-03    42.363       -.23375E-05** at limit **
  27  norm          8.4722        1.0258       -.14265E-06    .10855E-02
  28  norm          11.411        1.7927        .31259E-06   -.29064E-02
  29  norm          1.5263        2.5308       -.16108E-05    .17309E-02
  30  Normalizat    1.6869        .21449        .27684E-06    .13210E-03
  31  Prefactor     .18405        .21819        .48866E-06    .33623E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.413461
  Prefactor  = 6.31661
  Prefactor  = 0.642012
  Prefactor  = 20.5304
  Prefactor  = 0.00321519
  norm       = 0.336839
  Prefactor  = 1.43383
  Prefactor  = 0.000100081
  norm       = 2.22185
  Prefactor  = 13.2308
  Prefactor  = 3.73165
  Prefactor  = 3.3838
  Prefactor  = 0.0001
  norm       = 0.418704
  norm       = 2.56398
  Prefactor  = 16.7504
  Prefactor  = 58.9663
  Prefactor  = 0.000100128
  Prefactor  = 3.51329
  Prefactor  = 6.63813
  norm       = 17.3124
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010017
  norm       = 8.47217
  norm       = 11.4108
  norm       = 1.5263
  Normalizat = 1.68694
  Prefactor  = 0.184048
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.144     FROM HESSE     STATUS=OK           708 CALLS     4788 TOTAL
                     EDM=   .16E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.1988        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.0398        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .41346        3.7964        .48693E-01   -1.5579    
   4  Prefactor     6.3166        23.580        .39923E-02   -1.5205    
   5  Prefactor     .64201        1.9409        .11837E-01   -1.5548    
   6  Prefactor     20.530        31.692        .22099E-02   -1.4801    
   7  Prefactor     .32152E-02    49.899        .17283       -1.5697    
   8  norm          .33684        1.1785        .10583E-01   -1.5592    
   9  Prefactor     1.4338        5.2723        .90100E-02   -1.5468    
  10  Prefactor     .10008E-03    19.474        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.2219        2.4597        .68970E-02   -1.5410    
  12  Prefactor     13.231        8.3826        .27531E-02   -1.4980    
  13  Prefactor     3.7317        2.2531        .52256E-02   -1.5322    
  14  Prefactor     3.3838        2.8334        .54985E-02   -1.5340    
  15  Prefactor     .10000E-03    2.9963        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .41870        .23030        .58775E-02   -1.5579    
  17  norm          2.5640        3.1975        .63735E-02   -1.5388    
  18  Prefactor     16.750        11.645        .24468E-02   -1.4889    
  19  Prefactor     58.966        43.773        .13062E-02   -1.4171    
  20  Prefactor     .10013E-03    19.101        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5133        5.1110        .53925E-02   -1.5333    
  22  Prefactor     6.6381        14.194        .38947E-02   -1.5193    
  23  norm          17.312        6.8418        .24063E-02   -1.4876    
  24  Prefactor     .10000E-03    19.306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    .92760        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10017E-03    43.104        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.4722        6.9414        .34429E-02   -1.5126    
  28  norm          11.411        14.228        .29671E-02   -1.5032    
  29  norm          1.5263        69.128        .85422E-02   -1.5461    
  30  Normalizat    1.6869        .28413        .47433E-01   -.72653    
  31  Prefactor     .18405        .29234        .13608       -1.2986    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6205e-06
Minuit parameter uncertainties:
  1  2.50981e-05
  2  3.2474e-06
  3  2.50562
  4  23.6146
  5  1.94111
  6  31.718
  7  0.789188
  8  1.17854
  9  5.27397
  10  0.00250974
  11  2.45981
  12  8.38335
  13  2.25316
  14  2.83356
  15  3.8551e-07
  16  0.230298
  17  3.19767
  18  11.6465
  19  43.7972
  20  0.00313159
  21  5.11168
  22  14.2014
  23  6.84211
  24  0.000119715
  25  1.21165e-06
  26  0.00542232
  27  6.94204
  28  14.2325
  29  20.5683
  30  0.284406
  31  0.294692
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.732e+00  2.253e+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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.840e-01  2.947e-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.687e+00  2.844e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.55
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 2.10e-08
Energy Flux (Fixed Index): 5.55e-05 +/- 3.35e-05

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) = 6024.14355636
delta logL = 0.000138216849336

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6024.14347431
delta logL = 0.000220266811084

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6981       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7171       1.0000          .0000       10.000    
     3 'Normalizat'    1.6864       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .18430       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.

 FCN=   6024.143     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6981        51.345        .52503E-02    .66737E-03
   2  Index         1.7171        5.7953        .12017        .85741E-04
   3  Normalizat    1.6864        .14803        .47438E-01    .19974E-05
   4  Prefactor     .18430        .10077        .13598        .68858E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.69806
  Index      = 1.71714
  Normalizat = 1.68643
  Prefactor  = 0.184305
 **********
 **   18 **HESSE 
 **********

 FCN=   6024.143     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6981        2.7726        .84036E-04   -1.5323    
   2  Index         1.7171        .48051        .62520E-02   -.71626    
   3  Normalizat    1.6864        .21318        .20968E-03   -.72666    
   4  Prefactor     .18430        .21785        .59908E-03   -1.2984    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15197e-10
Minuit parameter uncertainties:
  1  2.77274
  2  0.481823
  3  0.213295
  4  0.218818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/524462': 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) = 6024.1434743
delta logL = 0.000220267701479

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.698e+00  2.773e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.717e+00  4.818e-01  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.843e-01  2.188e-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.686e+00  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.57
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.72 +/- 0.48
Photon Flux (Free Index): 3.54e-08 +/- 3.24e-08
Energy Flux (Free Index): 5.47e-05 +/- 5.47e-05

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/524462/cmap_HighResolution_618537601_618796801_4FGL_J1221.3+3010_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='5.47e-05', photon_flux_error='2.10e-08', dlogl='2.20e-04', energy_flux='5.55e-05', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-09-05 09:51:47.739898', photon_index_error2='0.48', photon_index2='1.72', ts='15.55', fit_tolerance='1e-08', GAL='0.18', photon_index_error='0.00', energy_flux_error2='5.47e-05', EG='1.69', time_epoch_completed='1630860707.74', return_code='0', job_id='524462', GAL2='0.18', EG2='1.69', return_code2='0', energy_flux_error='3.35e-05', photon_flux_error2='3.24e-08', ts2='15.57', photon_index='1.71' WHERE bin_id='1463' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:51:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 524462: <4FGL_J1221.3+3010_daily_bin1463> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1463> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:36:01 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:36:03 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:36:03 2021
Terminated at Sun Sep  5 09:51:48 2021
Results reported at Sun Sep  5 09:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1463 185.345 30.1677 618537601 618796801 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 :                                   784.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             298.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   944 sec.
    Turnaround time :                            947 sec.

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

