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


Performing analysis on: 4FGL_J1208.9+5441_daily_bin882
RA = 182.226, Dec = 54.6995
tmin = 467942401, tmax = 468201601
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='360931', job_status='RUN', time_executed='2021-09-05 01:35:44.303332', time_epoch_executed='1630830944.3' WHERE source_name='4FGL J1208.9+5441' and cadence='daily' and bin_id='882'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/360931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/360931/ft1_4FGL_J1208.9+5441_daily_bin882.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/360931/ft2_4FGL_J1208.9+5441_daily_bin882.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/360931/ft1_4FGL_J1208.9+5441_daily_bin882.fits outfile=/scratch/kocevski/360931/ft1_filteredMKT_4FGL_J1208.9+5441_daily_bin882.fits ra=182.226 dec=54.6995 rad=12.0 tmin=467942401.0 tmax=468201601.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.82
user 3.39
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/360931/ft1_filtered_4FGL_J1208.9+5441_daily_bin882.fits evtable="EVENTS" scfile=/scratch/kocevski/360931/ft2_4FGL_J1208.9+5441_daily_bin882.fits sctable="SC_DATA" expcube=/scratch/kocevski/360931/ltcube_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.fits outfile=/scratch/kocevski/360931/expmap_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.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/360931/ltcube_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.fits
.....................!
real 192.62
user 185.59
sys 5.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/360931/ft1_filtered_4FGL_J1208.9+5441_daily_bin882.fits scfile=/scratch/kocevski/360931/ft2_4FGL_J1208.9+5441_daily_bin882.fits outfile=/scratch/kocevski/360931/cmap_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/360931/ft1_filtered_4FGL_J1208.9+5441_daily_bin882.fits scfile=/scratch/kocevski/360931/ft2_4FGL_J1208.9+5441_daily_bin882.fits outfile=/scratch/kocevski/360931/cmap_HighResolution_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.2619       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.109       1.0000         .10000E-03   10000.    
     6 'norm      '    20.204       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .32774E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .17525E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    18.385       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7478       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.306       1.0000         .10000E-03   10000.    
    15 'norm      '    1.8359       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    33.574       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.045       1.0000         .10000E-03   10000.    
    23 'norm      '    4.1301       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.7037       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1637       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .66360       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=   6080.316     FROM MIGRAD    STATUS=CONVERGED    691 CALLS     3488 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    45.632        .51930E-06** at limit **
   2  norm          3.2620        1.8716       -.57757E-07   -.49416E-03
   3  Prefactor     .10000E-03    15.025        .56337E-06** at limit **
   4  Prefactor     .10000E-03    7.4485        .27239E-06** at limit **
   5  Prefactor     68.108        62.354        .89191E-07   -.13168E-04
   6  norm          20.204        28.234        .10275E-06   -.79581E-05
   7  Prefactor     .10000E-03    2.9372        .50261E-06** at limit **
   8  Prefactor     .10000E-03    6.3435       -.17415E-06** at limit **
   9  norm          .10000E-03    3.8248        .16895E-07** at limit **
  10  Prefactor     .10000E-03    1.8572        .34407E-06** at limit **
  11  norm          .10002E-03    2.6643        .21810E-05** at limit **
  12  Prefactor     18.389        18.753       -.10545E-06   -.62112E-04
  13  Prefactor     2.7490        5.7063        .48756E-05    .14375E-03
  14  Prefactor     24.302        19.259       -.15187E-05   -.14922E-03
  15  norm          1.8361        1.9955        .81159E-09   -.21229E-03
  16  Prefactor     .10000E-03    5.4775        .11584E-06** at limit **
  17  Prefactor     .10000E-03    12.313       -.18829E-06** at limit **
  18  norm          .10000E-03    2.1358       -.41221E-06** at limit **
  19  Prefactor     33.560        25.597        .35933E-06   -.15406E-03
  20  Prefactor     .10000E-03    2.6801        .70309E-07** at limit **
  21  norm          .10000E-03    .74715        .49275E-07** at limit **
  22  Prefactor     15.035        24.744        .32035E-06   -.63028E-04
  23  norm          4.1299        2.1585        .32469E-08   -.11693E-03
  24  Prefactor     .10000E-03    31.807       -.35935E-06** at limit **
  25  Prefactor     .10000E-03    9.0003        .25332E-06** at limit **
  26  norm          1.7027        3.4882       -.68844E-07   -.10167E-03
  27  Normalizat    1.1637        .15669        .61127E-06   -.31366E-03
  28  Prefactor     .66358        .18514       -.19599E-05   -.31603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.26195
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.1079
  norm       = 20.2037
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100023
  Prefactor  = 18.389
  Prefactor  = 2.74903
  Prefactor  = 24.302
  norm       = 1.83606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.5596
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.0355
  norm       = 4.12994
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 1.70265
  Normalizat = 1.16374
  Prefactor  = 0.663578
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.316     FROM HESSE     STATUS=OK           513 CALLS     4001 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    45.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.2620        1.8734        .78533E-04   -1.5347    
   3  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     68.108        62.351        .48636E-04   -1.4056    
   6  norm          20.204        28.236        .89107E-04   -1.4809    
   7  Prefactor     .10000E-03    13.833        .25458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.3515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    3.8363        .14894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.9147        .20645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    11.386        .20661E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     18.389        18.619        .93410E-04   -1.4850    
  13  Prefactor     2.7490        5.8511        .12279E-02   -1.5376    
  14  Prefactor     24.302        19.186        .81250E-04   -1.4722    
  15  norm          1.8361        1.9820        .10892E-03   -1.5437    
  16  Prefactor     .10000E-03    5.4840        .17825E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.317        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.1517        .11158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     33.560        25.615        .69158E-04   -1.4549    
  20  Prefactor     .10000E-03    2.7017        .12464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    .75565        .65805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.035        24.733        .10326E-03   -1.4932    
  23  norm          4.1299        2.1580        .80235E-04   -1.5301    
  24  Prefactor     .10000E-03    31.880        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.1077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.7027        3.4522        .20192E-03   -1.5447    
  27  Normalizat    1.1637        .17946        .19825E-03   -.87731    
  28  Prefactor     .66358        .21289        .31279E-03   -1.0497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68906e-09
Minuit parameter uncertainties:
  1  0.000250522
  2  1.87346
  3  0.000153724
  4  4.17193e-05
  5  62.4112
  6  28.2548
  7  0.000145481
  8  5.23895e-05
  9  2.21042e-06
  10  3.3669e-05
  11  0.00102922
  12  18.625
  13  5.85233
  14  19.1906
  15  1.98208
  16  9.12792e-06
  17  5.51307e-05
  18  4.27606e-05
  19  25.6231
  20  7.88487e-06
  21  3.00615e-06
  22  24.7495
  23  2.15807
  24  0.000371771
  25  2.27265e-05
  26  3.45261
  27  0.179558
  28  0.213155
Done.

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

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.836e+00  1.982e+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:  6.636e-01  2.132e-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.164e+00  1.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.15
Ra Dec: 182.226 54.700
Photon Index (Fixed Index): 2.51 +/- 0.00
Photon Flux (Fixed Index): 2.87e-08 +/- 3.10e-08
Energy Flux (Fixed Index): 7.60e-06 +/- 8.20e-06

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

Saving results to:
/scratch/kocevski/360931/likelihoodResults_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.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) = 6080.13807257
delta logL = 0.17781316621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6080.13404304
delta logL = 0.181842694478

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6803       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0724       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1502       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67492       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=   6080.134     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      229 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6817        56.449        .81247E-02    .61608E-03
   2  alpha         3.0733        3.0908        .42605        .14984E-04
   3  Normalizat    1.1502        .65814E-01    .36245E-01   -.61607E-05
   4  Prefactor     .67502        .87137E-01    .70114E-01    .90422E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68167
  alpha      = 3.07329
  Normalizat = 1.15018
  Prefactor  = 0.675016
 **********
 **   18 **HESSE 
 **********

 FCN=   6080.134     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6817        1.8941        .91188E-04   -1.5449    
   2  alpha         3.0733        1.0038        .25270E-01    .23137    
   3  Normalizat    1.1502        .17642        .19922E-03   -.88156    
   4  Prefactor     .67502        .21325        .31030E-03   -1.0451    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86808e-12
Minuit parameter uncertainties:
  1  1.89419
  2  1.03465
  3  0.176511
  4  0.213508
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/360931': 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) = 6080.13404146
delta logL = 0.181844281303

Extracting fit parameters...

4FGL J1208.9+5441
   Spectrum: LogParabola
376         norm:  1.682e+00  1.894e+00  1.000e-04  1.000e+04 ( 1.000e-11)
377        alpha:  3.073e+00  1.035e+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:  6.750e-01  2.135e-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.150e+00  1.765e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.52
Ra Dec: 182.226 54.700
Photon Index (Free Index): 3.07 +/- 1.03
Photon Flux (Free Index): 3.93e-08 +/- 3.81e-08
Energy Flux (Free Index): 7.57e-06 +/- 7.33e-06

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/360931/cmap_HighResolution_467942401_468201601_4FGL_J1208.9+5441_daily_bin882.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.57e-05', comment='SUCCESS', photon_flux='2.87e-08', energy_flux2='7.57e-06', photon_flux_error='3.10e-08', dlogl='1.82e-01', energy_flux='7.60e-06', photon_flux2='3.93e-08', job_status='DONE', time_completed='2021-09-05 01:50:38.810663', photon_index_error2='1.03', photon_index2='3.07', ts='1.15', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='9.73e-08', energy_flux_error2='7.33e-06', EG='1.16', time_epoch_completed='1630831838.81', return_code='0', job_id='360931', GAL2='0.68', EG2='1.15', return_code2='0', energy_flux_error='8.20e-06', photon_flux_error2='3.81e-08', ts2='1.52', photon_index='2.51' WHERE bin_id='882' AND source_name='4FGL J1208.9+5441' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 01:50:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 360931: <4FGL_J1208.9+5441_daily_bin882> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.9+5441_daily_bin882 182.226 54.6995 467942401 468201601 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 :                                   880.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             331.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

