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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1403
RA = 182.226, Dec = 54.6995
tmin = 602985601, tmax = 603244801
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='360033', job_status='RUN', time_executed='2021-09-05 01:35:58.136353', time_epoch_executed='1630830958.14' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360033/ft1_4FGL_J1208.9+5441_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360033/ft2_4FGL_J1208.9+5441_daily_bin1403.fits


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

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

Done.
real 3.01
user 2.80
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360033/ft1_filtered_4FGL_J1208.9+5441_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/360033/ft2_4FGL_J1208.9+5441_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/360033/ltcube_602985601_603244801_4FGL_J1208.9+5441_daily_bin1403.fits outfile=/scratch/kocevski/360033/expmap_602985601_603244801_4FGL_J1208.9+5441_daily_bin1403.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/360033/ltcube_602985601_603244801_4FGL_J1208.9+5441_daily_bin1403.fits
.....................!
real 190.82
user 185.26
sys 5.17

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/360033/ft1_filtered_4FGL_J1208.9+5441_daily_bin1403.fits scfile=/scratch/kocevski/360033/ft2_4FGL_J1208.9+5441_daily_bin1403.fits outfile=/scratch/kocevski/360033/cmap_602985601_603244801_4FGL_J1208.9+5441_daily_bin1403.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360033/ft1_filtered_4FGL_J1208.9+5441_daily_bin1403.fits scfile=/scratch/kocevski/360033/ft2_4FGL_J1208.9+5441_daily_bin1403.fits outfile=/scratch/kocevski/360033/cmap_HighResolution_602985601_603244801_4FGL_J1208.9+5441_daily_bin1403.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    654.93       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10912       1.0000         .10000E-03   10000.    
     8 'Prefactor '    24.725       1.0000         .10000E-03   10000.    
     9 'norm      '    10.001       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3388       1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34863E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.521       1.0000         .10000E-03   10000.    
    15 'norm      '    5.2463       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.9317       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.469       1.0000         .10000E-03   10000.    
    21 'norm      '    1.8921       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.7437       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.7007       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .76824       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.2066       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=   4337.917     FROM MIGRAD    STATUS=CONVERGED    716 CALLS     3476 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     655.53        643.88       -.53216E-05   -.26358E-05
   2  norm          .10000E-03    3.4799        .12112E-05** at limit **
   3  Prefactor     .10000E-03    118.52        .80763E-06** at limit **
   4  Prefactor     .10000E-03    40.368        .15080E-05** at limit **
   5  Prefactor     .10000E-03    129.25        .19119E-06** at limit **
   6  norm          .10000E-03    49.134        .94290E-07** at limit **
   7  Prefactor     .10408E-03    13.727        .29626E-05** at limit **
   8  Prefactor     24.808        42.613       -.49593E-05   -.12154E-03
   9  norm          9.9999        11.122        .11646E-06   -.18482E-04
  10  Prefactor     5.3272        5.6647        .13917E-07   -.58737E-04
  11  norm          .10000E-03    1.4954        .18145E-06** at limit **
  12  Prefactor     .10000E-03    102.46       -.39472E-06** at limit **
  13  Prefactor     .10000E-03    2.7522        .59971E-07** at limit **
  14  Prefactor     15.519        14.780       -.65572E-07   -.22580E-04
  15  norm          5.2469        3.1987       -.12713E-06   -.31053E-03
  16  Prefactor     .10000E-03    54.645        .47693E-06** at limit **
  17  Prefactor     .10000E-03    34.333        .48559E-07** at limit **
  18  norm          2.9302        8.5793        .90362E-06   -.12878E-04
  19  Prefactor     .10000E-03    21.314       -.26691E-06** at limit **
  20  Prefactor     13.468        6.7858        .11610E-06   -.34790E-04
  21  norm          1.8921        1.5831        .11133E-07    .96739E-05
  22  Prefactor     .10000E-03    14.100       -.13356E-06** at limit **
  23  norm          2.7434        2.0849        .51102E-07   -.50619E-06
  24  Prefactor     .10000E-03    73.414       -.98947E-06** at limit **
  25  Prefactor     .10000E-03    2.1756       -.28489E-07** at limit **
  26  norm          1.7006        2.1218        .86659E-08    .70149E-05
  27  Normalizat    .76854        .19391       -.22261E-05   -.20195E-03
  28  Prefactor     1.2064        .23123        .92166E-06   -.24091E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 655.535
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000104083
  Prefactor  = 24.808
  norm       = 9.99991
  Prefactor  = 5.32724
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5192
  norm       = 5.24686
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.93019
  Prefactor  = 0.0001
  Prefactor  = 13.4678
  norm       = 1.89214
  Prefactor  = 0.0001
  norm       = 2.74344
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.70064
  Normalizat = 0.768536
  Prefactor  = 1.20641
 **********
 **   18 **HESSE 
 **********

 FCN=   4337.917     FROM HESSE     STATUS=OK           521 CALLS     3997 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     655.53        642.61        .80843E-04   -1.0530    
   2  norm          .10000E-03    3.4591        .11939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    118.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    40.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    129.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    49.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10408E-03    22.611        .65257E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     24.808        44.383        .80560E-04   -1.4711    
   9  norm          9.9999        11.130        .12671E-03   -1.5075    
  10  Prefactor     5.3272        5.6234        .15331E-03   -1.5246    
  11  norm          .10000E-03    1.5027        .78734E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    103.25        .21325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.7624        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     15.519        14.778        .50832E-03   -1.4920    
  15  norm          5.2469        3.2118        .86629E-04   -1.5250    
  16  Prefactor     .10000E-03    56.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.9302        8.5529        .23724E-03   -1.5366    
  19  Prefactor     .10000E-03    21.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     13.468        6.7887        .10914E-03   -1.4974    
  21  norm          1.8921        1.5846        .72577E-04   -1.5433    
  22  Prefactor     .10000E-03    14.144        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.7434        2.0855        .79939E-04   -1.5377    
  24  Prefactor     .10000E-03    73.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2.1769        .94861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7006        2.1136        .10455E-03   -1.5447    
  27  Normalizat    .76854        .22570        .24860E-03   -1.0125    
  28  Prefactor     1.2064        .27102        .25491E-03   -.86134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.76668e-10
Minuit parameter uncertainties:
  1  650.056
  2  4.61585e-06
  3  4.77244e-05
  4  8.71318e-05
  5  0.000183417
  6  6.3115e-05
  7  0.0192238
  8  44.4424
  9  11.1322
  10  5.62391
  11  3.98832e-06
  12  0.000154547
  13  3.68958e-06
  14  14.7816
  15  3.21193
  16  0.000366411
  17  5.26735e-05
  18  8.55649
  19  1.21939e-06
  20  6.78908
  21  1.5846
  22  1.78527e-05
  23  2.08557
  24  5.9065e-06
  25  2.17015e-06
  26  2.11365
  27  0.225976
  28  0.271332
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  5.247e+00  3.212e+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.206e+00  2.713e-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:  7.685e-01  2.260e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.21e-08 +/- 5.02e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 1.33e-05

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) = 4336.10710391
delta logL = 1.80945303174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4336.10667901
delta logL = 1.80987793412

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.3005       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9520       1.0000          .0000       5.0000    
     3 'Normalizat'    .66824       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2924       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=   4336.107     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      268 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3005        3.0312        .48765E-04   -.23274E-02
   2  alpha         3.9519        .95512        .14670E-01   -.77606E-04
   3  Normalizat    .66816        .22258        .26405E-03    .19806E-04
   4  Prefactor     1.2925        .27532        .24727E-03   -.16276E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.30052
  alpha      = 3.95187
  Normalizat = 0.668158
  Prefactor  = 1.2925
 **********
 **   18 **HESSE 
 **********

 FCN=   4336.107     FROM HESSE     STATUS=OK            23 CALLS      291 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3005        2.7708        .19506E-05   -1.5345    
   2  alpha         3.9519        .87866        .58679E-03    .61965    
   3  Normalizat    .66816        .22285        .10562E-04   -1.0516    
   4  Prefactor     1.2925        .27547        .98908E-05   -.83530    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.09706e-10
Minuit parameter uncertainties:
  1  2.77088
  2  0.908541
  3  0.223148
  4  0.275785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360033': 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) = 4336.10667882
delta logL = 1.80987811975

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.301e+00  2.771e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.952e+00  9.085e-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.293e+00  2.758e-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:  6.682e-01  2.231e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.94
Ra Dec: 182.226 54.700
Photon Index (Free Index): 3.95 +/- 0.91
Photon Flux (Free Index): 1.66e-07 +/- 7.57e-08
Energy Flux (Free Index): 2.53e-05 +/- 1.11e-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/360033/cmap_HighResolution_602985601_603244801_4FGL_J1208.9+5441_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.21e-08', energy_flux2='2.53e-05', photon_flux_error='5.02e-08', dlogl='1.81e+00', energy_flux='2.17e-05', photon_flux2='1.66e-07', job_status='DONE', time_completed='2021-09-05 01:48:32.912881', photon_index_error2='0.91', photon_index2='3.95', ts='4.88', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', energy_flux_error2='1.11e-05', EG='0.77', time_epoch_completed='1630831712.91', return_code='0', job_id='360033', GAL2='1.29', EG2='0.67', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='7.57e-08', ts2='8.94', photon_index='2.51' WHERE bin_id='1403' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:48:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0239>
Subject: Job 360033: <4FGL_J1208.9+5441_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin1403> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 01:32:11 2021
Job was executed on host(s) <bullet0239>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:32:13 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:32:13 2021
Terminated at Sun Sep  5 01:48:35 2021
Results reported at Sun Sep  5 01:48:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin1403 182.226 54.6995 602985601 603244801 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 :                                   641.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             256.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            984 sec.

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

