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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1755
RA = 181.928, Dec = -1.1063
tmin = 694224001, tmax = 694483201
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='822159', job_status='RUN', time_executed='2023-01-04 00:59:19.765719', time_epoch_executed='1672822759.77' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1755'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/822159

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/822159/ft1_4FGL_J1207.7-0106_daily_bin1755.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/822159/ft1_4FGL_J1207.7-0106_daily_bin1755.fits outfile=/scratch/kocevski/822159/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1755.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=694224001.0 tmax=694483201.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.03
user 2.79
sys 0.20

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

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

Number of photons that the gtmktime cut: 510

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/822159/ft1_filtered_4FGL_J1207.7-0106_daily_bin1755.fits" evtable="EVENTS" scfile=/scratch/kocevski/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits sctable="SC_DATA" outfile=/scratch/kocevski/822159/ltcube_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.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/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits
.....................!
real 16.67
user 16.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/822159/ft1_filtered_4FGL_J1207.7-0106_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits sctable="SC_DATA" expcube=/scratch/kocevski/822159/ltcube_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.fits outfile=/scratch/kocevski/822159/expmap_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.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/822159/ltcube_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.fits
.....................!
real 195.82
user 189.33
sys 5.27

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/822159/ft1_filtered_4FGL_J1207.7-0106_daily_bin1755.fits scfile=/scratch/kocevski/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits outfile=/scratch/kocevski/822159/cmap_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/822159/ft1_filtered_4FGL_J1207.7-0106_daily_bin1755.fits scfile=/scratch/kocevski/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits outfile=/scratch/kocevski/822159/cmap_HighResolution_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/822159/ft1_filtered_4FGL_J1207.7-0106_daily_bin1755.fits evtable="EVENTS" scfile=/scratch/kocevski/822159/ft2_4FGL_J1207.7-0106_daily_bin1755.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/822159/Model_4FGL_J1207.7-0106_daily_bin1755.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/822159/ft1_filtered_4FGL_J1207.7-0106_daily_bin1755.fits.....................!
real 51.03
user 49.46
sys 1.29

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .77080E-04   1.0000          .0000       .10000E+07
     2 'norm      '    .40538E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.6645       1.0000          .0000       .10000E+07
     4 'Prefactor '    12.647       1.0000          .0000       .10000E+07
     5 'norm      '    .16864E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    .17455E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    2.2330       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.8790       1.0000          .0000       .10000E+07
     9 'Prefactor '    .26654E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .40929E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    37.865       1.0000          .0000       .10000E+07
    12 'Prefactor '    .92926E-07   1.0000          .0000       .10000E+07
    13 'Prefactor '    53.667       1.0000          .0000       .10000E+07
    14 'Prefactor '    24.772       1.0000          .0000       .10000E+07
    15 'Prefactor '    .29831E-02   1.0000          .0000       .10000E+07
    16 'Prefactor '    .33269E-03   1.0000          .0000       .10000E+07
    17 'norm      '    .61441       1.0000          .0000       .10000E+07
    18 'norm      '    1.4956       1.0000          .0000       .10000E+07
    19 'Prefactor '    .20460E-03   1.0000          .0000       .10000E+07
    20 'norm      '    .20801E-02   1.0000          .0000       .10000E+07
    21 'norm      '    3.2883       1.0000          .0000       .10000E+07
    22 'Prefactor '    .20367E-06   1.0000          .0000       .10000E+07
    23 'norm      '    .76228E-04   1.0000          .0000       .10000E+07
    24 'Prefactor '    .82992       1.0000          .0000       .10000E+07
    25 'Prefactor '    .54388E-03   1.0000          .0000       .10000E+07
    26 'norm      '    .47018E-03   1.0000          .0000       .10000E+07
    27 'Normalizat'    .96239       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .96047       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=   5596.532     FROM MIGRAD    STATUS=CONVERGED    240 CALLS     2627 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-08    3.2783       -.11678E-05** at limit **
   2  norm          .90117E-06    15.099       -.31809E-05** at limit **
   3  Prefactor     2.6701        2.1647       -.10138E-05    .35409E-02
   4  Prefactor     12.707        1.8321        .16460E-06    .12813E-01
   5  norm          .13878E-08    2.9224       -.48408E-06** at limit **
   6  Prefactor     .16622E-04    4.4185       -.23191E-05** at limit **
   7  Prefactor     2.0371        3.2240       -.25910E-05   -.22809E-01
   8  Prefactor     11.456        353.99        .49632E-04    .19595E-03
   9  Prefactor     .71609E-08    6.6312       -.94866E-06** at limit **
  10  Prefactor     .77716E-09    2.7145       -.25940E-07** at limit **
  11  Prefactor     37.813        1.9460        .47214E-07   -.38512E-02
  12  Prefactor     .91038E-08    25.622        .17278E-05** at limit **
  13  Prefactor     57.110        46.302       -.43763E-05    .24713E-01
  14  Prefactor     24.696        2.0829        .27034E-06    .22825E-01
  15  Prefactor     .22760E-08    9.1661        .38529E-06** at limit **
  16  Prefactor     .62728E-08    7.4060        .49154E-08** at limit **
  17  norm          .62035        2.1055        .33966E-06   -.26585E-03
  18  norm          1.4874        2.5106       -.98569E-06    .49797E-02
  19  Prefactor     .13018E-05    80.878       -.10568E-04** at limit **
  20  norm          .28516E-06    12.840        .83911E-05** at limit **
  21  norm          3.2918        .69715        .35981E-07   -.84504E-02
  22  Prefactor     .10547E-08    2.8459       -.34063E-06** at limit **
  23  norm          .13267E-07    11.697        .94215E-05** at limit **
  24  Prefactor     .83605        7.6441        .11841E-05   -.11835E-02
  25  Prefactor     .20539E-07    8.4395       -.30066E-06** at limit **
  26  norm          .66430E-06    12.026       -.33110E-05** at limit **
  27  Normalizat    .95496        .26154       -.26952E-04    .67901E-05
  28  Prefactor     .96324        .19122        .11504E-04   -.16067E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-09
  norm       = 9.01168e-07
  Prefactor  = 2.67009
  Prefactor  = 12.707
  norm       = 1.38778e-09
  Prefactor  = 1.66215e-05
  Prefactor  = 2.03706
  Prefactor  = 11.4555
  Prefactor  = 7.16094e-09
  Prefactor  = 7.77156e-10
  Prefactor  = 37.8128
  Prefactor  = 9.10383e-09
  Prefactor  = 57.1102
  Prefactor  = 24.696
  Prefactor  = 2.27596e-09
  Prefactor  = 6.27276e-09
  norm       = 0.620353
  norm       = 1.48741
  Prefactor  = 1.30179e-06
  norm       = 2.85161e-07
  norm       = 3.29183
  Prefactor  = 1.05471e-09
  norm       = 1.32672e-08
  Prefactor  = 0.836054
  Prefactor  = 2.05391e-08
  norm       = 6.64302e-07
  Normalizat = 0.954958
  Prefactor  = 0.96324
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.532     FROM HESSE     STATUS=OK           581 CALLS     3208 TOTAL
                     EDM=   .60E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-08    3.2817        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .90117E-06    16.150        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.6701        2.1639        .62413E-03   -1.5675    
   4  Prefactor     12.707        24.632        .28142E-03   -1.5637    
   5  norm          .13878E-08    2.9225        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .16622E-04    3.0356        .42118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0371        30.482        .68765E-03   -1.5679    
   8  Prefactor     11.456        350.75        .51209E-03   -1.5640    
   9  Prefactor     .71609E-08    6.5974        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .77716E-09    2.7027        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.813        18.749        .16253E-03   -1.5585    
  12  Prefactor     .91038E-08    25.725        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     57.110        46.699        .13651E-03   -1.5557    
  14  Prefactor     24.696        23.150        .20096E-03   -1.5609    
  15  Prefactor     .22760E-08    9.1885        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .62728E-08    7.4130        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .62035        2.1267        .67947E-03   -1.5692    
  18  norm          1.4874        2.5527        .87576E-03   -1.5684    
  19  Prefactor     .13018E-05    81.903        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .28516E-06    13.616        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.2918        .69663        .55810E-03   -1.5672    
  22  Prefactor     .10547E-08    2.8433        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .13267E-07    1.1962        .25664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .83605        7.6966        .50731E-03   -1.5690    
  25  Prefactor     .20539E-07    8.4666        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .66430E-06    12.943        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .95496        .22529        .67464E-01   -.94555    
  28  Prefactor     .96324        .16251        .45771E-01   -.93965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.02848e-07
Minuit parameter uncertainties:
  1  0.000148318
  2  0.00763012
  3  2.16387
  4  24.6321
  5  0.000127078
  6  0.0142066
  7  15.7601
  8  126.783
  9  0.000434546
  10  9.32289e-05
  11  18.7494
  12  0.000967746
  13  46.6993
  14  23.1504
  15  0.000287485
  16  0.00043155
  17  2.12672
  18  2.55266
  19  0.0206516
  20  0.00394107
  21  0.696631
  22  0.000110821
  23  0.000252024
  24  5.07337
  25  0.00083448
  26  0.00586432
  27  0.225515
  28  0.16259
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  2.470e+01  2.315e+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.632e-01  1.626e-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:  9.550e-01  2.255e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.73
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.45e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.59e-05 +/- 1.49e-05

TS (Fixed Index): 1.73
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 1.37e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/822159/likelihoodResults_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.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) = 5596.49905882
delta logL = 0.0331545153831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5596.49605142
delta logL = 0.0361619110572

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.561       1.0000          .0000       .10000E+07
     2 'Index     '    2.1658       1.0000          .0000       10.000    
     3 'Normalizat'    .96159       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95954       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=   5596.496     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      299 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.562        29.165        .74860E-05   -.23345E-02
   2  Index         2.1657        .63051        .84167E-02   -.12953E-03
   3  Normalizat    .96162        .24372        .29753E-03    .70346E-04
   4  Prefactor     .95952        .18658        .22756E-03    .11741E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.562
  Index      = 2.16574
  Normalizat = 0.961618
  Prefactor  = 0.959517
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.496     FROM HESSE     STATUS=OK            25 CALLS      324 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.562        28.558        .14972E-05   -1.5601    
   2  Index         2.1657        .61733        .33667E-03   -.60268    
   3  Normalizat    .96162        .24386        .11901E-04   -.94328    
   4  Prefactor     .95952        .18669        .91023E-05   -.94091    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18507e-10
Minuit parameter uncertainties:
  1  28.5584
  2  0.619665
  3  0.244139
  4  0.186817
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/822159': 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) = 5596.49605142
delta logL = 0.0361619175046

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  2.856e+01  2.856e+01  0.000e+00  1.000e+06 ( 1.000e-13)
321        Index:  2.166e+00  6.197e-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.595e-01  1.868e-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:  9.616e-01  2.441e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.79
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 2.17 +/- 0.62
Photon Flux (Free Index): 3.95e-08 +/- 4.22e-08
Energy Flux (Free Index): 1.89e-05 +/- 2.16e-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/822159/cmap_HighResolution_694224001_694483201_4FGL_J1207.7-0106_daily_bin1755.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', photon_flux='4.45e-08', energy_flux2='1.89e-05', photon_flux_error='4.17e-08', dlogl='3.62e-02', energy_flux='1.59e-05', photon_flux2='3.95e-08', job_status='DONE', time_completed='2023-01-04 01:11:08.212219', photon_index_error2='0.62', photon_index2='2.17', ts='1.73', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', photon_flux_upper_limit='1.37e-07', energy_flux_error2='2.16e-05', EG='0.95', time_epoch_completed='1672823468.21', return_code='0', job_id='822159', GAL2='0.96', EG2='0.96', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.22e-08', ts2='1.79', photon_index='2.34' WHERE bin_id='1755' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Jan  4 01:11:08 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 822159: <4FGL_J1207.7-0106_daily_bin1755> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1755> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Wed Jan  4 00:55:17 2023
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jan  4 00:55:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jan  4 00:55:46 2023
Terminated at Wed Jan  4 01:11:09 2023
Results reported at Wed Jan  4 01:11:09 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1755 181.928 -1.1063 694224001 694483201 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 :                                   709.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   922 sec.
    Turnaround time :                            952 sec.

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

