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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1712
RA = 181.928, Dec = -1.1063
tmin = 683078401, tmax = 683337601
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='114129', job_status='RUN', time_executed='2022-09-16 16:32:12.194587', time_epoch_executed='1663371132.19' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/114129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/114129/ft1_4FGL_J1207.7-0106_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/114129/ft1_4FGL_J1207.7-0106_daily_bin1712.fits outfile=/scratch/kocevski/114129/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1712.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=683078401.0 tmax=683337601.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.93
user 4.63
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.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/114129/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.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.56
user 0.36
sys 0.18

Number of photons that the gtmktime cut: 641

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/114129/ltcube_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.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/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits
.....................!
real 18.80
user 18.31
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/114129/ltcube_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.fits outfile=/scratch/kocevski/114129/expmap_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.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/114129/ltcube_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.fits
.....................!
real 194.57
user 187.81
sys 5.50

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/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits scfile=/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits outfile=/scratch/kocevski/114129/cmap_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits scfile=/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits outfile=/scratch/kocevski/114129/cmap_HighResolution_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.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.56
user 0.37
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/114129/Model_4FGL_J1207.7-0106_daily_bin1712.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/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits.....................!
real 61.56
user 59.85
sys 1.53

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits', '/scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits', expMap='/scratch/kocevski/114129/expmap_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.fits', expCube='/scratch/kocevski/114129/ltcube_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/114129/Model_4FGL_J1207.7-0106_daily_bin1712.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/114129/ft1_filtered_4FGL_J1207.7-0106_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/114129/ft2_4FGL_J1207.7-0106_daily_bin1712.fits
Exposure map: /scratch/kocevski/114129/expmap_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.fits
Exposure cube: /scratch/kocevski/114129/ltcube_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/114129/Model_4FGL_J1207.7-0106_daily_bin1712.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7092.54873633

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2398       1.0000          .0000       .10000E+07
     2 'norm      '    .13336E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    1.5256       1.0000          .0000       .10000E+07
     4 'Prefactor '    .12391E-02   1.0000          .0000       .10000E+07
     5 'norm      '    .72711E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .12386E-05   1.0000          .0000       .10000E+07
     7 'Prefactor '    23.967       1.0000          .0000       .10000E+07
     8 'Prefactor '    127.65       1.0000          .0000       .10000E+07
     9 'Prefactor '    13.623       1.0000          .0000       .10000E+07
    10 'Prefactor '    6.7900       1.0000          .0000       .10000E+07
    11 'Prefactor '    3.5558       1.0000          .0000       .10000E+07
    12 'Prefactor '    .59400E-01   1.0000          .0000       .10000E+07
    13 'Prefactor '    2.2835       1.0000          .0000       .10000E+07
    14 'Prefactor '    12.904       1.0000          .0000       .10000E+07
    15 'Prefactor '    47.977       1.0000          .0000       .10000E+07
    16 'Prefactor '    31.867       1.0000          .0000       .10000E+07
    17 'norm      '    .94241       1.0000          .0000       .10000E+07
    18 'norm      '    .16691E-04   1.0000          .0000       .10000E+07
    19 'Prefactor '    40.694       1.0000          .0000       .10000E+07
    20 'norm      '    37.689       1.0000          .0000       .10000E+07
    21 'norm      '    .31736       1.0000          .0000       .10000E+07
    22 'Prefactor '    .24977E-01   1.0000          .0000       .10000E+07
    23 'norm      '    1.5494       1.0000          .0000       .10000E+07
    24 'Prefactor '    12.940       1.0000          .0000       .10000E+07
    25 'Prefactor '    .66377E-02   1.0000          .0000       .10000E+07
    26 'norm      '    .50342E-02   1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98687       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=   7088.078     FROM MIGRAD    STATUS=CONVERGED    197 CALLS     1544 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2305        3.9722        .13075E-06    .35819E-03
   2  norm          .86042E-07    18.505        .21570E-06** at limit **
   3  Prefactor     1.5246        1.4250        .16583E-07   -.81672E-03
   4  Prefactor     .27750E-06    26.015       -.12785E-07** at limit **
   5  norm          .12657E-07    9.8909       -.13689E-06** at limit **
   6  Prefactor      .0000        1.9335        .58239E-07** at limit **
   7  Prefactor     23.843        12.548       -.19276E-06   -.72656E-01
   8  Prefactor     128.94        110.65        .94699E-07   -.31654E-01
   9  Prefactor     13.360        12.868        .21460E-07    .28511E-01
  10  Prefactor     6.8450        6.3897        .32445E-07   -.11158E-02
  11  Prefactor     3.6697        11.762        .64166E-06    .34510E-02
  12  Prefactor     .55511E-10    32.266       -.37157E-06** at limit **
  13  Prefactor     1.0051        159.00       -.68485E-05    .17356E-01
  14  Prefactor     12.989        3.0323        .60832E-07    .25137E-01
  15  Prefactor     47.679        5.9478       -.65721E-07    .22780    
  16  Prefactor     31.559        9.0238        .13885E-06    .97786E-02
  17  norm          .96394        2.3415        .61639E-07   -.16468E-02
  18  norm          .49960E-09    5.2367       -.27520E-06** at limit **
  19  Prefactor     41.241        20.094        .72703E-06    .17442    
  20  norm          37.155        10.722       -.47250E-06    .28942E-01
  21  norm          .32045        .47471        .16072E-07    .67229E-03
  22  Prefactor      .0000        28.486        .55388E-08** at limit **
  23  norm          1.5479        1.2816       -.34062E-08    .78787E-03
  24  Prefactor     12.915        7.5637       -.16131E-06    .19804E-02
  25  Prefactor     .53568E-07    15.285        .18603E-06** at limit **
  26  norm          .10547E-08    7.6969        .47857E-06** at limit **
  27  Normalizat    1.0543        .24375       -.90925E-05    .33804E-05
  28  Prefactor     .98697        .17653        .55752E-05   -.18633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.23045
  norm       = 8.60423e-08
  Prefactor  = 1.52462
  Prefactor  = 2.775e-07
  norm       = 1.26565e-08
  Prefactor  = 0
  Prefactor  = 23.8429
  Prefactor  = 128.944
  Prefactor  = 13.3599
  Prefactor  = 6.84501
  Prefactor  = 3.66974
  Prefactor  = 5.55112e-11
  Prefactor  = 1.00509
  Prefactor  = 12.9895
  Prefactor  = 47.6785
  Prefactor  = 31.559
  norm       = 0.963945
  norm       = 4.996e-10
  Prefactor  = 41.2405
  norm       = 37.1549
  norm       = 0.320447
  Prefactor  = 0
  norm       = 1.54793
  Prefactor  = 12.9147
  Prefactor  = 5.35683e-08
  norm       = 1.05471e-09
  Normalizat = 1.05434
  Prefactor  = 0.986972
 **********
 **   18 **HESSE 
 **********

 FCN=   7088.078     FROM HESSE     STATUS=OK           585 CALLS     2129 TOTAL
                     EDM=   .29E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2305        3.9938        .56249E-03   -1.5672    
   2  norm          .86042E-07    18.546        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.5246        1.4243        .86425E-03   -1.5683    
   4  Prefactor     .27750E-06    26.116        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .12657E-07    9.7270        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor      .0000        1.9236        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.843        15.856        .20431E-03   -1.5610    
   8  Prefactor     128.94        113.27        .88514E-04   -1.5481    
   9  Prefactor     13.360        12.951        .27112E-03   -1.5635    
  10  Prefactor     6.8450        6.4196        .38482E-03   -1.5656    
  11  Prefactor     3.6697        11.824        .53574E-03   -1.5670    
  12  Prefactor     .55511E-10    32.005        .15184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.0051        216.12        .67913E-03   -1.5688    
  14  Prefactor     12.989        22.722        .27859E-03   -1.5636    
  15  Prefactor     47.679        30.849        .14438E-03   -1.5570    
  16  Prefactor     31.559        17.529        .17717E-03   -1.5596    
  17  norm          .96394        2.5586        .42871E-03   -1.5688    
  18  norm          .49960E-09    5.1783        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     41.241        43.059        .15677E-03   -1.5580    
  20  norm          37.155        40.656        .16291E-03   -1.5586    
  21  norm          .32045        .52807        .99763E-03   -1.5697    
  22  Prefactor      .0000        4.6883        .10102E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.5479        1.3028        .85548E-03   -1.5683    
  24  Prefactor     12.915        7.6315        .27820E-03   -1.5636    
  25  Prefactor     .53568E-07    15.361        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10547E-08    7.6965        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0543        .21335        .67665E-01   -.91231    
  28  Prefactor     .98697        .15040        .46103E-01   -.93165    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.94973e-06
Minuit parameter uncertainties:
  1  3.99378
  2  0.00252635
  3  1.42434
  4  0.00538441
  5  0.000702066
  6  8.18721e-06
  7  15.8564
  8  113.269
  9  12.951
  10  6.41963
  11  11.8244
  12  9.38576e-05
  13  29.4778
  14  22.7217
  15  30.8486
  16  17.5294
  17  2.55859
  18  0.000103421
  19  43.0594
  20  40.6567
  21  0.528072
  22  1.84417e-06
  23  1.30276
  24  7.63149
  25  0.00181387
  26  0.000179885
  27  0.213521
  28  0.150461
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.299e+01  2.272e+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:  9.870e-01  1.505e-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.054e+00  2.135e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.49
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.17e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/114129/likelihoodResults_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.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) = 7088.02969641
delta logL = 0.0481153934434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7087.93106656
delta logL = 0.146745251306

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .56723       1.0000          .0000       .10000E+07
     2 'Index     '    4.4531       1.0000          .0000       10.000    
     3 'Normalizat'    1.0023       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0183       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.

 FCN=   7087.931     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      261 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55366        10.597        .72216E-03    .17590E-01
   2  Index         4.4659        2.5470        .16226        .13725E-03
   3  Normalizat    1.0017        .39882E-01    .69212E-01    .21211E-04
   4  Prefactor     1.0189        .30501E-01    .42318E-01    .20684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.553664
  Index      = 4.46588
  Normalizat = 1.00172
  Prefactor  = 1.01887
 **********
 **   18 **HESSE 
 **********

 FCN=   7087.931     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      294 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55366        37.901        .71450E-05   -1.5693    
   2  Index         4.4659        7.2172        .59033E-02   -.10703    
   3  Normalizat    1.0017        .18776        .30618E-03   -.92973    
   4  Prefactor     1.0189        .14093        .23135E-03   -.92103    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.86378e-10
Minuit parameter uncertainties:
  1  9.16177
  2  7.83585
  3  0.187882
  4  0.14098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/114129': 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): 102
logL (Free Index) = 7087.93105327
delta logL = 0.14675853945

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  5.537e-01  9.162e+00  0.000e+00  1.000e+06 ( 1.000e-13)
321        Index:  4.466e+00  7.836e+00  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.019e+00  1.410e-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.002e+00  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/114129/cmap_HighResolution_683078401_683337601_4FGL_J1207.7-0106_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.17e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2022-09-16 16:43:51.650077', job_id='114129', GAL2='1.02', fit_tolerance='1e-08', EG2='1.00', EG='1.05', time_epoch_completed='1663371831.65', return_code2='102', ts='0.49', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='1.47e-01', ts2='0.88', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1712' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 16:43:51 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 114129: <4FGL_J1207.7-0106_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1712> 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) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 16:30:32 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:32 2022
Terminated at Fri Sep 16 16:43:52 2022
Results reported at Fri Sep 16 16:43:52 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1712 181.928 -1.1063 683078401 683337601 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 :                                   699.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             300.27 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   799 sec.
    Turnaround time :                            815 sec.

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

