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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1751
RA = 181.928, Dec = -1.1063
tmin = 693187201, tmax = 693446401
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='76463', job_status='RUN', time_executed='2022-12-23 00:37:25.502682', time_epoch_executed='1671784645.5' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/76463

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/76463/ft1_4FGL_J1207.7-0106_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/76463/ft1_4FGL_J1207.7-0106_daily_bin1751.fits outfile=/scratch/kocevski/76463/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1751.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=693187201.0 tmax=693446401.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.41
sys 0.19

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

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

Number of photons that the gtmktime cut: 623

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/76463/ltcube_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.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/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits
.....................!
real 11.99
user 11.65
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/76463/ltcube_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.fits outfile=/scratch/kocevski/76463/expmap_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.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/76463/ltcube_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.fits
.....................!
real 191.56
user 186.86
sys 4.37

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/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits scfile=/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits outfile=/scratch/kocevski/76463/cmap_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.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.54
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits scfile=/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits outfile=/scratch/kocevski/76463/cmap_HighResolution_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/76463/Model_4FGL_J1207.7-0106_daily_bin1751.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/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits.....................!
real 58.52
user 57.18
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits', '/scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits', expMap='/scratch/kocevski/76463/expmap_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.fits', expCube='/scratch/kocevski/76463/ltcube_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/76463/Model_4FGL_J1207.7-0106_daily_bin1751.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/76463/ft1_filtered_4FGL_J1207.7-0106_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/76463/ft2_4FGL_J1207.7-0106_daily_bin1751.fits
Exposure map: /scratch/kocevski/76463/expmap_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.fits
Exposure cube: /scratch/kocevski/76463/ltcube_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/76463/Model_4FGL_J1207.7-0106_daily_bin1751.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) = 6860.59339586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77766E-06   1.0000          .0000       .10000E+07
     2 'norm      '    .27856E-03   1.0000          .0000       .10000E+07
     3 'Prefactor '    4.8763       1.0000          .0000       .10000E+07
     4 'Prefactor '    .23630E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .33604E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    11.990       1.0000          .0000       .10000E+07
     7 'Prefactor '    .79276E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .95785E-05   1.0000          .0000       .10000E+07
     9 'Prefactor '    .16783E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    .16200E-03   1.0000          .0000       .10000E+07
    11 'Prefactor '    7.7871       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22221E-05   1.0000          .0000       .10000E+07
    13 'Prefactor '    .64775E-03   1.0000          .0000       .10000E+07
    14 'Prefactor '    .42805E-03   1.0000          .0000       .10000E+07
    15 'Prefactor '    2.1085       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.5146       1.0000          .0000       .10000E+07
    17 'norm      '    .40777E-01   1.0000          .0000       .10000E+07
    18 'norm      '    .13534E-06   1.0000          .0000       .10000E+07
    19 'Prefactor '    19.984       1.0000          .0000       .10000E+07
    20 'norm      '    .73603E-03   1.0000          .0000       .10000E+07
    21 'norm      '    2.6026       1.0000          .0000       .10000E+07
    22 'Prefactor '    .17143E-03   1.0000          .0000       .10000E+07
    23 'norm      '    .93584       1.0000          .0000       .10000E+07
    24 'Prefactor '    .55296E-04   1.0000          .0000       .10000E+07
    25 'Prefactor '    .65950E-03   1.0000          .0000       .10000E+07
    26 'norm      '    12.816       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.1497       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99312       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=   6860.556     FROM MIGRAD    STATUS=CONVERGED    209 CALLS     2010 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        1.5274       -.23495E-06** at limit **
   2  norm          .10103E-07    8.0890       -.50801E-05** at limit **
   3  Prefactor     4.8819        3.2106        .97515E-07   -.61070E-03
   4  Prefactor     .27808E-05    6.1832       -.14660E-05** at limit **
   5  norm          .19207E-07    1.0654        .12658E-05** at limit **
   6  Prefactor     12.021        4.6201        .28151E-06    .25902E-02
   7  Prefactor     .16653E-09    7.5695        .29126E-05** at limit **
   8  Prefactor     .14988E-07    73.301       -.70816E-05** at limit **
   9  Prefactor     .73663E-07    1.9800       -.90252E-06** at limit **
  10  Prefactor     .83211E-07    1.8586        .38463E-06** at limit **
  11  Prefactor     7.8185        2.3548        .91923E-06    .14408E-01
  12  Prefactor     .48705E-06    7.5894        .16430E-06** at limit **
  13  Prefactor     .29196E-05    12.095        .28961E-05** at limit **
  14  Prefactor     .55511E-10    5.2936        .94047E-06** at limit **
  15  Prefactor     2.1599        1.4176        .48911E-06   -.29463E-02
  16  Prefactor     3.5003        5.5289       -.91812E-06   -.28832E-02
  17  norm          .37393E-01    17.226        .43237E-05** at limit **
  18  norm           .0000        .82527        .73316E-07** at limit **
  19  Prefactor     20.721        2.6534       -.22213E-06    .97385E-02
  20  norm          .53613E-06    15.859       -.17806E-05** at limit **
  21  norm          2.6026        .61587        .17471E-07    .13814E-01
  22  Prefactor     .55511E-10    2.8621        .40216E-06** at limit **
  23  norm          .93591        .93822        .29795E-07   -.18962E-02
  24  Prefactor      .0000        3.3441       -.30902E-06** at limit **
  25  Prefactor     .28255E-07    10.189        .46229E-05** at limit **
  26  norm          12.607        1.1654        .65064E-07   -.11805E-02
  27  Normalizat    1.1490        .23512       -.29162E-04    .23234E-03
  28  Prefactor     .99344        .17729        .15099E-04    .39087E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  norm       = 1.0103e-08
  Prefactor  = 4.88193
  Prefactor  = 2.78078e-06
  norm       = 1.92069e-08
  Prefactor  = 12.021
  Prefactor  = 1.66533e-10
  Prefactor  = 1.4988e-08
  Prefactor  = 7.36633e-08
  Prefactor  = 8.32112e-08
  Prefactor  = 7.81852
  Prefactor  = 4.87055e-07
  Prefactor  = 2.91961e-06
  Prefactor  = 5.55112e-11
  Prefactor  = 2.15987
  Prefactor  = 3.50035
  norm       = 0.0373928
  norm       = 0
  Prefactor  = 20.7214
  norm       = 5.36127e-07
  norm       = 2.60262
  Prefactor  = 5.55112e-11
  norm       = 0.93591
  Prefactor  = 0
  Prefactor  = 2.82552e-08
  norm       = 12.6073
  Normalizat = 1.14902
  Prefactor  = 0.993439
 **********
 **   18 **HESSE 
 **********

 FCN=   6860.556     FROM HESSE     STATUS=OK           583 CALLS     2593 TOTAL
                     EDM=   .37E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        1.5306        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10103E-07    8.5513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.8819        3.2204        .45528E-03   -1.5664    
   4  Prefactor     .27808E-05    21.971        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .19207E-07    2.8287        .90787E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.021        4.7256        .28905E-03   -1.5639    
   7  Prefactor     .16653E-09    7.7950        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .14988E-07    73.224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .73663E-07    3.6857        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .83211E-07    3.6948        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     7.8185        12.555        .35910E-03   -1.5652    
  12  Prefactor     .48705E-06    22.861        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .29196E-05    24.465        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .55511E-10    5.3135        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1599        61.516        .71024E-03   -1.5679    
  16  Prefactor     3.5003        5.5752        .53901E-03   -1.5671    
  17  norm          .37393E-01    1.1123        .46551E-02   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm           .0000        .82353        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.721        24.104        .22377E-03   -1.5617    
  20  norm          .53613E-06    17.446        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.6026        .61647        .63211E-03   -1.5676    
  22  Prefactor     .55511E-10    2.8594        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .93591        .93967        .43313E-03   -1.5689    
  24  Prefactor      .0000        3.3395        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .28255E-07    10.407        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          12.607        22.734        .27955E-03   -1.5637    
  27  Normalizat    1.1490        .20344        .65741E-01   -.88193    
  28  Prefactor     .99344        .15259        .46181E-01   -.92949    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.67628e-07
Minuit parameter uncertainties:
  1  4.34363e-06
  2  0.000588437
  3  3.22044
  4  0.0156328
  5  0.000466242
  6  4.72561
  7  7.11059e-05
  8  0.00209573
  9  0.00104217
  10  0.00110888
  11  12.555
  12  0.00667386
  13  0.0169032
  14  3.53127e-05
  15  23.0538
  16  5.57525
  17  0.407886
  18  1.61684e-06
  19  24.1038
  20  0.00611658
  21  0.616473
  22  2.08612e-05
  23  0.939667
  24  5.13816e-06
  25  0.00108412
  26  22.7341
  27  0.203575
  28  0.152652
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  5.551e-11  3.531e-05  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:  9.934e-01  1.527e-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:  1.149e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/76463/likelihoodResults_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.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) = 6860.56561666
delta logL = -0.00984544256335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6860.55577122
delta logL = -3.58522811439e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .32752E-08   1.0000          .0000       .10000E+07
     2 'Index     '    2.7105       1.0000          .0000       10.000    
     3 'Normalizat'    1.1490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99343       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6860.556     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      234 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor      .0000        5.7664        .42118E-03** at limit **
   2  Index         1.2523        .75002       -.52393E-04     .0000    
   3  Normalizat    1.1490        1.1269       -.33847E-04    .35880E-03
   4  Prefactor     .99344        1.3329        .26980E-04    .41796E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0
  Index      = 1.25234
  Normalizat = 1.14902
  Prefactor  = 0.993438
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   6860.556     FROM HESSE     STATUS=FAILED         9 CALLS      243 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor      .0000        5.7664        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .11346        1.2364       -.52393E-04   -.84736    
   3  Normalizat    1.1490        1.1269       -.33847E-04   -.88193    
   4  Prefactor     .99344        1.3329        .26980E-04   -.92949    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.0171e-10
Minuit parameter uncertainties:
  1  7.25512e-06
  2  0.756594
  3  1.15202
  4  1.3815
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/76463': 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): 101
logL (Free Index) = 6860.55577121
delta logL = -8.18545231596e-12

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  0.000e+00  7.255e-06  0.000e+00  1.000e+06 ( 1.000e-13)
321        Index:  1.252e+00  7.566e-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:  9.934e-01  1.381e+00  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:  1.149e+00  1.152e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 181.928 -1.106

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/76463/cmap_HighResolution_693187201_693446401_4FGL_J1207.7-0106_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='4.93e-08', time_completed='2022-12-23 00:49:03.086107', job_id='76463', GAL2='0.99', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1671785343.09', return_code2='101', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-8.19e-12', ts2='0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1751' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:49:03 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0278>
Subject: Job 76463: <4FGL_J1207.7-0106_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1751> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Dec 23 00:35:20 2022
Job was executed on host(s) <bullet0278>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:35:21 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:35:21 2022
Terminated at Fri Dec 23 00:49:03 2022
Results reported at Fri Dec 23 00:49:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1751 181.928 -1.1063 693187201 693446401 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 :                                   697.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             315.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

