/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 162 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 = 7566
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1221.3+3010_daily_bin40
RA = 185.345, Dec = 30.1677
tmin = 249696001, tmax = 249955201
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='511146', job_status='RUN', time_executed='2021-09-05 08:58:32.090245', time_epoch_executed='1630857512.09' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='40'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/511146

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/511146/ft1_4FGL_J1221.3+3010_daily_bin40.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/511146/ft2_4FGL_J1221.3+3010_daily_bin40.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/511146/ft1_4FGL_J1221.3+3010_daily_bin40.fits outfile=/scratch/kocevski/511146/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin40.fits ra=185.345 dec=30.1677 rad=12.0 tmin=249696001.0 tmax=249955201.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 1.46
user 1.27
sys 0.14

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/511146/ft2_4FGL_J1221.3+3010_daily_bin40.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/511146/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin40.fits evtable="EVENTS" outfile="/scratch/kocevski/511146/ft1_filtered_4FGL_J1221.3+3010_daily_bin40.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/511146/ft1_filtered_4FGL_J1221.3+3010_daily_bin40.fits" evtable="EVENTS" scfile=/scratch/kocevski/511146/ft2_4FGL_J1221.3+3010_daily_bin40.fits sctable="SC_DATA" outfile=/scratch/kocevski/511146/ltcube_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.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/511146/ft2_4FGL_J1221.3+3010_daily_bin40.fits
.....................!
real 13.43
user 13.03
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/511146/ft1_filtered_4FGL_J1221.3+3010_daily_bin40.fits evtable="EVENTS" scfile=/scratch/kocevski/511146/ft2_4FGL_J1221.3+3010_daily_bin40.fits sctable="SC_DATA" expcube=/scratch/kocevski/511146/ltcube_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.fits outfile=/scratch/kocevski/511146/expmap_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.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/511146/ltcube_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.fits
.....................!
real 191.13
user 185.92
sys 4.83

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/511146/ft1_filtered_4FGL_J1221.3+3010_daily_bin40.fits scfile=/scratch/kocevski/511146/ft2_4FGL_J1221.3+3010_daily_bin40.fits outfile=/scratch/kocevski/511146/cmap_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/511146/ft1_filtered_4FGL_J1221.3+3010_daily_bin40.fits scfile=/scratch/kocevski/511146/ft2_4FGL_J1221.3+3010_daily_bin40.fits outfile=/scratch/kocevski/511146/cmap_HighResolution_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.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.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2536       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .31733E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    4.1336       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .78963       1.0000         .10000E-03   10000.    
    11 'norm      '    6.0836       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1899       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2305       1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.6720       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .45588       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.960       1.0000         .10000E-03   10000.    
    19 'Prefactor '    23.389       1.0000         .10000E-03   10000.    
    20 'Prefactor '    26.136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.1959       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.2435       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .26833       1.0000         .10000E-03   10000.    
    27 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    21.169       1.0000         .10000E-03   10000.    
    29 'norm      '    12.089       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .99816       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .63697       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=   5211.731     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     4125 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5128       -.12865E-06** at limit **
   2  Prefactor     .10000E-03    3.9844       -.52097E-07** at limit **
   3  Prefactor     .10000E-03    4.8746       -.19233E-06** at limit **
   4  Prefactor     .10000E-03    21.856       -.25761E-05** at limit **
   5  Prefactor     2.2532        1.8492        .33785E-08    .51158E-04
   6  Prefactor     .10000E-03    56.683        .73037E-06** at limit **
   7  Prefactor     .10000E-03    21.318        .19684E-05** at limit **
   8  norm          4.1341        1.4943        .52083E-07    .81905E-03
   9  Prefactor     .10000E-03    1.6430       -.77670E-07** at limit **
  10  Prefactor     .81964        36.933       -.69649E-05    .44862E-03
  11  norm          6.0835        3.3693        .21659E-07    .23881E-03
  12  Prefactor     1.1891        7.1273        .30299E-05    .27304E-03
  13  Prefactor     5.2303        2.9040       -.28602E-07    .12366E-03
  14  Prefactor     8.6715        3.1663        .85018E-07    .34748E-03
  15  Prefactor     .10000E-03    2.2634       -.39501E-07** at limit **
  16  norm          .45579        .24967        .23231E-07    .21792E-03
  17  norm          .10000E-03    1.7344       -.48711E-07** at limit **
  18  Prefactor     15.957        11.995        .34736E-07    .37393E-04
  19  Prefactor     23.405        21.853        .60217E-06    .95625E-04
  20  Prefactor     26.206        74.347        .87298E-05    .15122E-03
  21  Prefactor     10.520        7.8945        .62554E-07   -.76801E-05
  22  Prefactor     .10000E-03    2.8313        .34806E-06** at limit **
  23  norm          9.1919        8.2978        .13206E-05    .50361E-03
  24  Prefactor     3.2730        131.13       -.12133E-04   -.25797E-05
  25  norm          .10000E-03    1.3991       -.60821E-07** at limit **
  26  Prefactor     .11915        11.891       -.74466E-06    .18193E-03
  27  norm          .10000E-03    4.7326        .10957E-05** at limit **
  28  norm          21.171        9.7231        .37834E-06    .37431E-03
  29  norm          12.085        14.544        .17428E-06    .15838E-03
  30  Normalizat    .99822        .18204       -.14100E-05    .38850E-03
  31  Prefactor     .63711        .19764        .95493E-06    .17644E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.25317
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  norm       = 4.1341
  Prefactor  = 0.0001
  Prefactor  = 0.819642
  norm       = 6.08353
  Prefactor  = 1.18915
  Prefactor  = 5.23033
  Prefactor  = 8.67152
  Prefactor  = 0.0001
  norm       = 0.45579
  norm       = 0.0001
  Prefactor  = 15.9574
  Prefactor  = 23.4053
  Prefactor  = 26.2062
  Prefactor  = 10.5199
  Prefactor  = 0.0001
  norm       = 9.19194
  Prefactor  = 3.27296
  norm       = 0.0001
  Prefactor  = 0.119153
  norm       = 0.0001
  norm       = 21.1708
  norm       = 12.0854
  Normalizat = 0.998223
  Prefactor  = 0.637107
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.731     FROM HESSE     STATUS=OK           628 CALLS     4753 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    3.9885        .14073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.9702        .15549E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.2532        1.8469        .85081E-04   -1.5408    
   6  Prefactor     .10000E-03    57.995        .42732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          4.1341        1.4936        .50480E-04   -1.5301    
   9  Prefactor     .10000E-03    1.6552        .90337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .81964        269.56        .72042E-02   -1.5527    
  11  norm          6.0835        3.3744        .91067E-04   -1.5215    
  12  Prefactor     1.1891        7.0704        .36614E-03   -1.5490    
  13  Prefactor     5.2303        2.9076        .84979E-04   -1.5251    
  14  Prefactor     8.6715        3.1673        .72036E-04   -1.5119    
  15  Prefactor     .10000E-03    2.2711        .10604E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .45579        .24739        .25277E-04   -1.5573    
  17  norm          .10000E-03    1.7418        .92819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.957        11.995        .10025E-03   -1.4909    
  19  Prefactor     23.405        21.858        .82826E-04   -1.4740    
  20  Prefactor     26.206        75.350        .78359E-04   -1.4684    
  21  Prefactor     10.520        7.8965        .12352E-03   -1.5059    
  22  Prefactor     .10000E-03    2.8479        .11855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.1919        8.2987        .13216E-03   -1.5102    
  24  Prefactor     3.2730        131.35        .22490E-03   -1.5346    
  25  norm          .10000E-03    1.4095        .83375E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .11915        16.044        .79907E-01   -1.5639    
  27  norm          .10000E-03    4.8376        .15322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          21.171        9.8525        .87055E-04   -1.4787    
  29  norm          12.085        14.771        .11521E-03   -1.5013    
  30  Normalizat    .99822        .21417        .22671E-03   -.93090    
  31  Prefactor     .63711        .22862        .31777E-03   -1.0605    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44804e-08
Minuit parameter uncertainties:
  1  7.29235e-08
  2  1.03244e-06
  3  7.83743e-06
  4  0.000274376
  5  1.84692
  6  0.000700444
  7  0.000259381
  8  1.49363
  9  2.75317e-07
  10  29.863
  11  3.37454
  12  5.80002
  13  2.90771
  14  3.16733
  15  3.3659e-07
  16  0.247394
  17  4.87055e-07
  18  11.9966
  19  21.8653
  20  75.625
  21  7.89726
  22  1.21668e-05
  23  8.2997
  24  41.5659
  25  7.84933e-07
  26  2.76485
  27  5.53653e-05
  28  9.85326
  29  14.7751
  30  0.21435
  31  0.22896
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  5.230e+00  2.908e+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:  6.371e-01  2.290e-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:  9.982e-01  2.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.00
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 4.88e-08 +/- 2.71e-08
Energy Flux (Fixed Index): 7.79e-05 +/- 4.33e-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) = 5211.49565976
delta logL = 0.235395226472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5211.49137141
delta logL = 0.239683581783

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.5960       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9852       1.0000          .0000       10.000    
     3 'Normalizat'    .97942       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64834       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=   5211.491     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      274 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.5962        3.3598        .65288E-04    .20722E-04
   2  Index         1.9852        .44720        .34293E-02    .53464E-03
   3  Normalizat    .97936        .19863        .22835E-03    .12292E-03
   4  Prefactor     .64834        .22470        .31496E-03    .14355E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.59623
  Index      = 1.98521
  Normalizat = 0.979356
  Prefactor  = 0.64834
 **********
 **   18 **HESSE 
 **********

 FCN=   5211.491     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.5962        3.1148        .26115E-05   -1.5329    
   2  Index         1.9852        .41453        .68586E-03   -.64720    
   3  Normalizat    .97936        .19839        .91341E-05   -.93725    
   4  Prefactor     .64834        .22472        .12598E-04   -1.0559    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.8454e-11
Minuit parameter uncertainties:
  1  3.11492
  2  0.415275
  3  0.198535
  4  0.225034
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/511146': 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) = 5211.49137119
delta logL = 0.239683798579

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.596e+00  3.115e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.985e+00  4.153e-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:  6.483e-01  2.250e-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:  9.794e-01  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.62
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.99 +/- 0.42
Photon Flux (Free Index): 6.99e-08 +/- 4.66e-08
Energy Flux (Free Index): 5.01e-05 +/- 3.85e-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/511146/cmap_HighResolution_249696001_249955201_4FGL_J1221.3+3010_daily_bin40.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.88e-08', energy_flux2='5.01e-05', photon_flux_error='2.71e-08', dlogl='2.40e-01', energy_flux='7.79e-05', photon_flux2='6.99e-08', job_status='DONE', time_completed='2021-09-05 09:10:51.616439', photon_index_error2='0.42', photon_index2='1.99', ts='11.00', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', energy_flux_error2='3.85e-05', EG='1.00', time_epoch_completed='1630858251.62', return_code='0', job_id='511146', GAL2='0.65', EG2='0.98', return_code2='0', energy_flux_error='4.33e-05', photon_flux_error2='4.66e-08', ts2='11.62', photon_index='1.71' WHERE bin_id='40' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:10:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 511146: <4FGL_J1221.3+3010_daily_bin40> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin40> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 08:55:38 2021
Job was executed on host(s) <bullet0143>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 08:55:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 08:55:40 2021
Terminated at Sun Sep  5 09:10:52 2021
Results reported at Sun Sep  5 09:10:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin40 185.345 30.1677 249696001 249955201 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 :                                   737.45 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            914 sec.

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

