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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin3
RA = 182.226, Dec = 54.6995
tmin = 240105601, tmax = 240364801
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='351168', job_status='RUN', time_executed='2021-09-05 01:09:37.736939', time_epoch_executed='1630829377.74' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='3'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/351168

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/351168/ft1_4FGL_J1208.9+5441_daily_bin3.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/351168/ft2_4FGL_J1208.9+5441_daily_bin3.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/351168/ft1_4FGL_J1208.9+5441_daily_bin3.fits outfile=/scratch/kocevski/351168/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin3.fits ra=182.226 dec=54.6995 rad=12.0 tmin=240105601.0 tmax=240364801.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 1.42
user 1.26
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/351168/ft1_filtered_4FGL_J1208.9+5441_daily_bin3.fits evtable="EVENTS" scfile=/scratch/kocevski/351168/ft2_4FGL_J1208.9+5441_daily_bin3.fits sctable="SC_DATA" expcube=/scratch/kocevski/351168/ltcube_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.fits outfile=/scratch/kocevski/351168/expmap_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.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/351168/ltcube_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.fits
.....................!
real 189.31
user 184.74
sys 4.24

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/351168/ft1_filtered_4FGL_J1208.9+5441_daily_bin3.fits scfile=/scratch/kocevski/351168/ft2_4FGL_J1208.9+5441_daily_bin3.fits outfile=/scratch/kocevski/351168/cmap_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/351168/ft1_filtered_4FGL_J1208.9+5441_daily_bin3.fits scfile=/scratch/kocevski/351168/ft2_4FGL_J1208.9+5441_daily_bin3.fits outfile=/scratch/kocevski/351168/cmap_HighResolution_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    70.130       1.0000         .10000E-03   10000.    
     2 'norm      '    3.0686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    76.319       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.198       1.0000         .10000E-03   10000.    
     6 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1734       1.0000         .10000E-03   10000.    
    11 'norm      '    .62131       1.0000         .10000E-03   10000.    
    12 'Prefactor '    49.564       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.403       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.5841       1.0000         .10000E-03   10000.    
    16 'Prefactor '    31.818       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.767       1.0000         .10000E-03   10000.    
    18 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.476       1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.387       1.0000         .10000E-03   10000.    
    21 'norm      '    .48569       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    3.1836       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8631       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0190       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .72482       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=   3628.043     FROM MIGRAD    STATUS=CONVERGED    680 CALLS     3639 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     70.269        164.81        .16232E-03    .16666E-04
   2  norm          3.0681        2.9172       -.32865E-05   -.22738E-03
   3  Prefactor     76.336        115.21        .18947E-04    .50464E-04
   4  Prefactor     .10001E-03    56.912       -.38161E-05** at limit **
   5  Prefactor     19.972        158.80       -.47433E-03    .39626E-04
   6  norm          .10000E-03    21.588        .91156E-05** at limit **
   7  Prefactor     .10000E-03    10.863        .13980E-06** at limit **
   8  Prefactor     .10000E-03    24.350       -.55383E-05** at limit **
   9  norm          .10000E-03    7.0062       -.77374E-08** at limit **
  10  Prefactor     1.1735        3.9804        .15486E-06   -.38310E-03
  11  norm          .61419        6.8940       -.36282E-05    .23059E-03
  12  Prefactor     49.560        35.844       -.32149E-05    .41367E-04
  13  Prefactor     13.405        12.981       -.70073E-06    .44863E-03
  14  Prefactor     .10000E-03    43.127        .16448E-04** at limit **
  15  norm          3.5841        3.5823       -.78948E-06    .26723E-03
  16  Prefactor     31.822        25.791        .39744E-06    .11710E-03
  17  Prefactor     56.781        70.765        .15841E-04    .61227E-04
  18  norm          .10000E-03    12.295       -.17398E-05** at limit **
  19  Prefactor     32.475        27.546       -.12491E-05    .94149E-04
  20  Prefactor     15.386        10.174       -.10856E-06    .50665E-03
  21  norm          .48432        2.9604       -.19192E-05   -.23702E-03
  22  Prefactor     .10000E-03    31.105       -.79313E-05** at limit **
  23  norm          3.1834        3.3283       -.83932E-06   -.87356E-04
  24  Prefactor     .10000E-03    32.312       -.56215E-05** at limit **
  25  Prefactor     .10000E-03    3.6354       -.16054E-06** at limit **
  26  norm          2.8630        5.9314        .85173E-07   -.32058E-03
  27  Normalizat    1.0189        .21800       -.38105E-06    .78941E-03
  28  Prefactor     .72495        .24521        .13390E-04    .14733E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 70.2693
  norm       = 3.06805
  Prefactor  = 76.3364
  Prefactor  = 0.000100009
  Prefactor  = 19.9724
  norm       = 0.000100002
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.17354
  norm       = 0.614188
  Prefactor  = 49.56
  Prefactor  = 13.4047
  Prefactor  = 0.000100002
  norm       = 3.5841
  Prefactor  = 31.822
  Prefactor  = 56.7806
  norm       = 0.0001
  Prefactor  = 32.4745
  Prefactor  = 15.3863
  norm       = 0.484316
  Prefactor  = 0.0001
  norm       = 3.18343
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.863
  Normalizat = 1.01893
  Prefactor  = 0.724952
 **********
 **   18 **HESSE 
 **********

 FCN=   3628.043     FROM HESSE     STATUS=OK           517 CALLS     4156 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     70.269        164.54        .23967E-03   -1.4029    
   2  norm          3.0681        2.9199        .94947E-04   -1.5358    
   3  Prefactor     76.336        116.19        .45964E-04   -1.3958    
   4  Prefactor     .10001E-03    57.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.972        160.47        .44560E-03   -1.4814    
   6  norm          .10000E-03    21.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.373        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    7.0072        .15572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1735        3.8201        .18997E-03   -1.5491    
  11  norm          .61419        39.585        .26926E-02   -1.5551    
  12  Prefactor     49.560        34.976        .56961E-04   -1.4299    
  13  Prefactor     13.405        13.610        .10941E-03   -1.4976    
  14  Prefactor     .10000E-03    43.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.5841        3.5801        .10684E-03   -1.5329    
  16  Prefactor     31.822        25.775        .71034E-04   -1.4579    
  17  Prefactor     56.781        70.671        .53244E-04   -1.4199    
  18  norm          .10000E-03    12.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     32.475        27.510        .70313E-04   -1.4568    
  20  Prefactor     15.386        9.9989        .10211E-03   -1.4923    
  21  norm          .48432        4.5418        .17611E-02   -1.5569    
  22  Prefactor     .10000E-03    31.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.1834        3.3192        .10667E-03   -1.5351    
  24  Prefactor     .10000E-03    32.362        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    3.6369        .11215E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8630        5.9252        .20186E-03   -1.5370    
  27  Normalizat    1.0189        .25926        .21818E-03   -.92399    
  28  Prefactor     .72495        .28733        .30622E-03   -1.0256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86234e-09
Minuit parameter uncertainties:
  1  165.627
  2  2.92
  3  116.536
  4  0.00141358
  5  113.643
  6  0.000369125
  7  0.000193956
  8  9.05344e-05
  9  6.628e-06
  10  3.8209
  11  9.86764
  12  34.9907
  13  13.6129
  14  0.000524063
  15  3.5803
  16  25.7839
  17  70.7752
  18  7.08868e-05
  19  27.5204
  20  10
  21  2.96623
  22  0.000171305
  23  3.31939
  24  0.000106217
  25  3.89845e-06
  26  5.9264
  27  0.259579
  28  0.28792
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.584e+00  3.580e+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:  7.250e-01  2.879e-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.019e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.75
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 5.61e-08 +/- 5.60e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.48e-05

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

Saving results to:
/scratch/kocevski/351168/likelihoodResults_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.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) = 3628.02095125
delta logL = 0.0215876907951

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3628.01911931
delta logL = 0.0234196265133

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6468       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7706       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73790       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=   3628.019     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      235 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6467        3.4993        .10158E-03   -.99665E-03
   2  alpha         2.7706        1.1615        .22528E-01   -.41072E-04
   3  Normalizat    1.0039        .24669        .21962E-03   -.48426E-04
   4  Prefactor     .73790        .28858        .30377E-03   -.86640E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.64672
  alpha      = 2.77064
  Normalizat = 1.00388
  Prefactor  = 0.7379
 **********
 **   18 **HESSE 
 **********

 FCN=   3628.019     FROM HESSE     STATUS=OK            23 CALLS      258 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6467        3.4716        .40631E-05   -1.5326    
   2  alpha         2.7706        1.1521        .90112E-03    .10847    
   3  Normalizat    1.0039        .24715        .87848E-05   -.92901    
   4  Prefactor     .73790        .28882        .12151E-04   -1.0206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.95591e-10
Minuit parameter uncertainties:
  1  3.47179
  2  1.19797
  3  0.247429
  4  0.289413
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/351168': 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) = 3628.01911931
delta logL = 0.0234196316587

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  3.647e+00  3.472e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  2.771e+00  1.198e+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:  7.379e-01  2.894e-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.004e+00  2.474e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.80
Ra Dec: 182.226 54.700
Photon Index (Free Index): 2.77 +/- 1.20
Photon Flux (Free Index): 6.79e-08 +/- 8.08e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.43e-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/351168/cmap_HighResolution_240105601_240364801_4FGL_J1208.9+5441_daily_bin3.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.81e-05', comment='SUCCESS', photon_flux='5.61e-08', energy_flux2='1.51e-05', photon_flux_error='5.60e-08', dlogl='2.34e-02', energy_flux='1.48e-05', photon_flux2='6.79e-08', job_status='DONE', time_completed='2021-09-05 01:20:34.572947', photon_index_error2='1.20', photon_index2='2.77', ts='1.75', fit_tolerance='1e-08', GAL='0.72', photon_index_error='0.00', photon_flux_upper_limit='1.82e-07', energy_flux_error2='1.43e-05', EG='1.02', time_epoch_completed='1630830034.57', return_code='0', job_id='351168', GAL2='0.74', EG2='1.00', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='8.08e-08', ts2='1.80', photon_index='2.51' WHERE bin_id='3' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 351168: <4FGL_J1208.9+5441_daily_bin3> in cluster <slac> Done

Job <4FGL_J1208.9+5441_daily_bin3> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sun Sep  5 01:05:44 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 01:05:45 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:05:45 2021
Terminated at Sun Sep  5 01:20:35 2021
Results reported at Sun Sep  5 01:20:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin3 182.226 54.6995 240105601 240364801 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 :                                   655.40 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             268.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

