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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin17
RA = 182.226, Dec = 54.6995
tmin = 243734401, tmax = 243993601
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='351191', job_status='RUN', time_executed='2021-09-05 01:09:10.599648', time_epoch_executed='1630829350.6' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='17'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351191

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351191/ft1_4FGL_J1208.9+5441_daily_bin17.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351191/ft1_4FGL_J1208.9+5441_daily_bin17.fits outfile=/scratch/kocevski/351191/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin17.fits ra=182.226 dec=54.6995 rad=12.0 tmin=243734401.0 tmax=243993601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.37
user 1.22
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.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/351191/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin17.fits evtable="EVENTS" outfile="/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits" evtable="EVENTS" scfile=/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits sctable="SC_DATA" outfile=/scratch/kocevski/351191/ltcube_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.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/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits
.....................!
real 12.39
user 12.01
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits sctable="SC_DATA" expcube=/scratch/kocevski/351191/ltcube_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.fits outfile=/scratch/kocevski/351191/expmap_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.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/351191/ltcube_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.fits
.....................!
real 190.53
user 185.86
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 221 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.9+5441 @ 182.226 54.6995

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits scfile=/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits outfile=/scratch/kocevski/351191/cmap_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.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=182.226 yref=54.6995 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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits scfile=/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits outfile=/scratch/kocevski/351191/cmap_HighResolution_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.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=182.226 yref=54.6995 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.53
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits evtable="EVENTS" scfile=/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351191/Model_4FGL_J1208.9+5441_daily_bin17.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/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits.....................!
real 53.83
user 52.50
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits', '/scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits', expMap='/scratch/kocevski/351191/expmap_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.fits', expCube='/scratch/kocevski/351191/ltcube_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/351191/Model_4FGL_J1208.9+5441_daily_bin17.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.9+5441'

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.729e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/351191/ft1_filtered_4FGL_J1208.9+5441_daily_bin17.fits
Spacecraft file(s): /scratch/kocevski/351191/ft2_4FGL_J1208.9+5441_daily_bin17.fits
Exposure map: /scratch/kocevski/351191/expmap_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.fits
Exposure cube: /scratch/kocevski/351191/ltcube_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/351191/Model_4FGL_J1208.9+5441_daily_bin17.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) = 5955.59093414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .36591E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.0031       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    17.756       1.0000         .10000E-03   10000.    
     5 'Prefactor '    216.50       1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9491       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8261       1.0000         .10000E-03   10000.    
     9 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.7168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0611       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10080E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.812       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.2824       1.0000         .10000E-03   10000.    
    21 'norm      '    3.7599       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .65170E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    3.2360       1.0000         .10000E-03   10000.    
    24 'Prefactor '    96.387       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2393       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .53213       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5955.584     FROM MIGRAD    STATUS=CONVERGED    693 CALLS     3528 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    336.18       -.26603E-05** at limit **
   2  norm          3.0084        2.7924        .17133E-06   -.43907E-04
   3  Prefactor     .10005E-03    71.043        .99866E-05** at limit **
   4  Prefactor     17.751        31.187       -.16222E-05   -.52851E-04
   5  Prefactor     216.49        111.99       -.46134E-06   -.70242E-04
   6  norm          .10000E-03    20.915        .11708E-06** at limit **
   7  Prefactor     1.9494        6.4687       -.44677E-06   -.24516E-03
   8  Prefactor     2.8281        35.636        .17239E-04   -.15931E-03
   9  norm          .10000E-03    4.3139       -.47019E-06** at limit **
  10  Prefactor     .10000E-03    1.3257        .11275E-06** at limit **
  11  norm          .10000E-03    1.4251       -.74429E-07** at limit **
  12  Prefactor     .10000E-03    10.262        .71112E-07** at limit **
  13  Prefactor     .10000E-03    4.1792       -.16081E-06** at limit **
  14  Prefactor     .10000E-03    16.276       -.64991E-07** at limit **
  15  norm          8.7164        3.0406        .61872E-08   -.34924E-04
  16  Prefactor     5.0570        17.704        .55132E-06    .28471E-04
  17  Prefactor     .10003E-03    64.896       -.73059E-05** at limit **
  18  norm          .10000E-03    4.2455        .55548E-06** at limit **
  19  Prefactor     44.815        21.799        .73490E-07   -.54819E-04
  20  Prefactor     8.2820        5.3827        .13671E-06    .15856E-03
  21  norm          3.7597        2.1953       -.12524E-07    .22423E-04
  22  Prefactor     .10127E-03    14.724       -.11518E-05** at limit **
  23  norm          3.2354        2.4527        .90359E-07    .12050E-04
  24  Prefactor     96.375        58.426       -.79940E-06   -.11470E-03
  25  Prefactor     .10000E-03    4.9137        .49699E-07** at limit **
  26  norm          .10000E-03    2.2291        .38426E-07** at limit **
  27  Normalizat    1.2393        .17543       -.14763E-06   -.26584E-04
  28  Prefactor     .53230        .20103       -.99997E-06   -.52584E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  norm       = 3.00845
  Prefactor  = 0.000100051
  Prefactor  = 17.7513
  Prefactor  = 216.489
  norm       = 0.0001
  Prefactor  = 1.94943
  Prefactor  = 2.82805
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.71644
  Prefactor  = 5.05704
  Prefactor  = 0.000100029
  norm       = 0.0001
  Prefactor  = 44.8154
  Prefactor  = 8.282
  norm       = 3.7597
  Prefactor  = 0.000101274
  norm       = 3.2354
  Prefactor  = 96.3752
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.23927
  Prefactor  = 0.532303
 **********
 **   18 **HESSE 
 **********

 FCN=   5955.584     FROM HESSE     STATUS=OK           523 CALLS     4051 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    338.37        .21304E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.0084        2.7705        .10774E-03   -1.5361    
   3  Prefactor     .10005E-03    76.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     17.751        31.029        .95048E-04   -1.4865    
   5  Prefactor     216.49        112.17        .13742E-03   -1.2755    
   6  norm          .10000E-03    20.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.9494        6.3960        .29727E-03   -1.5429    
   8  Prefactor     2.8281        37.026        .12096E-02   -1.5372    
   9  norm          .10000E-03    4.3291        .15676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3067        .17211E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.4309        .89958E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.303        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2240        .15405E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.7164        3.0588        .74584E-04   -1.5117    
  16  Prefactor     5.0570        17.688        .17873E-03   -1.5258    
  17  Prefactor     .10003E-03    67.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.3011        .15539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     44.815        21.827        .59892E-04   -1.4368    
  20  Prefactor     8.2820        5.3887        .13673E-03   -1.5132    
  21  norm          3.7597        2.1977        .82823E-04   -1.5320    
  22  Prefactor     .10127E-03    15.200        .90400E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.2354        2.4466        .10092E-03   -1.5348    
  24  Prefactor     96.375        58.591        .40941E-04   -1.3741    
  25  Prefactor     .10000E-03    4.9512        .16703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    2.2493        .11251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2393        .19887        .20061E-03   -.85398    
  28  Prefactor     .53230        .22412        .35641E-03   -1.1052    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0049e-09
Minuit parameter uncertainties:
  1  0.00235453
  2  2.77057
  3  0.00396432
  4  31.0569
  5  112.286
  6  2.7817e-05
  7  6.39826
  8  20.4809
  9  4.66651e-05
  10  5.03627e-07
  11  4.02507e-06
  12  6.59349e-06
  13  1.38242e-05
  14  9.23326e-06
  15  3.05884
  16  17.706
  17  0.00281648
  18  5.69282e-05
  19  21.8304
  20  5.38899
  21  2.19771
  22  0.00880293
  23  2.44668
  24  58.6261
  25  3.36834e-06
  26  2.257e-06
  27  0.198987
  28  0.224489
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  8.716e+00  3.059e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.511e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  5.323e-01  2.245e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.239e+00  1.990e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.06
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.36e-07 +/- 4.78e-08
Energy Flux (Fixed Index): 3.61e-05 +/- 1.27e-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) = 5954.29804526
delta logL = 1.285664168

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5954.2974018
delta logL = 1.28630762866

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.3308       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2584       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1533       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60713       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5954.297     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.3301        28.882        .37034E-02    .51348E-03
   2  alpha         3.2581        4.1234        .24773        .56936E-04
   3  Normalizat    1.1535        .10908        .36153E-01   -.77278E-04
   4  Prefactor     .60699        .14048        .75765E-01    .27363E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.3301
  alpha      = 3.25807
  Normalizat = 1.15354
  Prefactor  = 0.606994
 **********
 **   18 **HESSE 
 **********

 FCN=   5954.297     FROM HESSE     STATUS=OK            29 CALLS      262 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.3301        2.9839        .58472E-04   -1.5166    
   2  alpha         3.2581        .49548        .10777E-02    .30808    
   3  Normalizat    1.1535        .19075        .20634E-03   -.88051    
   4  Prefactor     .60699        .22467        .33546E-03   -1.0729    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21486e-11
Minuit parameter uncertainties:
  1  2.98397
  2  0.49912
  3  0.190863
  4  0.225001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351191': 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) = 5954.29740041
delta logL = 1.2863090217

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  7.330e+00  2.984e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.258e+00  4.991e-01  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  6.070e-01  2.250e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  1.154e+00  1.909e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 19.87
Ra Dec: 182.226 54.700
Photon Index (Free Index): 3.26 +/- 0.50
Photon Flux (Free Index): 1.99e-07 +/- 6.63e-08
Energy Flux (Free Index): 3.58e-05 +/- 1.09e-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/351191/cmap_HighResolution_243734401_243993601_4FGL_J1208.9+5441_daily_bin17.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.36e-07', energy_flux2='3.58e-05', photon_flux_error='4.78e-08', dlogl='1.29e+00', energy_flux='3.61e-05', photon_flux2='1.99e-07', job_status='DONE', time_completed='2021-09-05 01:21:54.351019', photon_index_error2='0.50', photon_index2='3.26', ts='17.06', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='1.24', time_epoch_completed='1630830114.35', return_code='0', job_id='351191', GAL2='0.61', EG2='1.15', return_code2='0', energy_flux_error='1.27e-05', photon_flux_error2='6.63e-08', ts2='19.87', photon_index='2.51' WHERE bin_id='17' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:21:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0194>
Subject: Job 351191: <4FGL_J1208.9+5441_daily_bin17> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin17> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:45 2021
Job was executed on host(s) <bullet0194>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 01:05:47 2021
Terminated at Sun Sep  5 01:21:55 2021
Results reported at Sun Sep  5 01:21:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin17 182.226 54.6995 243734401 243993601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.9+5441 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   762.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             302.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   967 sec.
    Turnaround time :                            970 sec.

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

