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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1233
RA = 181.928, Dec = -1.1063
tmin = 558921601, tmax = 559180801
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='333518', job_status='RUN', time_executed='2021-09-05 00:25:53.730090', time_epoch_executed='1630826753.73' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1233'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/333518

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/333518/ft1_4FGL_J1207.7-0106_daily_bin1233.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/333518/ft2_4FGL_J1207.7-0106_daily_bin1233.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/333518/ft1_4FGL_J1207.7-0106_daily_bin1233.fits outfile=/scratch/kocevski/333518/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1233.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=558921601.0 tmax=559180801.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/333518/ft1_filtered_4FGL_J1207.7-0106_daily_bin1233.fits" evtable="EVENTS" scfile=/scratch/kocevski/333518/ft2_4FGL_J1207.7-0106_daily_bin1233.fits sctable="SC_DATA" outfile=/scratch/kocevski/333518/ltcube_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.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/333518/ft2_4FGL_J1207.7-0106_daily_bin1233.fits
.....................!
real 12.26
user 11.62
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/333518/ft1_filtered_4FGL_J1207.7-0106_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/333518/ft2_4FGL_J1207.7-0106_daily_bin1233.fits sctable="SC_DATA" expcube=/scratch/kocevski/333518/ltcube_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.fits outfile=/scratch/kocevski/333518/expmap_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.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/333518/ltcube_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.fits
.....................!
real 190.43
user 184.84
sys 4.92

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/333518/ft1_filtered_4FGL_J1207.7-0106_daily_bin1233.fits scfile=/scratch/kocevski/333518/ft2_4FGL_J1207.7-0106_daily_bin1233.fits outfile=/scratch/kocevski/333518/cmap_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.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.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/333518/ft1_filtered_4FGL_J1207.7-0106_daily_bin1233.fits evtable="EVENTS" scfile=/scratch/kocevski/333518/ft2_4FGL_J1207.7-0106_daily_bin1233.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/333518/Model_4FGL_J1207.7-0106_daily_bin1233.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/333518/ft1_filtered_4FGL_J1207.7-0106_daily_bin1233.fits.....................!
real 20.33
user 18.98
sys 1.20

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 823.739929688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 818.97270091

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .51110E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    28.184       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    444.91       1.0000         .10000E-03   10000.    
     5 'norm      '    .75984       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .77414E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    197.36       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.849       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .18534E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.2389       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.892       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .36778E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.6566       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.496       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38752E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31969E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .40755E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10352E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    21.034       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .43753E-02   1.0000         .10000E-03   10000.    
    22 'norm      '    .40249E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.2487       1.0000         .10000E-03   10000.    
    24 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .64785E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    .10047E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .22912E-01   1.0000         .10000E-03   10000.    
    28 'Prefactor '    168.85       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.4995       1.0000         .10000E-03   10000.    
    30 'norm      '    7.9375       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .59742       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1534       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=   818.7449     FROM MIGRAD    STATUS=CONVERGED    363 CALLS      687 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    90.211        .98955E-05** at limit **
   2  norm          .63301E-02    338.32       -.62238E-04   -.56210E-02
   3  Prefactor     .10000E-03    5.6093       -.69398E-05** at limit **
   4  Prefactor     476.69        351.50        .75305E-04   -.38529E-02
   5  norm          .10029E-03    370.60        .91340E-06** at limit **
   6  Prefactor     .10000E-03    158.01       -.16077E-04** at limit **
   7  Prefactor     3.7460        1.0092         .0000         .0000    
   8  Prefactor     208.61        179.89        .17291E-04    .57141E-02
   9  Prefactor     259.29        393.10        .55283E-04   -.24274E-02
  10  Prefactor     .10000E-03    11.429        .20266E-05** at limit **
  11  Prefactor     .14885E-03    48.145        .21949E-04** at limit **
  12  Prefactor     11.213        36.942        .49916E-05    .34875E-05
  13  Prefactor     .10000E-03    242.26        .87087E-05** at limit **
  14  Prefactor     .40005E-03    78.233        .23956E-04** at limit **
  15  Prefactor     .15449E-02    2057.0       -.42863E-03** at limit **
  16  Prefactor     .10000E-03    108.86        .11408E-05** at limit **
  17  Prefactor     .10002E-03    80.879       -.31301E-04** at limit **
  18  Prefactor     .10000E-03    63.884        .69309E-05** at limit **
  19  norm          .10000E-03    24.600        .38755E-05** at limit **
  20  norm          22.431        15.185        .28281E-05   -.98108E-04
  21  Prefactor     .10000E-03    110.38       -.95859E-05** at limit **
  22  norm          .10000E-03    88.651        .94373E-05** at limit **
  23  Prefactor     .19070E-02    268.74        .72764E-04** at limit **
  24  norm          .10000E-03    1.1432        .77745E-06** at limit **
  25  Prefactor     .10000E-03    49.476        .33427E-05** at limit **
  26  norm          .10000E-03    2.8210        .15813E-04** at limit **
  27  Prefactor     .10000E-03    130.57       -.59020E-05** at limit **
  28  Prefactor     175.28        177.32        .43213E-06   -.13299E-01
  29  Prefactor     3.3079        145.91       -.97058E-04    .24534E-02
  30  norm          .53082E-03    97.694        .56844E-04** at limit **
  31  Normalizat    .39953        .73136       -.12293E-05   -.27587E-05
  32  Prefactor     1.1868        .58438       -.97008E-05    .42279E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.00633006
  Prefactor  = 0.0001
  Prefactor  = 476.691
  norm       = 0.00010029
  Prefactor  = 0.0001
  Prefactor  = 3.746
  Prefactor  = 208.614
  Prefactor  = 259.292
  Prefactor  = 0.0001
  Prefactor  = 0.000148848
  Prefactor  = 11.2131
  Prefactor  = 0.0001
  Prefactor  = 0.000400046
  Prefactor  = 0.00154489
  Prefactor  = 0.000100001
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.4315
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.00190704
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 175.28
  Prefactor  = 3.30789
  norm       = 0.000530819
  Normalizat = 0.39953
  Prefactor  = 1.18679
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   818.7449     FROM HESSE     STATUS=FAILED        33 CALLS      720 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    86.388        .92755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .63301E-02    685.70        .18866E-02   -1.5724    
   3  Prefactor     .10000E-03    5.6570        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     476.69        366.05        .48500E-03   -1.1306    
   5  norm          .10029E-03    369.56        .12289E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    157.71        .92666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     545.08        541.27         .0000       -1.5321    
   8  Prefactor     208.61        1.0275        .17291E-04   -1.2809    
   9  Prefactor     259.29        3.9972        .55283E-04   -1.2473    
  10  Prefactor     .10000E-03    .20571        .20266E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .14885E-03    .59848E-01    .21949E-04   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.213        .97193        .49916E-05   -1.5038    
  13  Prefactor     .10000E-03    .21184        .87087E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .40005E-03    .32817E-01    .23956E-04   -1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .15449E-02    .23899E-01   -.42863E-03   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    .21229        .11408E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10002E-03    .24399       -.31301E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .21274        .69309E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571        .38755E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          22.431        1.0329        .28281E-05   -1.4760    
  21  Prefactor     .10000E-03    .23476       -.95859E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    .21263        .94373E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19070E-02    .59706E-01    .72764E-04   -1.5716    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20571        .77745E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    .22143        .33427E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .20571        .15813E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    .20871       -.59020E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     175.28        1.0185        .43213E-06   -1.3052    
  29  Prefactor     3.3079        .71565       -.97058E-04   -1.5344    
  30  norm          .53082E-03    .31647E-01    .56844E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .39953        .76913       -.12293E-05   -1.1733    
  32  Prefactor     1.1868        1.1344       -.97008E-05   -.86739    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.32007e-09
Minuit parameter uncertainties:
  1  0.000525765
  2  4.18251
  3  1.64041e-05
  4  367.873
  5  0.0208353
  6  0.000171637
  7  1.0092
  8  1.02753
  9  3.99721
  10  7.54795e-06
  11  0.00341963
  12  0.971927
  13  1.63646e-05
  14  0.00627589
  15  0.0117527
  16  2.94597e-05
  17  0.000123495
  18  7.99918e-06
  19  1.29979e-05
  20  1.0329
  21  2.60705e-05
  22  2.21341e-05
  23  0.0207742
  24  7.96466e-07
  25  5.63003e-06
  26  8.10499e-06
  27  4.04707e-06
  28  1.01854
  29  0.715648
  30  0.00738494
  31  0.791009
  32  1.15906
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 818.744904021

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.946e-05  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.187e+00  1.159e+00  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:  3.995e-01  7.910e-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: 7.99e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/333518/likelihoodResults_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.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) = 818.744947364
delta logL = -4.33423003869e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 818.744904232
delta logL = -2.10752091334e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7860       1.0000          .0000       10.000    
     3 'Normalizat'    .39954       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1868       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=   818.7449     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      275 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10357E-03    73.577        .18142E-01** at limit **
   2  Index         2.7009        7.2486        .50000        .29107E-05
   3  Normalizat    .39954        .13477E-01    .46213E-03   -.30050E-04
   4  Prefactor     1.1868        .11793E-01    .24103E-03   -.15466E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103573
  Index      = 2.70089
  Normalizat = 0.399544
  Prefactor  = 1.18677
 **********
 **   18 **HESSE 
 **********

 FCN=   818.7449     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      304 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10357E-03    512.64        .25376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7009        7.4510        .50000       -.47780    
   3  Normalizat    .39954        .36010E-01    .18485E-04   -1.1732    
   4  Prefactor     1.1868        .31510E-01    .48207E-04   -.86739    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.80014e-10
Minuit parameter uncertainties:
  1  0.0863418
  2  804.48
  3  0.036012
  4  0.0315108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/333518': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 818.744904192
delta logL = -1.7099375782e-07

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.036e-04  8.634e-02  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.701e+00  8.045e+02  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.187e+00  3.151e-02  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:  3.995e-01  3.601e-02  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/333518/cmap_HighResolution_558921601_559180801_4FGL_J1207.7-0106_daily_bin1233.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.15e-02', job_status='DONE', photon_flux_upper_limit='7.99e-07', time_completed='2021-09-05 00:31:40.806497', job_id='333518', GAL2='1.19', fit_tolerance='1e-08', EG2='0.40', EG='0.40', time_epoch_completed='1630827100.81', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.19', dlogl='-1.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1233' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:31:40 PDT 2021


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

Job <4FGL_J1207.7-0106_daily_bin1233> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Sep  5 00:25:20 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:25:22 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:25:22 2021
Terminated at Sun Sep  5 00:31:41 2021
Results reported at Sun Sep  5 00:31:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1233 181.928 -1.1063 558921601 559180801 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 :                                   343.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             326.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   379 sec.
    Turnaround time :                            381 sec.

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

