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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1200
RA = 185.345, Dec = 30.1677
tmin = 550368001, tmax = 550627201
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='521654', job_status='RUN', time_executed='2021-09-05 09:27:38.307825', time_epoch_executed='1630859258.31' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521654

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521654/ft1_4FGL_J1221.3+3010_daily_bin1200.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521654/ft2_4FGL_J1221.3+3010_daily_bin1200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521654/ft1_4FGL_J1221.3+3010_daily_bin1200.fits outfile=/scratch/kocevski/521654/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1200.fits ra=185.345 dec=30.1677 rad=12.0 tmin=550368001.0 tmax=550627201.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.07
user 3.79
sys 0.20

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521654/ft1_filtered_4FGL_J1221.3+3010_daily_bin1200.fits evtable="EVENTS" scfile=/scratch/kocevski/521654/ft2_4FGL_J1221.3+3010_daily_bin1200.fits sctable="SC_DATA" expcube=/scratch/kocevski/521654/ltcube_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.fits outfile=/scratch/kocevski/521654/expmap_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.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/521654/ltcube_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.fits
.....................!
real 190.21
user 185.04
sys 4.75

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/521654/ft1_filtered_4FGL_J1221.3+3010_daily_bin1200.fits scfile=/scratch/kocevski/521654/ft2_4FGL_J1221.3+3010_daily_bin1200.fits outfile=/scratch/kocevski/521654/cmap_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/521654/ft1_filtered_4FGL_J1221.3+3010_daily_bin1200.fits scfile=/scratch/kocevski/521654/ft2_4FGL_J1221.3+3010_daily_bin1200.fits outfile=/scratch/kocevski/521654/cmap_HighResolution_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .48311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2450       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.701       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12377E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    10.534       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11446E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    7.3795       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4302       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .57990       1.0000         .10000E-03   10000.    
    17 'norm      '    1.7236       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.807       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.6023       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    16.108       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .15542E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    3.9015       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3410       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .76945       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=   4562.847     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4147 TOTAL
                     EDM=   .81E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.308        .14453E-05** at limit **
   2  Prefactor     .16371        13.686       -.27448E-05    .97782E-04
   3  Prefactor     6.2511        7.0461       -.18130E-05    .74329E-04
   4  Prefactor     18.709        23.303       -.20446E-05    .15971E-03
   5  Prefactor     .10000E-03    1.3345       -.52933E-06** at limit **
   6  Prefactor     .10000E-03    14.372        .43635E-05** at limit **
   7  Prefactor     .10000E-03    84.780        .20439E-04** at limit **
   8  norm          10.534        2.4790       -.16704E-06    .73915E-03
   9  Prefactor     .10000E-03    4.1259       -.41179E-06** at limit **
  10  Prefactor     .10000E-03    50.391        .36916E-05** at limit **
  11  norm          7.3788        4.2822       -.58206E-06    .16535E-03
  12  Prefactor     .10000E-03    3.6702       -.13924E-07** at limit **
  13  Prefactor     2.4310        2.9385        .32625E-06   -.87566E-04
  14  Prefactor     .10000E-03    1.0654       -.19577E-07** at limit **
  15  Prefactor     .10000E-03    2.3391        .12613E-07** at limit **
  16  norm          .57967        .26638       -.16532E-06    .55898E-03
  17  norm          1.7225        3.5664       -.75310E-06   -.34145E-03
  18  Prefactor     .10000E-03    7.0462       -.26240E-05** at limit **
  19  Prefactor     .10000E-03    14.053       -.36320E-05** at limit **
  20  Prefactor     13.664        354.73       -.35405E-03    .22548E-04
  21  Prefactor     6.5978        7.8606       -.30428E-06   -.35494E-04
  22  Prefactor     .10000E-03    7.1138        .26160E-05** at limit **
  23  norm          16.097        11.538        .11396E-04    .49720E-03
  24  Prefactor     .10000E-03    69.753       -.20468E-04** at limit **
  25  norm          .10000E-03    6.2762       -.24423E-07** at limit **
  26  Prefactor     .10000E-03    19.005       -.22880E-05** at limit **
  27  norm          .10000E-03    5.3107       -.26555E-07** at limit **
  28  norm          .10000E-03    3.8218        .10742E-06** at limit **
  29  norm          3.8999        6.4876       -.11871E-05   -.37582E-04
  30  Normalizat    1.3415        .23656        .74378E-05    .20218E-03
  31  Prefactor     .76931        .23946        .14811E-05    .43910E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.163711
  Prefactor  = 6.25112
  Prefactor  = 18.7088
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.5342
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 7.37881
  Prefactor  = 0.0001
  Prefactor  = 2.43103
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.579669
  norm       = 1.72248
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.6645
  Prefactor  = 6.59784
  Prefactor  = 0.0001
  norm       = 16.0966
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.8999
  Normalizat = 1.34152
  Prefactor  = 0.769308
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.847     FROM HESSE     STATUS=OK           616 CALLS     4763 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    21.379        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .16371        25.475        .74413E-01   -1.5627    
   3  Prefactor     6.2511        7.0454        .16063E-03   -1.5208    
   4  Prefactor     18.709        23.183        .92616E-04   -1.4843    
   5  Prefactor     .10000E-03    2.7186        .14900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    14.378        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    84.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          10.534        2.4821        .48681E-04   -1.5059    
   9  Prefactor     .10000E-03    4.3092        .26755E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    50.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          7.3788        4.2906        .96500E-04   -1.5165    
  12  Prefactor     .10000E-03    3.6718        .12639E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.4310        2.9306        .11565E-03   -1.5396    
  14  Prefactor     .10000E-03    1.0735        .68017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.3435        .10085E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .57967        .26539        .22058E-04   -1.5556    
  17  norm          1.7225        3.5283        .17634E-03   -1.5445    
  18  Prefactor     .10000E-03    7.0667        .17507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.664        357.97        .10779E-03   -1.4968    
  21  Prefactor     6.5978        7.8622        .15618E-03   -1.5194    
  22  Prefactor     .10000E-03    7.1554        .17595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          16.097        11.558        .99792E-04   -1.4905    
  24  Prefactor     .10000E-03    69.962        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.4821        .33008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    19.012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    5.3170        .15203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    3.8309        .12851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          3.8999        6.4557        .20426E-03   -1.5313    
  30  Normalizat    1.3415        .28176        .25104E-03   -.82335    
  31  Prefactor     .76931        .28242        .33693E-03   -1.0087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44789e-09
Minuit parameter uncertainties:
  1  2.54513e-05
  2  4.08487
  3  7.04636
  4  23.1946
  5  9.20762e-05
  6  1.65758e-05
  7  3.6292e-05
  8  2.48209
  9  8.56919e-05
  10  0.000149068
  11  4.29078
  12  5.23862e-07
  13  2.9308
  14  3.71362e-07
  15  5.96949e-06
  16  0.265395
  17  3.52875
  18  5.76493e-05
  19  3.45599e-06
  20  140.824
  21  7.86345
  22  8.47044e-06
  23  11.5595
  24  7.71774e-05
  25  7.27843e-05
  26  3.66316e-07
  27  5.01524e-06
  28  1.49757e-05
  29  6.45687
  30  0.282087
  31  0.282956
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.431e+00  2.931e+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:  7.693e-01  2.830e-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.342e+00  2.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.30
Ra Dec: 185.345 30.168
Photon Index (Fixed Index): 1.71 +/- 0.00
Photon Flux (Fixed Index): 2.27e-08 +/- 2.74e-08
Energy Flux (Fixed Index): 3.62e-05 +/- 4.36e-05

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

Saving results to:
/scratch/kocevski/521654/likelihoodResults_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.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): 0
logL (Free Index) = 4562.73906184
delta logL = 0.107663024845

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4562.73711751
delta logL = 0.109607359223

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7736       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9883       1.0000          .0000       10.000    
     3 'Normalizat'    1.3330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77214       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=   4562.737     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      275 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.7728        58.464        .78596E-02    .35463E-03
   2  Index         1.9877        3.3577        .10951        .10816E-03
   3  Normalizat    1.3330        .90737E-01    .56905E-01    .80185E-05
   4  Prefactor     .77216        .82983E-01    .75952E-01    .19767E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.77277
  Index      = 1.98768
  Normalizat = 1.33304
  Prefactor  = 0.772161
 **********
 **   18 **HESSE 
 **********

 FCN=   4562.737     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.7728        2.7845        .91094E-04   -1.5442    
   2  Index         1.9877        .65976        .59330E-02   -.64658    
   3  Normalizat    1.3330        .26847        .25163E-03   -.82586    
   4  Prefactor     .77216        .28121        .33620E-03   -1.0076    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06524e-11
Minuit parameter uncertainties:
  1  2.78473
  2  0.662799
  3  0.268753
  4  0.281731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521654': 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) = 4562.73711591
delta logL = 0.109608953096

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.773e+00  2.785e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  1.988e+00  6.628e-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:  7.722e-01  2.817e-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.333e+00  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 185.345 30.168
Photon Index (Free Index): 1.99 +/- 0.66
Photon Flux (Free Index): 3.47e-08 +/- 4.31e-08
Energy Flux (Free Index): 2.47e-05 +/- 3.52e-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/521654/cmap_HighResolution_550368001_550627201_4FGL_J1221.3+3010_daily_bin1200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.55e-03', comment='SUCCESS', photon_flux='2.27e-08', energy_flux2='2.47e-05', photon_flux_error='2.74e-08', dlogl='1.10e-01', energy_flux='3.62e-05', photon_flux2='3.47e-08', job_status='DONE', time_completed='2021-09-05 09:41:32.949573', photon_index_error2='0.66', photon_index2='1.99', ts='1.30', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='8.97e-08', energy_flux_error2='3.52e-05', EG='1.34', time_epoch_completed='1630860092.95', return_code='0', job_id='521654', GAL2='0.77', EG2='1.33', return_code2='0', energy_flux_error='4.36e-05', photon_flux_error2='4.31e-08', ts2='1.52', photon_index='1.71' WHERE bin_id='1200' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:41:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 521654: <4FGL_J1221.3+3010_daily_bin1200> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1200> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:54 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 09:25:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 09:25:54 2021
Terminated at Sun Sep  5 09:41:33 2021
Results reported at Sun Sep  5 09:41:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1200 185.345 30.1677 550368001 550627201 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 :                                   756.09 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            939 sec.

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

