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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin272
RA = 182.226, Dec = 54.6995
tmin = 309830401, tmax = 310089601
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='352937', job_status='RUN', time_executed='2021-09-05 01:11:17.522840', time_epoch_executed='1630829477.52' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/352937

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/352937/ft1_4FGL_J1208.9+5441_daily_bin272.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/352937/ft2_4FGL_J1208.9+5441_daily_bin272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/352937/ft1_4FGL_J1208.9+5441_daily_bin272.fits outfile=/scratch/kocevski/352937/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin272.fits ra=182.226 dec=54.6995 rad=12.0 tmin=309830401.0 tmax=310089601.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.49
user 3.25
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/352937/ft1_filtered_4FGL_J1208.9+5441_daily_bin272.fits evtable="EVENTS" scfile=/scratch/kocevski/352937/ft2_4FGL_J1208.9+5441_daily_bin272.fits sctable="SC_DATA" expcube=/scratch/kocevski/352937/ltcube_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.fits outfile=/scratch/kocevski/352937/expmap_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.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/352937/ltcube_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.fits
.....................!
real 190.14
user 185.53
sys 4.26

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/352937/ft1_filtered_4FGL_J1208.9+5441_daily_bin272.fits scfile=/scratch/kocevski/352937/ft2_4FGL_J1208.9+5441_daily_bin272.fits outfile=/scratch/kocevski/352937/cmap_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/352937/ft1_filtered_4FGL_J1208.9+5441_daily_bin272.fits scfile=/scratch/kocevski/352937/ft2_4FGL_J1208.9+5441_daily_bin272.fits outfile=/scratch/kocevski/352937/cmap_HighResolution_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.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.39
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.940       1.0000         .10000E-03   10000.    
     2 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38475E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.717       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    18.894       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.7559       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5529       1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.637       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.7828       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.848       1.0000         .10000E-03   10000.    
    15 'norm      '    2.8498       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10604E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .15950E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    40.724       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.1570       1.0000         .10000E-03   10000.    
    21 'norm      '    1.9381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.133       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4954       1.0000         .10000E-03   10000.    
    24 'Prefactor '    17.576       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    .91017       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .94835       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=   5850.539     FROM MIGRAD    STATUS=CONVERGED    690 CALLS     3491 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.954        86.581        .39272E-06    .85724E-05
   2  norm          .10000E-03    1.2533       -.49411E-06** at limit **
   3  Prefactor     .10000E-03    66.225       -.42887E-05** at limit **
   4  Prefactor     .10000E-03    108.72        .33896E-05** at limit **
   5  Prefactor     31.689        51.558        .14872E-05    .17807E-04
   6  norm          .10000E-03    17.105       -.10266E-05** at limit **
   7  Prefactor     .10000E-03    6.7214       -.34266E-06** at limit **
   8  Prefactor     .10000E-03    9.3819       -.40181E-06** at limit **
   9  norm          18.893        11.875       -.89582E-08   -.25979E-05
  10  Prefactor     3.7554        3.1819       -.15173E-06    .67677E-04
  11  norm          2.5528        3.0186       -.17546E-06   -.54821E-05
  12  Prefactor     20.636        19.636       -.10645E-06    .30940E-04
  13  Prefactor     5.7835        5.8443        .13241E-06   -.37920E-04
  14  Prefactor     11.849        16.602        .32978E-06   -.20866E-04
  15  norm          2.8497        2.1987       -.17906E-06    .12555E-03
  16  Prefactor     .10000E-03    10.389        .25203E-06** at limit **
  17  Prefactor     .10000E-03    87.020        .18009E-05** at limit **
  18  norm          .10000E-03    20.150       -.63633E-05** at limit **
  19  Prefactor     40.721        22.218        .19699E-06    .14655E-03
  20  Prefactor     3.1575        6.8554       -.14338E-05    .66411E-04
  21  norm          1.9382        2.4492        .14308E-06    .88632E-04
  22  Prefactor     13.130        19.937       -.47512E-06    .27834E-04
  23  norm          2.4953        1.6128       -.13043E-07    .42279E-04
  24  Prefactor     17.567        26.442        .92488E-07    .52956E-05
  25  Prefactor     .10000E-03    4.8563       -.44060E-07** at limit **
  26  norm          .10000E-03    3.6075       -.23505E-06** at limit **
  27  Normalizat    .91017        .15653        .10349E-05    .15699E-04
  28  Prefactor     .94845        .19187        .59603E-06    .11221E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.9541
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 31.6888
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.8933
  Prefactor  = 3.7554
  norm       = 2.55282
  Prefactor  = 20.6359
  Prefactor  = 5.78354
  Prefactor  = 11.8493
  norm       = 2.84968
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.7213
  Prefactor  = 3.15754
  norm       = 1.93823
  Prefactor  = 13.1297
  norm       = 2.49529
  Prefactor  = 17.567
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.910169
  Prefactor  = 0.948448
 **********
 **   18 **HESSE 
 **********

 FCN=   5850.539     FROM HESSE     STATUS=OK           519 CALLS     4010 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.954        86.470        .60480E-04   -1.4381    
   2  norm          .10000E-03    1.2868        .83760E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    67.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    111.30        .39084E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.689        51.762        .71147E-04   -1.4582    
   6  norm          .10000E-03    17.152        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.0591        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    9.4064        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          18.893        11.879        .92143E-04   -1.4838    
  10  Prefactor     3.7554        3.1686        .11194E-03   -1.5320    
  11  norm          2.5528        3.0037        .13853E-03   -1.5388    
  12  Prefactor     20.636        19.569        .88169E-04   -1.4799    
  13  Prefactor     5.7835        5.8375        .16702E-03   -1.5227    
  14  Prefactor     11.849        16.572        .11638E-03   -1.5019    
  15  norm          2.8497        2.1933        .94257E-04   -1.5370    
  16  Prefactor     .10000E-03    10.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    87.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    19.802        .30290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     40.721        21.305        .62814E-04   -1.4431    
  20  Prefactor     3.1575        6.7971        .22812E-03   -1.5353    
  21  norm          1.9382        2.4129        .11075E-03   -1.5430    
  22  Prefactor     13.130        19.936        .11053E-03   -1.4983    
  23  norm          2.4953        1.6129        .75934E-04   -1.5392    
  24  Prefactor     17.567        26.447        .95534E-04   -1.4869    
  25  Prefactor     .10000E-03    4.8972        .16455E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    3.7153        .28389E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .91017        .18080        .21756E-03   -.96104    
  28  Prefactor     .94845        .22417        .27302E-03   -.94468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62066e-10
Minuit parameter uncertainties:
  1  86.718
  2  3.81004e-06
  3  0.000260867
  4  0.00132101
  5  51.835
  6  3.2002e-05
  7  5.21576e-05
  8  2.10605e-05
  9  11.8801
  10  3.16874
  11  3.00385
  12  19.5752
  13  5.83808
  14  16.5786
  15  2.19335
  16  1.84059e-05
  17  0.000114525
  18  1.72243e-05
  19  21.3094
  20  6.79877
  21  2.41301
  22  19.9457
  23  1.61293
  24  26.4649
  25  1.58921e-06
  26  1.13485e-05
  27  0.180921
  28  0.224387
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  2.850e+00  2.193e+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:  9.484e-01  2.244e-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:  9.102e-01  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.40
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 4.46e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 1.18e-05 +/- 9.07e-06

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

Saving results to:
/scratch/kocevski/352937/likelihoodResults_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.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) = 5849.99204638
delta logL = 0.546797678388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5849.55109698
delta logL = 0.987747074604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .18034       1.0000         .10000E-03   10000.    
     2 'alpha     '    .68869       1.0000          .0000       5.0000    
     3 'Normalizat'    .94517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93663       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=   5849.551     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      215 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .17953        .23317        .71066E-02   -.58348E-03
   2  alpha         .68742        .37666        .27622       -.41198E-04
   3  Normalizat    .94517        .14877        .45476E-01   -.67185E-06
   4  Prefactor     .93661        .19134        .45470E-01    .24694E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.179526
  alpha      = 0.687418
  Normalizat = 0.945169
  Prefactor  = 0.936613
 **********
 **   18 **HESSE 
 **********

 FCN=   5849.551     FROM HESSE     STATUS=OK            33 CALLS      248 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .17953        1.1642        .30357E-03   -1.5623    
   2  alpha         .68742        1.2801        .12168E-02   -.81108    
   3  Normalizat    .94517        .17380        .21389E-03   -.94891    
   4  Prefactor     .93661        .22421        .27474E-03   -.94873    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84976e-11
Minuit parameter uncertainties:
  1  0.914129
  2  1.44326
  3  0.173908
  4  0.224433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/352937': 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) = 5849.55109618
delta logL = 0.987747877477

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.795e-01  9.141e-01  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  6.874e-01  1.443e+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:  9.366e-01  2.244e-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:  9.452e-01  1.739e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 182.226 54.700
Photon Index (Free Index): 0.69 +/- 1.44
Photon Flux (Free Index): 4.85e-09 +/- 1.03e-08
Energy Flux (Free Index): 5.63e-05 +/- 9.44e-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/352937/cmap_HighResolution_309830401_310089601_4FGL_J1208.9+5441_daily_bin272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.04e-05', comment='SUCCESS', photon_flux='4.46e-08', energy_flux2='5.63e-05', photon_flux_error='3.43e-08', dlogl='9.88e-01', energy_flux='1.18e-05', photon_flux2='4.85e-09', job_status='DONE', time_completed='2021-09-05 01:25:53.496998', photon_index_error2='1.44', photon_index2='0.69', ts='2.40', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='9.44e-05', EG='0.91', time_epoch_completed='1630830353.5', return_code='0', job_id='352937', GAL2='0.94', EG2='0.95', return_code2='0', energy_flux_error='9.07e-06', photon_flux_error2='1.03e-08', ts2='4.34', photon_index='2.51' WHERE bin_id='272' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:25:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 352937: <4FGL_J1208.9+5441_daily_bin272> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin272 182.226 54.6995 309830401 310089601 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 :                                   862.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             292.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   893 sec.
    Turnaround time :                            894 sec.

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

