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


Performing analysis on: 4FGL_J1208.4+6121_daily_bin1
RA = 182.114, Dec = 61.3559
tmin = 239587201, tmax = 239846401
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='336445', job_status='RUN', time_executed='2021-09-05 00:37:07.054415', time_epoch_executed='1630827427.05' WHERE source_name='4FGL J1208.4+6121' and cadence='daily' and bin_id='1'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336445

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336445/ft1_4FGL_J1208.4+6121_daily_bin1.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336445/ft1_4FGL_J1208.4+6121_daily_bin1.fits outfile=/scratch/kocevski/336445/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1.fits ra=182.114 dec=61.3559 rad=12.0 tmin=239587201.0 tmax=239846401.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.32
user 1.14
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.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/336445/ft1_filteredMKT_4FGL_J1208.4+6121_daily_bin1.fits evtable="EVENTS" outfile="/scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.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.52
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits" evtable="EVENTS" scfile=/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits sctable="SC_DATA" outfile=/scratch/kocevski/336445/ltcube_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.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/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits
.....................!
real 13.36
user 12.93
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits sctable="SC_DATA" expcube=/scratch/kocevski/336445/ltcube_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.fits outfile=/scratch/kocevski/336445/expmap_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.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/336445/ltcube_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.fits
.....................!
real 191.22
user 185.51
sys 4.67

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 222 point sources and 0 extended sources

Setting source of interest to:
4FGL J1208.4+6121 @ 182.114 61.3559

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits scfile=/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits outfile=/scratch/kocevski/336445/cmap_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.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.114 yref=61.3559 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.64
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits scfile=/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits outfile=/scratch/kocevski/336445/cmap_HighResolution_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.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.114 yref=61.3559 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/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits evtable="EVENTS" scfile=/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/336445/Model_4FGL_J1208.4+6121_daily_bin1.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/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits.....................!
real 39.43
user 36.90
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits', '/scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits', expMap='/scratch/kocevski/336445/expmap_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.fits', expCube='/scratch/kocevski/336445/ltcube_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/336445/Model_4FGL_J1208.4+6121_daily_bin1.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1208.4+6121'

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  1.772e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/336445/ft1_filtered_4FGL_J1208.4+6121_daily_bin1.fits
Spacecraft file(s): /scratch/kocevski/336445/ft2_4FGL_J1208.4+6121_daily_bin1.fits
Exposure map: /scratch/kocevski/336445/expmap_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.fits
Exposure cube: /scratch/kocevski/336445/ltcube_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/336445/Model_4FGL_J1208.4+6121_daily_bin1.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) = 3388.24992452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12555E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.6642       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.4388       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.1006       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .42084       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .12124E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .14320E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.6132       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.033       1.0000         .10000E-03   10000.    
    17 'norm      '    6.1809       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .37473       1.0000         .10000E-03   10000.    
    20 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .44140       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6261       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    113.30       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .19651E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.2213       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .63763       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80495       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+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=   3388.237     FROM MIGRAD    STATUS=CONVERGED   1605 CALLS     5153 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10026E-03    108.15        .48414E-02** at limit **
   2  norm          2.6628        2.1714        .74882E-04   -.12171E-02
   3  Prefactor     .10000E-03    44.572        .18142E-02** at limit **
   4  norm          1.4392        1.6399        .77849E-04   -.25337E-04
   5  Prefactor     .10000E-03    40.539        .18142E-02** at limit **
   6  norm          2.1006        2.0554        .80505E-04   -.13811E-03
   7  Prefactor     .10000E-03    2.9206        .96548E-03** at limit **
   8  Prefactor     .10000E-03    23.260        .18142E-02** at limit **
   9  Prefactor     .10000E-03    5.3264        .25814E-03** at limit **
  10  Prefactor     .38374        203.81        .48452E-02   -.16346E-03
  11  Prefactor     19.279        19.823        .91216E-04   -.23406E-04
  12  Prefactor     .10000E-03    1.8694        .77462E-03** at limit **
  13  norm          .10000E-03    31.090        .32058E-02** at limit **
  14  norm          .10007E-03    25.182        .21608E-02** at limit **
  15  Prefactor     9.6068        12.615        .12925E-03   -.15111E-03
  16  Prefactor     24.014        24.615        .81710E-04   -.88504E-04
  17  norm          6.1811        3.6946        .39399E-03   -.74258E-04
  18  Prefactor     .10000E-03    9.9543        .17926E-02** at limit **
  19  Prefactor     .72951        112.81        .15742        .47763E-05
  20  norm          .10000E-03    4.6050        .12095E-02** at limit **
  21  norm          .43237        75.798        .40784E-02   -.60411E-04
  22  Prefactor     .10000E-03    10.723        .36285E-03** at limit **
  23  norm          4.6267        2.7501        .72163E-04   -.15156E-03
  24  norm          .10000E-03    1.1655        .61102E-03** at limit **
  25  Prefactor     113.31        76.011        .37794E-04   -.78270E-04
  26  Prefactor     .10000E-03    8.2833        .16258E-02** at limit **
  27  Prefactor     .10002E-03    678.81        .18142E-02** at limit **
  28  Prefactor     .10000E-03    47.491        .18142E-02** at limit **
  29  Prefactor     6.2176        7.6848        .80472E-03   -.19432E-04
  30  Prefactor     .10000E-03    6.8834        .14905E-02** at limit **
  31  Normalizat    .63757        .22350        .21826E-03   -.78009E-03
  32  Prefactor     .80491        .25716        .24051E-03   -.61755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100255
  norm       = 2.66278
  Prefactor  = 0.0001
  norm       = 1.43919
  Prefactor  = 0.0001
  norm       = 2.10059
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.383737
  Prefactor  = 19.2786
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.000100073
  Prefactor  = 9.6068
  Prefactor  = 24.014
  norm       = 6.18109
  Prefactor  = 0.0001
  Prefactor  = 0.729511
  norm       = 0.0001
  norm       = 0.432368
  Prefactor  = 0.0001
  norm       = 4.62673
  norm       = 0.0001
  Prefactor  = 113.306
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 6.21755
  Prefactor  = 0.0001
  Normalizat = 0.637566
  Prefactor  = 0.804909
 **********
 **   18 **HESSE 
 **********

 FCN=   3388.237     FROM HESSE     STATUS=OK           643 CALLS     5796 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10026E-03    109.28        .96827E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.6628        2.1631        .14976E-04   -1.5382    
   3  Prefactor     .10000E-03    44.572        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4392        1.6397        .31140E-05   -1.5468    
   5  Prefactor     .10000E-03    40.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.1006        2.0551        .32202E-05   -1.5418    
   7  Prefactor     .10000E-03    2.9208        .19310E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.269        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3265        .51628E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .38374        206.35        .19381E-03   -1.5584    
  11  Prefactor     19.279        19.820        .18243E-04   -1.4830    
  12  Prefactor     .10000E-03    1.8695        .15492E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    31.324        .64115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10007E-03    25.259        .43216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.6068        12.579        .51699E-05   -1.5088    
  16  Prefactor     24.014        24.615        .16342E-04   -1.4727    
  17  norm          6.1811        3.6898        .15760E-04   -1.5211    
  18  Prefactor     .10000E-03    9.9548        .35852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .72951        113.18        .15704       -1.5537    
  20  norm          .10000E-03    4.6062        .24191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .43237        75.891        .16314E-03   -1.5576    
  22  Prefactor     .10000E-03    10.723        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6267        2.7498        .28865E-05   -1.5278    
  24  norm          .10000E-03    1.1656        .12220E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     113.31        75.973        .75587E-05   -1.3575    
  26  Prefactor     .10000E-03    8.2866        .32516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10002E-03    679.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    47.494        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     6.2176        7.6755        .32189E-04   -1.5209    
  30  Prefactor     .10000E-03    6.8834        .29811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .63757        .22238        .43651E-04   -1.0641    
  32  Prefactor     .80491        .25674        .48102E-04   -.99548    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76421e-09
Minuit parameter uncertainties:
  1  0.0105787
  2  2.16316
  3  8.30819e-05
  4  1.63972
  5  7.1343e-05
  6  2.0552
  7  7.79642e-06
  8  3.56015e-05
  9  6.93471e-06
  10  17.8569
  11  19.8267
  12  6.83961e-06
  13  0.000346862
  14  0.00271912
  15  12.5825
  16  24.6259
  17  3.68989
  18  2.00441e-05
  19  18.2068
  20  3.40768e-05
  21  11.47
  22  5.83438e-05
  23  2.74992
  24  4.71595e-06
  25  76.0387
  26  3.54432e-05
  27  0.00713831
  28  6.28086e-06
  29  7.67673
  30  3.77898e-05
  31  0.222689
  32  0.257125
Done.

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

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.401e+01  2.463e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.073e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  8.049e-01  2.571e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  6.376e-01  2.227e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.07
Ra Dec: 182.114 61.356
Photon Index (Fixed Index): 2.07 +/- 0.00
Photon Flux (Fixed Index): 2.54e-08 +/- 2.61e-08
Energy Flux (Fixed Index): 1.48e-05 +/- 1.52e-05

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) = 3388.23680533
delta logL = 0.000416375291024

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3388.23634396
delta logL = 0.000877744245372

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.999       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0374       1.0000          .0000       10.000    
     3 'Normalizat'    .63870       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80460       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3388.236     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      224 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     25.038        884.59        .20029E-02   -.58298E-04
   2  Index         2.0392        5.6990        .11316        .36461E-04
   3  Normalizat    .63872        .11813        .41466E-01   -.37800E-03
   4  Prefactor     .80413        .96087E-01    .43777E-01   -.24646E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 25.038
  Index      = 2.03916
  Normalizat = 0.638718
  Prefactor  = 0.80413
 **********
 **   18 **HESSE 
 **********

 FCN=   3388.236     FROM HESSE     STATUS=OK            27 CALLS      251 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     25.038        36.296        .80118E-04   -1.4707    
   2  Index         2.0392        .84802        .64118E-02   -.63375    
   3  Normalizat    .63872        .20564        .21807E-03   -1.0636    
   4  Prefactor     .80413        .25203        .24062E-03   -.99576    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.58161e-10
Minuit parameter uncertainties:
  1  36.3282
  2  0.854405
  3  0.205884
  4  0.252393
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336445': 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) = 3388.2363287
delta logL = 0.000893007905688

Extracting fit parameters...

4FGL J1208.4+6121
   Spectrum: PowerLaw
372    Prefactor:  2.504e+01  3.633e+01  1.000e-04  1.000e+04 ( 1.000e-14)
373        Index:  2.039e+00  8.544e-01  0.000e+00  1.000e+01 (-1.000e+00)
374        Scale:  2.978e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
707    Prefactor:  8.041e-01  2.524e-01  0.000e+00  1.000e+01 ( 1.000e+00)
708        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
709        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
706   Normalization:  6.387e-01  2.059e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.08
Ra Dec: 182.114 61.356
Photon Index (Free Index): 2.04 +/- 0.85
Photon Flux (Free Index): 2.44e-08 +/- 3.36e-08
Energy Flux (Free Index): 1.53e-05 +/- 2.13e-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/336445/cmap_HighResolution_239587201_239846401_4FGL_J1208.4+6121_daily_bin1.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.54e-08', energy_flux2='1.53e-05', photon_flux_error='2.61e-08', dlogl='8.93e-04', energy_flux='1.48e-05', photon_flux2='2.44e-08', job_status='DONE', time_completed='2021-09-05 00:48:27.479798', photon_index_error2='0.85', photon_index2='2.04', ts='4.07', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', energy_flux_error2='2.13e-05', EG='0.64', time_epoch_completed='1630828107.48', return_code='0', job_id='336445', GAL2='0.80', EG2='0.64', return_code2='0', energy_flux_error='1.52e-05', photon_flux_error2='3.36e-08', ts2='4.08', photon_index='2.07' WHERE bin_id='1' AND source_name='4FGL J1208.4+6121' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:48:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 336445: <4FGL_J1208.4+6121_daily_bin1> in cluster <slac> Done

Job <4FGL_J1208.4+6121_daily_bin1> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:35:25 2021
Job was executed on host(s) <bullet0091>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:35:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:35:27 2021
Terminated at Sun Sep  5 00:48:28 2021
Results reported at Sun Sep  5 00:48:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1208.4+6121_daily_bin1 182.114 61.3559 239587201 239846401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1208.4+6121 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   676.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             315.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   780 sec.
    Turnaround time :                            783 sec.

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

