/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 181 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 = 7386
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1424
RA = 181.928, Dec = -1.1063
tmin = 608428801, tmax = 608688001
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='335040', job_status='RUN', time_executed='2021-09-05 00:33:52.432533', time_epoch_executed='1630827232.43' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335040

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335040/ft1_4FGL_J1207.7-0106_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335040/ft1_4FGL_J1207.7-0106_daily_bin1424.fits outfile=/scratch/kocevski/335040/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1424.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=608428801.0 tmax=608688001.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.94
user 4.68
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335040/ft1_filtered_4FGL_J1207.7-0106_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/335040/ltcube_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.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/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits
.....................!
real 12.51
user 12.13
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335040/ft1_filtered_4FGL_J1207.7-0106_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/335040/ltcube_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.fits outfile=/scratch/kocevski/335040/expmap_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.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/335040/ltcube_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.fits
.....................!
real 192.73
user 187.39
sys 4.97

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/335040/ft1_filtered_4FGL_J1207.7-0106_daily_bin1424.fits scfile=/scratch/kocevski/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits outfile=/scratch/kocevski/335040/cmap_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335040/ft1_filtered_4FGL_J1207.7-0106_daily_bin1424.fits scfile=/scratch/kocevski/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits outfile=/scratch/kocevski/335040/cmap_HighResolution_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335040/ft1_filtered_4FGL_J1207.7-0106_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/335040/ft2_4FGL_J1207.7-0106_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335040/Model_4FGL_J1207.7-0106_daily_bin1424.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/335040/ft1_filtered_4FGL_J1207.7-0106_daily_bin1424.fits.....................!
real 48.44
user 46.95
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9872       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3543       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.307       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    33.922       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5408       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    40.986       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.9172       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.9839       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.282       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.1509       1.0000         .10000E-03   10000.    
    16 'Prefactor '    64.085       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.0284       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10545E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .57313       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .45426       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    4.8178       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0338       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0054       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=   5093.532     FROM MIGRAD    STATUS=CONVERGED    838 CALLS     4405 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.1154       -.16091E-07** at limit **
   2  norm          .10000E-03    12.659       -.16042E-07** at limit **
   3  Prefactor     1.9873        2.3969        .70942E-07   -.66215E-04
   4  Prefactor     .10000E-03    33.631       -.31070E-05** at limit **
   5  norm          4.3532        5.3082        .17235E-05   -.14666E-02
   6  Prefactor     10.308        5.6205       -.22819E-06   -.68529E-04
   7  Prefactor     .10000E-03    8.2416       -.64936E-07** at limit **
   8  Prefactor     33.925        29.500       -.28495E-06   -.42055E-04
   9  Prefactor     9.5628        195.00        .23818E-04    .78637E-04
  10  Prefactor     .10000E-03    5.0321       -.73134E-06** at limit **
  11  Prefactor     40.988        79.914        .24482E-06    .21972E-04
  12  Prefactor     3.9172        7.8443        .10109E-06   -.69423E-04
  13  Prefactor     9.9844        22.830       -.54404E-06   -.37684E-04
  14  Prefactor     84.285        95.181        .10525E-05    .33016E-04
  15  Prefactor     8.1512        33.985       -.70904E-06   -.11554E-04
  16  Prefactor     64.085        33.389       -.27543E-07   -.39172E-04
  17  Prefactor     9.0227        31.628        .53873E-06    .60722E-05
  18  Prefactor     .10000E-03    5.0194        .67325E-06** at limit **
  19  norm          .10000E-03    .98770        .37941E-08** at limit **
  20  norm          .10000E-03    3.5767       -.20390E-07** at limit **
  21  Prefactor     .10000E-03    15.701       -.17393E-07** at limit **
  22  norm          .10000E-03    51.411        .27331E-06** at limit **
  23  Prefactor     .10000E-03    242.89        .15726E-06** at limit **
  24  norm          .57310        .72594        .58616E-07   -.40512E-03
  25  Prefactor     .10000E-03    5.2024        .98221E-07** at limit **
  26  norm          .45436        1.7558        .45884E-06   -.43641E-03
  27  Prefactor     .10000E-03    4.7385       -.38679E-08** at limit **
  28  Prefactor     4.8053        105.57       -.68858E-05   -.56098E-04
  29  Prefactor     .10000E-03    33.001        .27965E-05** at limit **
  30  norm          .10000E-03    8.3818        .57641E-07** at limit **
  31  Normalizat    1.0338        .25591       -.78385E-06   -.10242E-04
  32  Prefactor     1.0054        .18389       -.16840E-06   -.35674E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.98729
  Prefactor  = 0.000100002
  norm       = 4.3532
  Prefactor  = 10.3082
  Prefactor  = 0.0001
  Prefactor  = 33.9247
  Prefactor  = 9.56284
  Prefactor  = 0.0001
  Prefactor  = 40.9881
  Prefactor  = 3.91724
  Prefactor  = 9.98441
  Prefactor  = 84.2848
  Prefactor  = 8.15122
  Prefactor  = 64.0853
  Prefactor  = 9.02274
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.5731
  Prefactor  = 0.0001
  norm       = 0.454355
  Prefactor  = 0.0001
  Prefactor  = 4.80526
  Prefactor  = 0.000100002
  norm       = 0.0001
  Normalizat = 1.03382
  Prefactor  = 1.00536
 **********
 **   18 **HESSE 
 **********

 FCN=   5093.532     FROM HESSE     STATUS=OK           649 CALLS     5054 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.1231        .10136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    12.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9873        2.3858        .11633E-03   -1.5426    
   4  Prefactor     .10000E-03    34.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3532        6.7447        .96515E-03   -1.5291    
   6  Prefactor     10.308        5.6533        .11525E-03   -1.5066    
   7  Prefactor     .10000E-03    8.2508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     33.925        29.502        .68802E-04   -1.4542    
   9  Prefactor     9.5628        210.20        .12974E-03   -1.5089    
  10  Prefactor     .10000E-03    5.0691        .15680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     40.988        79.898        .62613E-04   -1.4427    
  12  Prefactor     3.9172        7.8245        .20384E-03   -1.5312    
  13  Prefactor     9.9844        22.814        .12682E-03   -1.5076    
  14  Prefactor     84.285        95.178        .43756E-04   -1.3869    
  15  Prefactor     8.1512        33.992        .14043E-03   -1.5137    
  16  Prefactor     64.085        33.379        .50129E-04   -1.4105    
  17  Prefactor     9.0227        31.534        .13339E-03   -1.5107    
  18  Prefactor     .10000E-03    5.0452        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .99651        .69238E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.6660        .26194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    51.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    243.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .57310        .69014        .59277E-04   -1.5557    
  25  Prefactor     .10000E-03    5.2329        .15898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .45436        1.7551        .17033E-03   -1.5573    
  27  Prefactor     .10000E-03    4.7647        .15170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     4.8053        106.92        .18328E-03   -1.5270    
  29  Prefactor     .10000E-03    33.278        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    8.3827        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0338        .29908        .30935E-03   -.91906    
  32  Prefactor     1.0054        .21603        .23763E-03   -.92551    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.114e-09
Minuit parameter uncertainties:
  1  8.17852e-07
  2  1.28439e-06
  3  2.3859
  4  0.000474247
  5  6.7459
  6  5.65361
  7  3.61134e-06
  8  29.515
  9  90.0299
  10  5.44097e-05
  11  80.1075
  12  7.82654
  13  22.8335
  14  95.3507
  15  33.3233
  16  33.3888
  17  31.5926
  18  4.30281e-05
  19  3.97886e-07
  20  4.95763e-06
  21  2.82339e-06
  22  4.26535e-05
  23  6.6824e-05
  24  0.690149
  25  9.77844e-06
  26  1.75531
  27  6.86371e-06
  28  45.4257
  29  0.000455849
  30  7.30823e-06
  31  0.299563
  32  0.216212
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  6.409e+01  3.339e+01  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:  1.005e+00  2.162e-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.034e+00  2.996e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.11
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 6.02e-08
Energy Flux (Fixed Index): 4.13e-05 +/- 2.15e-05

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) = 5093.03391419
delta logL = 0.497837665175

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5092.98694701
delta logL = 0.544804846158

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    80.222       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9207       1.0000          .0000       10.000    
     3 'Normalizat'    1.0747       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98565       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=   5092.987     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      269 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     80.230        44.023        .44841E-04   -.87318E-04
   2  Index         1.9212        .38706        .59410E-02   -.53507E-04
   3  Normalizat    1.0747        .28091        .30431E-03   -.36408E-03
   4  Prefactor     .98565        .21262        .23975E-03   -.43676E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 80.2299
  Index      = 1.92123
  Normalizat = 1.07468
  Prefactor  = 0.985647
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.987     FROM HESSE     STATUS=OK            25 CALLS      294 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     80.230        44.016        .89681E-05   -1.3914    
   2  Index         1.9212        .38688        .23764E-03   -.66334    
   3  Normalizat    1.0747        .28111        .60862E-04   -.90569    
   4  Prefactor     .98565        .21278        .47949E-04   -.93210    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68777e-10
Minuit parameter uncertainties:
  1  44.0336
  2  0.387504
  3  0.281501
  4  0.212957
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335040': 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) = 5092.98694615
delta logL = 0.544805703169

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  8.023e+01  4.403e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  1.921e+00  3.875e-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.856e-01  2.130e-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.075e+00  2.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.18
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 1.92 +/- 0.39
Photon Flux (Free Index): 7.89e-08 +/- 5.84e-08
Energy Flux (Free Index): 6.68e-05 +/- 5.17e-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/335040/cmap_HighResolution_608428801_608688001_4FGL_J1207.7-0106_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='6.68e-05', photon_flux_error='6.02e-08', dlogl='5.45e-01', energy_flux='4.13e-05', photon_flux2='7.89e-08', job_status='DONE', time_completed='2021-09-05 00:46:44.133796', photon_index_error2='0.39', photon_index2='1.92', ts='8.11', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.17e-05', EG='1.03', time_epoch_completed='1630828004.13', return_code='0', job_id='335040', GAL2='0.99', EG2='1.07', return_code2='0', energy_flux_error='2.15e-05', photon_flux_error2='5.84e-08', ts2='9.18', photon_index='2.34' WHERE bin_id='1424' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:46:44 PDT 2021


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

Job <4FGL_J1207.7-0106_daily_bin1424> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 00:30:41 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:30:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:30:43 2021
Terminated at Sun Sep  5 00:46:44 2021
Results reported at Sun Sep  5 00:46:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1424 181.928 -1.1063 608428801 608688001 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 :                                   748.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   961 sec.
    Turnaround time :                            963 sec.

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

