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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin94
RA = 182.226, Dec = 54.6995
tmin = 263692801, tmax = 263952001
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='351367', job_status='RUN', time_executed='2021-09-05 01:08:34.843098', time_epoch_executed='1630829314.84' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='94'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351367

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351367/ft1_4FGL_J1208.9+5441_daily_bin94.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351367/ft1_4FGL_J1208.9+5441_daily_bin94.fits outfile=/scratch/kocevski/351367/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin94.fits ra=182.226 dec=54.6995 rad=12.0 tmin=263692801.0 tmax=263952001.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.65
user 1.46
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/351367/ft1_filtered_4FGL_J1208.9+5441_daily_bin94.fits" evtable="EVENTS" scfile=/scratch/kocevski/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits sctable="SC_DATA" outfile=/scratch/kocevski/351367/ltcube_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.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/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits
.....................!
real 12.19
user 11.86
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351367/ft1_filtered_4FGL_J1208.9+5441_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits sctable="SC_DATA" expcube=/scratch/kocevski/351367/ltcube_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.fits outfile=/scratch/kocevski/351367/expmap_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.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/351367/ltcube_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.fits
.....................!
real 189.56
user 185.19
sys 4.00

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/351367/ft1_filtered_4FGL_J1208.9+5441_daily_bin94.fits scfile=/scratch/kocevski/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits outfile=/scratch/kocevski/351367/cmap_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351367/ft1_filtered_4FGL_J1208.9+5441_daily_bin94.fits scfile=/scratch/kocevski/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits outfile=/scratch/kocevski/351367/cmap_HighResolution_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.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/351367/ft1_filtered_4FGL_J1208.9+5441_daily_bin94.fits evtable="EVENTS" scfile=/scratch/kocevski/351367/ft2_4FGL_J1208.9+5441_daily_bin94.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/351367/Model_4FGL_J1208.9+5441_daily_bin94.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/351367/ft1_filtered_4FGL_J1208.9+5441_daily_bin94.fits.....................!
real 49.29
user 47.99
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.2185       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.6665       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.2055       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19846       1.0000         .10000E-03   10000.    
     6 'norm      '    19.267       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .43950E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .50776E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8750       1.0000         .10000E-03   10000.    
    21 'norm      '    3.4641       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.8235       1.0000         .10000E-03   10000.    
    24 'Prefactor '    24.936       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.557       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0208       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0493       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=   5563.287     FROM MIGRAD    STATUS=CONVERGED    216 CALLS     2550 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.236       -.13059E-05** at limit **
   2  norm          4.2187        2.4062        .14055E-05   -.19000E-04
   3  Prefactor     7.6303        3.6291        .76609E-06   -.66444E-03
   4  Prefactor     2.1869        53.666       -.65088E-04    .74691E-04
   5  Prefactor     .10005E-03    1630.4       -.24513E-04** at limit **
   6  norm          19.267        1.4106       -.11345E-05    .49707E-03
   7  Prefactor     .10000E-03    14.452        .24959E-05** at limit **
   8  Prefactor     .10000E-03    36.512       -.16529E-04** at limit **
   9  norm          .10000E-03    4.6318       -.26950E-06** at limit **
  10  Prefactor     .10000E-03    .82903        .29958E-07** at limit **
  11  norm          2.9304        5.1105        .63315E-05   -.38849E-03
  12  Prefactor     .10000E-03    7.7534        .44472E-06** at limit **
  13  Prefactor     .10000E-03    4.2669       -.82556E-07** at limit **
  14  Prefactor     .10000E-03    17.264       -.45220E-05** at limit **
  15  norm          .10000E-03    .63830        .17366E-06** at limit **
  16  Prefactor     .10000E-03    6.8770        .49711E-07** at limit **
  17  Prefactor     .10000E-03    25.012       -.20664E-04** at limit **
  18  norm          .20458E-01    151.19       -.68003E-04   -.10430E-03
  19  Prefactor     .10000E-03    22.957        .89409E-05** at limit **
  20  Prefactor     1.8748        6.1887       -.53165E-05    .11826E-03
  21  norm          3.4638        2.7051        .11616E-05   -.71577E-04
  22  Prefactor     .10000E-03    27.799        .28162E-04** at limit **
  23  norm          1.8239        2.6948        .39018E-06    .22380E-05
  24  Prefactor     24.932        1.2080       -.38564E-06    .98914E-04
  25  Prefactor     .10000E-03    3.0286       -.45641E-06** at limit **
  26  norm          16.558        7.0047       -.13283E-05    .14675E-03
  27  Normalizat    1.0209        .19661        .25746E-05   -.18281E-04
  28  Prefactor     1.0494        .24813       -.35871E-05   -.35684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.21865
  Prefactor  = 7.63031
  Prefactor  = 2.18694
  Prefactor  = 0.000100051
  norm       = 19.2672
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.93044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0204581
  Prefactor  = 0.0001
  Prefactor  = 1.87475
  norm       = 3.46384
  Prefactor  = 0.0001
  norm       = 1.82389
  Prefactor  = 24.9323
  Prefactor  = 0.0001
  norm       = 16.5581
  Normalizat = 1.02089
  Prefactor  = 1.04941
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.287     FROM HESSE     STATUS=OK           593 CALLS     3143 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.355        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.2187        2.4271        .49049E-02   -1.5297    
   3  Prefactor     7.6303        142.74        .36208E-02   -1.5155    
   4  Prefactor     2.1869        55.137        .69253E-02   -1.5412    
   5  Prefactor     .10005E-03    82.654        .20018       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          19.267        33.987        .22812E-02   -1.4830    
   7  Prefactor     .10000E-03    3.6276        .74541E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.321        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.6382        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    .82501        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9304        5.1343        .59280E-02   -1.5366    
  12  Prefactor     .10000E-03    7.7505        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.2390        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.184        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .62379        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.8817        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    24.962        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .20458E-01    4.0150        .48859E-01   -1.5679    
  19  Prefactor     .10000E-03    22.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.8748        6.2707        .76026E-02   -1.5434    
  21  norm          3.4638        2.7301        .54319E-02   -1.5336    
  22  Prefactor     .10000E-03    27.617        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.8239        2.7168        .77295E-02   -1.5438    
  24  Prefactor     24.932        29.938        .20055E-02   -1.4709    
  25  Prefactor     .10000E-03    3.0256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.558        7.0025        .24607E-02   -1.4894    
  27  Normalizat    1.0209        .16843        .43229E-01   -.92334    
  28  Prefactor     1.0494        .20842        .62401E-01   -.91100    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01482e-07
Minuit parameter uncertainties:
  1  0.000272861
  2  2.42716
  3  66.1882
  4  21.984
  5  0.00412705
  6  34.0214
  7  6.67725e-05
  8  0.000178063
  9  8.00976e-07
  10  5.50134e-08
  11  5.13503
  12  4.94763e-06
  13  1.19052e-06
  14  0.000124795
  15  3.40938e-07
  16  2.90301e-06
  17  0.000231923
  18  0.571833
  19  4.55492e-05
  20  6.27285
  21  2.73017
  22  4.88577e-06
  23  2.717
  24  29.9562
  25  2.31953e-06
  26  7.00285
  27  0.168522
  28  0.208579
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  3.409e-07  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.049e+00  2.086e-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.021e+00  1.685e-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: 4.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.18e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/351367/likelihoodResults_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.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) = 5563.29426456
delta logL = -0.007267836545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5563.28698423
delta logL = 1.24884054458e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11879E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0128       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0494       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5563.205     FROM MIGRAD    STATUS=FAILED       144 CALLS      318 TOTAL
                     EDM=   .85E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48286E-02    1.3213        .34748E-02    .12434E-01
   2  alpha         .58398E-12    4.1168        .50000    ** at limit **
   3  Normalizat    1.0138        .49267E-01    .21925E-03    .39409E-05
   4  Prefactor     1.0563        .62708E-01    .27599E-03    .18537E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5563.205     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      496 TOTAL
                     EDM=   .56E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48286E-02    1.3213        .50918E-08    .12434E-01
   2  alpha         .58398E-12    4.1168        .67122E-02** at limit **
   3  Normalizat    1.0138        .49267E-01    .24571E-08    .39409E-05
   4  Prefactor     1.0563        .62708E-01    .31989E-09    .18537E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5563.205     FROM MIGRAD    STATUS=CONVERGED     33 CALLS      529 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48286E-02    .13722E-01    .16126E-03    .51351E-01
   2  alpha         .58398E-12    3.5583        .10124E-01** at limit **
   3  Normalizat    1.0138        .19395        .87698E-05    .38890E-05
   4  Prefactor     1.0563        .24792        .11040E-04    .18537E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0048286
  alpha      = 5.83977e-13
  Normalizat = 1.01379
  Prefactor  = 1.05628
 **********
 **   18 **HESSE 
 **********

 FCN=   5563.205     FROM HESSE     STATUS=OK            25 CALLS      554 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48286E-02    .13701E-01    .32251E-04   -1.5694    
   2  alpha         .58398E-12    3.5581        .20249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.0138        .19431        .17540E-05   -.92570    
   4  Prefactor     1.0563        .24837        .22079E-05   -.90876    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08578e-12
Minuit parameter uncertainties:
  1  0.0137013
  2  2.42077e-06
  3  0.194442
  4  0.248644
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351367': 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) = 5563.20525635
delta logL = 0.0817403753481

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.829e-03  1.370e-02  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  5.840e-13  2.421e-06  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.056e+00  2.486e-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.014e+00  1.944e-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/351367/cmap_HighResolution_263692801_263952001_4FGL_J1208.9+5441_daily_bin94.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-05', job_status='DONE', photon_flux_upper_limit='4.47e-08', time_completed='2021-09-05 01:21:32.889802', job_id='351367', GAL2='1.06', fit_tolerance='1e-08', EG2='1.01', EG='1.02', time_epoch_completed='1630830092.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='8.17e-02', ts2='0.16', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='94' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0107>
Subject: Job 351367: <4FGL_J1208.9+5441_daily_bin94> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin94> 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) <bullet0107>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:56 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:56 2021
Terminated at Sun Sep  5 01:21:33 2021
Results reported at Sun Sep  5 01:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin94 182.226 54.6995 263692801 263952001 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 :                                   776.04 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             295.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            939 sec.

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

