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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin21
RA = 182.226, Dec = 54.6995
tmin = 244771201, tmax = 245030401
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='351196', job_status='RUN', time_executed='2021-09-05 01:09:40.470777', time_epoch_executed='1630829380.47' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='21'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351196

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351196/ft1_4FGL_J1208.9+5441_daily_bin21.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351196/ft2_4FGL_J1208.9+5441_daily_bin21.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351196/ft1_4FGL_J1208.9+5441_daily_bin21.fits outfile=/scratch/kocevski/351196/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin21.fits ra=182.226 dec=54.6995 rad=12.0 tmin=244771201.0 tmax=245030401.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.18
user 0.98
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351196/ft2_4FGL_J1208.9+5441_daily_bin21.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/351196/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin21.fits evtable="EVENTS" outfile="/scratch/kocevski/351196/ft1_filtered_4FGL_J1208.9+5441_daily_bin21.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.43
user 0.28
sys 0.12

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351196/ft1_filtered_4FGL_J1208.9+5441_daily_bin21.fits evtable="EVENTS" scfile=/scratch/kocevski/351196/ft2_4FGL_J1208.9+5441_daily_bin21.fits sctable="SC_DATA" expcube=/scratch/kocevski/351196/ltcube_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.fits outfile=/scratch/kocevski/351196/expmap_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.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/351196/ltcube_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.fits
.....................!
real 145.28
user 141.31
sys 3.69

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/351196/ft1_filtered_4FGL_J1208.9+5441_daily_bin21.fits scfile=/scratch/kocevski/351196/ft2_4FGL_J1208.9+5441_daily_bin21.fits outfile=/scratch/kocevski/351196/cmap_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351196/ft1_filtered_4FGL_J1208.9+5441_daily_bin21.fits scfile=/scratch/kocevski/351196/ft2_4FGL_J1208.9+5441_daily_bin21.fits outfile=/scratch/kocevski/351196/cmap_HighResolution_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.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.47
user 0.29
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3212       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6246       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    38.696       1.0000         .10000E-03   10000.    
    15 'norm      '    1.2672       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12795E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.098       1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.6776       1.0000         .10000E-03   10000.    
    21 'norm      '    5.0567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.505       1.0000         .10000E-03   10000.    
    23 'norm      '    .11338       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3537       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81863       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=   4508.662     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3492 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    143.04        .17441E-05** at limit **
   2  norm          4.3220        3.6239       -.61704E-07   -.77409E-04
   3  Prefactor     .10000E-03    63.173       -.78479E-07** at limit **
   4  Prefactor     .10000E-03    17.444       -.17870E-06** at limit **
   5  Prefactor     .10000E-03    65.410        .30489E-06** at limit **
   6  norm          .10000E-03    19.669        .55751E-07** at limit **
   7  Prefactor     4.6262        8.9253        .64053E-05   -.10384E-03
   8  Prefactor     .10000E-03    19.459       -.22399E-06** at limit **
   9  norm          .10000E-03    5.9375       -.13167E-07** at limit **
  10  Prefactor     .10000E-03    1.2194        .13668E-06** at limit **
  11  norm          .10000E-03    1.9141       -.29068E-06** at limit **
  12  Prefactor     .10000E-03    10.712        .28189E-06** at limit **
  13  Prefactor     .10000E-03    4.2804       -.66693E-06** at limit **
  14  Prefactor     38.657        44.708       -.48959E-06   -.44690E-04
  15  norm          1.2679        2.7243        .33961E-06   -.11868E-04
  16  Prefactor     .10000E-03    198.78       -.10324E-04** at limit **
  17  Prefactor     55.926        117.04       -.26678E-05   -.11122E-03
  18  norm          .10000E-03    1.9566        .64976E-07** at limit **
  19  Prefactor     .10000E-03    8.0297        .11054E-06** at limit **
  20  Prefactor     8.6729        11.224        .16591E-06    .32340E-04
  21  norm          5.0578        3.8270        .24663E-07    .50571E-04
  22  Prefactor     11.509        18.779        .31411E-06    .58770E-05
  23  norm          .12617        1.6365       -.56067E-06    .10115E-02
  24  Prefactor     .10000E-03    17.744       -.95850E-07** at limit **
  25  Prefactor     .10000E-03    7.4559        .73635E-07** at limit **
  26  norm          .10000E-03    1.9449        .93305E-07** at limit **
  27  Normalizat    1.3536        .20356       -.54898E-06    .72903E-04
  28  Prefactor     .81856        .24028       -.21544E-05    .52014E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  norm       = 4.32197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.62625
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.657
  norm       = 1.26792
  Prefactor  = 0.0001
  Prefactor  = 55.926
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.67286
  norm       = 5.05782
  Prefactor  = 11.5089
  norm       = 0.126165
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.3536
  Prefactor  = 0.818555
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.662     FROM HESSE     STATUS=OK           511 CALLS     4003 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    143.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3220        3.6194        .11255E-03   -1.5292    
   3  Prefactor     .10000E-03    63.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.461        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    65.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    19.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.6262        9.0110        .93579E-03   -1.5278    
   8  Prefactor     .10000E-03    19.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.9385        .15980E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.2287        .72409E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9162        .90711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2804        .13557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     38.657        44.649        .64433E-04   -1.4464    
  15  norm          1.2679        2.7083        .15337E-03   -1.5483    
  16  Prefactor     .10000E-03    202.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     55.926        117.56        .26779E-03   -1.4211    
  18  norm          .10000E-03    1.9581        .91729E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.0402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.6729        11.204        .13607E-03   -1.5119    
  21  norm          5.0578        3.8200        .99004E-04   -1.5258    
  22  Prefactor     11.509        18.777        .11811E-03   -1.5029    
  23  norm          .12617        9.9522        .16111E-02   -1.5637    
  24  Prefactor     .10000E-03    17.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.4883        .17900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.9536        .91454E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3536        .24144        .21573E-03   -.81980    
  28  Prefactor     .81856        .28435        .32679E-03   -.99048    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88511e-09
Minuit parameter uncertainties:
  1  0.00195369
  2  3.61954
  3  0.00025345
  4  6.51193e-05
  5  9.13348e-05
  6  1.23275e-05
  7  9.0136
  8  4.14147e-05
  9  1.36715e-06
  10  1.27767e-06
  11  8.89077e-07
  12  1.17361e-05
  13  9.52138e-06
  14  44.6877
  15  2.70855
  16  0.000351535
  17  118.05
  18  1.53102e-06
  19  6.35085e-08
  20  11.2063
  21  3.82022
  22  18.7871
  23  2.24059
  24  6.5739e-06
  25  1.52059e-05
  26  2.09641e-06
  27  0.241643
  28  0.284865
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.268e+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:  8.186e-01  2.849e-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.354e+00  2.416e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 1.20e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.16e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351196/likelihoodResults_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.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) = 4508.37670609
delta logL = 0.285326454974

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4508.36779264
delta logL = 0.294239899466

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1529       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.8145       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84788       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=   4508.368     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1516        43.774        .10764E-01    .60437E-03
   2  alpha         3.8161        2.7191        .50000        .16696E-04
   3  Normalizat    1.3166        .63053E-01    .49348E-01   -.53736E-05
   4  Prefactor     .84780        .78293E-01    .72683E-01    .12815E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15156
  alpha      = 3.81609
  Normalizat = 1.31661
  Prefactor  = 0.847803
 **********
 **   18 **HESSE 
 **********

 FCN=   4508.368     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1516        2.3175        .82112E-04   -1.5493    
   2  alpha         3.8161        1.7587        .37612E-02    .55440    
   3  Normalizat    1.3166        .24017        .21816E-03   -.83072    
   4  Prefactor     .84780        .28609        .32163E-03   -.97990    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11091e-12
Minuit parameter uncertainties:
  1  2.31764
  2  2.07124
  3  0.240372
  4  0.286592
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351196': 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) = 4508.36779218
delta logL = 0.294240357864

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.152e+00  2.318e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.816e+00  2.071e+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:  8.478e-01  2.866e-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.317e+00  2.404e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
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/351196/cmap_HighResolution_244771201_245030401_4FGL_J1208.9+5441_daily_bin21.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.16e-05', job_status='DONE', photon_flux_upper_limit='1.20e-07', time_completed='2021-09-05 01:19:05.324123', job_id='351196', GAL2='0.85', fit_tolerance='1e-08', EG2='1.32', EG='1.35', time_epoch_completed='1630829945.32', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.94e-01', ts2='0.87', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='21' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:19:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 351196: <4FGL_J1208.9+5441_daily_bin21> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin21 182.226 54.6995 244771201 245030401 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 :                                   561.12 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             273.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   797 sec.
    Turnaround time :                            800 sec.

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

