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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1605
RA = 181.928, Dec = -1.1063
tmin = 655344001, tmax = 655603201
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='326869', job_status='RUN', time_executed='2021-12-07 22:53:45.731228', time_epoch_executed='1638946425.73' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1605'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/326869

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/326869/ft1_4FGL_J1207.7-0106_daily_bin1605.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/326869/ft2_4FGL_J1207.7-0106_daily_bin1605.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/326869/ft1_4FGL_J1207.7-0106_daily_bin1605.fits outfile=/scratch/kocevski/326869/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1605.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=655344001.0 tmax=655603201.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.75
user 2.51
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/326869/ft1_filtered_4FGL_J1207.7-0106_daily_bin1605.fits" evtable="EVENTS" scfile=/scratch/kocevski/326869/ft2_4FGL_J1207.7-0106_daily_bin1605.fits sctable="SC_DATA" outfile=/scratch/kocevski/326869/ltcube_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.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/326869/ft2_4FGL_J1207.7-0106_daily_bin1605.fits
.....................!
real 14.53
user 14.14
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/326869/ft1_filtered_4FGL_J1207.7-0106_daily_bin1605.fits evtable="EVENTS" scfile=/scratch/kocevski/326869/ft2_4FGL_J1207.7-0106_daily_bin1605.fits sctable="SC_DATA" expcube=/scratch/kocevski/326869/ltcube_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.fits outfile=/scratch/kocevski/326869/expmap_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.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/326869/ltcube_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.fits
.....................!
real 192.11
user 186.86
sys 4.72

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/326869/ft1_filtered_4FGL_J1207.7-0106_daily_bin1605.fits scfile=/scratch/kocevski/326869/ft2_4FGL_J1207.7-0106_daily_bin1605.fits outfile=/scratch/kocevski/326869/cmap_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/326869/ft1_filtered_4FGL_J1207.7-0106_daily_bin1605.fits scfile=/scratch/kocevski/326869/ft2_4FGL_J1207.7-0106_daily_bin1605.fits outfile=/scratch/kocevski/326869/cmap_HighResolution_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=181.928 yref=-1.1063 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.56
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    54.610       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.7390       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    12.116       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.755       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.719       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    3.7190       1.0000         .10000E-03   10000.    
    25 'Prefactor '    39.281       1.0000         .10000E-03   10000.    
    26 'norm      '    1.8999       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    389.93       1.0000         .10000E-03   10000.    
    30 'norm      '    41.183       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .59883       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.3311       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=   2691.873     FROM MIGRAD    STATUS=CONVERGED    818 CALLS     4334 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6691       -.50942E-07** at limit **
   2  norm          54.601        43.982        .22486E-06   -.54169E-05
   3  Prefactor     6.7385        5.2842        .22901E-06    .10768E-04
   4  Prefactor     .10000E-03    31.042        .13138E-06** at limit **
   5  norm          12.114        17.402        .24078E-06    .23960E-05
   6  Prefactor     .10000E-03    5.9605        .19458E-07** at limit **
   7  Prefactor     .10000E-03    255.30        .81490E-07** at limit **
   8  Prefactor     .10000E-03    18.978        .67944E-07** at limit **
   9  Prefactor     .10000E-03    56.336       -.10345E-06** at limit **
  10  Prefactor     11.755        13.310        .21733E-06   -.42617E-06
  11  Prefactor     .10000E-03    48.349       -.13551E-06** at limit **
  12  Prefactor     .10000E-03    24.114       -.25876E-06** at limit **
  13  Prefactor     .10000E-03    17.559        .13470E-06** at limit **
  14  Prefactor     .10000E-03    42.881        .17519E-08** at limit **
  15  Prefactor     .10000E-03    62.161        .56900E-07** at limit **
  16  Prefactor     .10000E-03    15.921       -.29709E-07** at limit **
  17  Prefactor     17.711        43.156        .28483E-06   -.72738E-05
  18  Prefactor     .10000E-03    15.620       -.10453E-07** at limit **
  19  norm          .10000E-03    4.0035        .39218E-07** at limit **
  20  norm          .10000E-03    3.3712       -.53258E-07** at limit **
  21  Prefactor     .10000E-03    28.294        .18599E-07** at limit **
  22  norm          .10000E-03    31.244        .11766E-06** at limit **
  23  Prefactor     .10000E-03    71.128        .39393E-06** at limit **
  24  norm          3.7192        1.5921       -.19018E-06   -.20144E-03
  25  Prefactor     39.265        40.174        .15250E-06   -.11867E-04
  26  norm          1.8997        2.7358        .24901E-05   -.43960E-04
  27  Prefactor     .10000E-03    14.853        .24237E-06** at limit **
  28  Prefactor     .10000E-03    53.953       -.53157E-06** at limit **
  29  Prefactor     390.44        504.56        .23483E-05    .29112E-04
  30  norm          41.088        72.131       -.66780E-06   -.58209E-04
  31  Normalizat    .59859        .36010       -.36638E-05   -.16902E-04
  32  Prefactor     1.3313        .30356        .26130E-06   -.35633E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 54.6009
  Prefactor  = 6.73854
  Prefactor  = 0.0001
  norm       = 12.1141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.7553
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.711
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.71917
  Prefactor  = 39.2655
  norm       = 1.89972
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 390.444
  norm       = 41.0877
  Normalizat = 0.598591
  Prefactor  = 1.33128
 **********
 **   18 **HESSE 
 **********

 FCN=   2691.873     FROM HESSE     STATUS=OK           643 CALLS     4977 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6733        .96989E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          54.601        44.050        .54279E-04   -1.4229    
   3  Prefactor     6.7385        5.3008        .95915E-04   -1.5189    
   4  Prefactor     .10000E-03    31.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          12.114        17.428        .11509E-03   -1.5012    
   6  Prefactor     .10000E-03    5.9796        .12359E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    258.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    56.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.755        13.313        .11684E-03   -1.5022    
  11  Prefactor     .10000E-03    48.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    17.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    42.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    62.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.711        43.168        .95149E-04   -1.4866    
  18  Prefactor     .10000E-03    15.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.0327        .10135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    3.3829        .92854E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    28.342        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    31.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    71.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          3.7192        1.5929        .38245E-04   -1.5322    
  25  Prefactor     39.265        40.323        .63953E-04   -1.4454    
  26  norm          1.8997        2.7466        .48479E-03   -1.5432    
  27  Prefactor     .10000E-03    14.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    54.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     390.44        505.44        .10332E-03   -1.1730    
  30  norm          41.088        72.349        .31232E-03   -1.4425    
  31  Normalizat    .59859        .41423        .40764E-03   -1.0804    
  32  Prefactor     1.3313        .35850        .23641E-03   -.82382    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37887e-10
Minuit parameter uncertainties:
  1  1.74173e-06
  2  44.0761
  3  5.30115
  4  8.94655e-05
  5  17.4356
  6  3.18809e-06
  7  0.000119626
  8  2.59364e-05
  9  8.09305e-05
  10  13.3167
  11  0.00010381
  12  3.59376e-05
  13  4.38397e-05
  14  8.72622e-06
  15  0.000100755
  16  1.4259e-05
  17  43.2442
  18  1.34521e-05
  19  5.61945e-06
  20  1.11482e-06
  21  4.81088e-06
  22  7.6814e-05
  23  0.000348745
  24  1.59293
  25  40.3514
  26  2.74681
  27  1.89127e-05
  28  0.000143274
  29  511.354
  30  72.5045
  31  0.416406
  32  0.359167
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  1.426e-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.331e+00  3.592e-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:  5.986e-01  4.164e-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: 1.56e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.20e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/326869/likelihoodResults_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.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) = 2691.87340827
delta logL = -0.000287604740606

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2691.87312233
delta logL = -1.66527252077e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8243       1.0000          .0000       10.000    
     3 'Normalizat'    .59854       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3313       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=   2691.873     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      273 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10364E-03    11.193        .16708E-01** at limit **
   2  Index         2.7302        6.5912        .50000        .19841E-04
   3  Normalizat    .59859        .82700E-02    .40764E-03   -.32170E-04
   4  Prefactor     1.3313        .69466E-02    .23641E-03    .21063E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000103641
  Index      = 2.73015
  Normalizat = 0.598588
  Prefactor  = 1.33128
 **********
 **   18 **HESSE 
 **********

 FCN=   2691.873     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10364E-03    110.40        .17295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7302        5.0279        .50000       -.47122    
   3  Normalizat    .59859        .26225E-01    .16306E-04   -1.0804    
   4  Prefactor     1.3313        .22029E-01    .47283E-04   -.82381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.68868e-09
Minuit parameter uncertainties:
  1  0.0401744
  2  391.946
  3  0.0262255
  4  0.0220289
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/326869': 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) = 2691.87312197
delta logL = -1.30331409309e-06

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.036e-04  4.017e-02  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.730e+00  3.919e+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.331e+00  2.203e-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:  5.986e-01  2.623e-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/326869/cmap_HighResolution_655344001_655603201_4FGL_J1207.7-0106_daily_bin1605.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.20e-02', job_status='DONE', photon_flux_upper_limit='1.56e-07', time_completed='2021-12-07 23:03:21.171276', job_id='326869', GAL2='1.33', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1638947001.17', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='-1.30e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1605' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:03:21 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 326869: <4FGL_J1207.7-0106_daily_bin1605> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1605> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Dec  7 22:50:21 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:51:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:51:40 2021
Terminated at Tue Dec  7 23:03:22 2021
Results reported at Tue Dec  7 23:03:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1605 181.928 -1.1063 655344001 655603201 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 :                                   575.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   701 sec.
    Turnaround time :                            781 sec.

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

