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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin1465
RA = 182.226, Dec = 54.6995
tmin = 619056001, tmax = 619315201
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='360983', job_status='RUN', time_executed='2021-09-05 01:35:46.830601', time_epoch_executed='1630830946.83' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='1465'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360983

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360983/ft1_4FGL_J1208.9+5441_daily_bin1465.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360983/ft2_4FGL_J1208.9+5441_daily_bin1465.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360983/ft1_4FGL_J1208.9+5441_daily_bin1465.fits outfile=/scratch/kocevski/360983/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1465.fits ra=182.226 dec=54.6995 rad=12.0 tmin=619056001.0 tmax=619315201.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.62
user 3.40
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/360983/ft2_4FGL_J1208.9+5441_daily_bin1465.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/360983/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin1465.fits evtable="EVENTS" outfile="/scratch/kocevski/360983/ft1_filtered_4FGL_J1208.9+5441_daily_bin1465.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.99
user 0.35
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360983/ft1_filtered_4FGL_J1208.9+5441_daily_bin1465.fits evtable="EVENTS" scfile=/scratch/kocevski/360983/ft2_4FGL_J1208.9+5441_daily_bin1465.fits sctable="SC_DATA" expcube=/scratch/kocevski/360983/ltcube_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.fits outfile=/scratch/kocevski/360983/expmap_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.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/360983/ltcube_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.fits
.....................!
real 190.93
user 186.00
sys 4.56

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/360983/ft1_filtered_4FGL_J1208.9+5441_daily_bin1465.fits scfile=/scratch/kocevski/360983/ft2_4FGL_J1208.9+5441_daily_bin1465.fits outfile=/scratch/kocevski/360983/cmap_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=182.226 yref=54.6995 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360983/ft1_filtered_4FGL_J1208.9+5441_daily_bin1465.fits scfile=/scratch/kocevski/360983/ft2_4FGL_J1208.9+5441_daily_bin1465.fits outfile=/scratch/kocevski/360983/cmap_HighResolution_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.293       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .89547E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    26.386       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.029       1.0000         .10000E-03   10000.    
     9 'norm      '    .10134E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.1374       1.0000         .10000E-03   10000.    
    11 'norm      '    .84591E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.5990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0097       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    69.899       1.0000         .10000E-03   10000.    
    18 'norm      '    30.193       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0804       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5994       1.0000         .10000E-03   10000.    
    21 'norm      '    9.0056       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    2.1752       1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.101       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2111       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .73229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6713.443     FROM MIGRAD    STATUS=CONVERGED    132 CALLS     2935 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    57.432       -.12560E-04** at limit **
   2  norm          .10000E-03    .61375       -.22103E-06** at limit **
   3  Prefactor     15.290        1.5074       -.13406E-05    .59796E-04
   4  Prefactor     .10000E-03    7.0937        .31782E-06** at limit **
   5  Prefactor     .10213E-03    530.57       -.17584E-03** at limit **
   6  norm          26.408        7.1874       -.61172E-05    .13437E-02
   7  Prefactor     17.863        2.4117        .35086E-05    .88005E-02
   8  Prefactor     28.051        12.477       -.12043E-04   -.26054E-02
   9  norm          .10000E-03    8.4750        .45915E-06** at limit **
  10  Prefactor     1.1360        2.9792        .55172E-06    .55057E-03
  11  norm          .72432E-01    35.957        .19765E-04    .24515E-03
  12  Prefactor     6.6075        1.3547       -.17053E-05   -.29670E-03
  13  Prefactor     .10000E-03    2.9564        .25040E-06** at limit **
  14  Prefactor     8.0207        5.4164       -.28970E-05    .47027E-02
  15  norm          .10000E-03    .48506        .78038E-08** at limit **
  16  Prefactor     .10000E-03    5.5788       -.52814E-06** at limit **
  17  Prefactor     69.909        2.4376        .77013E-06    .83319E-03
  18  norm          30.186        10.784       -.13774E-04   -.23417E-02
  19  Prefactor     3.0160        36.161        .49959E-04   -.11149E-02
  20  Prefactor     4.6017        6.0602        .40872E-05    .78440E-03
  21  norm          9.0046        3.1281       -.67267E-06   -.27432E-03
  22  Prefactor     .10000E-03    14.976       -.10766E-06** at limit **
  23  norm          2.1754        1.5124        .98843E-07   -.22374E-03
  24  Prefactor     29.089        4.2083        .33677E-05   -.80270E-03
  25  Prefactor     .10000E-03    17.440        .29785E-05** at limit **
  26  norm          .10000E-03    1.8090       -.39437E-06** at limit **
  27  Normalizat    1.2114        .18248       -.14562E-06   -.45548E-04
  28  Prefactor     .73174        .22119        .57070E-06   -.31340E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 15.29
  Prefactor  = 0.0001
  Prefactor  = 0.000102126
  norm       = 26.408
  Prefactor  = 17.8634
  Prefactor  = 28.0514
  norm       = 0.0001
  Prefactor  = 1.13602
  norm       = 0.0724315
  Prefactor  = 6.60749
  Prefactor  = 0.0001
  Prefactor  = 8.02066
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.9087
  norm       = 30.186
  Prefactor  = 3.01601
  Prefactor  = 4.60168
  norm       = 9.00465
  Prefactor  = 0.0001
  norm       = 2.1754
  Prefactor  = 29.0888
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.21143
  Prefactor  = 0.731739
 **********
 **   18 **HESSE 
 **********

 FCN=   6713.443     FROM HESSE     STATUS=OK           589 CALLS     3524 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    57.693        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .60969        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     15.290        49.352        .25605E-02   -1.4926    
   4  Prefactor     .10000E-03    7.0740        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10213E-03    543.25        .91389E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.408        28.419        .19497E-02   -1.4680    
   7  Prefactor     17.863        7.4239        .23690E-02   -1.4862    
   8  Prefactor     28.051        23.817        .18918E-02   -1.4648    
   9  norm          .10000E-03    8.2559        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.1360        3.3065        .10914E-01   -1.5495    
  11  norm          .72432E-01    1.9770        .66371E-01   -1.5654    
  12  Prefactor     6.6075        17.672        .39054E-02   -1.5194    
  13  Prefactor     .10000E-03    2.9494        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0207        12.658        .35418E-02   -1.5141    
  15  norm          .10000E-03    .48126        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.5667        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     69.909        48.365        .12003E-02   -1.4034    
  18  norm          30.186        11.864        .18229E-02   -1.4609    
  19  Prefactor     3.0160        62.890        .57774E-02   -1.5361    
  20  Prefactor     4.6017        6.1530        .46921E-02   -1.5279    
  21  norm          9.0046        3.1373        .33390E-02   -1.5108    
  22  Prefactor     .10000E-03    14.933        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          2.1754        1.5066        .69793E-02   -1.5413    
  24  Prefactor     29.089        27.934        .18567E-02   -1.4629    
  25  Prefactor     .10000E-03    17.022        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.8000        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2114        .16617        .34624E-01   -.86250    
  28  Prefactor     .73174        .19476        .74584E-01   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.2527e-07
Minuit parameter uncertainties:
  1  0.00103241
  2  3.85136e-06
  3  49.4842
  4  6.74566e-05
  5  0.0685927
  6  28.4336
  7  7.42428
  8  23.8251
  9  0.000120684
  10  3.30707
  11  0.756337
  12  17.6864
  13  5.91274e-06
  14  12.6618
  15  4.49524e-06
  16  4.22528e-06
  17  48.3921
  18  11.8645
  19  27.5773
  20  6.1538
  21  3.13738
  22  8.87808e-05
  23  1.50662
  24  27.947
  25  8.53323e-05
  26  8.1109e-06
  27  0.166239
  28  0.194937
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  4.495e-06  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.317e-01  1.949e-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.211e+00  1.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/360983/likelihoodResults_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.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): 102
logL (Free Index) = 6713.4429596
delta logL = -2.90696489174e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6713.44292137
delta logL = 9.15916643862e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0437       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2115       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73179       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=   6713.443     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      398 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .55378        .58161E-03** at limit **
   2  alpha         1.7881        4.1027        .16821E-01    .33793E-08
   3  Normalizat    1.2114        .17911        .21444E-03   -.22394E-03
   4  Prefactor     .73174        .22040        .33013E-03   -.15193E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.78806
  Normalizat = 1.21143
  Prefactor  = 0.731737
 **********
 **   18 **HESSE 
 **********

 FCN=   6713.443     FROM HESSE     STATUS=OK            23 CALLS      421 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .55296        .11632E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7881        4.1049        .67285E-03   -.28877    
   3  Normalizat    1.2114        .17924        .42887E-04   -.86250    
   4  Prefactor     .73174        .22056        .13205E-04   -1.0230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.0432e-11
Minuit parameter uncertainties:
  1  2.53403e-07
  2  101.044
  3  0.179333
  4  0.220826
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360983': 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) = 6713.44291787
delta logL = 1.26583181554e-05

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.000e-04  2.534e-07  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  1.788e+00  1.010e+02  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.317e-01  2.208e-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.211e+00  1.793e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 182.226 54.700

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/360983/cmap_HighResolution_619056001_619315201_4FGL_J1208.9+5441_daily_bin1465.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-05', job_status='DONE', photon_flux_upper_limit='3.99e-08', time_completed='2021-09-05 01:51:49.711132', job_id='360983', GAL2='0.73', fit_tolerance='1e-08', EG2='1.21', EG='1.21', time_epoch_completed='1630831909.71', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.27e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.51' WHERE bin_id='1465' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:51:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 360983: <4FGL_J1208.9+5441_daily_bin1465> in cluster <slac> Done

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

Your job looked like:

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

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

