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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1151
RA = 185.345, Dec = 30.1677
tmin = 537667201, tmax = 537926401
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='521590', job_status='RUN', time_executed='2021-09-05 09:26:06.643191', time_epoch_executed='1630859166.64' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1151'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521590

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521590/ft1_4FGL_J1221.3+3010_daily_bin1151.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521590/ft2_4FGL_J1221.3+3010_daily_bin1151.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521590/ft1_4FGL_J1221.3+3010_daily_bin1151.fits outfile=/scratch/kocevski/521590/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1151.fits ra=185.345 dec=30.1677 rad=12.0 tmin=537667201.0 tmax=537926401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 5.12
user 4.71
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521590/ft1_filtered_4FGL_J1221.3+3010_daily_bin1151.fits" evtable="EVENTS" scfile=/scratch/kocevski/521590/ft2_4FGL_J1221.3+3010_daily_bin1151.fits sctable="SC_DATA" outfile=/scratch/kocevski/521590/ltcube_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.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/521590/ft2_4FGL_J1221.3+3010_daily_bin1151.fits
.....................!
real 12.58
user 12.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521590/ft1_filtered_4FGL_J1221.3+3010_daily_bin1151.fits evtable="EVENTS" scfile=/scratch/kocevski/521590/ft2_4FGL_J1221.3+3010_daily_bin1151.fits sctable="SC_DATA" expcube=/scratch/kocevski/521590/ltcube_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.fits outfile=/scratch/kocevski/521590/expmap_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.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/521590/ltcube_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.fits
.....................!
real 191.35
user 185.76
sys 5.15

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/521590/ft1_filtered_4FGL_J1221.3+3010_daily_bin1151.fits scfile=/scratch/kocevski/521590/ft2_4FGL_J1221.3+3010_daily_bin1151.fits outfile=/scratch/kocevski/521590/cmap_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521590/ft1_filtered_4FGL_J1221.3+3010_daily_bin1151.fits scfile=/scratch/kocevski/521590/ft2_4FGL_J1221.3+3010_daily_bin1151.fits outfile=/scratch/kocevski/521590/cmap_HighResolution_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.341       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.9356       1.0000         .10000E-03   10000.    
     6 'Prefactor '    64.071       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.404       1.0000         .10000E-03   10000.    
     8 'norm      '    15.971       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    18.798       1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.150       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .16453E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.1738       1.0000         .10000E-03   10000.    
    16 'norm      '    .32315E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7648       1.0000         .10000E-03   10000.    
    19 'Prefactor '    45.118       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.036       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.392       1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.3684       1.0000         .10000E-03   10000.    
    28 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .98710       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .91192       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=   4901.018     FROM MIGRAD    STATUS=CONVERGED    799 CALLS     4169 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.735        .60648E-06** at limit **
   2  Prefactor     10.341        16.740        .25128E-07   -.46302E-05
   3  Prefactor     .10000E-03    4.5962       -.23848E-06** at limit **
   4  Prefactor     .10000E-03    26.180       -.10116E-05** at limit **
   5  Prefactor     2.9355        2.0170        .36066E-07    .86485E-04
   6  Prefactor     64.074        40.191        .11364E-06    .33086E-04
   7  Prefactor     30.412        49.781       -.10711E-05    .17756E-04
   8  norm          15.971        2.8480       -.34443E-07    .16552E-03
   9  Prefactor     .10000E-03    1.5126       -.54394E-07** at limit **
  10  Prefactor     .10000E-03    13.909       -.21782E-06** at limit **
  11  norm          18.796        6.1489       -.57518E-06   -.36860E-03
  12  Prefactor     13.150        8.9404        .29583E-07   -.11931E-06
  13  Prefactor     .10097E-03    2.9985       -.10224E-05** at limit **
  14  Prefactor     .10000E-03    1.5550        .46211E-07** at limit **
  15  Prefactor     4.1739        4.0242       -.31937E-07    .61085E-05
  16  norm          .32879E-02    .19463       -.14703E-06    .89157E-03
  17  norm          .10000E-03    1.3060        .88326E-08** at limit **
  18  Prefactor     2.7657        11.244        .60280E-05    .13740E-03
  19  Prefactor     45.117        26.729        .11066E-06   -.31590E-04
  20  Prefactor     10.075        202.92       -.14095E-04    .10366E-05
  21  Prefactor     .10000E-03    2.9207       -.14770E-06** at limit **
  22  Prefactor     .10000E-03    2.9863        .19274E-06** at limit **
  23  norm          .10000E-03    4.9103        .11295E-05** at limit **
  24  Prefactor     11.392        17.339        .22100E-06   -.55325E-04
  25  norm          .10000E-03    2.3913       -.33615E-07** at limit **
  26  Prefactor     .10000E-03    5.3650        .32630E-06** at limit **
  27  norm          2.3684        4.5282        .13449E-06   -.65027E-05
  28  norm          .10000E-03    2.6164        .10627E-05** at limit **
  29  norm          .10000E-03    2.9136       -.96554E-07** at limit **
  30  Normalizat    .98703        .21003       -.13729E-05   -.90428E-04
  31  Prefactor     .91198        .22689        .13848E-05   -.10410E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.3411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.93555
  Prefactor  = 64.0742
  Prefactor  = 30.4117
  norm       = 15.9714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.796
  Prefactor  = 13.1496
  Prefactor  = 0.000100969
  Prefactor  = 0.0001
  Prefactor  = 4.1739
  norm       = 0.00328795
  norm       = 0.0001
  Prefactor  = 2.76566
  Prefactor  = 45.1166
  Prefactor  = 10.0746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 11.3922
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.3684
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.987029
  Prefactor  = 0.911978
 **********
 **   18 **HESSE 
 **********

 FCN=   4901.018     FROM HESSE     STATUS=OK           628 CALLS     4797 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.752        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.341        16.718        .12460E-03   -1.5065    
   3  Prefactor     .10000E-03    4.6666        .14639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.9355        2.0168        .79661E-04   -1.5365    
   6  Prefactor     64.074        40.337        .50135E-04   -1.4105    
   7  Prefactor     30.412        49.692        .72663E-04   -1.4604    
   8  norm          15.971        2.8473        .46739E-04   -1.4908    
   9  Prefactor     .10000E-03    1.5169        .84078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.913        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          18.796        5.5500        .84961E-04   -1.4841    
  12  Prefactor     13.150        8.9443        .11046E-03   -1.4983    
  13  Prefactor     .10097E-03    47.555        .18070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.4537        .16625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.1739        4.0291        .13413E-03   -1.5299    
  16  norm          .32879E-02    .21645        .89501E-02   -1.5697    
  17  norm          .10000E-03    1.3078        .78126E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.7657        11.666        .12239E-02   -1.5375    
  19  Prefactor     45.117        26.722        .59689E-04   -1.4364    
  20  Prefactor     10.075        200.80        .12649E-03   -1.5073    
  21  Prefactor     .10000E-03    2.9251        .11684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.0062        .11805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.1158        .30412E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     11.392        17.249        .11869E-03   -1.5033    
  25  norm          .10000E-03    2.4117        .10570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    5.3634        .15831E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.3684        4.5064        .19987E-03   -1.5400    
  28  norm          .10000E-03    6.0132        .21110E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.9266        .11662E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .98703        .24573        .25557E-03   -.93466    
  31  Prefactor     .91198        .26582        .30487E-03   -.95724    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09045e-08
Minuit parameter uncertainties:
  1  2.00191e-05
  2  16.7258
  3  9.48058e-06
  4  8.65776e-05
  5  2.01684
  6  40.354
  7  49.7598
  8  2.84737
  9  1.15313e-06
  10  2.22564e-05
  11  5.55018
  12  8.94517
  13  0.0135858
  14  1.1419e-05
  15  4.02934
  16  0.052537
  17  4.10856e-07
  18  11.364
  19  26.7289
  20  90.304
  21  4.96977e-07
  22  7.8945e-06
  23  8.62996e-05
  24  17.2561
  25  2.5882e-06
  26  9.64278e-06
  27  4.50705
  28  5.7641e-05
  29  6.06667e-08
  30  0.246017
  31  0.266196
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.010e-04  1.359e-02  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:  9.120e-01  2.662e-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.870e-01  2.460e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 8.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521590/likelihoodResults_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.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) = 4901.01804752
delta logL = -0.00010119347462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4899.79660322
delta logL = 1.2213431021

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39775       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8055       1.0000          .0000       10.000    
     3 'Normalizat'    .91490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94731       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=   4899.797     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      314 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39884        4.1895        .67854E-02    .10528E-02
   2  Index         2.8049        1.6251        .74285E-01    .17813E-03
   3  Normalizat    .91521        .51492E-01    .45092E-01    .68817E-05
   4  Prefactor     .94695        .58634E-01    .67452E-01    .33822E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.398837
  Index      = 2.8049
  Normalizat = 0.915209
  Prefactor  = 0.946951
 **********
 **   18 **HESSE 
 **********

 FCN=   4899.797     FROM HESSE     STATUS=OK            33 CALLS      347 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39884        5.7124        .30540E-04   -1.5582    
   2  Index         2.8049        2.2995        .27593E-02   -.45451    
   3  Normalizat    .91521        .24377        .26287E-03   -.95928    
   4  Prefactor     .94695        .27480        .29836E-03   -.94519    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63771e-07
Minuit parameter uncertainties:
  1  3.01878
  2  2.41397
  3  0.24406
  4  0.275204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521590': 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) = 4899.79660059
delta logL = 1.2213457408

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  3.988e-01  3.019e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.805e+00  2.414e+00  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:  9.470e-01  2.752e-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.152e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.49
Ra Dec: 185.345 30.168
Photon Index (Free Index): 2.80 +/- 2.41
Photon Flux (Free Index): 9.60e-08 +/- 7.54e-08
Energy Flux (Free Index): 2.14e-05 +/- 3.14e-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/521590/cmap_HighResolution_537667201_537926401_4FGL_J1221.3+3010_daily_bin1151.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.32e-03', comment='SUCCESS', energy_flux2='2.14e-05', dlogl='1.22e+00', photon_flux2='9.60e-08', job_status='DONE', time_completed='2021-09-05 09:40:16.748661', photon_index_error2='2.41', photon_index2='2.80', ts='-0.00', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='8.65e-08', energy_flux_error2='3.14e-05', EG='0.99', time_epoch_completed='1630860016.75', return_code='0', job_id='521590', GAL2='0.95', EG2='0.92', return_code2='0', photon_flux_error2='7.54e-08', ts2='2.49', photon_index='1.71' WHERE bin_id='1151' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:40:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 521590: <4FGL_J1221.3+3010_daily_bin1151> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1151 185.345 30.1677 537667201 537926401 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 :                                   838.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             328.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   867 sec.
    Turnaround time :                            869 sec.

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

