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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin114
RA = 182.226, Dec = 54.6995
tmin = 268876801, tmax = 269136001
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='351393', job_status='RUN', time_executed='2021-09-05 01:06:26.161440', time_epoch_executed='1630829186.16' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='114'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351393

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351393/ft1_4FGL_J1208.9+5441_daily_bin114.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351393/ft2_4FGL_J1208.9+5441_daily_bin114.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351393/ft1_4FGL_J1208.9+5441_daily_bin114.fits outfile=/scratch/kocevski/351393/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin114.fits ra=182.226 dec=54.6995 rad=12.0 tmin=268876801.0 tmax=269136001.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.68
user 1.47
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/351393/ft2_4FGL_J1208.9+5441_daily_bin114.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/351393/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin114.fits evtable="EVENTS" outfile="/scratch/kocevski/351393/ft1_filtered_4FGL_J1208.9+5441_daily_bin114.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.51
user 0.36
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351393/ft1_filtered_4FGL_J1208.9+5441_daily_bin114.fits evtable="EVENTS" scfile=/scratch/kocevski/351393/ft2_4FGL_J1208.9+5441_daily_bin114.fits sctable="SC_DATA" expcube=/scratch/kocevski/351393/ltcube_268876801_269136001_4FGL_J1208.9+5441_daily_bin114.fits outfile=/scratch/kocevski/351393/expmap_268876801_269136001_4FGL_J1208.9+5441_daily_bin114.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/351393/ltcube_268876801_269136001_4FGL_J1208.9+5441_daily_bin114.fits
.....................!
real 190.65
user 185.67
sys 4.38

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/351393/ft1_filtered_4FGL_J1208.9+5441_daily_bin114.fits scfile=/scratch/kocevski/351393/ft2_4FGL_J1208.9+5441_daily_bin114.fits outfile=/scratch/kocevski/351393/cmap_268876801_269136001_4FGL_J1208.9+5441_daily_bin114.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.57
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351393/ft1_filtered_4FGL_J1208.9+5441_daily_bin114.fits scfile=/scratch/kocevski/351393/ft2_4FGL_J1208.9+5441_daily_bin114.fits outfile=/scratch/kocevski/351393/cmap_HighResolution_268876801_269136001_4FGL_J1208.9+5441_daily_bin114.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.59
user 0.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.9219       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5574       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6108       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11123E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.238       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.4818       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10691E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8049       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .73913E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6955       1.0000         .10000E-03   10000.    
    18 'norm      '    6.0452       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.095       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.6918       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    12.925       1.0000         .10000E-03   10000.    
    23 'norm      '    .10274E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.068       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.3240       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .80017       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1356       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=   6035.105     FROM MIGRAD    STATUS=CONVERGED    726 CALLS     4063 TOTAL
                     EDM=   .52E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.08        .12388E-05** at limit **
   2  norm          2.9218        1.9644        .35328E-08    .34051E-04
   3  Prefactor     2.5867        155.68       -.26421E-04   -.12737E-04
   4  Prefactor     .10000E-03    7.3876       -.20479E-07** at limit **
   5  Prefactor     .10000E-03    56.275       -.92525E-07** at limit **
   6  norm          .10000E-03    34.270        .34680E-07** at limit **
   7  Prefactor     7.6118        6.8612        .31298E-05    .13229E-03
   8  Prefactor     .10000E-03    11.437       -.89781E-07** at limit **
   9  norm          .10000E-03    2.8090        .32086E-07** at limit **
  10  Prefactor     .10000E-03    2.2629        .74007E-07** at limit **
  11  norm          .10000E-03    2.1609       -.82919E-07** at limit **
  12  Prefactor     22.244        23.906       -.79461E-06   -.25041E-04
  13  Prefactor     2.4815        2.1010        .40646E-06   -.20870E-02
  14  Prefactor     .10000E-03    23.778       -.20592E-06** at limit **
  15  norm          1.8048        1.4383       -.42989E-08   -.36392E-04
  16  Prefactor     .10271E-03    17.965        .35949E-07** at limit **
  17  Prefactor     6.7578        72.957       -.13138E-04   -.13663E-04
  18  norm          6.0451        5.8027        .93563E-06    .97988E-05
  19  Prefactor     12.095        13.915        .64291E-07   -.26766E-05
  20  Prefactor     1.6923        3.2254        .88232E-07   -.68810E-04
  21  norm          .10000E-03    .60258        .16632E-07** at limit **
  22  Prefactor     12.925        15.575       -.29300E-07   -.95218E-05
  23  norm          .10000E-03    .88605        .37386E-07** at limit **
  24  Prefactor     17.067        21.482       -.22229E-06   -.32544E-05
  25  Prefactor     .10000E-03    8.6174       -.36246E-08** at limit **
  26  norm          1.3244        2.9974        .64982E-07   -.11195E-03
  27  Normalizat    .80005        .15067       -.14298E-05    .46058E-04
  28  Prefactor     1.1356        .18522        .68094E-06   -.88843E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 2.9218
  Prefactor  = 2.58674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.61179
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 22.244
  Prefactor  = 2.48148
  Prefactor  = 0.0001
  norm       = 1.8048
  Prefactor  = 0.000102706
  Prefactor  = 6.75777
  norm       = 6.04512
  Prefactor  = 12.0949
  Prefactor  = 1.69228
  norm       = 0.0001
  Prefactor  = 12.9247
  norm       = 0.0001
  Prefactor  = 17.0671
  Prefactor  = 0.0001
  norm       = 1.32436
  Normalizat = 0.800048
  Prefactor  = 1.13565
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.105     FROM HESSE     STATUS=OK           531 CALLS     4594 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    100.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.9218        1.9643        .86457E-04   -1.5366    
   3  Prefactor     2.5867        156.07        .25530E-03   -1.5386    
   4  Prefactor     .10000E-03    7.3986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    56.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    34.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6118        6.8896        .14536E-03   -1.5156    
   8  Prefactor     .10000E-03    11.463        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    2.8091        .12716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    2.3084        .22684E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    2.1856        .11146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.244        23.866        .84940E-04   -1.4764    
  13  Prefactor     2.4815        5.7271        .12975E-02   -1.5393    
  14  Prefactor     .10000E-03    24.130        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8048        1.4356        .80207E-04   -1.5439    
  16  Prefactor     .10271E-03    24.866        .88060E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.7578        73.972        .15507E-03   -1.5188    
  18  norm          6.0451        5.7956        .16330E-03   -1.5216    
  19  Prefactor     12.095        13.910        .11518E-03   -1.5012    
  20  Prefactor     1.6923        3.1921        .18636E-03   -1.5448    
  21  norm          .10000E-03    .60917        .58848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     12.925        15.573        .11142E-03   -1.4989    
  23  norm          .10000E-03    1.8022        .14215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     17.067        21.482        .96947E-04   -1.4881    
  25  Prefactor     .10000E-03    8.8189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.3244        2.9559        .19647E-03   -1.5478    
  27  Normalizat    .80005        .17873        .22573E-03   -1.0007    
  28  Prefactor     1.1356        .21941        .24883E-03   -.88335    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.09572e-09
Minuit parameter uncertainties:
  1  0.0001405
  2  1.96439
  3  40.2947
  4  1.29999e-05
  5  3.21099e-05
  6  7.53683e-06
  7  6.89034
  8  4.01565e-05
  9  1.95412e-07
  10  1.20265e-05
  11  2.63204e-06
  12  23.876
  13  5.72838
  14  0.000136788
  15  1.43561
  16  0.0164117
  17  44.7866
  18  5.79612
  19  13.9139
  20  3.19238
  21  1.09987e-06
  22  15.5774
  23  2.55215e-06
  24  21.4922
  25  1.8766e-05
  26  2.95621
  27  0.178861
  28  0.219586
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.805e+00  1.436e+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.136e+00  2.196e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  8.000e-01  1.789e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.18
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 2.25e-08
Energy Flux (Fixed Index): 7.47e-06 +/- 5.94e-06

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) = 6034.00207259
delta logL = 1.10270344871

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6033.9591323
delta logL = 1.14564374499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4047       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5635       1.0000          .0000       5.0000    
     3 'Normalizat'    .81928       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1173       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=   6033.959     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      206 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4043        1.0602        .91464E-02   -.12483E-03
   2  alpha         1.5635        .38363        .31774       -.42267E-04
   3  Normalizat    .81927        .14143        .43861E-01    .14136E-04
   4  Prefactor     1.1173        .18335        .56632E-01    .69278E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.40426
  alpha      = 1.56348
  Normalizat = 0.819274
  Prefactor  = 1.11734
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.959     FROM HESSE     STATUS=OK            33 CALLS      239 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4043        1.2986        .65852E-04   -1.5471    
   2  alpha         1.5635        .53448        .12274E-01   -.38398    
   3  Normalizat    .81927        .16785        .22325E-03   -.99358    
   4  Prefactor     1.1173        .21750        .25042E-03   -.88914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55058e-09
Minuit parameter uncertainties:
  1  1.29858
  2  0.539334
  3  0.167958
  4  0.217678
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351393': 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) = 6033.95913219
delta logL = 1.14564385023

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.404e+00  1.299e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  1.563e+00  5.393e-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.117e+00  2.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
704        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
705        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
702   Normalization:  8.193e-01  1.680e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.50
Ra Dec: 182.226 54.700
Photon Index (Free Index): 1.56 +/- 0.54
Photon Flux (Free Index): 1.60e-08 +/- 1.43e-08
Energy Flux (Free Index): 1.83e-05 +/- 2.02e-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/351393/cmap_HighResolution_268876801_269136001_4FGL_J1208.9+5441_daily_bin114.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='1.83e-05', photon_flux_error='2.25e-08', dlogl='1.15e+00', energy_flux='7.47e-06', photon_flux2='1.60e-08', job_status='DONE', time_completed='2021-09-05 01:20:07.156611', photon_index_error2='0.54', photon_index2='1.56', ts='4.18', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='2.02e-05', EG='0.80', time_epoch_completed='1630830007.16', return_code='0', job_id='351393', GAL2='1.12', EG2='0.82', return_code2='0', energy_flux_error='5.94e-06', photon_flux_error2='1.43e-08', ts2='6.50', photon_index='2.51' WHERE bin_id='114' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:20:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0106>
Subject: Job 351393: <4FGL_J1208.9+5441_daily_bin114> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin114 182.226 54.6995 268876801 269136001 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 :                                   817.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            851 sec.

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

