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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1081
RA = 181.928, Dec = -1.1063
tmin = 519523201, tmax = 519782401
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='332025', job_status='RUN', time_executed='2021-09-05 00:20:50.267599', time_epoch_executed='1630826450.27' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1081'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332025

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

Retrieving the FT1 file...

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

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

Retrieving 37 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332025/ft1_4FGL_J1207.7-0106_daily_bin1081.fits


Retrieving the FT1 file...

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

Retrieving 37 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332025/ft2_4FGL_J1207.7-0106_daily_bin1081.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332025/ft1_4FGL_J1207.7-0106_daily_bin1081.fits outfile=/scratch/kocevski/332025/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1081.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=519523201.0 tmax=519782401.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.92
user 2.72
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332025/ft1_filtered_4FGL_J1207.7-0106_daily_bin1081.fits" evtable="EVENTS" scfile=/scratch/kocevski/332025/ft2_4FGL_J1207.7-0106_daily_bin1081.fits sctable="SC_DATA" outfile=/scratch/kocevski/332025/ltcube_519523201_519782401_4FGL_J1207.7-0106_daily_bin1081.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/332025/ft2_4FGL_J1207.7-0106_daily_bin1081.fits
.....................!
real 9.61
user 9.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332025/ft1_filtered_4FGL_J1207.7-0106_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/332025/ft2_4FGL_J1207.7-0106_daily_bin1081.fits sctable="SC_DATA" expcube=/scratch/kocevski/332025/ltcube_519523201_519782401_4FGL_J1207.7-0106_daily_bin1081.fits outfile=/scratch/kocevski/332025/expmap_519523201_519782401_4FGL_J1207.7-0106_daily_bin1081.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/332025/ltcube_519523201_519782401_4FGL_J1207.7-0106_daily_bin1081.fits
.....................!
real 190.08
user 185.32
sys 4.40

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/332025/ft1_filtered_4FGL_J1207.7-0106_daily_bin1081.fits scfile=/scratch/kocevski/332025/ft2_4FGL_J1207.7-0106_daily_bin1081.fits outfile=/scratch/kocevski/332025/cmap_519523201_519782401_4FGL_J1207.7-0106_daily_bin1081.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.37
sys 0.14

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

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

This is gtbin version HEAD
real 0.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332025/ft1_filtered_4FGL_J1207.7-0106_daily_bin1081.fits evtable="EVENTS" scfile=/scratch/kocevski/332025/ft2_4FGL_J1207.7-0106_daily_bin1081.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332025/Model_4FGL_J1207.7-0106_daily_bin1081.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/332025/ft1_filtered_4FGL_J1207.7-0106_daily_bin1081.fits.....................!
real 47.73
user 46.33
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.1341       1.0000         .10000E-03   10000.    
     2 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.808       1.0000         .10000E-03   10000.    
     5 'norm      '    12.338       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.303       1.0000         .10000E-03   10000.    
     8 'Prefactor '    37.821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    46.008       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.1211       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .12234E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.894       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.056       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    43.601       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5000       1.0000         .10000E-03   10000.    
    20 'norm      '    4.1598       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11150E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.6837       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .31408E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    106.75       1.0000         .10000E-03   10000.    
    30 'norm      '    28.056       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .93646       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1489       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=   4888.402     FROM MIGRAD    STATUS=CONVERGED    882 CALLS     4424 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1332        7.5869        .23335E-05   -.18409E-03
   2  norm          .10000E-03    29.678        .24961E-06** at limit **
   3  Prefactor     .10000E-03    1.0988        .82616E-07** at limit **
   4  Prefactor     19.814        33.572       -.30900E-06   -.13713E-04
   5  norm          12.340        9.1670        .76369E-07   -.45337E-04
   6  Prefactor     .10000E-03    1.9143        .14692E-07** at limit **
   7  Prefactor     11.304        13.375        .99185E-07   -.25675E-05
   8  Prefactor     37.804        33.327       -.13244E-05   -.26220E-03
   9  Prefactor     46.035        124.28        .48539E-05    .69124E-04
  10  Prefactor     5.1212        12.973        .46491E-05   -.37275E-03
  11  Prefactor     .10000E-03    15.987       -.33693E-05** at limit **
  12  Prefactor     .50271E-01    6.8556        .55281E-06   -.11799E-03
  13  Prefactor     30.894        20.506        .19186E-06   -.69248E-05
  14  Prefactor     16.064        54.063        .21573E-05    .38804E-04
  15  Prefactor     .10000E-03    21.726       -.11080E-05** at limit **
  16  Prefactor     43.589        34.046       -.11025E-05   -.26039E-03
  17  Prefactor     .10000E-03    13.879        .11124E-06** at limit **
  18  Prefactor     .10000E-03    7.7782       -.32197E-07** at limit **
  19  norm          2.5002        2.4954        .86612E-07    .16792E-04
  20  norm          4.1589        4.1698        .17650E-05   -.95675E-03
  21  Prefactor     .10000E-03    67.926       -.29649E-06** at limit **
  22  norm          .10003E-03    109.44       -.89885E-05** at limit **
  23  Prefactor     .10004E-03    132.12        .10276E-04** at limit **
  24  norm          1.6839        .80104       -.10237E-06   -.53463E-04
  25  Prefactor     .10000E-03    5.3167        .53372E-07** at limit **
  26  norm          .10000E-03    .96733        .46293E-09** at limit **
  27  Prefactor     .10000E-03    6.8056        .10303E-06** at limit **
  28  Prefactor     .10001E-03    16.571        .38269E-05** at limit **
  29  Prefactor     106.76        69.962        .11596E-05    .74816E-04
  30  norm          28.057        26.696        .17476E-06    .90494E-05
  31  Normalizat    .93650        .26483       -.19268E-05   -.61941E-04
  32  Prefactor     1.1488        .19150       -.29096E-06   -.10571E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.13316
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.8143
  norm       = 12.3398
  Prefactor  = 0.0001
  Prefactor  = 11.3041
  Prefactor  = 37.8039
  Prefactor  = 46.0348
  Prefactor  = 5.12124
  Prefactor  = 0.000100005
  Prefactor  = 0.0502707
  Prefactor  = 30.894
  Prefactor  = 16.064
  Prefactor  = 0.000100001
  Prefactor  = 43.5891
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.50017
  norm       = 4.15886
  Prefactor  = 0.0001
  norm       = 0.000100031
  Prefactor  = 0.000100041
  norm       = 1.68386
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 106.756
  norm       = 28.0569
  Normalizat = 0.936497
  Prefactor  = 1.1488
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.402     FROM HESSE     STATUS=OK           663 CALLS     5087 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1332        7.5682        .35078E-03   -1.5495    
   2  norm          .10000E-03    29.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.9278        .14221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.814        33.138        .89994E-04   -1.4817    
   5  norm          12.340        9.1526        .11404E-03   -1.5005    
   6  Prefactor     .10000E-03    1.9212        .94327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.304        13.373        .11916E-03   -1.5035    
   8  Prefactor     37.804        33.584        .65171E-04   -1.4477    
   9  Prefactor     46.035        125.98        .59111E-04   -1.4350    
  10  Prefactor     5.1212        13.382        .88831E-03   -1.5255    
  11  Prefactor     .10000E-03    16.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .50271E-01    7.7933        .61545E-01   -1.5663    
  13  Prefactor     30.894        20.527        .72087E-04   -1.4596    
  14  Prefactor     16.064        54.213        .99953E-04   -1.4906    
  15  Prefactor     .10000E-03    21.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     43.589        34.263        .60714E-04   -1.4387    
  17  Prefactor     .10000E-03    13.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7980        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5002        2.4938        .10590E-03   -1.5392    
  20  norm          4.1589        4.2908        .66960E-03   -1.5300    
  21  Prefactor     .10000E-03    68.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10003E-03    112.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10004E-03    136.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.6839        .79354        .38757E-04   -1.5448    
  25  Prefactor     .10000E-03    5.3262        .15744E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    12.845        .13114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    6.8435        .17809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    17.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     106.76        70.014        .19462E-03   -1.3638    
  30  norm          28.057        26.692        .75636E-04   -1.4648    
  31  Normalizat    .93650        .30819        .33503E-03   -.95189    
  32  Prefactor     1.1488        .22432        .23588E-03   -.87922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.89072e-09
Minuit parameter uncertainties:
  1  5.85778
  2  4.58552e-05
  3  9.48688e-06
  4  33.1684
  5  9.15366
  6  9.23254e-07
  7  13.3764
  8  33.6011
  9  126.722
  10  13.3901
  11  0.000546981
  12  1.25076
  13  20.5312
  14  54.3797
  15  0.000217175
  16  34.2785
  17  1.35132e-05
  18  1.05246e-05
  19  2.49395
  20  4.29108
  21  0.000101472
  22  0.00373718
  23  0.00475609
  24  0.793543
  25  5.52174e-06
  26  9.55225e-05
  27  7.26059e-06
  28  0.000626916
  29  70.0688
  30  26.7032
  31  0.308776
  32  0.224509
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  4.359e+01  3.428e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.338e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.149e+00  2.245e-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:  9.365e-01  3.088e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.03
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 6.18e-08
Energy Flux (Fixed Index): 2.81e-05 +/- 2.21e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4888.39217785
delta logL = 0.00998828840602

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4888.38915034
delta logL = 0.01301579751

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.272       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4831       1.0000          .0000       10.000    
     3 'Normalizat'    .91868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1564       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=   4888.389     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      288 TOTAL
                     EDM=   .51E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.271        37.850        .62397E-04    .64535E-04
   2  Index         2.4835        .94401        .76029E-02    .40592E-04
   3  Normalizat    .91845        .30871        .33785E-03    .13561E-04
   4  Prefactor     1.1565        .22455        .23517E-03   -.39883E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.2714
  Index      = 2.48349
  Normalizat = 0.918455
  Prefactor  = 1.15653
 **********
 **   18 **HESSE 
 **********

 FCN=   4888.389     FROM HESSE     STATUS=OK            25 CALLS      313 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.271        35.753        .12479E-04   -1.4422    
   2  Index         2.4835        .88734        .30412E-03   -.52742    
   3  Normalizat    .91845        .30632        .13514E-04   -.95815    
   4  Prefactor     1.1565        .22384        .94067E-05   -.87680    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83949e-11
Minuit parameter uncertainties:
  1  35.7718
  2  0.893697
  3  0.306909
  4  0.224019
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332025': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4888.38915002
delta logL = 0.0130161138732

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  4.127e+01  3.577e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.483e+00  8.937e-01  0.000e+00  1.000e+01 (-1.000e+00)
322        Scale:  1.045e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
624    Prefactor:  1.157e+00  2.240e-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:  9.185e-01  3.069e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.07
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 2.48 +/- 0.89
Photon Flux (Free Index): 9.45e-08 +/- 1.19e-07
Energy Flux (Free Index): 2.79e-05 +/- 2.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/332025/cmap_HighResolution_519523201_519782401_4FGL_J1207.7-0106_daily_bin1081.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='2.79e-05', photon_flux_error='6.18e-08', dlogl='1.30e-02', energy_flux='2.81e-05', photon_flux2='9.45e-08', job_status='DONE', time_completed='2021-09-05 00:32:59.872653', photon_index_error2='0.89', photon_index2='2.48', ts='4.03', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='2.04e-05', EG='0.94', time_epoch_completed='1630827179.87', return_code='0', job_id='332025', GAL2='1.16', EG2='0.92', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='1.19e-07', ts2='4.07', photon_index='2.34' WHERE bin_id='1081' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:32:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 332025: <4FGL_J1207.7-0106_daily_bin1081> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1081 181.928 -1.1063 519523201 519782401 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 :                                   727.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

