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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin38
RA = 182.226, Dec = 54.6995
tmin = 249177601, tmax = 249436801
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='351259', job_status='RUN', time_executed='2021-09-05 01:08:11.805334', time_epoch_executed='1630829291.81' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='38'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351259

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351259/ft1_4FGL_J1208.9+5441_daily_bin38.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351259/ft1_4FGL_J1208.9+5441_daily_bin38.fits outfile=/scratch/kocevski/351259/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin38.fits ra=182.226 dec=54.6995 rad=12.0 tmin=249177601.0 tmax=249436801.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.48
user 1.26
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351259/ft1_filtered_4FGL_J1208.9+5441_daily_bin38.fits" evtable="EVENTS" scfile=/scratch/kocevski/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits sctable="SC_DATA" outfile=/scratch/kocevski/351259/ltcube_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.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/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits
.....................!
real 12.35
user 11.98
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351259/ft1_filtered_4FGL_J1208.9+5441_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits sctable="SC_DATA" expcube=/scratch/kocevski/351259/ltcube_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.fits outfile=/scratch/kocevski/351259/expmap_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.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/351259/ltcube_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.fits
.....................!
real 189.89
user 185.03
sys 4.46

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/351259/ft1_filtered_4FGL_J1208.9+5441_daily_bin38.fits scfile=/scratch/kocevski/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits outfile=/scratch/kocevski/351259/cmap_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351259/ft1_filtered_4FGL_J1208.9+5441_daily_bin38.fits scfile=/scratch/kocevski/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits outfile=/scratch/kocevski/351259/cmap_HighResolution_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.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/351259/ft1_filtered_4FGL_J1208.9+5441_daily_bin38.fits evtable="EVENTS" scfile=/scratch/kocevski/351259/ft2_4FGL_J1208.9+5441_daily_bin38.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351259/Model_4FGL_J1208.9+5441_daily_bin38.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/351259/ft1_filtered_4FGL_J1208.9+5441_daily_bin38.fits.....................!
real 41.20
user 39.87
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11187E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.7214       1.0000         .10000E-03   10000.    
     3 'Prefactor '    70.739       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10710E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10363E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10187E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    5.8461       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13392E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    22.432       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.531       1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.1324       1.0000         .10000E-03   10000.    
    18 'norm      '    18.253       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .87539E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.0706       1.0000         .10000E-03   10000.    
    21 'norm      '    3.1221       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.2203       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11337E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.7740       1.0000         .10000E-03   10000.    
    26 'norm      '    5.0732       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .45156       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=   4097.517     FROM MIGRAD    STATUS=CONVERGED   1230 CALLS     4024 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    58.606        .18142E-02** at limit **
   2  norm          3.7216        2.3882        .76908E-04    .77352E-03
   3  Prefactor     70.730        54.410        .47729E-04    .34395E-04
   4  Prefactor     .10000E-03    35.916        .18142E-02** at limit **
   5  Prefactor     .10000E-03    24.846        .18142E-02** at limit **
   6  norm          .10000E-03    17.377        .18142E-02** at limit **
   7  Prefactor     .10000E-03    2.3004        .94711E-03** at limit **
   8  Prefactor     .10000E-03    21.968        .18142E-02** at limit **
   9  norm          .10000E-03    4.9479        .13906E-02** at limit **
  10  Prefactor     .10000E-03    1.9680        .87208E-03** at limit **
  11  norm          5.8446        6.0112        .14752E-03    .23251E-03
  12  Prefactor     .10000E-03    152.04        .60046E-02** at limit **
  13  Prefactor     .10000E-03    4.9499        .13890E-02** at limit **
  14  Prefactor     22.413        38.010        .84572E-04    .92835E-04
  15  norm          .10000E-03    .74590        .53664E-03** at limit **
  16  Prefactor     31.559        32.808        .71356E-04    .42539E-04
  17  Prefactor     4.2478        271.05        .19829E-03    .17429E-04
  18  norm          18.233        11.703        .46873E-03   -.15028E-03
  19  Prefactor     .10001E-03    55.452        .92786E-01** at limit **
  20  Prefactor     8.0729        8.5697        .14113E-03   -.58724E-04
  21  norm          3.1235        3.2897        .10730E-03   -.16476E-03
  22  Prefactor     .10000E-03    9.6985        .18142E-02** at limit **
  23  norm          2.2206        1.9519        .81605E-04   -.20200E-04
  24  Prefactor     .10000E-03    22.342        .18142E-02** at limit **
  25  Prefactor     3.7777        10.066        .20781E-03   -.78451E-04
  26  norm          5.0703        6.2969        .17269E-03   -.83343E-04
  27  Normalizat    1.2848        .21794        .19398E-03    .73565E-04
  28  Prefactor     .45162        .25201        .37074E-03    .10426E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.7216
  Prefactor  = 70.7302
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.84464
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 22.4126
  norm       = 0.0001
  Prefactor  = 31.5591
  Prefactor  = 4.24785
  norm       = 18.2331
  Prefactor  = 0.000100008
  Prefactor  = 8.07289
  norm       = 3.12354
  Prefactor  = 0.0001
  norm       = 2.22058
  Prefactor  = 0.0001
  Prefactor  = 3.77769
  norm       = 5.07027
  Normalizat = 1.28479
  Prefactor  = 0.451624
 **********
 **   18 **HESSE 
 **********

 FCN=   4097.517     FROM HESSE     STATUS=OK           501 CALLS     4525 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    58.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.7216        2.3882        .15382E-04   -1.5322    
   3  Prefactor     70.730        54.410        .95458E-05   -1.4024    
   4  Prefactor     .10000E-03    35.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.846        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    17.377        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3004        .18942E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9479        .27811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9682        .17442E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          5.8446        6.0105        .59007E-05   -1.5224    
  12  Prefactor     .10000E-03    155.16        .12009E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.9500        .27780E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     22.413        37.994        .16914E-04   -1.4761    
  15  norm          .10000E-03    .74593        .10733E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     31.559        32.797        .28543E-05   -1.4584    
  17  Prefactor     4.2478        270.61        .79317E-05   -1.5296    
  18  norm          18.233        11.678        .18749E-04   -1.4854    
  19  Prefactor     .10001E-03    47.932        .10144       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.0729        8.5698        .56452E-05   -1.5140    
  21  norm          3.1235        3.2897        .42920E-05   -1.5354    
  22  Prefactor     .10000E-03    9.6988        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.2206        1.9519        .32642E-05   -1.5410    
  24  Prefactor     .10000E-03    22.342        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.7777        10.065        .83123E-05   -1.5319    
  26  norm          5.0703        6.2967        .69077E-05   -1.5258    
  27  Normalizat    1.2848        .21797        .38796E-04   -.84022    
  28  Prefactor     .45162        .25211        .14830E-04   -1.1425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.9883e-10
Minuit parameter uncertainties:
  1  0.000182873
  2  2.38821
  3  54.4479
  4  0.000732529
  5  0.000123595
  6  1.31095e-05
  7  1.39884e-05
  8  8.32501e-05
  9  6.77802e-07
  10  5.78338e-06
  11  6.01115
  12  0.000523559
  13  0.000118614
  14  38.0353
  15  4.37305e-07
  16  32.8157
  17  68.1327
  18  11.6792
  19  0.00120879
  20  8.57105
  21  3.28985
  22  1.02293e-06
  23  1.95192
  24  6.43391e-05
  25  10.0695
  26  6.29754
  27  0.218122
  28  0.25273
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  4.373e-07  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:  4.516e-01  2.527e-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.285e+00  2.181e-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: 5.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351259/likelihoodResults_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.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) = 4097.5174733
delta logL = -0.000587081489357

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4097.51691277
delta logL = -2.65494909399e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11777E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4017       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .45157       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=   4097.517     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      397 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .85428        .98280E-03** at limit **
   2  alpha         2.7066        2.7106        .90369E-01    .41138E-07
   3  Normalizat    1.2848        .21063        .19398E-03    .13473E-02
   4  Prefactor     .45163        .24961        .37075E-03    .73251E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.70663
  Normalizat = 1.28479
  Prefactor  = 0.451628
 **********
 **   18 **HESSE 
 **********

 FCN=   4097.517     FROM HESSE     STATUS=OK            23 CALLS      420 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .75707        .19656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7066        2.6949        .36147E-02    .82748E-01
   3  Normalizat    1.2848        .21072        .38796E-04   -.84022    
   4  Prefactor     .45163        .24972        .74150E-04   -1.1425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96752e-09
Minuit parameter uncertainties:
  1  7.19547e-06
  2  140.494
  3  0.210864
  4  0.250329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351259': 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) = 4097.51688523
delta logL = 9.85372025752e-07

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  7.195e-06  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.707e+00  1.405e+02  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:  4.516e-01  2.503e-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.285e+00  2.109e-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/351259/cmap_HighResolution_249177601_249436801_4FGL_J1208.9+5441_daily_bin38.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-05', job_status='DONE', photon_flux_upper_limit='5.67e-08', time_completed='2021-09-05 01:20:14.135211', job_id='351259', GAL2='0.45', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630830014.14', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.45', dlogl='9.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='38' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:20:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 351259: <4FGL_J1208.9+5441_daily_bin38> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin38> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:48 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05: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 01:05:51 2021
Terminated at Sun Sep  5 01:20:14 2021
Results reported at Sun Sep  5 01:20:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin38 182.226 54.6995 249177601 249436801 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 :                                   721.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             271.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   863 sec.
    Turnaround time :                            866 sec.

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

