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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin92
RA = 182.226, Dec = 54.6995
tmin = 263174401, tmax = 263433601
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='351364', job_status='RUN', time_executed='2021-09-05 01:06:13.417461', time_epoch_executed='1630829173.42' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351364

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351364/ft1_4FGL_J1208.9+5441_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351364/ft2_4FGL_J1208.9+5441_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351364/ft1_4FGL_J1208.9+5441_daily_bin92.fits outfile=/scratch/kocevski/351364/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin92.fits ra=182.226 dec=54.6995 rad=12.0 tmin=263174401.0 tmax=263433601.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.36
user 1.18
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351364/ft1_filtered_4FGL_J1208.9+5441_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/351364/ft2_4FGL_J1208.9+5441_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/351364/ltcube_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.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/351364/ft2_4FGL_J1208.9+5441_daily_bin92.fits
.....................!
real 11.40
user 11.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351364/ft1_filtered_4FGL_J1208.9+5441_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/351364/ft2_4FGL_J1208.9+5441_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/351364/ltcube_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.fits outfile=/scratch/kocevski/351364/expmap_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.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/351364/ltcube_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.fits
.....................!
real 189.38
user 185.18
sys 3.88

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/351364/ft1_filtered_4FGL_J1208.9+5441_daily_bin92.fits scfile=/scratch/kocevski/351364/ft2_4FGL_J1208.9+5441_daily_bin92.fits outfile=/scratch/kocevski/351364/cmap_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351364/ft1_filtered_4FGL_J1208.9+5441_daily_bin92.fits scfile=/scratch/kocevski/351364/ft2_4FGL_J1208.9+5441_daily_bin92.fits outfile=/scratch/kocevski/351364/cmap_HighResolution_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.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.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2119       1.0000         .10000E-03   10000.    
     3 'Prefactor '    115.74       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.0959       1.0000         .10000E-03   10000.    
     5 'Prefactor '    114.71       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.7412       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11772E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.0719       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.192       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.1638       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.5709       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7980       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    45.709       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .99275       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1345       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=   4236.183     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3417 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    67.520        .57759E-05** at limit **
   2  norm          3.2119        2.7181        .70393E-07    .80839E-04
   3  Prefactor     115.74        98.281       -.22855E-05    .12768E-04
   4  Prefactor     8.0941        44.447       -.41304E-05    .49009E-05
   5  Prefactor     114.70        138.79       -.48306E-05    .55568E-05
   6  norm          .10000E-03    21.329       -.40499E-05** at limit **
   7  Prefactor     .10000E-03    8.3514       -.14447E-05** at limit **
   8  Prefactor     .10000E-03    14.348       -.16625E-05** at limit **
   9  norm          .10000E-03    6.0334       -.11035E-06** at limit **
  10  Prefactor     2.7414        4.6783       -.32352E-05   -.38504E-03
  11  norm          .10000E-03    2.8633       -.99572E-07** at limit **
  12  Prefactor     .10000E-03    33.494       -.28974E-05** at limit **
  13  Prefactor     .10000E-03    3.7754       -.19880E-06** at limit **
  14  Prefactor     .10000E-03    34.009       -.10911E-05** at limit **
  15  norm          2.0719        2.4326       -.22373E-06   -.22916E-03
  16  Prefactor     12.182        31.629       -.10766E-04    .70070E-05
  17  Prefactor     .10000E-03    76.450       -.33261E-04** at limit **
  18  norm          9.1653        9.0649       -.33084E-06   -.19652E-04
  19  Prefactor     .10000E-03    10.493       -.30288E-05** at limit **
  20  Prefactor     .10000E-03    9.3346        .39082E-05** at limit **
  21  norm          3.5709        2.9649       -.20698E-06   -.13493E-03
  22  Prefactor     .10000E-03    17.237        .57617E-05** at limit **
  23  norm          1.7981        2.2370       -.27631E-06   -.16769E-03
  24  Prefactor     .10000E-03    61.366        .25937E-04** at limit **
  25  Prefactor     .10000E-03    5.3277       -.30133E-07** at limit **
  26  norm          45.710        11.316       -.11254E-06   -.21253E-04
  27  Normalizat    .99277        .21526        .30219E-05   -.94201E-05
  28  Prefactor     1.1344        .25154        .11890E-05    .65044E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.21191
  Prefactor  = 115.741
  Prefactor  = 8.09406
  Prefactor  = 114.703
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.74143
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0719
  Prefactor  = 12.1821
  Prefactor  = 0.0001
  norm       = 9.16525
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.57088
  Prefactor  = 0.0001
  norm       = 1.79812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 45.71
  Normalizat = 0.992766
  Prefactor  = 1.13443
 **********
 **   18 **HESSE 
 **********

 FCN=   4236.183     FROM HESSE     STATUS=OK           513 CALLS     3930 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.519        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2119        2.7123        .93315E-04   -1.5350    
   3  Prefactor     115.74        98.489        .37398E-04   -1.3552    
   4  Prefactor     8.0941        44.785        .14091E-03   -1.5139    
   5  Prefactor     114.70        138.83        .37564E-04   -1.3562    
   6  norm          .10000E-03    21.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.5081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    6.0360        .15615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.7414        4.7152        .17438E-03   -1.5377    
  11  norm          .10000E-03    2.8890        .10754E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7794        .12350E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    34.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.0719        2.4191        .10558E-03   -1.5420    
  16  Prefactor     12.182        31.763        .11472E-03   -1.5010    
  17  Prefactor     .10000E-03    76.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.1653        9.0676        .13240E-03   -1.5102    
  19  Prefactor     .10000E-03    10.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.3816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.5709        2.9659        .98456E-04   -1.5330    
  22  Prefactor     .10000E-03    17.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7981        2.2258        .10503E-03   -1.5440    
  24  Prefactor     .10000E-03    61.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    5.3384        .14670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          45.710        11.326        .59303E-04   -1.4355    
  27  Normalizat    .99277        .25634        .24468E-03   -.93273    
  28  Prefactor     1.1344        .29924        .28709E-03   -.88374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66332e-10
Minuit parameter uncertainties:
  1  5.02054e-06
  2  2.71237
  3  98.6285
  4  38.1224
  5  139.231
  6  1.51185e-06
  7  2.55136e-06
  8  1.19478e-06
  9  1.34168e-06
  10  4.7158
  11  1.38269e-06
  12  0.000474079
  13  1.88266e-06
  14  6.60792e-05
  15  2.41917
  16  31.8075
  17  4.20379e-05
  18  9.06893
  19  4.17318e-06
  20  5.34786e-05
  21  2.96607
  22  3.48823e-05
  23  2.22592
  24  9.00424e-05
  25  1.22102e-05
  26  11.3269
  27  0.256656
  28  0.299688
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.072e+00  2.419e+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:  1.134e+00  2.997e-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.928e-01  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.18
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 3.24e-08 +/- 3.78e-08
Energy Flux (Fixed Index): 8.57e-06 +/- 1.00e-05

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

Saving results to:
/scratch/kocevski/351364/likelihoodResults_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.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) = 4235.59983832
delta logL = 0.583638016677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4235.56607841
delta logL = 0.61739792812

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6295       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6937       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0183       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0959       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=   4235.566     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      209 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6305        2.3276        .62870E-02    .14776E-03
   2  alpha         1.6935        .44974        .32070       -.30812E-04
   3  Normalizat    1.0182        .20054        .43610E-01    .56852E-05
   4  Prefactor     1.0960        .25165        .65791E-01    .33392E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63055
  alpha      = 1.69353
  Normalizat = 1.01824
  Prefactor  = 1.09599
 **********
 **   18 **HESSE 
 **********

 FCN=   4235.566     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6305        2.4694        .89923E-04   -1.5384    
   2  alpha         1.6935        .56088        .12097E-01   -.32846    
   3  Normalizat    1.0182        .23639        .24180E-03   -.92422    
   4  Prefactor     1.0960        .29619        .29103E-03   -.89595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89635e-12
Minuit parameter uncertainties:
  1  2.46947
  2  0.566267
  3  0.236636
  4  0.296633
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351364': 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) = 4235.56607816
delta logL = 0.617398176164

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.631e+00  2.469e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  1.694e+00  5.663e-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.096e+00  2.966e-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.018e+00  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 182.226 54.700
Photon Index (Free Index): 1.69 +/- 0.57
Photon Flux (Free Index): 2.99e-08 +/- 2.85e-08
Energy Flux (Free Index): 2.53e-05 +/- 3.17e-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/351364/cmap_HighResolution_263174401_263433601_4FGL_J1208.9+5441_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.40e-05', comment='SUCCESS', photon_flux='3.24e-08', energy_flux2='2.53e-05', photon_flux_error='3.78e-08', dlogl='6.17e-01', energy_flux='8.57e-06', photon_flux2='2.99e-08', job_status='DONE', time_completed='2021-09-05 01:17:44.675008', photon_index_error2='0.57', photon_index2='1.69', ts='1.18', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='3.17e-05', EG='0.99', time_epoch_completed='1630829864.68', return_code='0', job_id='351364', GAL2='1.10', EG2='1.02', return_code2='0', energy_flux_error='1.00e-05', photon_flux_error2='2.85e-08', ts2='2.44', photon_index='2.51' WHERE bin_id='92' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:17:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 351364: <4FGL_J1208.9+5441_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin92 182.226 54.6995 263174401 263433601 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 :                                   689.27 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             339.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   709 sec.
    Turnaround time :                            711 sec.

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

