/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 5 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7364
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1207.7-0106_daily_bin460
RA = 181.928, Dec = -1.1063
tmin = 358560001, tmax = 358819201
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='323117', job_status='RUN', time_executed='2021-09-04 23:56:01.439669', time_epoch_executed='1630824961.44' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/323117

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/323117/ft1_4FGL_J1207.7-0106_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/323117/ft1_4FGL_J1207.7-0106_daily_bin460.fits outfile=/scratch/kocevski/323117/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin460.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.31
user 4.97
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.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/323117/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin460.fits evtable="EVENTS" outfile="/scratch/kocevski/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.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.61
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/323117/ltcube_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.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/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits
.....................!
real 12.17
user 11.54
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/323117/ltcube_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.fits outfile=/scratch/kocevski/323117/expmap_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.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/323117/ltcube_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.fits
.....................!
real 193.87
user 185.93
sys 6.10

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/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits scfile=/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits outfile=/scratch/kocevski/323117/cmap_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.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.53
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/323117/Model_4FGL_J1207.7-0106_daily_bin460.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/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits.....................!
real 55.52
user 53.97
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits', '/scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits', expMap='/scratch/kocevski/323117/expmap_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.fits', expCube='/scratch/kocevski/323117/ltcube_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/323117/Model_4FGL_J1207.7-0106_daily_bin460.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  1.000e-04  1.000e+04 ( 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/323117/ft1_filtered_4FGL_J1207.7-0106_daily_bin460.fits
Spacecraft file(s): /scratch/kocevski/323117/ft2_4FGL_J1207.7-0106_daily_bin460.fits
Exposure map: /scratch/kocevski/323117/expmap_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.fits
Exposure cube: /scratch/kocevski/323117/ltcube_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/323117/Model_4FGL_J1207.7-0106_daily_bin460.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) = 6100.79919969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9013       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1930       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5976       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.541       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.327       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.185       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.9485       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10212E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.481       1.0000         .10000E-03   10000.    
    15 'Prefactor '    55.034       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .45571E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10876E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.9673       1.0000         .10000E-03   10000.    
    19 'norm      '    3.0974       1.0000         .10000E-03   10000.    
    20 'norm      '    4.4680       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6635       1.0000         .10000E-03   10000.    
    22 'norm      '    .10552E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10896E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0951       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.4323       1.0000         .10000E-03   10000.    
    27 'Prefactor '    12.033       1.0000         .10000E-03   10000.    
    28 'Prefactor '    34.728       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.5264       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .48466       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.

 FCN=   6100.783     FROM MIGRAD    STATUS=CONVERGED    896 CALLS     4428 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9012        2.7922        .13249E-06    .13436E-05
   2  norm          .10000E-03    9.5293       -.48750E-08** at limit **
   3  Prefactor     2.1939        2.5360        .17450E-06   -.58811E-05
   4  Prefactor     .10000E-03    10.401       -.31674E-07** at limit **
   5  norm          .10000E-03    1.0938       -.12939E-07** at limit **
   6  Prefactor     3.5975        2.8308        .53383E-07    .21003E-03
   7  Prefactor     .10030E-03    12.597       -.88416E-06** at limit **
   8  Prefactor     .10000E-03    19.082        .89259E-07** at limit **
   9  Prefactor     51.475        71.754        .57775E-06    .45531E-04
  10  Prefactor     12.337        10.738       -.68358E-07   -.14074E-03
  11  Prefactor     12.195        18.989       -.99991E-06   -.34824E-03
  12  Prefactor     2.9480        8.2453        .88398E-06    .10860E-03
  13  Prefactor     .10000E-03    5.4535       -.13219E-06** at limit **
  14  Prefactor     18.486        20.175       -.41867E-06   -.21137E-03
  15  Prefactor     55.046        39.037       -.19520E-06   -.35661E-04
  16  Prefactor     .11513E-03    21.566       -.15299E-05** at limit **
  17  Prefactor     .10000E-03    14.787        .37875E-07** at limit **
  18  Prefactor     3.9675        12.136       -.34480E-05   -.51961E-04
  19  norm          3.0977        3.2203        .19647E-05   -.18928E-03
  20  norm          4.4664        3.5833        .52693E-07    .26732E-04
  21  Prefactor     9.5232        31.869        .85920E-06    .56744E-04
  22  norm          .10000E-03    23.654       -.19263E-07** at limit **
  23  Prefactor     .10000E-03    62.250       -.24828E-07** at limit **
  24  norm          1.0947        .66828        .22260E-08    .58173E-04
  25  Prefactor     .10000E-03    3.1350       -.16489E-07** at limit **
  26  norm          2.4320        1.7847        .58569E-07   -.11776E-04
  27  Prefactor     12.038        7.4691        .54143E-07    .77963E-04
  28  Prefactor     34.746        34.837        .16412E-07   -.95073E-05
  29  Prefactor     .10000E-03    10.562        .12281E-06** at limit **
  30  norm          .10000E-03    10.589       -.46304E-07** at limit **
  31  Normalizat    1.5263        .21395       -.33196E-07    .17093E-03
  32  Prefactor     .48468        .14626       -.60513E-06    .13653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.90117
  norm       = 0.0001
  Prefactor  = 2.19395
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.59747
  Prefactor  = 0.000100296
  Prefactor  = 0.0001
  Prefactor  = 51.4746
  Prefactor  = 12.3368
  Prefactor  = 12.1947
  Prefactor  = 2.94796
  Prefactor  = 0.0001
  Prefactor  = 18.4857
  Prefactor  = 55.0463
  Prefactor  = 0.000115135
  Prefactor  = 0.0001
  Prefactor  = 3.9675
  norm       = 3.09769
  norm       = 4.46644
  Prefactor  = 9.5232
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.09474
  Prefactor  = 0.0001
  norm       = 2.43203
  Prefactor  = 12.0382
  Prefactor  = 34.7458
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.52634
  Prefactor  = 0.48468
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.783     FROM HESSE     STATUS=OK           667 CALLS     5095 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9012        2.7718        .15302E-03   -1.5432    
   2  norm          .10000E-03    9.5365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.1939        2.5282        .12637E-03   -1.5412    
   4  Prefactor     .10000E-03    10.431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.0944        .79771E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.5975        2.7911        .11029E-03   -1.5329    
   7  Prefactor     .10030E-03    128.77        .52051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.475        71.872        .55863E-04   -1.4272    
  10  Prefactor     12.337        10.753        .11409E-03   -1.5005    
  11  Prefactor     12.195        19.428        .11476E-03   -1.5009    
  12  Prefactor     2.9480        8.2196        .23652E-03   -1.5365    
  13  Prefactor     .10000E-03    5.4684        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     18.486        20.278        .93165E-04   -1.4848    
  15  Prefactor     55.046        39.070        .54070E-04   -1.4223    
  16  Prefactor     .11513E-03    27.021        .95265E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    14.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.9675        12.067        .20250E-03   -1.5310    
  19  norm          3.0977        3.2272        .56501E-03   -1.5356    
  20  norm          4.4664        3.5707        .12022E-03   -1.5285    
  21  Prefactor     9.5232        31.895        .12891E-03   -1.5091    
  22  norm          .10000E-03    23.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    62.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0947        .65257        .43633E-04   -1.5499    
  25  Prefactor     .10000E-03    3.1405        .13505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4320        1.7727        .84175E-04   -1.5396    
  27  Prefactor     12.038        7.4650        .11548E-03   -1.5014    
  28  Prefactor     34.746        34.805        .68002E-04   -1.4528    
  29  Prefactor     .10000E-03    10.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    10.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.5263        .25101        .24485E-03   -.77041    
  32  Prefactor     .48468        .16809        .29353E-03   -1.1269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84679e-09
Minuit parameter uncertainties:
  1  2.77196
  2  1.37492e-06
  3  2.52829
  4  1.25911e-05
  5  4.93898e-07
  6  2.79124
  7  0.0123783
  8  6.3516e-06
  9  71.9938
  10  10.7548
  11  19.4384
  12  8.22277
  13  4.12282e-06
  14  20.2856
  15  39.0887
  16  0.0404629
  17  4.32577e-07
  18  12.0746
  19  3.22735
  20  3.57084
  21  31.9518
  22  1.01845e-05
  23  9.76176e-05
  24  0.652576
  25  1.82314e-06
  26  1.77275
  27  7.46557
  28  34.825
  29  3.81144e-05
  30  2.22148e-05
  31  0.251215
  32  0.168266
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.151e-04  4.046e-02  1.000e-04  1.000e+04 ( 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:  4.847e-01  1.683e-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.526e+00  2.512e-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: 9.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/323117/likelihoodResults_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.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) = 6100.78336045
delta logL = -3.05466346617e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6100.78336044
delta logL = -3.04734385281e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96366E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3376       1.0000          .0000       10.000    
     3 'Normalizat'    1.5263       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48469       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=   6100.678     FROM MIGRAD    STATUS=CONVERGED    138 CALLS      322 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4979        33.114        .26530E-03   -.12282E-03
   2  Index         3.2870        3.1508        .85327E-02   -.30638E-04
   3  Normalizat    1.5000        .23783        .24663E-03    .21626E-03
   4  Prefactor     .49379        .16712        .29096E-03    .12085E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.49787
  Index      = 3.28705
  Normalizat = 1.49995
  Prefactor  = 0.493785
 **********
 **   18 **HESSE 
 **********

 FCN=   6100.678     FROM HESSE     STATUS=OK            25 CALLS      347 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4979        10.606        .10612E-04   -1.5392    
   2  Index         3.2870        1.8964        .34131E-03   -.34967    
   3  Normalizat    1.5000        .23818        .49325E-04   -.77780    
   4  Prefactor     .49379        .16713        .11639E-04   -1.1226    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.00945e-10
Minuit parameter uncertainties:
  1  10.2969
  2  1.95209
  3  0.238359
  4  0.167295
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/323117': 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) = 6100.67776002
delta logL = 0.105597372596

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  2.498e+00  1.030e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  3.287e+00  1.952e+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:  4.938e-01  1.673e-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.500e+00  2.384e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/323117/cmap_HighResolution_358560001_358819201_4FGL_J1207.7-0106_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.63e-03', job_status='DONE', photon_flux_upper_limit='9.92e-08', time_completed='2021-09-05 00:12:22.148835', job_id='323117', GAL2='0.49', fit_tolerance='1e-08', EG2='1.50', EG='1.53', time_epoch_completed='1630825942.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='1.06e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='460' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:12:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 323117: <4FGL_J1207.7-0106_daily_bin460> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin460> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 23:55:45 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 23:55:47 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 23:55:47 2021
Terminated at Sun Sep  5 00:12:22 2021
Results reported at Sun Sep  5 00:12:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin460 181.928 -1.1063 358560001 358819201 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 :                                   973.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   995 sec.
    Turnaround time :                            997 sec.

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

