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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1429
RA = 181.928, Dec = -1.1063
tmin = 609724801, tmax = 609984001
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='335051', job_status='RUN', time_executed='2021-09-05 00:33:50.059809', time_epoch_executed='1630827230.06' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/335051

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/335051/ft1_4FGL_J1207.7-0106_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/335051/ft1_4FGL_J1207.7-0106_daily_bin1429.fits outfile=/scratch/kocevski/335051/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1429.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=609724801.0 tmax=609984001.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 2.57
user 2.36
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/335051/ft1_filtered_4FGL_J1207.7-0106_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/335051/ltcube_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.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/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits
.....................!
real 12.71
user 12.36
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/335051/ft1_filtered_4FGL_J1207.7-0106_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/335051/ltcube_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.fits outfile=/scratch/kocevski/335051/expmap_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.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/335051/ltcube_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.fits
.....................!
real 190.38
user 184.87
sys 5.12

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/335051/ft1_filtered_4FGL_J1207.7-0106_daily_bin1429.fits scfile=/scratch/kocevski/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits outfile=/scratch/kocevski/335051/cmap_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/335051/ft1_filtered_4FGL_J1207.7-0106_daily_bin1429.fits scfile=/scratch/kocevski/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits outfile=/scratch/kocevski/335051/cmap_HighResolution_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.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.69
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/335051/ft1_filtered_4FGL_J1207.7-0106_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/335051/ft2_4FGL_J1207.7-0106_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/335051/Model_4FGL_J1207.7-0106_daily_bin1429.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/335051/ft1_filtered_4FGL_J1207.7-0106_daily_bin1429.fits......................!
real 27.60
user 26.01
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.760       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3907       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4532       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    208.40       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.8020       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    136.07       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    212.37       1.0000         .10000E-03   10000.    
    24 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.7744       1.0000         .10000E-03   10000.    
    27 'Prefactor '    54.279       1.0000         .10000E-03   10000.    
    28 'Prefactor '    63.138       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10344E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    31.669       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83346       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .73313       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=   1831.121     FROM MIGRAD    STATUS=CONVERGED    812 CALLS     5099 TOTAL
                     EDM=   .78E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.760        13.831        .65839E-06   -.34821E-04
   2  norm          .10000E-03    19.454       -.85260E-07** at limit **
   3  Prefactor     9.3912        5.7106        .10733E-06   -.25184E-04
   4  Prefactor     .10000E-03    60.961       -.83436E-07** at limit **
   5  norm          .10000E-03    9.6663       -.58604E-06** at limit **
   6  Prefactor     5.4532        9.0514        .35963E-05   -.65500E-04
   7  Prefactor     .10000E-03    26.313       -.31869E-06** at limit **
   8  Prefactor     .10000E-03    29.880        .16548E-06** at limit **
   9  Prefactor     208.39        171.80        .19077E-06   -.79962E-05
  10  Prefactor     7.8027        12.452        .15381E-05   -.26508E-04
  11  Prefactor     .10000E-03    52.359       -.45834E-06** at limit **
  12  Prefactor     .10000E-03    18.983       -.15705E-07** at limit **
  13  Prefactor     136.07        64.973       -.17530E-06   -.36636E-05
  14  Prefactor     .10000E-03    59.915        .77868E-07** at limit **
  15  Prefactor     .10000E-03    54.405       -.35392E-06** at limit **
  16  Prefactor     .10001E-03    189.69        .26488E-05** at limit **
  17  Prefactor     .10000E-03    25.325       -.15774E-06** at limit **
  18  Prefactor     .10000E-03    13.771        .76368E-07** at limit **
  19  norm          .10000E-03    7.3272        .13091E-06** at limit **
  20  norm          .10000E-03    2.7845        .48325E-07** at limit **
  21  Prefactor     .10000E-03    57.077        .32604E-07** at limit **
  22  norm          .10000E-03    33.936        .14990E-06** at limit **
  23  Prefactor     212.41        270.75        .64466E-06    .51234E-05
  24  norm          .10000E-03    .80513        .38163E-06** at limit **
  25  Prefactor     .10000E-03    60.152        .98326E-06** at limit **
  26  norm          6.7745        4.3966        .12844E-07   -.10454E-03
  27  Prefactor     54.287        79.685        .36801E-06   -.91993E-05
  28  Prefactor     63.201        169.26        .98785E-06    .95785E-05
  29  Prefactor     .10002E-03    293.71       -.26129E-05** at limit **
  30  norm          31.649        228.74       -.73923E-06   -.36254E-05
  31  Normalizat    .83338        .38280       -.99472E-06   -.27915E-04
  32  Prefactor     .73317        .27684       -.52940E-06   -.32266E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.7601
  norm       = 0.0001
  Prefactor  = 9.39115
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.45322
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 208.394
  Prefactor  = 7.80269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 136.073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 212.412
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.77454
  Prefactor  = 54.2873
  Prefactor  = 63.2006
  Prefactor  = 0.000100018
  norm       = 31.649
  Normalizat = 0.833385
  Prefactor  = 0.733166
 **********
 **   18 **HESSE 
 **********

 FCN=   1831.121     FROM HESSE     STATUS=OK           649 CALLS     5748 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.760        13.858        .47519E-03   -1.4865    
   2  norm          .10000E-03    19.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.3912        5.7397        .73170E-04   -1.5095    
   4  Prefactor     .10000E-03    61.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    9.7782        .13044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4532        9.0729        .78818E-03   -1.5241    
   7  Prefactor     .10000E-03    26.347        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    29.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     208.39        172.32        .14001E-03   -1.2811    
  10  Prefactor     7.8027        12.456        .71779E-03   -1.5149    
  11  Prefactor     .10000E-03    52.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    19.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     136.07        64.970        .17264E-03   -1.3370    
  14  Prefactor     .10000E-03    59.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    54.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    192.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    25.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.782        .15512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.4694        .11305E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.7935        .69711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    57.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    33.946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     212.41        270.82        .13872E-03   -1.2783    
  24  norm          .10000E-03    .83141        .74467E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    60.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.7745        4.3961        .66248E-04   -1.5187    
  27  Prefactor     54.287        79.590        .54443E-04   -1.4233    
  28  Prefactor     63.201        168.99        .50502E-04   -1.4116    
  29  Prefactor     .10002E-03    295.73        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          31.649        228.82        .71201E-04   -1.4582    
  31  Normalizat    .83338        .43478        .31369E-03   -.98842    
  32  Prefactor     .73317        .31273        .25426E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55897e-10
Minuit parameter uncertainties:
  1  13.8604
  2  2.75293e-05
  3  5.74003
  4  4.35943e-05
  5  9.02647e-05
  6  9.07515
  7  8.72225e-05
  8  9.21532e-05
  9  172.742
  10  12.4598
  11  0.000287407
  12  4.32316e-05
  13  65.0044
  14  6.65844e-05
  15  0.000152762
  16  0.00219278
  17  6.30074e-05
  18  2.52465e-06
  19  2.42862e-06
  20  3.70216e-07
  21  3.42922e-05
  22  5.2769e-05
  23  272.437
  24  1.73317e-06
  25  8.89737e-05
  26  4.39632
  27  79.7464
  28  170.293
  29  0.00459652
  30  171.131
  31  0.436617
  32  0.313481
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  2.193e-03  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.332e-01  3.135e-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:  8.334e-01  4.366e-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: 2.85e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.19e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/335051/likelihoodResults_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.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) = 1831.12104224
delta logL = -2.46333243012e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1831.12101752
delta logL = 8.53108304e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5033       1.0000          .0000       10.000    
     3 'Normalizat'    .83338       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73316       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.

 FCN=   1831.121     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      250 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10021E-03    160.98        .90712E-02** at limit **
   2  Index         2.5562        8.6844        .50000       -.11234E-05
   3  Normalizat    .83339        .66391E-02    .70890E-01    .17503E-03
   4  Prefactor     .73317        .51056E-02    .42841E-01    .16509E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100208
  Index      = 2.55618
  Normalizat = 0.833388
  Prefactor  = 0.733165
 **********
 **   18 **HESSE 
 **********

 FCN=   1831.121     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 TOTAL
                     EDM=   .62E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10021E-03    6722.6        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5562        8.0897        .50000       -.51067    
   3  Normalizat    .83339        .32532E-01    .31369E-03   -.98842    
   4  Prefactor     .73317        .25051E-01    .25426E-03   -1.0224    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.22933e-08
Minuit parameter uncertainties:
  1  0.0572667
  2  624.47
  3  0.032533
  4  0.0250513
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/335051': 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) = 1831.1210175
delta logL = 1.02711510408e-07

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.002e-04  5.727e-02  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.556e+00  6.245e+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.332e-01  2.505e-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:  8.334e-01  3.253e-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/335051/cmap_HighResolution_609724801_609984001_4FGL_J1207.7-0106_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.19e-02', job_status='DONE', photon_flux_upper_limit='2.85e-07', time_completed='2021-09-05 00:42:36.256577', job_id='335051', GAL2='0.73', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630827756.26', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.73', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1429' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:42:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 335051: <4FGL_J1207.7-0106_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1429> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 00:30:42 2021
Job was executed on host(s) <bullet0208>, 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:42:36 2021
Results reported at Sun Sep  5 00:42:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1429 181.928 -1.1063 609724801 609984001 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 :                                   509.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   713 sec.
    Turnaround time :                            714 sec.

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

