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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1180
RA = 185.345, Dec = 30.1677
tmin = 545184001, tmax = 545443201
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='521634', job_status='RUN', time_executed='2021-09-05 09:28:54.484675', time_epoch_executed='1630859334.48' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521634/ft1_4FGL_J1221.3+3010_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521634/ft2_4FGL_J1221.3+3010_daily_bin1180.fits


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

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

Done.
real 4.14
user 3.90
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/521634/ft1_filtered_4FGL_J1221.3+3010_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/521634/ft2_4FGL_J1221.3+3010_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/521634/ltcube_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.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/521634/ft2_4FGL_J1221.3+3010_daily_bin1180.fits
.....................!
real 11.41
user 11.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521634/ft1_filtered_4FGL_J1221.3+3010_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/521634/ft2_4FGL_J1221.3+3010_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/521634/ltcube_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.fits outfile=/scratch/kocevski/521634/expmap_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.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/521634/ltcube_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.fits
.....................!
real 189.72
user 185.09
sys 4.26

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/521634/ft1_filtered_4FGL_J1221.3+3010_daily_bin1180.fits scfile=/scratch/kocevski/521634/ft2_4FGL_J1221.3+3010_daily_bin1180.fits outfile=/scratch/kocevski/521634/cmap_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.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.68
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521634/ft1_filtered_4FGL_J1221.3+3010_daily_bin1180.fits scfile=/scratch/kocevski/521634/ft2_4FGL_J1221.3+3010_daily_bin1180.fits outfile=/scratch/kocevski/521634/cmap_HighResolution_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.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.62
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.067       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.1814       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    58.287       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.420       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    22.752       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6519       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17379E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.3799       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9723       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1589       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2486       1.0000         .10000E-03   10000.    
    16 'norm      '    .91943       1.0000         .10000E-03   10000.    
    17 'norm      '    1.4194       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10162E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10307E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.4942       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35317E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    6.1584       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .93506       1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .96380       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0357       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=   4790.102     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     3481 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.102        11.581        .16521E-04   -.61687E-02
   2  Prefactor     7.1459        7.4191       -.13620E-04    .29436E-02
   3  Prefactor     .10000E-03    10.885       -.61095E-06** at limit **
   4  Prefactor     58.278        1.8690       -.86537E-06    .74071E-03
   5  Prefactor     .10000E-03    .68039        .43483E-06** at limit **
   6  Prefactor     29.407        3.0662       -.25813E-05    .18145E-02
   7  Prefactor     .10000E-03    40.074        .34416E-04** at limit **
   8  norm          22.750        3.7327       -.47073E-06   -.12225E-02
   9  Prefactor     4.6514        4.7435        .48816E-05    .19922E-02
  10  Prefactor     .10761E-03    161.46       -.67438E-04** at limit **
  11  norm          3.3794        3.2854        .91073E-06    .16589E-03
  12  Prefactor     11.051        1.0057       -.23055E-07    .14364E-03
  13  Prefactor     2.9718        2.6595       -.21121E-06   -.62764E-04
  14  Prefactor     4.1592        2.9460        .23928E-06    .42161E-04
  15  Prefactor     2.2487        3.4300        .51535E-05    .78237E-03
  16  norm          .91944        .32620       -.98060E-07    .72406E-03
  17  norm          1.4187        3.6134       -.70429E-05   -.61570E-03
  18  Prefactor     .10000E-03    4.5605        .35273E-06** at limit **
  19  Prefactor     .10008E-03    20.331        .11469E-04** at limit **
  20  Prefactor     .10015E-03    10.250        .13149E-04** at limit **
  21  Prefactor     1.4931        2.6774       -.63418E-05   -.35737E-02
  22  Prefactor     .10009E-03    49.580       -.59249E-04** at limit **
  23  norm          6.1583        3.3542       -.18869E-05    .24922E-02
  24  Prefactor     .10001E-03    21.506       -.16168E-04** at limit **
  25  norm          .10000E-03    3.6053        .76372E-06** at limit **
  26  Prefactor     .10070E-03    39.850        .29568E-04** at limit **
  27  norm          .94025        10.120        .11616E-04    .13152E-02
  28  norm          .10000E-03    1.7788        .58336E-07** at limit **
  29  norm          .10000E-03    2.8827       -.37864E-06** at limit **
  30  Normalizat    .96380        .27271       -.50545E-05    .41820E-04
  31  Prefactor     1.0357        .29135        .32044E-05    .56922E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1019
  Prefactor  = 7.14587
  Prefactor  = 0.0001
  Prefactor  = 58.2782
  Prefactor  = 0.0001
  Prefactor  = 29.4074
  Prefactor  = 0.0001
  norm       = 22.7504
  Prefactor  = 4.65144
  Prefactor  = 0.000107613
  norm       = 3.37941
  Prefactor  = 11.0511
  Prefactor  = 2.97184
  Prefactor  = 4.15923
  Prefactor  = 2.24874
  norm       = 0.919436
  norm       = 1.41871
  Prefactor  = 0.0001
  Prefactor  = 0.000100076
  Prefactor  = 0.000100148
  Prefactor  = 1.49309
  Prefactor  = 0.000100087
  norm       = 6.15829
  Prefactor  = 0.000100015
  norm       = 0.0001
  Prefactor  = 0.000100704
  norm       = 0.940246
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 0.963798
  Prefactor  = 1.03571
 **********
 **   18 **HESSE 
 **********

 FCN=   4790.102     FROM HESSE     STATUS=OK           692 CALLS     4173 TOTAL
                     EDM=   .53E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.102        158.83        .27702E-02   -1.4984    
   2  Prefactor     7.1459        141.19        .37421E-02   -1.5173    
   3  Prefactor     .10000E-03    10.835        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     58.278        40.286        .13137E-02   -1.4180    
   5  Prefactor     .10000E-03    .67817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.407        55.819        .18466E-02   -1.4623    
   7  Prefactor     .10000E-03    82.825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.750        3.8803        .20994E-02   -1.4754    
   9  Prefactor     4.6514        4.9938        .46649E-02   -1.5277    
  10  Prefactor     .10761E-03    166.32        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.3794        3.2900        .55023E-02   -1.5340    
  12  Prefactor     11.051        11.447        .30130E-02   -1.5043    
  13  Prefactor     2.9718        2.6568        .58878E-02   -1.5363    
  14  Prefactor     4.1592        2.9603        .49410E-02   -1.5300    
  15  Prefactor     2.2487        3.4596        .68506E-02   -1.5408    
  16  norm          .91944        .32973        .49117E-02   -1.5516    
  17  norm          1.4187        3.6721        .90792E-02   -1.5470    
  18  Prefactor     .10000E-03    4.5547        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10008E-03    27.693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10015E-03    25.775        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.4931        8.1194        .87641E-02   -1.5464    
  22  Prefactor     .10009E-03    6.6300        .98223E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.1583        5.8668        .40444E-02   -1.5212    
  24  Prefactor     .10001E-03    24.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.5440        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10070E-03    77.612        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .94025        13.480        .12934E-01   -1.5514    
  28  norm          .10000E-03    1.7744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    2.8784        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .96380        .24155        .68580E-01   -.94253    
  31  Prefactor     1.0357        .25151        .71681E-01   -.91549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31494e-06
Minuit parameter uncertainties:
  1  91.5391
  2  63.7003
  3  3.63339e-05
  4  40.3049
  5  2.42323e-06
  6  55.9184
  7  0.000133194
  8  3.88038
  9  4.99422
  10  0.0713654
  11  3.29021
  12  11.4496
  13  2.65687
  14  2.96044
  15  3.45994
  16  0.32973
  17  3.67267
  18  1.13201e-06
  19  0.00291122
  20  0.00390988
  21  6.96484
  22  0.00152173
  23  5.86731
  24  0.00119371
  25  5.27612e-06
  26  0.0148014
  27  7.12169
  28  7.29726e-07
  29  1.28328e-06
  30  0.24182
  31  0.251793
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.972e+00  2.657e+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.036e+00  2.518e-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.638e-01  2.418e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.75
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.77e-08 +/- 2.48e-08
Energy Flux (Fixed Index): 4.42e-05 +/- 3.95e-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) = 4787.83643127
delta logL = 2.26521914849

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4787.04602317
delta logL = 3.05562724642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43680       1.0000         .10000E-03   10000.    
     2 'Index     '    .86695E-06   1.0000          .0000       10.000    
     3 'Normalizat'    .96761       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0475       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=   4787.046     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      230 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .43700        .48915        .10100E-01   -.65561E-03
   2  Index         .53846E-13    .42307        .50000    ** at limit **
   3  Normalizat    .96757        .22623        .68511E-01    .88092E-05
   4  Prefactor     1.0474        .24574        .71469E-01    .87797E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.436997
  Index      = 5.38458e-14
  Normalizat = 0.967573
  Prefactor  = 1.04738
 **********
 **   18 **HESSE 
 **********

 FCN=   4787.046     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .43700        .43791        .40013E-03   -1.5576    
   2  Index         .53846E-13    .64524        .22402E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96757        .26671        .30307E-03   -.94125    
   4  Prefactor     1.0474        .28973        .31621E-03   -.91166    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43046e-12
Minuit parameter uncertainties:
  1  0.437916
  2  3.77478e-07
  3  0.267074
  4  0.290165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521634': 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) = 4787.04602147
delta logL = 3.05562894747

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  4.370e-01  4.379e-01  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  5.385e-14  3.775e-07  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.047e+00  2.902e-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.676e-01  2.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.87
Ra Dec: 185.345 30.168
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.37e-09 +/- 4.37e-09
Energy Flux (Free Index): 2.19e-04 +/- 2.19e-04

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/521634/cmap_HighResolution_545184001_545443201_4FGL_J1221.3+3010_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.77e-08', energy_flux2='2.19e-04', photon_flux_error='2.48e-08', dlogl='3.06e+00', energy_flux='4.42e-05', photon_flux2='4.37e-09', job_status='DONE', time_completed='2021-09-05 09:42:18.747877', photon_index_error2='0.00', photon_index2='0.00', ts='6.75', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.19e-04', EG='0.96', time_epoch_completed='1630860138.75', return_code='0', job_id='521634', GAL2='1.05', EG2='0.97', return_code2='0', energy_flux_error='3.95e-05', photon_flux_error2='4.37e-09', ts2='12.87', photon_index='1.71' WHERE bin_id='1180' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:42:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 521634: <4FGL_J1221.3+3010_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1180> 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) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:53 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:53 2021
Terminated at Sun Sep  5 09:42:19 2021
Results reported at Sun Sep  5 09:42:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1180 185.345 30.1677 545184001 545443201 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 :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            987 sec.

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

