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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1218
RA = 181.928, Dec = -1.1063
tmin = 555033601, tmax = 555292801
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='332228', job_status='RUN', time_executed='2021-09-05 00:24:33.716602', time_epoch_executed='1630826673.72' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332228

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332228/ft1_4FGL_J1207.7-0106_daily_bin1218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332228/ft1_4FGL_J1207.7-0106_daily_bin1218.fits outfile=/scratch/kocevski/332228/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1218.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=555033601.0 tmax=555292801.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.58
user 3.35
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.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/332228/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1218.fits evtable="EVENTS" outfile="/scratch/kocevski/332228/ft1_filtered_4FGL_J1207.7-0106_daily_bin1218.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/332228/ft1_filtered_4FGL_J1207.7-0106_daily_bin1218.fits" evtable="EVENTS" scfile=/scratch/kocevski/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.fits sctable="SC_DATA" outfile=/scratch/kocevski/332228/ltcube_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.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/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.fits
.....................!
real 11.64
user 11.29
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332228/ft1_filtered_4FGL_J1207.7-0106_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.fits sctable="SC_DATA" expcube=/scratch/kocevski/332228/ltcube_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.fits outfile=/scratch/kocevski/332228/expmap_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.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/332228/ltcube_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.fits
.....................!
real 190.56
user 185.46
sys 4.60

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/332228/ft1_filtered_4FGL_J1207.7-0106_daily_bin1218.fits scfile=/scratch/kocevski/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.fits outfile=/scratch/kocevski/332228/cmap_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.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.61
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332228/ft1_filtered_4FGL_J1207.7-0106_daily_bin1218.fits evtable="EVENTS" scfile=/scratch/kocevski/332228/ft2_4FGL_J1207.7-0106_daily_bin1218.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332228/Model_4FGL_J1207.7-0106_daily_bin1218.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/332228/ft1_filtered_4FGL_J1207.7-0106_daily_bin1218.fits...........................!
real 29.33
user 17.27
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .23365       1.0000         .10000E-03   10000.    
     2 'norm      '    .51770       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .26191E-01   1.0000         .10000E-03   10000.    
     5 'norm      '    .54312       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8378       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7460       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11439E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .20709       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.472       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.3037       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.658       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .42516       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.4769       1.0000         .10000E-03   10000.    
    15 'Prefactor '    142.26       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .51789       1.0000         .10000E-03   10000.    
    17 'Prefactor '    128.59       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .34593E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    10.544       1.0000         .10000E-03   10000.    
    20 'norm      '    .13382E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.987       1.0000         .10000E-03   10000.    
    22 'norm      '    51.086       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .86261       1.0000         .10000E-03   10000.    
    24 'norm      '    .14770E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .29113E-02   1.0000         .10000E-03   10000.    
    26 'norm      '    4.9604       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .70423E-02   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .16429       1.0000         .10000E-03   10000.    
    30 'norm      '    .28780E-01   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .17099       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .77415       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=   713.3180     FROM MIGRAD    STATUS=CONVERGED    376 CALLS      861 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .19333E-03    324.56        .39540E-05** at limit **
   2  norm          .13203E-03    747.77        .42924E-06** at limit **
   3  Prefactor     .10000E-03    4.8916       -.20436E-07** at limit **
   4  Prefactor     .10500E-03    120.36        .39875E-05** at limit **
   5  norm          .13332E-02    1305.8        .46963E-05** at limit **
   6  Prefactor     1.8378        1.0428         .0000         .0000    
   7  Prefactor     3.7460        1.0092         .0000         .0000    
   8  Prefactor     .10350E-03    116.78       -.33855E-05** at limit **
   9  Prefactor     .10001E-03    227.97        .32350E-06** at limit **
  10  Prefactor     15.625        17.556        .40622E-06    .63626E-02
  11  Prefactor     .92849E-02    635.99        .96132E-05    .19859E-02
  12  Prefactor     27.459        5.1379       -.88533E-07   -.34019E-03
  13  Prefactor     .10645E-03    176.67       -.75717E-06** at limit **
  14  Prefactor     .43131E-03    775.24        .13042E-04** at limit **
  15  Prefactor     144.78        26.124       -.67108E-06    .74767E-04
  16  Prefactor     .10004E-03    140.71        .32969E-06** at limit **
  17  Prefactor     127.18        44.009       -.94673E-07   -.27182E-01
  18  Prefactor     .12572E-03    101.27       -.42225E-05** at limit **
  19  norm          10.569        12.396       -.27832E-06    .23420E-03
  20  norm          .10000E-03    45.354       -.11305E-05** at limit **
  21  Prefactor     24.032        5.4848       -.22280E-06    .80777E-03
  22  norm          57.984        117.62       -.39407E-05   -.20665E-02
  23  Prefactor     .10000E-03    128.72       -.11429E-07** at limit **
  24  norm          .75820E-02    52.908       -.37378E-04    .29367E-04
  25  Prefactor     .10000E-03    29.240       -.34955E-06** at limit **
  26  norm          4.9376        3.9162       -.16782E-06    .54469E-04
  27  Prefactor     .10000E-03    12.180       -.88723E-08** at limit **
  28  Prefactor     .10000E-03    48.436       -.99317E-06** at limit **
  29  Prefactor     .16411E-03    304.87       -.39525E-05** at limit **
  30  norm          .10000E-03    35.277        .58813E-06** at limit **
  31  Normalizat    .17187        .48469        .11129E-04   -.63283E-05
  32  Prefactor     .76907        .47032       -.95758E-05   -.15935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000193334
  norm       = 0.000132033
  Prefactor  = 0.0001
  Prefactor  = 0.000105
  norm       = 0.00133321
  Prefactor  = 1.83777
  Prefactor  = 3.746
  Prefactor  = 0.000103496
  Prefactor  = 0.000100014
  Prefactor  = 15.6255
  Prefactor  = 0.0092849
  Prefactor  = 27.4591
  Prefactor  = 0.000106448
  Prefactor  = 0.000431311
  Prefactor  = 144.776
  Prefactor  = 0.00010004
  Prefactor  = 127.178
  Prefactor  = 0.000125717
  norm       = 10.5686
  norm       = 0.0001
  Prefactor  = 24.0323
  norm       = 57.9844
  Prefactor  = 0.000100002
  norm       = 0.00758198
  Prefactor  = 0.0001
  norm       = 4.93762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000164112
  norm       = 0.0001
  Normalizat = 0.171867
  Prefactor  = 0.769071
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   713.3180     FROM HESSE     STATUS=FAILED        29 CALLS      890 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .19333E-03    414.24        .10130E-01   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .13203E-03    782.50        .11343E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.8873        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10500E-03    431.84        .91532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .13332E-02    1478.1        .11446E-01   -1.5715    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     571.71        569.72         .0000       -1.5437    
   7  Prefactor     3.7460        1.0092         .0000       -1.5321    
   8  Prefactor     .10350E-03    .20612       -.33855E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    .25050        .32350E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.625        1.0055        .40622E-06   -1.4917    
  11  Prefactor     .92849E-02    .77519E-01    .96132E-05   -1.5689    
  12  Prefactor     27.459        .99657       -.88533E-07   -1.4659    
  13  Prefactor     .10645E-03    .30037       -.75717E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .43131E-03    .46059E-01    .13042E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     144.78        1.0087       -.67108E-06   -1.3296    
  16  Prefactor     .10004E-03    .32169        .32969E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     127.18        .99459       -.94673E-07   -1.3448    
  18  Prefactor     .12572E-03    .21135       -.42225E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.569        1.0023       -.27832E-06   -1.5058    
  20  norm          .10000E-03    .26415       -.11305E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.032        1.0012       -.22280E-06   -1.4727    
  22  norm          57.984        1.0651       -.39407E-05   -1.4184    
  23  Prefactor     .10000E-03    .40139       -.11429E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .75820E-02    .20687       -.37378E-04   -1.5725    
  25  Prefactor     .10000E-03    .24653       -.34955E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.9376        1.0029       -.16782E-06   -1.5264    
  27  Prefactor     .10000E-03    .20571       -.88723E-08   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .21832       -.99317E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .16411E-03    .24076       -.39525E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    .21004        .58813E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .17187        .42882        .11129E-04   -1.3155    
  32  Prefactor     .76907        1.1199       -.95758E-05   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.17467e-09
Minuit parameter uncertainties:
  1  0.396025
  2  0.320925
  3  9.95701e-07
  4  0.0936158
  5  2.77163
  6  1.04286
  7  1.0092
  8  0.00169766
  9  0.000119934
  10  1.00546
  11  0.0533668
  12  0.996574
  13  0.00278329
  14  0.00781276
  15  1.00868
  16  0.000226229
  17  0.994587
  18  0.00466281
  19  1.00227
  20  7.91925e-06
  21  1.00115
  22  1.06506
  23  6.08257e-05
  24  0.0786849
  25  1.35314e-05
  26  1.00286
  27  7.84881e-08
  28  1.52631e-05
  29  0.00785761
  30  8.47177e-06
  31  0.437543
  32  1.15583
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.262e-04  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:  7.691e-01  1.156e+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:  1.719e-01  4.375e-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: 6.34e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.88e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/332228/likelihoodResults_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.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) = 713.31805397
delta logL = -3.38471672876e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 713.31802115
delta logL = -1.02708452232e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26059E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.6029       1.0000          .0000       10.000    
     3 'Normalizat'    .17187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76909       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=   713.3180     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      271 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10519E-03    65.441        .21448E-01** at limit **
   2  Index         2.5377        5.4667        .50000        .34867E-05
   3  Normalizat    .17187        .89964E-02    .52445E-03   -.54465E-06
   4  Prefactor     .76907        .80237E-02    .22169E-03   -.14231E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105185
  Index      = 2.53767
  Normalizat = 0.171867
  Prefactor  = 0.769071
 **********
 **   18 **HESSE 
 **********

 FCN=   713.3180     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      300 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10519E-03    510.65        .26643E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5377        5.8278        .50000       -.51492    
   3  Normalizat    .17187        .25327E-01    .20978E-04   -1.3155    
   4  Prefactor     .76907        .22590E-01    .88674E-05   -1.0088    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.63758e-10
Minuit parameter uncertainties:
  1  0.103813
  2  636.092
  3  0.0253288
  4  0.0225901
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332228': 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) = 713.318020267
delta logL = -1.44730393004e-07

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.052e-04  1.038e-01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.538e+00  6.361e+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:  7.691e-01  2.259e-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:  1.719e-01  2.533e-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/332228/cmap_HighResolution_555033601_555292801_4FGL_J1207.7-0106_daily_bin1218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.88e-02', job_status='DONE', photon_flux_upper_limit='6.34e-07', time_completed='2021-09-05 00:31:20.633187', job_id='332228', GAL2='0.77', fit_tolerance='1e-08', EG2='0.17', EG='0.17', time_epoch_completed='1630827080.63', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.77', dlogl='-1.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1218' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:31:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0072>
Subject: Job 332228: <4FGL_J1207.7-0106_daily_bin1218> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1218> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Sep  5 00:20:51 2021
Job was executed on host(s) <bullet0072>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:20:53 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:20:53 2021
Terminated at Sun Sep  5 00:31:21 2021
Results reported at Sun Sep  5 00:31:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1218 181.928 -1.1063 555033601 555292801 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 :                                   339.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   627 sec.
    Turnaround time :                            630 sec.

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

