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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin588
RA = 182.226, Dec = 54.6995
tmin = 391737601, tmax = 391996801
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='355828', job_status='RUN', time_executed='2021-09-05 01:20:48.419518', time_epoch_executed='1630830048.42' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355828

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355828/ft1_4FGL_J1208.9+5441_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355828/ft2_4FGL_J1208.9+5441_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355828/ft1_4FGL_J1208.9+5441_daily_bin588.fits outfile=/scratch/kocevski/355828/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin588.fits ra=182.226 dec=54.6995 rad=12.0 tmin=391737601.0 tmax=391996801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.29
user 3.09
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355828/ft1_filtered_4FGL_J1208.9+5441_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/355828/ft2_4FGL_J1208.9+5441_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/355828/ltcube_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.fits outfile=/scratch/kocevski/355828/expmap_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.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/355828/ltcube_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.fits
.....................!
real 190.51
user 184.99
sys 4.72

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/355828/ft1_filtered_4FGL_J1208.9+5441_daily_bin588.fits scfile=/scratch/kocevski/355828/ft2_4FGL_J1208.9+5441_daily_bin588.fits outfile=/scratch/kocevski/355828/cmap_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.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.53
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/355828/ft1_filtered_4FGL_J1208.9+5441_daily_bin588.fits scfile=/scratch/kocevski/355828/ft2_4FGL_J1208.9+5441_daily_bin588.fits outfile=/scratch/kocevski/355828/cmap_HighResolution_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.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.54
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.4897       1.0000         .10000E-03   10000.    
     3 'Prefactor '    63.643       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4587       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.933       1.0000         .10000E-03   10000.    
     6 'norm      '    .10179E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.355       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2069       1.0000         .10000E-03   10000.    
    11 'norm      '    .87250E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .46970       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.823       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.2536       1.0000         .10000E-03   10000.    
    19 'Prefactor '    22.695       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    8.1838       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5848       1.0000         .10000E-03   10000.    
    23 'norm      '    1.2683       1.0000         .10000E-03   10000.    
    24 'Prefactor '    72.878       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1303       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .65057       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=   5629.312     FROM MIGRAD    STATUS=CONVERGED    666 CALLS     3500 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.596       -.71594E-07** at limit **
   2  norm          3.4896        1.9386       -.27986E-07   -.30769E-03
   3  Prefactor     63.617        48.031       -.30772E-06   -.90840E-04
   4  Prefactor     9.4534        18.595        .24714E-07   -.62486E-04
   5  Prefactor     37.842        64.300       -.10777E-06   -.72790E-04
   6  norm          .10000E-03    22.626       -.72034E-06** at limit **
   7  Prefactor     .10000E-03    2.0775       -.20251E-06** at limit **
   8  Prefactor     36.336        24.379       -.67087E-06   -.40068E-03
   9  norm          .10000E-03    5.1617        .12905E-06** at limit **
  10  Prefactor     1.2085        2.3944        .75773E-06    .43870E-03
  11  norm          .10024E-03    4.9123        .29273E-05** at limit **
  12  Prefactor     .10000E-03    16.645        .14491E-06** at limit **
  13  Prefactor     .10000E-03    6.7318        .65539E-06** at limit **
  14  Prefactor     .10000E-03    33.093        .13750E-05** at limit **
  15  norm          .46875        1.6878       -.13375E-06   -.28682E-03
  16  Prefactor     15.812        17.960       -.23560E-06   -.17400E-03
  17  Prefactor     .10000E-03    20.279        .14499E-06** at limit **
  18  norm          8.2531        10.535       -.17361E-06   -.32839E-03
  19  Prefactor     22.674        34.375       -.94864E-06   -.17858E-03
  20  Prefactor     .10000E-03    1.8683        .16294E-06** at limit **
  21  norm          8.1833        2.8549       -.95539E-07   -.61468E-03
  22  Prefactor     8.5696        26.535       -.35348E-06   -.66007E-04
  23  norm          1.2684        1.5135        .67090E-07   -.57312E-04
  24  Prefactor     72.867        46.974       -.82937E-07   -.68772E-04
  25  Prefactor     .10000E-03    6.7190        .61514E-06** at limit **
  26  norm          .10000E-03    1.4584        .74576E-08** at limit **
  27  Normalizat    1.1307        .18671        .33971E-05   -.12407E-02
  28  Prefactor     .65003        .21145       -.76634E-05   -.90359E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.48962
  Prefactor  = 63.6172
  Prefactor  = 9.45344
  Prefactor  = 37.842
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 36.3357
  norm       = 0.0001
  Prefactor  = 1.20854
  norm       = 0.00010024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.468751
  Prefactor  = 15.8124
  Prefactor  = 0.0001
  norm       = 8.25307
  Prefactor  = 22.6739
  Prefactor  = 0.0001
  norm       = 8.18331
  Prefactor  = 8.56955
  norm       = 1.26839
  Prefactor  = 72.867
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.13074
  Prefactor  = 0.650026
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.312     FROM HESSE     STATUS=OK           515 CALLS     4015 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.4896        1.9372        .74630E-04   -1.5334    
   3  Prefactor     63.617        48.024        .50302E-04   -1.4111    
   4  Prefactor     9.4534        18.580        .13030E-03   -1.5093    
   5  Prefactor     37.842        64.449        .32538E-03   -1.4477    
   6  norm          .10000E-03    22.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.0843        .10557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.336        24.331        .66468E-04   -1.4502    
   9  norm          .10000E-03    5.1710        .16650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2085        2.3914        .15773E-03   -1.5488    
  11  norm          .10024E-03    18.028        .21891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.8476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    33.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .46875        2.3779        .16877E-02   -1.5571    
  16  Prefactor     15.812        17.974        .10069E-03   -1.4912    
  17  Prefactor     .10000E-03    20.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.2531        10.456        .13955E-03   -1.5133    
  19  Prefactor     22.674        34.131        .84080E-04   -1.4755    
  20  Prefactor     .10000E-03    1.8740        .10018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          8.1833        2.8540        .72439E-04   -1.5136    
  22  Prefactor     8.5696        26.464        .13681E-03   -1.5122    
  23  norm          1.2684        1.4982        .97865E-04   -1.5483    
  24  Prefactor     72.867        46.975        .47028E-04   -1.3999    
  25  Prefactor     .10000E-03    6.8064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.4609        .88482E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1307        .19198        .20053E-03   -.88771    
  28  Prefactor     .65003        .22004        .31661E-03   -1.0552    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26196e-08
Minuit parameter uncertainties:
  1  6.42891e-06
  2  1.93719
  3  48.0528
  4  18.5911
  5  64.568
  6  0.000134961
  7  1.34855e-05
  8  24.3374
  9  1.04228e-05
  10  2.39155
  11  0.00416326
  12  3.68859e-06
  13  2.93616e-05
  14  0.000243798
  15  2.11146
  16  17.9797
  17  1.35665e-05
  18  10.4587
  19  34.1602
  20  1.01074e-05
  21  2.85409
  22  26.5007
  23  1.4982
  24  46.9987
  25  6.94278e-05
  26  6.96752e-07
  27  0.192094
  28  0.220333
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.688e-01  2.111e+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:  6.500e-01  2.203e-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.131e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/355828/likelihoodResults_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.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) = 5629.30478374
delta logL = 0.00716509022914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5629.30467953
delta logL = 0.00726929924713

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .46872       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8666       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65271       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5629.305     FROM MIGRAD    STATUS=FAILED       104 CALLS      267 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46907        3.3157        .15446E-02    .44958E-02
   2  alpha         2.8581        3.9226        .73989E-01   -.12959E-05
   3  Normalizat    1.1277        .17913        .20077E-03   -.46434E-05
   4  Prefactor     .65268        .21804        .31602E-03   -.12951E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5629.305     FROM SIMPLEX   STATUS=UNCHANGED     74 CALLS      341 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46907        3.3157        .10699E-03   -1.5571    
   2  alpha         2.8581        3.9226        .54807E-02    .14373    
   3  Normalizat    1.1277        .17913        .31091E-03   -.88867    
   4  Prefactor     .65268        .21804        .49114E-03   -1.0541    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5629.305     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      373 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .46907        2.1484        .30891E-03    .16956E-03
   2  alpha         2.8581        3.8262        .29596E-02   -.19975E-06
   3  Normalizat    1.1277        .17962        .80307E-05   -.45301E-05
   4  Prefactor     .65268        .21781        .12641E-04   -.14390E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.46907
  alpha      = 2.85808
  Normalizat = 1.1277
  Prefactor  = 0.652679
 **********
 **   18 **HESSE 
 **********

 FCN=   5629.305     FROM HESSE     STATUS=OK            25 CALLS      398 TOTAL
                     EDM=   .13E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .46907        2.1042        .61782E-04   -1.5571    
   2  alpha         2.8581        3.8198        .11838E-03    .14373    
   3  Normalizat    1.1277        .17951        .16061E-05   -.88867    
   4  Prefactor     .65268        .21765        .25281E-05   -1.0541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.29654e-13
Minuit parameter uncertainties:
  1  1.98689
  2  3.19987
  3  0.179606
  4  0.217938
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355828': 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) = 5629.30467563
delta logL = 0.00727319851376

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.691e-01  1.987e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.858e+00  3.200e+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:  6.527e-01  2.179e-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.128e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.05
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/355828/cmap_HighResolution_391737601_391996801_4FGL_J1208.9+5441_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.23e-05', job_status='DONE', photon_flux_upper_limit='8.43e-08', time_completed='2021-09-05 01:35:05.863250', job_id='355828', GAL2='0.65', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1630830905.86', return_code2='0', ts='0.05', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='7.27e-03', ts2='0.07', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='588' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:35:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 355828: <4FGL_J1208.9+5441_daily_bin588> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin588> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Sep  5 01:20:34 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:20:35 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:20:35 2021
Terminated at Sun Sep  5 01:35:07 2021
Results reported at Sun Sep  5 01:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin588 182.226 54.6995 391737601 391996801 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 :                                   853.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             334.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   871 sec.
    Turnaround time :                            873 sec.

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

