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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin747
RA = 181.928, Dec = -1.1063
tmin = 432950401, tmax = 433209601
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='330636', job_status='RUN', time_executed='2021-09-05 00:18:39.057188', time_epoch_executed='1630826319.06' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='747'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330636

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330636/ft1_4FGL_J1207.7-0106_daily_bin747.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330636/ft1_4FGL_J1207.7-0106_daily_bin747.fits outfile=/scratch/kocevski/330636/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin747.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=432950401.0 tmax=433209601.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.65
user 5.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330636/ft1_filtered_4FGL_J1207.7-0106_daily_bin747.fits" evtable="EVENTS" scfile=/scratch/kocevski/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits sctable="SC_DATA" outfile=/scratch/kocevski/330636/ltcube_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.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/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits
.....................!
real 12.07
user 11.70
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330636/ft1_filtered_4FGL_J1207.7-0106_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits sctable="SC_DATA" expcube=/scratch/kocevski/330636/ltcube_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.fits outfile=/scratch/kocevski/330636/expmap_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.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/330636/ltcube_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.fits
.....................!
real 191.82
user 185.13
sys 5.31

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/330636/ft1_filtered_4FGL_J1207.7-0106_daily_bin747.fits scfile=/scratch/kocevski/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits outfile=/scratch/kocevski/330636/cmap_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330636/ft1_filtered_4FGL_J1207.7-0106_daily_bin747.fits scfile=/scratch/kocevski/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits outfile=/scratch/kocevski/330636/cmap_HighResolution_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330636/ft1_filtered_4FGL_J1207.7-0106_daily_bin747.fits evtable="EVENTS" scfile=/scratch/kocevski/330636/ft2_4FGL_J1207.7-0106_daily_bin747.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330636/Model_4FGL_J1207.7-0106_daily_bin747.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/330636/ft1_filtered_4FGL_J1207.7-0106_daily_bin747.fits.....................!
real 51.65
user 50.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1430       1.0000         .10000E-03   10000.    
     2 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1713       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9601       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    145.81       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .59061       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11799E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.903       1.0000         .10000E-03   10000.    
    16 'Prefactor '    94.137       1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.107       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.2056       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.0747       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.5055       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.7420       1.0000         .10000E-03   10000.    
    28 'Prefactor '    29.892       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.3910       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0463       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=   5218.739     FROM MIGRAD    STATUS=CONVERGED    867 CALLS     4402 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1455        9.1907       -.62886E-06   -.30588E-03
   2  norm          .10000E-03    36.395        .18112E-04** at limit **
   3  Prefactor     3.1695        4.6392       -.42639E-06   -.50365E-03
   4  Prefactor     .10000E-03    17.465       -.27308E-05** at limit **
   5  norm          .10000E-03    4.2452       -.11690E-07** at limit **
   6  Prefactor     2.9600        3.0518        .22239E-08    .17549E-03
   7  Prefactor     .10000E-03    9.1796       -.29414E-07** at limit **
   8  Prefactor     145.80        67.770       -.56970E-05   -.84498E-04
   9  Prefactor     .10000E-03    38.718       -.18157E-04** at limit **
  10  Prefactor     .10000E-03    3.5419       -.52243E-08** at limit **
  11  Prefactor     .36716        57.903       -.37705E-05    .60725E-04
  12  Prefactor     .10000E-03    20.649        .11195E-04** at limit **
  13  Prefactor     .10000E-03    13.538        .97906E-05** at limit **
  14  Prefactor     .10000E-03    26.657       -.88970E-05** at limit **
  15  Prefactor     42.894        51.228       -.88457E-06   -.38892E-04
  16  Prefactor     94.145        50.005       -.20374E-05   -.31262E-05
  17  Prefactor     45.104        44.235       -.36546E-05   -.99817E-05
  18  Prefactor     .10000E-03    13.177       -.76060E-05** at limit **
  19  norm          2.2059        3.6351       -.87788E-07   -.26840E-03
  20  norm          .10000E-03    2.4939        .57333E-07** at limit **
  21  Prefactor     .10000E-03    29.681        .11569E-04** at limit **
  22  norm          .10000E-03    16.300       -.33154E-05** at limit **
  23  Prefactor     .10000E-03    165.11        .35918E-05** at limit **
  24  norm          2.0746        .79140       -.33027E-08    .23054E-03
  25  Prefactor     .10000E-03    6.3448       -.10805E-07** at limit **
  26  norm          1.5052        1.5430       -.11852E-06   -.31915E-03
  27  Prefactor     4.7406        8.7399       -.54257E-06   -.12832E-03
  28  Prefactor     29.892        28.748       -.54237E-07    .72332E-05
  29  Prefactor     .10000E-03    25.810       -.10465E-04** at limit **
  30  norm          .10000E-03    10.821        .21760E-06** at limit **
  31  Normalizat    1.3910        .29873        .24750E-05   -.49311E-04
  32  Prefactor     1.0463        .21115        .44804E-06    .59317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.14546
  norm       = 0.0001
  Prefactor  = 3.16951
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.96002
  Prefactor  = 0.0001
  Prefactor  = 145.799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.367163
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.8937
  Prefactor  = 94.1453
  Prefactor  = 45.1044
  Prefactor  = 0.0001
  norm       = 2.20589
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.07461
  Prefactor  = 0.0001
  norm       = 1.50522
  Prefactor  = 4.74059
  Prefactor  = 29.8923
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.39104
  Prefactor  = 1.04631
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.739     FROM HESSE     STATUS=OK           657 CALLS     5059 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1455        9.2248        .14050E-03   -1.5137    
   2  norm          .10000E-03    36.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.1695        4.6461        .17455E-03   -1.5352    
   4  Prefactor     .10000E-03    17.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    4.2668        .14533E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.9600        3.0527        .12377E-03   -1.5364    
   7  Prefactor     .10000E-03    9.2050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     145.80        67.989        .33370E-04   -1.3287    
   9  Prefactor     .10000E-03    38.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    3.5439        .13278E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .36716        61.019        .16089       -1.5587    
  12  Prefactor     .10000E-03    20.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.583        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.648        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.894        51.560        .61204E-04   -1.4397    
  16  Prefactor     94.145        50.039        .41423E-04   -1.3764    
  17  Prefactor     45.104        44.310        .59696E-04   -1.4364    
  18  Prefactor     .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.2059        3.6096        .16639E-03   -1.5411    
  20  norm          .10000E-03    2.5287        .11119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    29.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    16.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    165.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.0746        .79105        .37314E-04   -1.5420    
  25  Prefactor     .10000E-03    6.3701        .17769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.5052        1.5231        .87524E-04   -1.5463    
  27  Prefactor     4.7406        8.7372        .18477E-03   -1.5272    
  28  Prefactor     29.892        28.745        .73281E-04   -1.4614    
  29  Prefactor     .10000E-03    25.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    10.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.3910        .35923        .32761E-03   -.80888    
  32  Prefactor     1.0463        .25247        .27822E-03   -.91201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.15825e-10
Minuit parameter uncertainties:
  1  9.22641
  2  2.37576e-05
  3  4.6466
  4  4.0791e-06
  5  2.49803e-06
  6  3.05291
  7  5.1664e-06
  8  68.0254
  9  2.33799e-06
  10  9.1185e-07
  11  9.47511
  12  0.000137285
  13  8.2191e-07
  14  5.22563e-06
  15  51.6134
  16  50.061
  17  44.3424
  18  3.63062e-05
  19  3.60998
  20  8.12125e-06
  21  6.68818e-06
  22  1.81882e-06
  23  1.10341e-05
  24  0.791056
  25  4.71657e-06
  26  1.52312
  27  8.73955
  28  28.7582
  29  7.54319e-06
  30  1.36653e-06
  31  0.359882
  32  0.252762
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  9.415e+01  5.006e+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.046e+00  2.528e-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.391e+00  3.599e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.19
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 9.02e-08
Energy Flux (Fixed Index): 6.07e-05 +/- 3.23e-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) = 5218.13013459
delta logL = 0.608840352967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5218.12747653
delta logL = 0.6114984162

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.613       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8789       1.0000          .0000       10.000    
     3 'Normalizat'    1.3042       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0918       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=   5218.127     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      293 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.621        55.968        .54779E-04   -.36767E-03
   2  Index         2.8790        .62386        .36425E-02   -.20122E-03
   3  Normalizat    1.3044        .34245        .33604E-03    .32511E-03
   4  Prefactor     1.0916        .25193        .27313E-03    .57576E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.6212
  Index      = 2.87902
  Normalizat = 1.30437
  Prefactor  = 1.09157
 **********
 **   18 **HESSE 
 **********

 FCN=   5218.127     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.621        48.999        .10956E-04   -1.4242    
   2  Index         2.8790        .54583        .14570E-03   -.43807    
   3  Normalizat    1.3044        .34156        .67207E-04   -.83436    
   4  Prefactor     1.0916        .25120        .54626E-04   -.89736    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.20872e-10
Minuit parameter uncertainties:
  1  49.0358
  2  0.547163
  3  0.342152
  4  0.251476
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330636': 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) = 5218.12747591
delta logL = 0.611499030293

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  5.362e+01  4.904e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.879e+00  5.472e-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:  1.092e+00  2.515e-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.304e+00  3.422e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.63
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 2.88 +/- 0.55
Photon Flux (Free Index): 2.45e-07 +/- 1.22e-07
Energy Flux (Free Index): 5.23e-05 +/- 2.47e-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/330636/cmap_HighResolution_432950401_433209601_4FGL_J1207.7-0106_daily_bin747.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='5.23e-05', photon_flux_error='9.02e-08', dlogl='6.11e-01', energy_flux='6.07e-05', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-05 00:31:35.489647', photon_index_error2='0.55', photon_index2='2.88', ts='6.19', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='2.47e-05', EG='1.39', time_epoch_completed='1630827095.49', return_code='0', job_id='330636', GAL2='1.09', EG2='1.30', return_code2='0', energy_flux_error='3.23e-05', photon_flux_error2='1.22e-07', ts2='7.63', photon_index='2.34' WHERE bin_id='747' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:31:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 330636: <4FGL_J1207.7-0106_daily_bin747> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin747> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:16:23 2021
Job was executed on host(s) <bullet0281>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:16:25 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:16:25 2021
Terminated at Sun Sep  5 00:31:36 2021
Results reported at Sun Sep  5 00:31:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin747 181.928 -1.1063 432950401 433209601 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 :                                   771.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             287.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            913 sec.

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

