aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 184 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1708
RA = 181.928, Dec = -1.1063
tmin = 682041601, tmax = 682300801
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='114123', job_status='RUN', time_executed='2022-09-16 16:33:44.245142', time_epoch_executed='1663371224.25' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114123

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114123/ft1_4FGL_J1207.7-0106_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114123/ft1_4FGL_J1207.7-0106_daily_bin1708.fits outfile=/scratch/kocevski/114123/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1708.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=682041601.0 tmax=682300801.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 4.00
user 3.75
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.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/114123/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.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.55
user 0.33
sys 0.16

Number of photons that the gtmktime cut: 617

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/114123/ltcube_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.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/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits
.....................!
real 12.87
user 12.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/114123/ltcube_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.fits outfile=/scratch/kocevski/114123/expmap_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.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/114123/ltcube_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.fits
.....................!
real 192.97
user 187.33
sys 4.75

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

Setting source of interest to:
4FGL J1207.7-0106 @ 181.928 -1.1063

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits scfile=/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits outfile=/scratch/kocevski/114123/cmap_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.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=181.928 yref=-1.1063 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.62
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits scfile=/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits outfile=/scratch/kocevski/114123/cmap_HighResolution_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.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=181.928 yref=-1.1063 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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114123/Model_4FGL_J1207.7-0106_daily_bin1708.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/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits.....................!
real 60.72
user 58.99
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits', '/scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits', expMap='/scratch/kocevski/114123/expmap_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.fits', expCube='/scratch/kocevski/114123/ltcube_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114123/Model_4FGL_J1207.7-0106_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1207.7-0106'

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  4.320e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
321        Index:  2.338e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/114123/ft1_filtered_4FGL_J1207.7-0106_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/114123/ft2_4FGL_J1207.7-0106_daily_bin1708.fits
Exposure map: /scratch/kocevski/114123/expmap_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.fits
Exposure cube: /scratch/kocevski/114123/ltcube_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114123/Model_4FGL_J1207.7-0106_daily_bin1708.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) = 6759.34847086

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10194E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .36876E-06   1.0000          .0000       .10000E+07
     3 'Prefactor '    .36861E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    1.0083       1.0000          .0000       .10000E+07
     5 'norm      '    6.5301       1.0000          .0000       .10000E+07
     6 'Prefactor '    .20658E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.3037       1.0000          .0000       .10000E+07
     8 'Prefactor '    .15925E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    .14702E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    11.365       1.0000          .0000       .10000E+07
    11 'Prefactor '    .12825E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .17610E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    40.646       1.0000          .0000       .10000E+07
    14 'Prefactor '    9.4675       1.0000          .0000       .10000E+07
    15 'Prefactor '    .17340E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .18491E-05   1.0000          .0000       .10000E+07
    17 'norm      '    .12768E-08   1.0000          .0000       .10000E+07
    18 'norm      '    2.8750       1.0000          .0000       .10000E+07
    19 'Prefactor '    4.7108       1.0000          .0000       .10000E+07
    20 'norm      '    .71123E-02   1.0000          .0000       .10000E+07
    21 'norm      '    .72828       1.0000          .0000       .10000E+07
    22 'Prefactor '    12.047       1.0000          .0000       .10000E+07
    23 'norm      '    .23728       1.0000          .0000       .10000E+07
    24 'Prefactor '    3.9508       1.0000          .0000       .10000E+07
    25 'Prefactor '    .15128E-01   1.0000          .0000       .10000E+07
    26 'norm      '    .12638E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    .76681       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1586       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6759.339     FROM MIGRAD    STATUS=CONVERGED    152 CALLS     2516 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10969E-06    4.5361       -.12421E-06** at limit **
   2  norm          .40701E-06    4.5494        .45893E-06** at limit **
   3  Prefactor     .24092E-06    2.6361        .14689E-06** at limit **
   4  Prefactor     .97061        3.5736        .30581E-06   -.60814E-01
   5  norm          6.5300        5.6058        .48354E-07   -.20521E-02
   6  Prefactor     .55511E-10    2.4542       -.95159E-07** at limit **
   7  Prefactor     4.3146        1.1608       -.18008E-07    .28827E-02
   8  Prefactor     .90150E-07    20.738        .57703E-07** at limit **
   9  Prefactor     .14683E-06    23.547       -.55722E-06** at limit **
  10  Prefactor     11.335        4.2631       -.50499E-07   -.77019E-01
  11  Prefactor     .62006E-07    4.5690        .18577E-06** at limit **
  12  Prefactor     .48406E-07    5.6990        .10894E-06** at limit **
  13  Prefactor     40.813        6.3904        .81369E-07   -.13041    
  14  Prefactor     9.4595        1.5222       -.14792E-07   -.12198E-01
  15  Prefactor     .10447E-06    4.5599        .83843E-06** at limit **
  16  Prefactor     .55511E-10    1.8982       -.17741E-06** at limit **
  17  norm           .0000        .49036       -.17611E-07** at limit **
  18  norm          2.8742        2.5047        .73885E-07    .17209E-02
  19  Prefactor     4.7231        2.3039       -.82215E-07    .87261E-02
  20  norm          .42527E-06    11.673        .11088E-06** at limit **
  21  norm          .72818        .38907        .40096E-07    .77345E-02
  22  Prefactor     12.070        7.5322       -.11119E-06   -.23632E-01
  23  norm          .23699        1.3685       -.11912E-06** at limit **
  24  Prefactor     3.9445        4.9231       -.29200E-07   -.90717E-04
  25  Prefactor     .39246E-07    15.941        .16454E-06** at limit **
  26  norm          .66613E-08    3.3803        .81586E-06** at limit **
  27  Normalizat    .76679        .21655       -.97464E-06    .56034E-04
  28  Prefactor     1.1586        .16999        .10578E-05    .63823E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.0969e-07
  norm       = 4.07008e-07
  Prefactor  = 2.40918e-07
  Prefactor  = 0.970606
  norm       = 6.52998
  Prefactor  = 5.55112e-11
  Prefactor  = 4.31457
  Prefactor  = 9.01501e-08
  Prefactor  = 1.46827e-07
  Prefactor  = 11.3347
  Prefactor  = 6.2006e-08
  Prefactor  = 4.84057e-08
  Prefactor  = 40.8128
  Prefactor  = 9.45945
  Prefactor  = 1.04472e-07
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 2.87417
  Prefactor  = 4.72309
  norm       = 4.25271e-07
  norm       = 0.728182
  Prefactor  = 12.0696
  norm       = 0.23699
  Prefactor  = 3.94452
  Prefactor  = 3.92464e-08
  norm       = 6.66134e-09
  Normalizat = 0.766786
  Prefactor  = 1.15861
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.339     FROM HESSE     STATUS=OK           583 CALLS     3099 TOTAL
                     EDM=   .20E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10969E-06    5.4305        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .40701E-06    9.3697        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .24092E-06    1.3886        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97061        87.317        .44060E-03   -1.5688    
   5  norm          6.5300        5.6381        .39249E-03   -1.5657    
   6  Prefactor     .55511E-10    2.4539        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3146        14.117        .48537E-03   -1.5666    
   8  Prefactor     .90150E-07    35.341        .17321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .14683E-06    24.006        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.335        9.2600        .29692E-03   -1.5641    
  11  Prefactor     .62006E-07    5.0974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .48406E-07    10.757        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.813        35.652        .15687E-03   -1.5580    
  14  Prefactor     9.4595        10.782        .32546E-03   -1.5646    
  15  Prefactor     .10447E-06    7.8493        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .55511E-10    1.9052        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm           .0000        .48988        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.8742        2.5268        .59920E-03   -1.5674    
  19  Prefactor     4.7231        38.309        .46338E-03   -1.5664    
  20  norm          .42527E-06    12.951        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .72818        .39267        .58442E-03   -1.5691    
  22  Prefactor     12.070        7.6275        .28836E-03   -1.5638    
  23  norm          .23699        .87197        .27478E-02   -1.5718    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.9445        4.9297        .50725E-03   -1.5668    
  25  Prefactor     .39246E-07    35.021        .17381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .66613E-08    8.0946        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .76679        .19539        .70759E-01   -1.0131    
  28  Prefactor     1.1586        .14854        .35693E-01   -.87615    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02158e-06
Minuit parameter uncertainties:
  1  0.00154349
  2  0.00390554
  3  0.00115671
  4  18.4123
  5  5.63815
  6  2.66152e-05
  7  14.1171
  8  0.00356985
  9  0.00375472
  10  9.25998
  11  0.00112424
  12  0.00144299
  13  35.6522
  14  10.7821
  15  0.00181099
  16  2.27277e-05
  17  9.73075e-07
  18  2.5268
  19  26.9029
  20  0.00469385
  21  0.392673
  22  7.62754
  23  0.871969
  24  4.92973
  25  0.00234502
  26  0.000464472
  27  0.195572
  28  0.148594
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  9.459e+00  1.078e+01  0.000e+00  1.000e+06 ( 1.000e-13)
321        Index:  2.338e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.159e+00  1.486e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  7.668e-01  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.51
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 1.94e-08
Energy Flux (Fixed Index): 6.10e-06 +/- 6.95e-06

TS (Fixed Index): 1.51
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 7.30e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.62e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114123/likelihoodResults_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.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) = 6759.25848746
delta logL = 0.0805058592268

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6759.25589236
delta logL = 0.0831009529929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.090       1.0000          .0000       .10000E+07
     2 'Index     '    2.0004       1.0000          .0000       10.000    
     3 'Normalizat'    .77210       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1557       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6270E+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=   6759.256     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.093        14.134        .11514E-04   -.18494E-01
   2  Index         2.0003        .77723        .11559E-01   -.50053E-03
   3  Normalizat    .77215        .21177        .31210E-03    .32984E-03
   4  Prefactor     1.1557        .16858        .20584E-03    .55090E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.0927
  Index      = 2.00026
  Normalizat = 0.772149
  Prefactor  = 1.15572
 **********
 **   18 **HESSE 
 **********

 FCN=   6759.256     FROM HESSE     STATUS=OK            23 CALLS      312 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.093        13.959        .23028E-05   -1.5638    
   2  Index         2.0003        .76788        .46236E-03   -.64344    
   3  Normalizat    .77215        .21190        .12484E-04   -1.0111    
   4  Prefactor     1.1557        .16870        .41168E-04   -.87705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15652e-08
Minuit parameter uncertainties:
  1  13.9592
  2  0.772677
  3  0.212131
  4  0.168779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114123': 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) = 6759.2558922
delta logL = 0.0831011207001

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.209e+01  1.396e+01  0.000e+00  1.000e+06 ( 1.000e-13)
321        Index:  2.000e+00  7.727e-01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.156e+00  1.688e-01  0.000e+00  1.000e+01 ( 1.000e+00)
625        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
626        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
623   Normalization:  7.721e-01  2.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 2.00 +/- 0.77
Photon Flux (Free Index): 1.32e-08 +/- 1.76e-08
Energy Flux (Free Index): 9.11e-06 +/- 1.47e-05

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/114123/cmap_HighResolution_682041601_682300801_4FGL_J1207.7-0106_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.62e-03', comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='9.11e-06', photon_flux_error='1.94e-08', dlogl='8.31e-02', energy_flux='6.10e-06', photon_flux2='1.32e-08', job_status='DONE', time_completed='2022-09-16 16:46:34.162863', photon_index_error2='0.77', photon_index2='2.00', ts='1.51', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', photon_flux_upper_limit='7.30e-08', energy_flux_error2='1.47e-05', EG='0.77', time_epoch_completed='1663371994.16', return_code='0', job_id='114123', GAL2='1.16', EG2='0.77', return_code2='0', energy_flux_error='6.95e-06', photon_flux_error2='1.76e-08', ts2='1.67', photon_index='2.34' WHERE bin_id='1708' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:46:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 114123: <4FGL_J1207.7-0106_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 16:30:17 2022
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:30:30 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 16:30:30 2022
Terminated at Fri Sep 16 16:46:34 2022
Results reported at Fri Sep 16 16:46:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1708 181.928 -1.1063 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1207.7-0106 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   770.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             285.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            977 sec.

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

