/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 1 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 = 7411
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1208.9+5441_daily_bin415
RA = 182.226, Dec = 54.6995
tmin = 346896001, tmax = 347155201
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='354276', job_status='RUN', time_executed='2021-09-05 01:15:40.170445', time_epoch_executed='1630829740.17' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='415'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/354276

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/354276/ft1_4FGL_J1208.9+5441_daily_bin415.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/354276/ft2_4FGL_J1208.9+5441_daily_bin415.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/354276/ft1_4FGL_J1208.9+5441_daily_bin415.fits outfile=/scratch/kocevski/354276/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin415.fits ra=182.226 dec=54.6995 rad=12.0 tmin=346896001.0 tmax=347155201.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.50
user 3.26
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/354276/ft1_filtered_4FGL_J1208.9+5441_daily_bin415.fits" evtable="EVENTS" scfile=/scratch/kocevski/354276/ft2_4FGL_J1208.9+5441_daily_bin415.fits sctable="SC_DATA" outfile=/scratch/kocevski/354276/ltcube_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.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/354276/ft2_4FGL_J1208.9+5441_daily_bin415.fits
.....................!
real 12.39
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/354276/ft1_filtered_4FGL_J1208.9+5441_daily_bin415.fits evtable="EVENTS" scfile=/scratch/kocevski/354276/ft2_4FGL_J1208.9+5441_daily_bin415.fits sctable="SC_DATA" expcube=/scratch/kocevski/354276/ltcube_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.fits outfile=/scratch/kocevski/354276/expmap_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.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/354276/ltcube_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.fits
.....................!
real 191.67
user 186.70
sys 4.55

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/354276/ft1_filtered_4FGL_J1208.9+5441_daily_bin415.fits scfile=/scratch/kocevski/354276/ft2_4FGL_J1208.9+5441_daily_bin415.fits outfile=/scratch/kocevski/354276/cmap_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/354276/ft1_filtered_4FGL_J1208.9+5441_daily_bin415.fits scfile=/scratch/kocevski/354276/ft2_4FGL_J1208.9+5441_daily_bin415.fits outfile=/scratch/kocevski/354276/cmap_HighResolution_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.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.57
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22436E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.1011       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .16418E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10537E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10162E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10766E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.6662       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.1685       1.0000         .10000E-03   10000.    
    11 'norm      '    .15842E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.3564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10651E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .26960       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    12.216       1.0000         .10000E-03   10000.    
    18 'norm      '    .60683       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .60938E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .64975E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7467       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.8933       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    5.8800       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .83294       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1759       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=   6099.461     FROM MIGRAD    STATUS=CONVERGED    735 CALLS     3064 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    94.870       -.42646E-05** at limit **
   2  norm          6.1002        2.6523        .11181E-06    .49202E-03
   3  Prefactor     .10000E-03    48.249        .60999E-05** at limit **
   4  Prefactor     .10000E-03    37.851       -.35107E-05** at limit **
   5  Prefactor     .10000E-03    41.328       -.11389E-05** at limit **
   6  norm          .10000E-03    25.708        .12375E-05** at limit **
   7  Prefactor     .10000E-03    2.5996       -.28827E-07** at limit **
   8  Prefactor     .10000E-03    16.594       -.34847E-06** at limit **
   9  norm          2.6659        9.3916        .58087E-05    .36249E-03
  10  Prefactor     3.1683        3.0718        .60210E-07    .11857E-03
  11  norm          .10000E-03    2.6264       -.68411E-06** at limit **
  12  Prefactor     .10000E-03    6.5168       -.23027E-06** at limit **
  13  Prefactor     6.3512        6.1971       -.41054E-06   -.17715E-04
  14  Prefactor     .10000E-03    6.1722       -.11715E-06** at limit **
  15  norm          .26999        2.0899        .59953E-06    .15095E-03
  16  Prefactor     .10000E-03    4.9307       -.59298E-07** at limit **
  17  Prefactor     12.084        41.113        .44295E-05    .17675E-05
  18  norm          .60649        4.3079       -.25061E-08    .33470E-03
  19  Prefactor     .10037E-03    20.220       -.39363E-05** at limit **
  20  Prefactor     .10003E-03    3.8531        .16625E-05** at limit **
  21  norm          2.7485        1.8174        .67886E-07   -.32580E-03
  22  Prefactor     .10000E-03    16.804       -.43699E-07** at limit **
  23  norm          2.8936        1.7804        .31839E-07    .12663E-04
  24  Prefactor     .10000E-03    14.013        .53155E-06** at limit **
  25  Prefactor     .10000E-03    4.4576       -.23501E-07** at limit **
  26  norm          5.8797        5.0520       -.13379E-06    .36836E-04
  27  Normalizat    .83323        .14992        .66577E-06    .13070E-03
  28  Prefactor     1.1756        .19126       -.11711E-05    .13214E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.10022
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.66591
  Prefactor  = 3.16826
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.35119
  Prefactor  = 0.0001
  norm       = 0.269993
  Prefactor  = 0.0001
  Prefactor  = 12.0839
  norm       = 0.60649
  Prefactor  = 0.000100371
  Prefactor  = 0.00010003
  norm       = 2.74855
  Prefactor  = 0.0001
  norm       = 2.89358
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.87973
  Normalizat = 0.833227
  Prefactor  = 1.17557
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.461     FROM HESSE     STATUS=OK           521 CALLS     3585 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.1002        2.6516        .81278E-04   -1.5214    
   3  Prefactor     .10000E-03    48.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    38.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    41.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    25.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.6140        .12294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.6659        9.6487        .12480E-02   -1.5381    
  10  Prefactor     3.1683        3.0631        .12807E-03   -1.5352    
  11  norm          .10000E-03    6.5534        .23415E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    6.5274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.3512        6.0007        .15920E-03   -1.5204    
  14  Prefactor     .10000E-03    6.1748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .26999        2.1181        .21265E-03   -1.5604    
  16  Prefactor     .10000E-03    4.9354        .16937E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     12.084        41.172        .11461E-03   -1.5013    
  18  norm          .60649        11.593        .27528E-02   -1.5552    
  19  Prefactor     .10037E-03    94.268        .54837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    16.084        .26310E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7485        1.7845        .81445E-04   -1.5376    
  22  Prefactor     .10000E-03    17.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.8936        1.7791        .79328E-04   -1.5368    
  24  Prefactor     .10000E-03    14.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    4.4803        .16099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          5.8797        5.0506        .15722E-03   -1.5223    
  27  Normalizat    .83323        .17553        .22632E-03   -.98848    
  28  Prefactor     1.1756        .22667        .25300E-03   -.87087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.64853e-09
Minuit parameter uncertainties:
  1  4.94615e-05
  2  2.65161
  3  2.71295e-05
  4  6.33469e-05
  5  1.00405e-05
  6  7.34194e-06
  7  2.93091e-07
  8  1.77424e-06
  9  9.65436
  10  3.06322
  11  4.23117e-05
  12  3.01369e-07
  13  6.00124
  14  1.84645e-05
  15  1.51224
  16  5.48109e-06
  17  41.2695
  18  5.30407
  19  0.0118449
  20  0.00138277
  21  1.78454
  22  2.08403e-05
  23  1.77911
  24  3.6724e-06
  25  5.72508e-06
  26  5.05092
  27  0.175646
  28  0.226856
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.700e-01  1.512e+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.176e+00  2.269e-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.332e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.04
Ra Dec: 182.226 54.700
Photon Flux Upper Limit: 7.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.92e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/354276/likelihoodResults_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.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) = 6099.44103633
delta logL = 0.0200094734291

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6099.43803883
delta logL = 0.0230069730505

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .37772       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1274       1.0000          .0000       5.0000    
     3 'Normalizat'    .83420       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1732       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=   6099.438     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      217 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .37865        10.491         .0000        .17576E-02
   2  alpha         2.1284        3.5640         .0000       -.28359E-04
   3  Normalizat    .83443        .14393         .0000        .50859E-04
   4  Prefactor     1.1729        .19434         .0000       -.91294E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.378648
  alpha      = 2.12836
  Normalizat = 0.834433
  Prefactor  = 1.17294
 **********
 **   18 **HESSE 
 **********

 FCN=   6099.438     FROM HESSE     STATUS=OK            33 CALLS      250 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .37865        1.4375        .17839E-03   -1.5585    
   2  alpha         2.1284        1.4402        .39473E-01   -.14921    
   3  Normalizat    .83443        .17116        .22616E-03   -.98804    
   4  Prefactor     1.1729        .22467        .25324E-03   -.87168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5286e-11
Minuit parameter uncertainties:
  1  1.43765
  2  1.53736
  3  0.171275
  4  0.224849
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/354276': 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) = 6099.43803743
delta logL = 0.0230083733359

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.786e-01  1.438e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.128e+00  1.537e+00  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.173e+00  2.248e-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.344e-01  1.713e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.04
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/354276/cmap_HighResolution_346896001_347155201_4FGL_J1208.9+5441_daily_bin415.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.92e-05', job_status='DONE', photon_flux_upper_limit='7.27e-08', time_completed='2021-09-05 01:29:49.670325', job_id='354276', GAL2='1.17', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630830589.67', return_code2='0', ts='0.04', comment='SUCCESS', return_code='0', GAL='1.18', dlogl='2.30e-02', ts2='0.08', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='415' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:29:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 354276: <4FGL_J1208.9+5441_daily_bin415> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin415> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sun Sep  5 01:15:25 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:15:27 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:15:27 2021
Terminated at Sun Sep  5 01:29:50 2021
Results reported at Sun Sep  5 01:29:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin415 182.226 54.6995 346896001 347155201 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 :                                   845.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             317.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            865 sec.

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

