/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7436
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1007
RA = 182.226, Dec = 54.6995
tmin = 500342401, tmax = 500601601
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='359349', job_status='RUN', time_executed='2021-09-05 01:32:28.491087', time_epoch_executed='1630830748.49' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/359349

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/359349/ft1_4FGL_J1208.9+5441_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/359349/ft2_4FGL_J1208.9+5441_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/359349/ft1_4FGL_J1208.9+5441_daily_bin1007.fits outfile=/scratch/kocevski/359349/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1007.fits ra=182.226 dec=54.6995 rad=12.0 tmin=500342401.0 tmax=500601601.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.82
user 4.58
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/359349/ft1_filtered_4FGL_J1208.9+5441_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/359349/ft2_4FGL_J1208.9+5441_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/359349/ltcube_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.fits outfile=/scratch/kocevski/359349/expmap_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.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/359349/ltcube_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.fits
.....................!
real 191.92
user 187.32
sys 4.05

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/359349/ft1_filtered_4FGL_J1208.9+5441_daily_bin1007.fits scfile=/scratch/kocevski/359349/ft2_4FGL_J1208.9+5441_daily_bin1007.fits outfile=/scratch/kocevski/359349/cmap_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.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/359349/ft1_filtered_4FGL_J1208.9+5441_daily_bin1007.fits scfile=/scratch/kocevski/359349/ft2_4FGL_J1208.9+5441_daily_bin1007.fits outfile=/scratch/kocevski/359349/cmap_HighResolution_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.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/359349/ft1_filtered_4FGL_J1208.9+5441_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/359349/ft2_4FGL_J1208.9+5441_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/359349/Model_4FGL_J1208.9+5441_daily_bin1007.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/359349/ft1_filtered_4FGL_J1208.9+5441_daily_bin1007.fits.....................!
real 49.85
user 47.90
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.5020       1.0000         .10000E-03   10000.    
     3 'Prefactor '    175.11       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12680E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.359       1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.4583       1.0000         .10000E-03   10000.    
    11 'norm      '    4.1424       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11741E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.8183       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.143       1.0000         .10000E-03   10000.    
    19 'Prefactor '    25.554       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.4113       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .11156E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.8470       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0947       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82391       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=   5310.153     FROM MIGRAD    STATUS=CONVERGED    685 CALLS     3561 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    46.522       -.13296E-04** at limit **
   2  norm          5.5017        2.5560        .89100E-07   -.19334E-04
   3  Prefactor     175.09        87.369       -.10659E-04   -.18374E-04
   4  Prefactor     .10000E-03    13.086        .55223E-05** at limit **
   5  Prefactor     .10000E-03    38.812        .10791E-04** at limit **
   6  norm          .10000E-03    41.836        .34108E-05** at limit **
   7  Prefactor     .10001E-03    3.6276        .47759E-06** at limit **
   8  Prefactor     23.354        21.285       -.23199E-05    .54177E-05
   9  norm          .10000E-03    3.6546       -.25227E-06** at limit **
  10  Prefactor     2.4591        3.0479       -.25670E-06   -.31560E-03
  11  norm          4.1445        4.7265        .23290E-05    .11879E-02
  12  Prefactor     .10000E-03    11.010       -.30044E-05** at limit **
  13  Prefactor     .10000E-03    6.3416       -.35413E-05** at limit **
  14  Prefactor     .10000E-03    11.778        .20369E-05** at limit **
  15  norm          1.8180        2.5808       -.48170E-06   -.54922E-03
  16  Prefactor     .10000E-03    6.1405        .32450E-05** at limit **
  17  Prefactor     .10000E-03    28.054        .58177E-07** at limit **
  18  norm          19.143        10.208       -.25363E-06    .41174E-04
  19  Prefactor     25.555        25.167        .69372E-07    .18771E-04
  20  Prefactor     .10000E-03    5.6930       -.23459E-05** at limit **
  21  norm          1.4119        1.8045       -.57165E-07   -.82708E-04
  22  Prefactor     .10000E-03    7.0322       -.16229E-05** at limit **
  23  norm          .10000E-03    1.1938       -.10924E-06** at limit **
  24  Prefactor     5.8389        50.577       -.19935E-04   -.49976E-05
  25  Prefactor     .10000E-03    15.197       -.23931E-05** at limit **
  26  norm          .10000E-03    1.7315       -.38836E-07** at limit **
  27  Normalizat    1.0947        .17664        .17183E-05    .30544E-03
  28  Prefactor     .82391        .20969        .42468E-06    .28207E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.50169
  Prefactor  = 175.091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 23.3543
  norm       = 0.0001
  Prefactor  = 2.45908
  norm       = 4.14453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.81802
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.1432
  Prefactor  = 25.5548
  Prefactor  = 0.0001
  norm       = 1.4119
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.83891
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.09468
  Prefactor  = 0.823915
 **********
 **   18 **HESSE 
 **********

 FCN=   5310.153     FROM HESSE     STATUS=OK           519 CALLS     4080 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    46.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.5017        2.5545        .76905E-04   -1.5239    
   3  Prefactor     175.09        87.467        .15248E-03   -1.3054    
   4  Prefactor     .10000E-03    13.085        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    38.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    41.937        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    38.088        .26293E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.354        21.182        .82878E-04   -1.4741    
   9  norm          .10000E-03    3.6560        .13606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.4591        3.0353        .13580E-03   -1.5394    
  11  norm          4.1445        4.4344        .15137E-03   -1.5301    
  12  Prefactor     .10000E-03    11.021        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    16.059        .32654E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.8180        2.5821        .13028E-03   -1.5438    
  16  Prefactor     .10000E-03    6.1279        .17609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    28.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.143        10.210        .91543E-04   -1.4833    
  19  Prefactor     25.555        25.192        .79245E-04   -1.4696    
  20  Prefactor     .10000E-03    5.7755        .16939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.4119        1.7721        .10689E-03   -1.5470    
  22  Prefactor     .10000E-03    7.0384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.9616        .15460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.8389        50.541        .16609E-03   -1.5225    
  25  Prefactor     .10000E-03    15.839        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.7368        .93644E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0947        .20689        .21213E-03   -.89923    
  28  Prefactor     .82391        .24598        .29928E-03   -.98853    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12551e-09
Minuit parameter uncertainties:
  1  3.91472e-05
  2  2.55452
  3  87.5319
  4  6.05171e-06
  5  7.30635e-06
  6  1.98783e-05
  7  0.000919796
  8  21.189
  9  4.58156e-06
  10  3.0355
  11  4.43472
  12  1.01451e-06
  13  8.06798e-05
  14  1.74929e-05
  15  2.58225
  16  5.80494e-06
  17  1.008e-05
  18  10.2112
  19  25.2029
  20  1.31389e-06
  21  1.77218
  22  5.06496e-06
  23  1.45376e-05
  24  34.3961
  25  2.68177e-06
  26  1.92294e-06
  27  0.207045
  28  0.246313
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.818e+00  2.582e+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:  8.239e-01  2.463e-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.095e+00  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/359349/likelihoodResults_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.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) = 5309.70689764
delta logL = 0.446051787257

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5309.69991362
delta logL = 0.453035801868

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8678       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3637       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84682       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=   5309.700     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      236 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8678        2.2290        .85443E-04    .86127E-03
   2  alpha         3.3637        .96634        .22180E-01    .38614E-04
   3  Normalizat    1.0628        .20192        .21477E-03   -.33295E-04
   4  Prefactor     .84682        .24570        .29551E-03   -.20044E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86782
  alpha      = 3.36368
  Normalizat = 1.06278
  Prefactor  = 0.846816
 **********
 **   18 **HESSE 
 **********

 FCN=   5309.700     FROM HESSE     STATUS=OK            25 CALLS      261 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8678        2.1193        .34177E-05   -1.5435    
   2  alpha         3.3637        .92096        .88718E-03    .35274    
   3  Normalizat    1.0628        .20224        .85909E-05   -.90956    
   4  Prefactor     .84682        .24600        .11820E-04   -.98025    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.70249e-10
Minuit parameter uncertainties:
  1  2.11936
  2  0.946419
  3  0.202384
  4  0.246325
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/359349': 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) = 5309.6999136
delta logL = 0.453035820598

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.868e+00  2.119e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.364e+00  9.464e-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:  8.468e-01  2.463e-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.063e+00  2.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.57
Ra Dec: 182.226 54.700
Photon Index (Free Index): 3.36 +/- 0.95
Photon Flux (Free Index): 5.54e-08 +/- 5.16e-08
Energy Flux (Free Index): 9.66e-06 +/- 9.01e-06

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/359349/cmap_HighResolution_500342401_500601601_4FGL_J1208.9+5441_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.02e-05', comment='SUCCESS', energy_flux2='9.66e-06', dlogl='4.53e-01', photon_flux2='5.54e-08', job_status='DONE', time_completed='2021-09-05 01:46:30.104112', photon_index_error2='0.95', photon_index2='3.36', ts='0.63', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.14e-07', energy_flux_error2='9.01e-06', EG='1.09', time_epoch_completed='1630831590.1', return_code='0', job_id='359349', GAL2='0.85', EG2='1.06', return_code2='0', photon_flux_error2='5.16e-08', ts2='1.57', photon_index='2.51' WHERE bin_id='1007' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:46:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 359349: <4FGL_J1208.9+5441_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1007> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:31:19 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:31:21 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:31:21 2021
Terminated at Sun Sep  5 01:46:30 2021
Results reported at Sun Sep  5 01:46:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1007 182.226 54.6995 500342401 500601601 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 :                                   825.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

