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


Performing analysis on: 4FGL_J1221.3+3010_daily_bin1153
RA = 185.345, Dec = 30.1677
tmin = 538185601, tmax = 538444801
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='521594', job_status='RUN', time_executed='2021-09-05 09:28:20.524544', time_epoch_executed='1630859300.52' WHERE source_name='4FGL J1221.3+3010' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/521594

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/521594/ft1_4FGL_J1221.3+3010_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/521594/ft2_4FGL_J1221.3+3010_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/521594/ft1_4FGL_J1221.3+3010_daily_bin1153.fits outfile=/scratch/kocevski/521594/ft1_filteredMKT_4FGL_J1221.3+3010_daily_bin1153.fits ra=185.345 dec=30.1677 rad=12.0 tmin=538185601.0 tmax=538444801.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.37
user 5.07
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/521594/ft1_filtered_4FGL_J1221.3+3010_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/521594/ft2_4FGL_J1221.3+3010_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/521594/ltcube_538185601_538444801_4FGL_J1221.3+3010_daily_bin1153.fits outfile=/scratch/kocevski/521594/expmap_538185601_538444801_4FGL_J1221.3+3010_daily_bin1153.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/521594/ltcube_538185601_538444801_4FGL_J1221.3+3010_daily_bin1153.fits
.....................!
real 191.67
user 186.44
sys 4.85

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/521594/ft1_filtered_4FGL_J1221.3+3010_daily_bin1153.fits scfile=/scratch/kocevski/521594/ft2_4FGL_J1221.3+3010_daily_bin1153.fits outfile=/scratch/kocevski/521594/cmap_538185601_538444801_4FGL_J1221.3+3010_daily_bin1153.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.38
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.886       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.2622       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3428       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.101       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10499E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    17.953       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6869       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .24890E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0925       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9147       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7469       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .31933       1.0000         .10000E-03   10000.    
    17 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .71979       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11746E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25049E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.326       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .13066E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .80254       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    47.866       1.0000         .10000E-03   10000.    
    27 'norm      '    12.914       1.0000         .10000E-03   10000.    
    28 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.5913       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55637       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=   3135.979     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4230 TOTAL
                     EDM=   .63E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.886        20.079        .97773E-07   -.65307E-05
   2  Prefactor     .10000E-03    9.1664       -.46140E-07** at limit **
   3  Prefactor     3.2732        8.1438        .70425E-06   -.82926E-05
   4  Prefactor     .10000E-03    89.862       -.29704E-06** at limit **
   5  Prefactor     2.3433        3.6291        .37728E-06   -.26127E-04
   6  Prefactor     16.119        49.834        .80575E-06   -.21473E-04
   7  Prefactor     .10000E-03    34.387       -.31495E-07** at limit **
   8  norm          17.952        3.6762        .45010E-07   -.89903E-04
   9  Prefactor     1.6849        4.9746        .69613E-06   -.72711E-05
  10  Prefactor     .10000E-03    169.20       -.25651E-05** at limit **
  11  norm          .10000E-03    2.9876       -.58214E-07** at limit **
  12  Prefactor     3.0919        8.2027        .55707E-06    .38993E-05
  13  Prefactor     2.9120        4.6555        .22396E-06   -.28337E-04
  14  Prefactor     4.7495        4.1788        .30351E-07   -.59747E-04
  15  Prefactor     .10000E-03    4.4480       -.22507E-07** at limit **
  16  norm          .31925        .32549        .43494E-07   -.47469E-05
  17  norm          .10000E-03    2.7327       -.17089E-07** at limit **
  18  Prefactor     .70731        21.892        .26219E-06    .54584E-05
  19  Prefactor     .10000E-03    20.026        .61958E-06** at limit **
  20  Prefactor     .10001E-03    1431.6       -.12569E-04** at limit **
  21  Prefactor     12.327        15.071        .25192E-06   -.14205E-05
  22  Prefactor     .10000E-03    22.279        .59473E-05** at limit **
  23  norm          .77917        10.148        .10975E-05   -.99463E-04
  24  Prefactor     .10000E-03    67.541        .84370E-06** at limit **
  25  norm          .10000E-03    3.6755        .14366E-07** at limit **
  26  Prefactor     47.794        47.305       -.10775E-06   -.40502E-04
  27  norm          12.923        12.276       -.11648E-06   -.10459E-03
  28  norm          .10000E-03    3.3452        .50401E-07** at limit **
  29  norm          .10000E-03    4.1277        .26690E-08** at limit **
  30  Normalizat    1.5910        .31455       -.28214E-05   -.39942E-04
  31  Prefactor     .55684        .32018        .17766E-05   -.76448E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.8865
  Prefactor  = 0.0001
  Prefactor  = 3.27317
  Prefactor  = 0.0001
  Prefactor  = 2.34329
  Prefactor  = 16.1188
  Prefactor  = 0.0001
  norm       = 17.9525
  Prefactor  = 1.68488
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.09186
  Prefactor  = 2.91199
  Prefactor  = 4.74946
  Prefactor  = 0.0001
  norm       = 0.319251
  norm       = 0.0001
  Prefactor  = 0.707312
  Prefactor  = 0.0001
  Prefactor  = 0.000100011
  Prefactor  = 12.3266
  Prefactor  = 0.0001
  norm       = 0.779172
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 47.7943
  norm       = 12.9232
  norm       = 0.0001
  norm       = 0.0001
  Normalizat = 1.59101
  Prefactor  = 0.556845
 **********
 **   18 **HESSE 
 **********

 FCN=   3135.979     FROM HESSE     STATUS=OK           620 CALLS     4850 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.886        20.064        .89816E-04   -1.4816    
   2  Prefactor     .10000E-03    9.2060        .16552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.2732        8.1019        .22422E-03   -1.5346    
   4  Prefactor     .10000E-03    90.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3433        3.6066        .12387E-03   -1.5402    
   6  Prefactor     16.119        50.006        .99816E-04   -1.4905    
   7  Prefactor     .10000E-03    34.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          17.952        3.6788        .45506E-04   -1.4860    
   9  Prefactor     1.6849        4.9387        .20586E-03   -1.5448    
  10  Prefactor     .10000E-03    171.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0116        .94102E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0919        8.1814        .23062E-03   -1.5356    
  13  Prefactor     2.9120        4.6059        .13775E-03   -1.5367    
  14  Prefactor     4.7495        4.1544        .96051E-04   -1.5272    
  15  Prefactor     .10000E-03    4.4562        .11533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .31925        .31731        .30818E-04   -1.5595    
  17  norm          .10000E-03    2.7370        .90398E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .70731        118.12        .47911E-02   -1.5540    
  19  Prefactor     .10000E-03    20.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    1460.1        .36590E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.327        15.066        .11410E-03   -1.5006    
  22  Prefactor     .10000E-03    22.827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .77917        20.822        .32969E-02   -1.5531    
  24  Prefactor     .10000E-03    67.657        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    3.6836        .10485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     47.794        47.528        .57958E-04   -1.4324    
  27  norm          12.923        12.281        .11146E-03   -1.4989    
  28  norm          .10000E-03    3.3530        .99994E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          .10000E-03    4.1281        .11112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.5910        .35073        .23593E-03   -.75252    
  31  Prefactor     .55684        .35438        .41231E-03   -1.0944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54742e-08
Minuit parameter uncertainties:
  1  20.0707
  2  1.19869e-06
  3  8.10459
  4  4.14432e-05
  5  3.6069
  6  50.1369
  7  7.05121e-06
  8  3.6789
  9  4.93992
  10  0.000133002
  11  1.90481e-06
  12  8.18436
  13  4.60644
  14  4.15461
  15  2.97835e-06
  16  0.317313
  17  2.08321e-06
  18  18.3162
  19  6.15446e-07
  20  0.00814005
  21  15.0703
  22  3.81707e-05
  23  8.05846
  24  6.48757e-05
  25  2.5469e-06
  26  47.566
  27  12.2833
  28  6.99485e-07
  29  1.00143e-07
  30  0.35127
  31  0.355806
Done.

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

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  2.912e+00  4.606e+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:  5.568e-01  3.558e-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.591e+00  3.513e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.58
Ra Dec: 185.345 30.168
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/521594/likelihoodResults_538185601_538444801_4FGL_J1221.3+3010_daily_bin1153.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) = 3135.88612811
delta logL = 0.0923887742097

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3135.88217998
delta logL = 0.0963369093015

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6621       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0498       1.0000          .0000       10.000    
     3 'Normalizat'    1.5825       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56018       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=   3135.882     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      275 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6617        5.2417        .92155E-04   -.68714E-04
   2  Index         2.0499        1.0901        .50499E-02    .34106E-03
   3  Normalizat    1.5825        .31862        .23636E-03   -.12772E-03
   4  Prefactor     .56017        .34794        .41098E-03   -.90109E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66168
  Index      = 2.0499
  Normalizat = 1.58253
  Prefactor  = 0.56017
 **********
 **   18 **HESSE 
 **********

 FCN=   3135.882     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6617        4.1733        .36862E-05   -1.5450    
   2  Index         2.0499        .87188        .10100E-02   -.63108    
   3  Normalizat    1.5825        .31847        .47271E-04   -.75485    
   4  Prefactor     .56017        .34762        .16439E-04   -1.0929    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61453e-11
Minuit parameter uncertainties:
  1  4.17406
  2  0.878802
  3  0.318874
  4  0.348959
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/521594': 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) = 3135.88217995
delta logL = 0.0963369347519

Extracting fit parameters...

4FGL J1221.3+3010
   Spectrum: PowerLaw
317    Prefactor:  1.662e+00  4.174e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        Index:  2.050e+00  8.788e-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:  5.602e-01  3.490e-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.583e+00  3.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.58
Ra Dec: 185.345 30.168

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/521594/cmap_HighResolution_538185601_538444801_4FGL_J1221.3+3010_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.26e-03', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-05 09:41:41.208009', job_id='521594', GAL2='0.56', fit_tolerance='1e-08', EG2='1.58', EG='1.59', time_epoch_completed='1630860101.21', return_code2='0', ts='0.58', comment='SUCCESS', return_code='0', GAL='0.56', dlogl='9.63e-02', ts2='0.78', photon_index_error='0.00', photon_index='1.71' WHERE bin_id='1153' AND source_name='4FGL J1221.3+3010' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 09:41:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 521594: <4FGL_J1221.3+3010_daily_bin1153> in cluster <slac> Done

Job <4FGL_J1221.3+3010_daily_bin1153> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Sep  5 09:25:50 2021
Job was executed on host(s) <bullet0125>, 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:41:41 2021
Results reported at Sun Sep  5 09:41:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1221.3+3010_daily_bin1153 185.345 30.1677 538185601 538444801 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 :                                   654.00 sec.
    Max Memory :                                 1130 MB
    Average Memory :                             234.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            951 sec.

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

