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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin16
RA = 182.226, Dec = 54.6995
tmin = 243475201, tmax = 243734401
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='351189', job_status='RUN', time_executed='2021-09-05 01:08:26.804402', time_epoch_executed='1630829306.8' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='16'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351189

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351189/ft1_4FGL_J1208.9+5441_daily_bin16.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351189/ft2_4FGL_J1208.9+5441_daily_bin16.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351189/ft1_4FGL_J1208.9+5441_daily_bin16.fits outfile=/scratch/kocevski/351189/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin16.fits ra=182.226 dec=54.6995 rad=12.0 tmin=243475201.0 tmax=243734401.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.39
user 1.21
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351189/ft1_filtered_4FGL_J1208.9+5441_daily_bin16.fits" evtable="EVENTS" scfile=/scratch/kocevski/351189/ft2_4FGL_J1208.9+5441_daily_bin16.fits sctable="SC_DATA" outfile=/scratch/kocevski/351189/ltcube_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.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/351189/ft2_4FGL_J1208.9+5441_daily_bin16.fits
.....................!
real 12.51
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351189/ft1_filtered_4FGL_J1208.9+5441_daily_bin16.fits evtable="EVENTS" scfile=/scratch/kocevski/351189/ft2_4FGL_J1208.9+5441_daily_bin16.fits sctable="SC_DATA" expcube=/scratch/kocevski/351189/ltcube_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.fits outfile=/scratch/kocevski/351189/expmap_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.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/351189/ltcube_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.fits
.....................!
real 189.57
user 184.64
sys 4.61

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/351189/ft1_filtered_4FGL_J1208.9+5441_daily_bin16.fits scfile=/scratch/kocevski/351189/ft2_4FGL_J1208.9+5441_daily_bin16.fits outfile=/scratch/kocevski/351189/cmap_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351189/ft1_filtered_4FGL_J1208.9+5441_daily_bin16.fits scfile=/scratch/kocevski/351189/ft2_4FGL_J1208.9+5441_daily_bin16.fits outfile=/scratch/kocevski/351189/cmap_HighResolution_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.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.36
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10459E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5318       1.0000         .10000E-03   10000.    
     3 'Prefactor '    43.513       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10300E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.4686       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8516       1.0000         .10000E-03   10000.    
    11 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .16745E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.3203       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.445       1.0000         .10000E-03   10000.    
    18 'norm      '    .11066E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    31.782       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .12896E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.5485       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15356E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    6.2748       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .32416E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91586       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99706       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=   6295.538     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3513 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.43        .60708E-05** at limit **
   2  norm          5.5315        2.3765       -.76260E-07   -.88079E-03
   3  Prefactor     43.495        50.562        .62458E-06   -.61039E-04
   4  Prefactor     .10000E-03    25.586        .73237E-06** at limit **
   5  Prefactor     .10000E-03    19.241        .59892E-06** at limit **
   6  norm          .10000E-03    21.739       -.66338E-06** at limit **
   7  Prefactor     .10000E-03    2.8400        .33693E-06** at limit **
   8  Prefactor     1.4113        92.906        .34411E-05    .90855E-04
   9  norm          .10000E-03    5.7052        .18101E-06** at limit **
  10  Prefactor     4.8520        3.9569        .16222E-06    .13112E-03
  11  norm          .10000E-03    1.8942        .34525E-06** at limit **
  12  Prefactor     .10000E-03    5.1138        .11891E-06** at limit **
  13  Prefactor     .10000E-03    3.1175        .23361E-06** at limit **
  14  Prefactor     .10002E-03    58.600        .22028E-04** at limit **
  15  norm          8.3198        2.7025       -.61631E-07   -.57906E-03
  16  Prefactor     .10000E-03    8.4554        .26790E-06** at limit **
  17  Prefactor     10.394        55.803        .23466E-05   -.99795E-06
  18  norm          .10000E-03    7.8321        .30340E-07** at limit **
  19  Prefactor     31.775        22.661        .36435E-06    .88000E-04
  20  Prefactor     .10003E-03    19.806       -.11576E-04** at limit **
  21  norm          5.5469        2.6335       -.55127E-06   -.27215E-02
  22  Prefactor     .10004E-03    99.053        .29428E-05** at limit **
  23  norm          6.2742        2.6047       -.20748E-07   -.26992E-03
  24  Prefactor     .10000E-03    43.341        .50737E-06** at limit **
  25  Prefactor     .10000E-03    3.4585        .14588E-06** at limit **
  26  norm          .10000E-03    2.8591        .97161E-06** at limit **
  27  Normalizat    .91609        .16387        .15858E-05   -.26894E-03
  28  Prefactor     .99672        .19345       -.33785E-05   -.66504E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.53148
  Prefactor  = 43.495
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.41127
  norm       = 0.0001
  Prefactor  = 4.85204
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  norm       = 8.31983
  Prefactor  = 0.0001
  Prefactor  = 10.394
  norm       = 0.0001
  Prefactor  = 31.7748
  Prefactor  = 0.00010003
  norm       = 5.5469
  Prefactor  = 0.000100043
  norm       = 6.27419
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.916091
  Prefactor  = 0.996718
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.538     FROM HESSE     STATUS=OK           509 CALLS     4022 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5315        2.3775        .77784E-04   -1.5238    
   3  Prefactor     43.495        50.626        .60775E-04   -1.4388    
   4  Prefactor     .10000E-03    26.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.244        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    21.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.8673        .13063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.4113        94.808        .35469E-03   -1.5470    
   9  norm          .10000E-03    5.7259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8520        3.9517        .13360E-03   -1.5267    
  11  norm          .10000E-03    1.9153        .10670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.1173        .17522E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.1318        .13679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10002E-03    97.009        .59591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.3198        2.7093        .70677E-04   -1.5131    
  16  Prefactor     .10000E-03    8.4845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.394        57.045        .12397E-03   -1.5063    
  18  norm          .10000E-03    7.9550        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     31.775        22.564        .71075E-04   -1.4580    
  20  Prefactor     .10003E-03    35.850        .34603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.5469        2.5467        .82674E-04   -1.5237    
  22  Prefactor     .10004E-03    102.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          6.2742        2.6032        .79647E-04   -1.5207    
  24  Prefactor     .10000E-03    43.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.4703        .14413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    11.143        .25874E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91609        .19053        .22803E-03   -.95897    
  28  Prefactor     .99672        .22897        .27816E-03   -.92839    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.45511e-09
Minuit parameter uncertainties:
  1  0.000392967
  2  2.37757
  3  50.6764
  4  0.000394485
  5  3.80081e-05
  6  4.38041e-06
  7  4.39771e-05
  8  23.172
  9  3.4816e-05
  10  3.95191
  11  3.00965e-05
  12  2.19463e-05
  13  8.48902e-06
  14  0.00309248
  15  2.70936
  16  5.97541e-05
  17  48.7719
  18  2.10277e-05
  19  22.5703
  20  0.00209038
  21  2.54678
  22  0.00422877
  23  2.60326
  24  0.000356344
  25  3.02889e-05
  26  0.000120853
  27  0.190669
  28  0.229196
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  8.320e+00  2.709e+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:  9.967e-01  2.292e-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:  9.161e-01  1.907e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.21
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 4.24e-08
Energy Flux (Fixed Index): 3.44e-05 +/- 1.12e-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) = 6295.40100497
delta logL = 0.137319920587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6295.40083802
delta logL = 0.137486868409

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.8783       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7427       1.0000          .0000       5.0000    
     3 'Normalizat'    .89585       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0164       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=   6295.401     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.8732        38.738        .35714E-02    .17736E-03
   2  alpha         2.7417        3.7216        .27420        .31217E-04
   3  Normalizat    .89598        .15667        .44849E-01    .57574E-04
   4  Prefactor     1.0163        .22729        .62405E-01    .19904E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.87316
  alpha      = 2.74165
  Normalizat = 0.895983
  Prefactor  = 1.01634
 **********
 **   18 **HESSE 
 **********

 FCN=   6295.401     FROM HESSE     STATUS=OK            33 CALLS      290 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.8732        2.8138        .66696E-04   -1.5147    
   2  alpha         2.7417        .45494        .11544E-01    .96811E-01
   3  Normalizat    .89598        .18456        .23015E-03   -.96601    
   4  Prefactor     1.0163        .23095        .27599E-03   -.92187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.19239e-12
Minuit parameter uncertainties:
  1  2.81388
  2  0.457517
  3  0.184695
  4  0.231177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351189': 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) = 6295.40083022
delta logL = 0.137494671394

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  7.873e+00  2.814e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.742e+00  4.575e-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:  1.016e+00  2.312e-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:  8.960e-01  1.847e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 23.44
Ra Dec: 182.226 54.700
Photon Index (Free Index): 2.74 +/- 0.46
Photon Flux (Free Index): 1.44e-07 +/- 5.04e-08
Energy Flux (Free Index): 3.24e-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/351189/cmap_HighResolution_243475201_243734401_4FGL_J1208.9+5441_daily_bin16.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='3.24e-05', photon_flux_error='4.24e-08', dlogl='1.37e-01', energy_flux='3.44e-05', photon_flux2='1.44e-07', job_status='DONE', time_completed='2021-09-05 01:21:23.753635', photon_index_error2='0.46', photon_index2='2.74', ts='23.21', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.92', time_epoch_completed='1630830083.75', return_code='0', job_id='351189', GAL2='1.02', EG2='0.90', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='5.04e-08', ts2='23.44', photon_index='2.51' WHERE bin_id='16' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:21:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 351189: <4FGL_J1208.9+5441_daily_bin16> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin16> 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) <bullet0193>, 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:24 2021
Results reported at Sun Sep  5 01:21:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin16 182.226 54.6995 243475201 243734401 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 :                                   776.17 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             283.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

