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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin654
RA = 182.226, Dec = 54.6995
tmin = 408844801, tmax = 409104001
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='355922', job_status='RUN', time_executed='2021-09-05 01:20:51.601665', time_epoch_executed='1630830051.6' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='654'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/355922

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/355922/ft1_4FGL_J1208.9+5441_daily_bin654.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/355922/ft2_4FGL_J1208.9+5441_daily_bin654.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/355922/ft1_4FGL_J1208.9+5441_daily_bin654.fits outfile=/scratch/kocevski/355922/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin654.fits ra=182.226 dec=54.6995 rad=12.0 tmin=408844801.0 tmax=409104001.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 4.40
user 4.17
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/355922/ft2_4FGL_J1208.9+5441_daily_bin654.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/355922/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin654.fits evtable="EVENTS" outfile="/scratch/kocevski/355922/ft1_filtered_4FGL_J1208.9+5441_daily_bin654.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.48
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/355922/ft1_filtered_4FGL_J1208.9+5441_daily_bin654.fits evtable="EVENTS" scfile=/scratch/kocevski/355922/ft2_4FGL_J1208.9+5441_daily_bin654.fits sctable="SC_DATA" expcube=/scratch/kocevski/355922/ltcube_408844801_409104001_4FGL_J1208.9+5441_daily_bin654.fits outfile=/scratch/kocevski/355922/expmap_408844801_409104001_4FGL_J1208.9+5441_daily_bin654.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/355922/ltcube_408844801_409104001_4FGL_J1208.9+5441_daily_bin654.fits
.....................!
real 191.51
user 186.45
sys 4.06

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/355922/ft1_filtered_4FGL_J1208.9+5441_daily_bin654.fits scfile=/scratch/kocevski/355922/ft2_4FGL_J1208.9+5441_daily_bin654.fits outfile=/scratch/kocevski/355922/cmap_408844801_409104001_4FGL_J1208.9+5441_daily_bin654.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.55
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32021E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    349.98       1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.323       1.0000         .10000E-03   10000.    
     5 'Prefactor '    373.71       1.0000         .10000E-03   10000.    
     6 'norm      '    .89136E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11203E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .22260E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    26.465       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .20520E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .75681E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    154.95       1.0000         .10000E-03   10000.    
    18 'norm      '    10.612       1.0000         .10000E-03   10000.    
    19 'Prefactor '    41.700       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59686       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15741E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    22.523       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .20824E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .25782E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .81054       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94429       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   558.2898     FROM MIGRAD    STATUS=CONVERGED    309 CALLS     2705 TOTAL
                     EDM=   .42E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10045E-03    378.70       -.19736E-03** at limit **
   2  norm          .10000E-03    5.3705        .21109E-05** at limit **
   3  Prefactor     381.68        301.56       -.22979E-04    .15808E-01
   4  Prefactor     33.918        96.809        .15103E-04   -.37857E-03
   5  Prefactor     381.85        148.43        .75351E-05   -.40216E-01
   6  norm          .10000E-03    360.12        .22899E-04** at limit **
   7  Prefactor     .10000E-03    9.9934       -.22274E-06** at limit **
   8  Prefactor     .10000E-03    44.344       -.18269E-06** at limit **
   9  norm          .10000E-03    69.502        .69152E-05** at limit **
  10  Prefactor     .10000E-03    6.0979       -.16097E-06** at limit **
  11  norm          26.927        21.781        .58104E-06   -.52005E-04
  12  Prefactor     .10000E-03    49.908        .76330E-05** at limit **
  13  Prefactor     .10000E-03    46.315        .16796E-05** at limit **
  14  Prefactor     .10000E-03    62.555        .25874E-06** at limit **
  15  norm          .10000E-03    2.7165       -.11795E-06** at limit **
  16  Prefactor     .10000E-03    50.915        .30386E-05** at limit **
  17  Prefactor     142.02        233.00        .63954E-04    .89628E-02
  18  norm          10.836        34.004       -.43534E-05   -.34708E-03
  19  Prefactor     42.221        86.921        .31951E-04    .34184E-02
  20  Prefactor     .67634        370.94        .24265E-03    .10882E-05
  21  norm          .10000E-03    5.5031       -.20871E-06** at limit **
  22  Prefactor     .10000E-03    65.142       -.11270E-04** at limit **
  23  norm          22.603        17.655       -.46747E-05   -.26492E-04
  24  Prefactor     .10000E-03    80.430        .47393E-05** at limit **
  25  Prefactor     .10000E-03    56.389        .15548E-05** at limit **
  26  norm          .10000E-03    13.528       -.52878E-06** at limit **
  27  Normalizat    .80067        .65915       -.64427E-04    .16437E-04
  28  Prefactor     .94746        .78639        .35681E-04    .11303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100446
  norm       = 0.0001
  Prefactor  = 381.677
  Prefactor  = 33.9184
  Prefactor  = 381.846
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.9273
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 142.019
  norm       = 10.8362
  Prefactor  = 42.2206
  Prefactor  = 0.676344
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6032
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.800674
  Prefactor  = 0.947457
 **********
 **   18 **HESSE 
 **********

 FCN=   558.2898     FROM HESSE     STATUS=OK           567 CALLS     3272 TOTAL
                     EDM=   .14E-03    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10045E-03    379.27        .10681E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    5.3475        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     381.68        310.40        .54414E-03   -1.1775    
   4  Prefactor     33.918        97.086        .17898E-02   -1.4543    
   5  Prefactor     381.85        539.20        .52724E-03   -1.1774    
   6  norm          .10000E-03    355.08        .94593E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.9016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    44.343        .10343E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    69.712        .10065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0941        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          26.927        21.809        .19468E-02   -1.4670    
  12  Prefactor     .10000E-03    49.591        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    46.137        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    62.321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.7167        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    50.904        .10467E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     142.02        234.32        .80965E-03   -1.3319    
  18  norm          10.836        34.219        .30748E-02   -1.5049    
  19  Prefactor     42.221        86.679        .15519E-02   -1.4408    
  20  Prefactor     .67634        54.990        .94414E-01   -1.5543    
  21  norm          .10000E-03    5.5049        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    65.263        .91015E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          22.603        17.720        .21100E-02   -1.4757    
  24  Prefactor     .10000E-03    80.296        .91267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    56.484        .99935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    13.541        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .80067        .56155        .43748E-01   -1.0004    
  28  Prefactor     .94746        .68875        .67665E-01   -.94502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 0.000143222
Minuit parameter uncertainties:
  1  0.0261795
  2  4.90459e-06
  3  311.778
  4  97.5425
  5  546.577
  6  4.24875e-05
  7  9.14203e-07
  8  1.51382e-05
  9  9.14258e-05
  10  1.46598e-06
  11  21.8152
  12  4.07676e-05
  13  2.92589e-05
  14  4.192e-06
  15  9.30677e-09
  16  1.52173e-05
  17  235.876
  18  34.2815
  19  86.939
  20  12.2078
  21  1.7909e-07
  22  0.000110915
  23  17.7241
  24  7.51871e-05
  25  7.52985e-05
  26  2.00168e-06
  27  0.565684
  28  0.695265
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  9.307e-09  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:  9.475e-01  6.953e-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.007e-01  5.657e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/355922/likelihoodResults_408844801_409104001_4FGL_J1208.9+5441_daily_bin654.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): 102
logL (Free Index) = 558.289912868
delta logL = -0.000132853796686

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 558.289779918
delta logL = 9.56264329943e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4954       1.0000          .0000       5.0000    
     3 'Normalizat'    .80068       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94743       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   558.2898     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      238 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.1745        .38202E-02** at limit **
   2  alpha         2.0365        3.5029        .16461E-01    .29353E-08
   3  Normalizat    .80067        .60520        .25642E-03    .65894E-05
   4  Prefactor     .94746        .76413        .29931E-03    .61011E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.03654
  Normalizat = 0.800673
  Prefactor  = 0.947457
 **********
 **   18 **HESSE 
 **********

 FCN=   558.2898     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .15E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.9637        .39743E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0365        3.7066        .65843E-03   -.18646    
   3  Normalizat    .80067        .60575        .10257E-04   -1.0004    
   4  Prefactor     .94746        .76483        .11972E-04   -.94502    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47652e-12
Minuit parameter uncertainties:
  1  5.12097e-06
  2  256.428
  3  0.610967
  4  0.773806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/355922': 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) = 558.289778481
delta logL = 1.53279063397e-06

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  5.121e-06  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.037e+00  2.564e+02  0.000e+00  5.000e+00 ( 1.000e+00)
378         beta:  7.229e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
379           Eb:  3.605e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
703    Prefactor:  9.475e-01  7.738e-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.007e-01  6.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.226 54.700

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/355922/cmap_HighResolution_408844801_409104001_4FGL_J1208.9+5441_daily_bin654.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.64e-05', job_status='DONE', photon_flux_upper_limit='2.51e-07', time_completed='2021-09-05 01:27:17.472470', job_id='355922', GAL2='0.95', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630830437.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='1.53e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='654' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:27:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 355922: <4FGL_J1208.9+5441_daily_bin654> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin654 182.226 54.6995 408844801 409104001 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 :                                   383.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             361.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   396 sec.
    Turnaround time :                            398 sec.

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

