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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin302
RA = 182.226, Dec = 54.6995
tmin = 317606401, tmax = 317865601
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='352977', job_status='RUN', time_executed='2021-09-05 01:11:18.674728', time_epoch_executed='1630829478.67' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352977/ft1_4FGL_J1208.9+5441_daily_bin302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352977/ft2_4FGL_J1208.9+5441_daily_bin302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352977/ft1_4FGL_J1208.9+5441_daily_bin302.fits outfile=/scratch/kocevski/352977/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin302.fits ra=182.226 dec=54.6995 rad=12.0 tmin=317606401.0 tmax=317865601.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.40
user 3.17
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352977/ft1_filtered_4FGL_J1208.9+5441_daily_bin302.fits evtable="EVENTS" scfile=/scratch/kocevski/352977/ft2_4FGL_J1208.9+5441_daily_bin302.fits sctable="SC_DATA" expcube=/scratch/kocevski/352977/ltcube_317606401_317865601_4FGL_J1208.9+5441_daily_bin302.fits outfile=/scratch/kocevski/352977/expmap_317606401_317865601_4FGL_J1208.9+5441_daily_bin302.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/352977/ltcube_317606401_317865601_4FGL_J1208.9+5441_daily_bin302.fits
.....................!
real 190.93
user 185.64
sys 4.92

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/352977/ft1_filtered_4FGL_J1208.9+5441_daily_bin302.fits scfile=/scratch/kocevski/352977/ft2_4FGL_J1208.9+5441_daily_bin302.fits outfile=/scratch/kocevski/352977/cmap_317606401_317865601_4FGL_J1208.9+5441_daily_bin302.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352977/ft1_filtered_4FGL_J1208.9+5441_daily_bin302.fits scfile=/scratch/kocevski/352977/ft2_4FGL_J1208.9+5441_daily_bin302.fits outfile=/scratch/kocevski/352977/cmap_HighResolution_317606401_317865601_4FGL_J1208.9+5441_daily_bin302.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.61
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    120.37       1.0000         .10000E-03   10000.    
     2 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.531       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    24.343       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.372       1.0000         .10000E-03   10000.    
     9 'norm      '    4.5641       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .13052E-02   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1198       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.241       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .44657       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.3398       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.358       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.0908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .20953E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .93100       1.0000         .10000E-03   10000.    
    22 'Prefactor '    11.253       1.0000         .10000E-03   10000.    
    23 'norm      '    .23912E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.4195       1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.7326       1.0000         .10000E-03   10000.    
    26 'norm      '    1.6611       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0876       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .80882       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=   6221.414     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     3617 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     120.37        128.02        .35339E-06   -.85726E-05
   2  norm          .10000E-03    .77992        .34982E-07** at limit **
   3  Prefactor     35.536        43.277        .49978E-06   -.14512E-05
   4  Prefactor     2.4237        21.826        .16444E-05   -.39847E-05
   5  Prefactor     24.340        59.205        .17155E-06   -.65689E-05
   6  norm          .10000E-03    15.510        .57859E-07** at limit **
   7  Prefactor     .10000E-03    4.0702        .16266E-06** at limit **
   8  Prefactor     10.370        15.408       -.81421E-07   -.20284E-04
   9  norm          4.5593        10.070       -.45289E-06   -.21225E-04
  10  Prefactor     .10041E-03    1.7315        .12945E-05** at limit **
  11  norm          1.1263        5.2582        .31349E-05    .40484E-03
  12  Prefactor     19.254        17.529       -.17992E-05   -.55346E-03
  13  Prefactor     .46616        5.9078       -.18722E-05    .38617E-03
  14  Prefactor     .10000E-03    14.868       -.23212E-06** at limit **
  15  norm          5.3400        2.2586        .25030E-07   -.53773E-03
  16  Prefactor     13.359        14.512        .11165E-06    .15346E-04
  17  Prefactor     .10000E-03    14.854       -.16107E-06** at limit **
  18  norm          5.0913        5.2858        .19439E-06   -.16268E-03
  19  Prefactor     .10000E-03    4.2125        .30361E-07** at limit **
  20  Prefactor     .10004E-03    5.4069        .17790E-05** at limit **
  21  norm          .93081        1.0375       -.38102E-07   -.53677E-03
  22  Prefactor     11.253        12.714        .86895E-07   -.42328E-04
  23  norm          .10000E-03    .99251        .16184E-06** at limit **
  24  Prefactor     5.3724        60.636       -.12904E-05   -.74893E-04
  25  Prefactor     5.7290        9.4039        .66131E-06   -.33209E-03
  26  norm          1.6613        4.7931        .14972E-05   -.37175E-04
  27  Normalizat    1.0874        .15903       -.20775E-05   -.62454E-03
  28  Prefactor     .80891        .19135        .88029E-06   -.51072E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 120.368
  norm       = 0.0001
  Prefactor  = 35.536
  Prefactor  = 2.42369
  Prefactor  = 24.3403
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.3703
  norm       = 4.55932
  Prefactor  = 0.000100407
  norm       = 1.12627
  Prefactor  = 19.2536
  Prefactor  = 0.46616
  Prefactor  = 0.0001
  norm       = 5.33999
  Prefactor  = 13.3591
  Prefactor  = 0.0001
  norm       = 5.09127
  Prefactor  = 0.0001
  Prefactor  = 0.000100038
  norm       = 0.93081
  Prefactor  = 11.2534
  norm       = 0.000100001
  Prefactor  = 5.37239
  Prefactor  = 5.72902
  norm       = 1.6613
  Normalizat = 1.08742
  Prefactor  = 0.808909
 **********
 **   18 **HESSE 
 **********

 FCN=   6221.414     FROM HESSE     STATUS=OK           531 CALLS     4148 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     120.37        127.85        .36680E-04   -1.3509    
   2  norm          .10000E-03    .78581        .67898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     35.536        43.319        .67231E-04   -1.4515    
   4  Prefactor     2.4237        21.709        .26306E-03   -1.5397    
   5  Prefactor     24.340        59.268        .81189E-04   -1.4721    
   6  norm          .10000E-03    15.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.1229        .15530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     10.370        15.385        .12441E-03   -1.5064    
   9  norm          4.5593        10.017        .18843E-03   -1.5281    
  10  Prefactor     .10041E-03    26.127        .17264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1263        5.5232        .28579E-03   -1.5496    
  12  Prefactor     19.254        16.864        .91308E-04   -1.4830    
  13  Prefactor     .46616        28.122        .29435E-02   -1.5571    
  14  Prefactor     .10000E-03    14.954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.3400        2.2611        .73351E-04   -1.5246    
  16  Prefactor     13.359        14.509        .10959E-03   -1.4977    
  17  Prefactor     .10000E-03    14.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.0913        5.2789        .17785E-03   -1.5257    
  19  Prefactor     .10000E-03    4.2145        .15810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10004E-03    15.773        .32210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .93081        1.0310        .81591E-04   -1.5515    
  22  Prefactor     11.253        12.712        .11943E-03   -1.5037    
  23  norm          .10000E-03    7.4864        .15128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.3724        61.146        .17261E-03   -1.5244    
  25  Prefactor     5.7290        9.1072        .16776E-03   -1.5229    
  26  norm          1.6613        4.7670        .27981E-03   -1.5450    
  27  Normalizat    1.0874        .18160        .20446E-03   -.90157    
  28  Prefactor     .80891        .22141        .29415E-03   -.99401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94777e-08
Minuit parameter uncertainties:
  1  128.144
  2  1.06126e-07
  3  43.3572
  4  14.5141
  5  59.412
  6  1.55328e-05
  7  6.01363e-06
  8  15.3912
  9  10.0209
  10  0.00652554
  11  4.98875
  12  16.8681
  13  7.24416
  14  1.88414e-05
  15  2.26113
  16  14.5128
  17  2.57791e-05
  18  5.27938
  19  1.0548e-06
  20  0.00154191
  21  1.03104
  22  12.7147
  23  0.000162959
  24  36.2957
  25  9.10938
  26  4.76809
  27  0.181709
  28  0.221657
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  5.340e+00  2.261e+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.089e-01  2.217e-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.087e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.58
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 8.36e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 2.21e-05 +/- 9.35e-06

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) = 6220.41751299
delta logL = 0.996748196983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6220.34685787
delta logL = 1.06740332303

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.3479       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8565       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1331       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77238       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.

 FCN=   6220.347     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      210 TOTAL
                     EDM=   .74E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.3479        2.0661        .48293E-02    .80310E-03
   2  alpha         1.8565        .32802        .24654       -.41618E-04
   3  Normalizat    1.1331        .14950        .36787E-01    .32276E-05
   4  Prefactor     .77240        .18783        .67856E-01    .21231E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.34794
  alpha      = 1.85649
  Normalizat = 1.13313
  Prefactor  = 0.772403
 **********
 **   18 **HESSE 
 **********

 FCN=   6220.347     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.3479        2.5241        .73231E-04   -1.5291    
   2  alpha         1.8565        .43040        .10142E-01   -.26034    
   3  Normalizat    1.1331        .17457        .20092E-03   -.88695    
   4  Prefactor     .77240        .21766        .30022E-03   -1.0075    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.76094e-10
Minuit parameter uncertainties:
  1  2.52417
  2  0.432713
  3  0.174663
  4  0.217903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352977': 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) = 6220.34685786
delta logL = 1.0674033279

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  4.348e+00  2.524e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  1.856e+00  4.327e-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:  7.724e-01  2.179e-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.133e+00  1.747e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.73
Ra Dec: 182.226 54.700
Photon Index (Free Index): 1.86 +/- 0.43
Photon Flux (Free Index): 5.07e-08 +/- 3.27e-08
Energy Flux (Free Index): 3.07e-05 +/- 1.79e-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/352977/cmap_HighResolution_317606401_317865601_4FGL_J1208.9+5441_daily_bin302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.36e-08', energy_flux2='3.07e-05', photon_flux_error='3.54e-08', dlogl='1.07e+00', energy_flux='2.21e-05', photon_flux2='5.07e-08', job_status='DONE', time_completed='2021-09-05 01:25:03.098181', photon_index_error2='0.43', photon_index2='1.86', ts='12.58', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.79e-05', EG='1.09', time_epoch_completed='1630830303.1', return_code='0', job_id='352977', GAL2='0.77', EG2='1.13', return_code2='0', energy_flux_error='9.35e-06', photon_flux_error2='3.27e-08', ts2='14.73', photon_index='2.51' WHERE bin_id='302' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:25:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 352977: <4FGL_J1208.9+5441_daily_bin302> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin302 182.226 54.6995 317606401 317865601 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 :                                   813.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             309.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   838 sec.
    Turnaround time :                            840 sec.

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

