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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1136
RA = 182.226, Dec = 54.6995
tmin = 533779201, tmax = 534038401
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='359607', job_status='RUN', time_executed='2021-09-05 01:32:54.562206', time_epoch_executed='1630830774.56' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359607

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359607/ft1_4FGL_J1208.9+5441_daily_bin1136.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359607/ft1_4FGL_J1208.9+5441_daily_bin1136.fits outfile=/scratch/kocevski/359607/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1136.fits ra=182.226 dec=54.6995 rad=12.0 tmin=533779201.0 tmax=534038401.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 3.53
user 3.28
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.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/359607/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1136.fits evtable="EVENTS" outfile="/scratch/kocevski/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.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.56
user 0.33
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.fits" evtable="EVENTS" scfile=/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits sctable="SC_DATA" outfile=/scratch/kocevski/359607/ltcube_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.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/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits
.....................!
real 11.99
user 11.57
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits sctable="SC_DATA" expcube=/scratch/kocevski/359607/ltcube_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.fits outfile=/scratch/kocevski/359607/expmap_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.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/359607/ltcube_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.fits
.....................!
real 192.53
user 187.02
sys 4.66

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/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.fits scfile=/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits outfile=/scratch/kocevski/359607/cmap_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.fits scfile=/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits outfile=/scratch/kocevski/359607/cmap_HighResolution_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.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.55
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.fits', '/scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits', expMap='/scratch/kocevski/359607/expmap_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.fits', expCube='/scratch/kocevski/359607/ltcube_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/359607/Model_4FGL_J1208.9+5441_daily_bin1136.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/359607/ft1_filtered_4FGL_J1208.9+5441_daily_bin1136.fits
Spacecraft file(s): /scratch/kocevski/359607/ft2_4FGL_J1208.9+5441_daily_bin1136.fits
Exposure map: /scratch/kocevski/359607/expmap_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.fits
Exposure cube: /scratch/kocevski/359607/ltcube_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/359607/Model_4FGL_J1208.9+5441_daily_bin1136.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) = 5543.16167646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.8841       1.0000         .10000E-03   10000.    
     3 'Prefactor '    62.161       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9717       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5910       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17011       1.0000         .10000E-03   10000.    
    11 'norm      '    6.9269       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13648E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .15269E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13145E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.342       1.0000         .10000E-03   10000.    
    18 'norm      '    7.0314       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.4235       1.0000         .10000E-03   10000.    
    21 'norm      '    3.8634       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.3276       1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.798       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.0101       1.0000         .10000E-03   10000.    
    26 'norm      '    .12612E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .72679       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2575       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=   5543.152     FROM MIGRAD    STATUS=CONVERGED    699 CALLS     3528 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    36.531        .13582E-05** at limit **
   2  norm          5.8841        2.4676       -.74728E-07   -.32953E-04
   3  Prefactor     62.151        50.551        .98320E-06   -.26888E-05
   4  Prefactor     3.9711        17.674        .32052E-05    .17078E-04
   5  Prefactor     .10000E-03    108.71        .35181E-05** at limit **
   6  norm          .10000E-03    37.204        .14147E-05** at limit **
   7  Prefactor     .10000E-03    6.0080        .14840E-06** at limit **
   8  Prefactor     7.5899        27.587       -.18535E-08   -.59838E-05
   9  norm          .10000E-03    6.5541       -.22868E-06** at limit **
  10  Prefactor     .16445        1.7885        .28721E-06   -.18207E-03
  11  norm          6.9269        5.5812       -.40806E-07    .85314E-05
  12  Prefactor     .10000E-03    6.9442        .14539E-06** at limit **
  13  Prefactor     .10000E-03    10.430       -.26644E-06** at limit **
  14  Prefactor     .10000E-03    33.763       -.25129E-06** at limit **
  15  norm          .10015E-03    1.0265        .38527E-06** at limit **
  16  Prefactor     .10000E-03    55.549       -.40191E-05** at limit **
  17  Prefactor     39.325        66.491        .25731E-05    .13788E-04
  18  norm          7.0327        5.8587       -.11143E-07   -.10106E-03
  19  Prefactor     .10000E-03    20.021        .15474E-05** at limit **
  20  Prefactor     5.4235        6.2330        .12184E-05    .75808E-04
  21  norm          3.8633        2.4003       -.22642E-06   -.22280E-04
  22  Prefactor     .10000E-03    22.915       -.23539E-05** at limit **
  23  norm          4.3278        2.1278        .11350E-08   -.35452E-05
  24  Prefactor     59.789        52.087        .10350E-05    .15271E-04
  25  Prefactor     5.0102        9.3557        .15421E-05    .47503E-04
  26  norm          .10000E-03    5.7156        .12845E-07** at limit **
  27  Normalizat    .72683        .16636       -.69020E-06   -.22107E-04
  28  Prefactor     1.2574        .20730       -.11876E-07   -.22406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.8841
  Prefactor  = 62.1508
  Prefactor  = 3.97107
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.58992
  norm       = 0.0001
  Prefactor  = 0.164451
  norm       = 6.9269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100146
  Prefactor  = 0.0001
  Prefactor  = 39.3245
  norm       = 7.0327
  Prefactor  = 0.0001
  Prefactor  = 5.42349
  norm       = 3.86332
  Prefactor  = 0.0001
  norm       = 4.32777
  Prefactor  = 59.7887
  Prefactor  = 5.01016
  norm       = 0.0001
  Normalizat = 0.726831
  Prefactor  = 1.25742
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.152     FROM HESSE     STATUS=OK           523 CALLS     4051 TOTAL
                     EDM=   .40E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    36.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.8841        2.4659        .72090E-04   -1.5223    
   3  Prefactor     62.151        50.520        .50894E-04   -1.4130    
   4  Prefactor     3.9711        17.672        .10120E-02   -1.5309    
   5  Prefactor     .10000E-03    108.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    37.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.1087        .17775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5899        27.526        .14556E-03   -1.5157    
   9  norm          .10000E-03    6.5760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .16445        4.2793        .18957E-02   -1.5627    
  11  norm          6.9269        5.5496        .14557E-03   -1.5182    
  12  Prefactor     .10000E-03    6.9694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10015E-03    28.335        .13791E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    57.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     39.325        66.469        .63903E-04   -1.4453    
  18  norm          7.0327        5.8542        .15129E-03   -1.5178    
  19  Prefactor     .10000E-03    20.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.4235        6.2190        .86274E-03   -1.5242    
  21  norm          3.8633        2.4003        .83866E-04   -1.5315    
  22  Prefactor     .10000E-03    23.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.3278        2.1295        .74020E-04   -1.5292    
  24  Prefactor     59.789        52.093        .51884E-04   -1.4160    
  25  Prefactor     5.0102        9.3320        .89828E-03   -1.5260    
  26  norm          .10000E-03    5.9730        .34751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .72683        .19523        .24542E-03   -1.0284    
  28  Prefactor     1.2574        .24743        .25129E-03   -.84582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.00812e-08
Minuit parameter uncertainties:
  1  2.0751e-05
  2  2.46592
  3  50.5545
  4  16.7623
  5  9.17587e-05
  6  2.59441e-05
  7  5.64449e-06
  8  27.5725
  9  3.36117e-07
  10  1.6774
  11  5.54998
  12  5.92991e-07
  13  3.2481e-05
  14  0.000243258
  15  0.00406696
  16  0.000112399
  17  66.5943
  18  5.85465
  19  1.34904e-05
  20  6.21975
  21  2.4004
  22  3.54503e-06
  23  2.12959
  24  52.1328
  25  9.33469
  26  6.85737e-06
  27  0.195412
  28  0.247659
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.001e-04  4.067e-03  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:  1.257e+00  2.477e-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:  7.268e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 7.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/359607/likelihoodResults_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5543.15264327
delta logL = -0.000175959178705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5543.14368328
delta logL = 0.00878402327817

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18047       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1340       1.0000          .0000       5.0000    
     3 'Normalizat'    .72223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2596       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5543.144     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      472 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .18046        5.4261        .15742E-02    .86167E-03
   2  alpha         3.1340        4.0533        .96395E-01    .11210E-04
   3  Normalizat    .72222        .19025        .24617E-03   -.22999E-04
   4  Prefactor     1.2596        .24551        .25112E-03   -.16162E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.180461
  alpha      = 3.134
  Normalizat = 0.722223
  Prefactor  = 1.25959
 **********
 **   18 **HESSE 
 **********

 FCN=   5543.144     FROM HESSE     STATUS=OK            25 CALLS      497 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .18046        2.8645        .62968E-04   -1.5623    
   2  alpha         3.1340        3.9760        .38558E-02    .25640    
   3  Normalizat    .72222        .18955        .98467E-05   -1.0302    
   4  Prefactor     1.2596        .24580        .10045E-04   -.84517    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.92616e-10
Minuit parameter uncertainties:
  1  1.43764
  2  3.49036
  3  0.189723
  4  0.246022
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359607': 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) = 5543.14368328
delta logL = 0.00878402497892

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.805e-01  1.438e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.134e+00  3.490e+00  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:  1.260e+00  2.460e-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:  7.222e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.226 54.700

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/359607/cmap_HighResolution_533779201_534038401_4FGL_J1208.9+5441_daily_bin1136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-05', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-05 01:47:44.475730', job_id='359607', GAL2='1.26', fit_tolerance='1e-08', EG2='0.72', EG='0.73', time_epoch_completed='1630831664.48', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.26', dlogl='8.78e-03', ts2='0.02', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1136' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:47:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 359607: <4FGL_J1208.9+5441_daily_bin1136> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1136> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:31:35 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:31:37 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:31:37 2021
Terminated at Sun Sep  5 01:47:45 2021
Results reported at Sun Sep  5 01:47:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1136 182.226 54.6995 533779201 534038401 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 :                                   851.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             279.16 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.

