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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1071
RA = 181.928, Dec = -1.1063
tmin = 516931201, tmax = 517190401
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='332011', job_status='RUN', time_executed='2021-09-05 00:20:46.880762', time_epoch_executed='1630826446.88' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/332011

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/332011/ft1_4FGL_J1207.7-0106_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/332011/ft1_4FGL_J1207.7-0106_daily_bin1071.fits outfile=/scratch/kocevski/332011/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1071.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=516931201.0 tmax=517190401.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.96
user 3.69
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/332011/ft1_filtered_4FGL_J1207.7-0106_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/332011/ltcube_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.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/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits
.....................!
real 11.88
user 11.30
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/332011/ft1_filtered_4FGL_J1207.7-0106_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/332011/ltcube_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.fits outfile=/scratch/kocevski/332011/expmap_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.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/332011/ltcube_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.fits
.....................!
real 190.10
user 184.75
sys 4.94

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/332011/ft1_filtered_4FGL_J1207.7-0106_daily_bin1071.fits scfile=/scratch/kocevski/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits outfile=/scratch/kocevski/332011/cmap_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/332011/ft1_filtered_4FGL_J1207.7-0106_daily_bin1071.fits scfile=/scratch/kocevski/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits outfile=/scratch/kocevski/332011/cmap_HighResolution_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/332011/ft1_filtered_4FGL_J1207.7-0106_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/332011/ft2_4FGL_J1207.7-0106_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/332011/Model_4FGL_J1207.7-0106_daily_bin1071.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/332011/ft1_filtered_4FGL_J1207.7-0106_daily_bin1071.fits.....................!
real 65.40
user 63.86
sys 1.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.9921       1.0000         .10000E-03   10000.    
     2 'norm      '    4.3984       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.5502       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0449       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.283       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10398E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3187       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14303E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.650       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.6284       1.0000         .10000E-03   10000.    
    16 'Prefactor '    25.142       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.6444       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4148       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.4805       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.488       1.0000         .10000E-03   10000.    
    22 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.2081       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.6818       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.9908       1.0000         .10000E-03   10000.    
    28 'Prefactor '    7.6797       1.0000         .10000E-03   10000.    
    29 'Prefactor '    200.93       1.0000         .10000E-03   10000.    
    30 'norm      '    123.89       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4194       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0148       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=   7640.203     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     4394 TOTAL
                     EDM=   .39E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.9924        6.6812       -.88567E-07   -.51965E-04
   2  norm          4.3958        31.856       -.10984E-06   -.61467E-05
   3  Prefactor     .10000E-03    1.2043        .16862E-06** at limit **
   4  Prefactor     .10000E-03    15.034        .44711E-06** at limit **
   5  norm          5.5505        5.9775       -.11052E-06   -.22069E-04
   6  Prefactor     2.0445        5.0031       -.15828E-06   -.62545E-05
   7  Prefactor     15.283        22.485       -.72290E-06   -.83597E-05
   8  Prefactor     .10000E-03    25.948        .95759E-06** at limit **
   9  Prefactor     .10000E-03    183.72       -.13030E-04** at limit **
  10  Prefactor     8.3183        8.0289        .11393E-06    .13956E-04
  11  Prefactor     .10000E-03    16.979        .49905E-07** at limit **
  12  Prefactor     .10000E-03    78.176        .59479E-05** at limit **
  13  Prefactor     47.651        22.406       -.29735E-06   -.13026E-04
  14  Prefactor     .10000E-03    15.878       -.71326E-06** at limit **
  15  Prefactor     2.6284        43.860       -.92328E-06   -.42551E-05
  16  Prefactor     25.144        20.322       -.35348E-06   -.11756E-04
  17  Prefactor     6.6440        14.700       -.23859E-07   -.59660E-06
  18  Prefactor     1.4143        12.622       -.12883E-05    .97049E-05
  19  norm          .10000E-03    .98443       -.26197E-06** at limit **
  20  norm          4.4814        4.5071       -.50181E-06   -.10267E-03
  21  Prefactor     10.487        17.116       -.52652E-06   -.10776E-04
  22  norm          .10000E-03    122.94        .30444E-05** at limit **
  23  Prefactor     .10000E-03    58.397       -.49462E-05** at limit **
  24  norm          2.2082        .81215       -.45590E-07   -.21087E-03
  25  Prefactor     .10000E-03    3.0106        .43003E-07** at limit **
  26  norm          2.6817        1.6542       -.15216E-07    .14155E-04
  27  Prefactor     2.9933        8.6209       -.14200E-06    .45999E-05
  28  Prefactor     7.6780        25.072       -.26644E-05   -.18918E-04
  29  Prefactor     200.91        100.51       -.10267E-05    .69304E-05
  30  norm          123.88        46.388       -.99393E-07    .43358E-05
  31  Normalizat    1.4194        .24612        .13247E-06   -.13645E-03
  32  Prefactor     1.0149        .17147       -.10103E-05   -.82878E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.99238
  norm       = 4.39581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.55054
  Prefactor  = 2.04447
  Prefactor  = 15.2829
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 8.31829
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.6509
  Prefactor  = 0.0001
  Prefactor  = 2.62836
  Prefactor  = 25.1437
  Prefactor  = 6.64399
  Prefactor  = 1.4143
  norm       = 0.0001
  norm       = 4.48144
  Prefactor  = 10.4875
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.2082
  Prefactor  = 0.0001
  norm       = 2.68171
  Prefactor  = 2.99335
  Prefactor  = 7.678
  Prefactor  = 200.905
  norm       = 123.884
  Normalizat = 1.41942
  Prefactor  = 1.01485
 **********
 **   18 **HESSE 
 **********

 FCN=   7640.203     FROM HESSE     STATUS=OK           673 CALLS     5067 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.9924        6.6609        .13366E-03   -1.5108    
   2  norm          4.3958        31.737        .19203E-03   -1.5289    
   3  Prefactor     .10000E-03    6.4250        .18388E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.5505        5.9447        .17053E-03   -1.5237    
   6  Prefactor     2.0445        4.9611        .26626E-03   -1.5422    
   7  Prefactor     15.283        22.303        .10245E-03   -1.4926    
   8  Prefactor     .10000E-03    26.118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    181.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.3183        8.0314        .13900E-03   -1.5131    
  11  Prefactor     .10000E-03    16.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    74.654        .36800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.651        22.513        .58089E-04   -1.4326    
  14  Prefactor     .10000E-03    15.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.6284        43.575        .25154E-03   -1.5384    
  16  Prefactor     25.144        20.293        .79890E-04   -1.4705    
  17  Prefactor     6.6440        14.682        .15568E-03   -1.5192    
  18  Prefactor     1.4143        12.524        .36400E-03   -1.5470    
  19  norm          .10000E-03    .98717        .84343E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.4814        4.4928        .16257E-03   -1.5285    
  21  Prefactor     10.487        17.110        .61860E-03   -1.5060    
  22  norm          .10000E-03    124.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    58.168        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.2082        .80912        .41306E-04   -1.5411    
  25  Prefactor     .10000E-03    3.0161        .14812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.6817        1.6497        .84474E-04   -1.5380    
  27  Prefactor     2.9933        8.5819        .23474E-03   -1.5362    
  28  Prefactor     7.6780        25.071        .72353E-03   -1.5154    
  29  Prefactor     200.91        100.24        .14253E-03   -1.2864    
  30  norm          123.88        46.302        .18081E-03   -1.3477    
  31  Normalizat    1.4194        .29249        .32890E-03   -.80069    
  32  Prefactor     1.0149        .20342        .28107E-03   -.92236    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63579e-11
Minuit parameter uncertainties:
  1  6.66143
  2  23.6402
  3  5.27753e-05
  4  7.16445e-06
  5  5.94531
  6  4.96214
  7  22.3149
  8  2.56849e-05
  9  0.000910174
  10  8.03247
  11  9.61434e-06
  12  1.25053e-05
  13  22.5175
  14  2.03587e-05
  15  21.4218
  16  20.2991
  17  14.6896
  18  8.41945
  19  4.89774e-06
  20  4.49316
  21  17.1185
  22  0.000298934
  23  0.00013527
  24  0.809129
  25  4.80997e-06
  26  1.64977
  27  8.58542
  28  25.1055
  29  100.326
  30  46.3151
  31  0.292839
  32  0.203578
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  2.514e+01  2.030e+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.015e+00  2.036e-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:  1.419e+00  2.928e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.15
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 4.53e-08 +/- 3.66e-08
Energy Flux (Fixed Index): 1.62e-05 +/- 1.31e-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) = 7639.65761986
delta logL = 0.5452822388

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7639.63587531
delta logL = 0.567026785378

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.328       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5273       1.0000          .0000       10.000    
     3 'Normalizat'    1.4546       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0027       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=   7639.636     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      222 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.315        25.456       -.13890E-04   -.25968E-03
   2  Index         1.5273        .70640       -.67251E-04    .99129E-04
   3  Normalizat    1.4546        .23001        .33582E-05    .10286E-02
   4  Prefactor     1.0027        .17061       -.43204E-06    .93193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.3152
  Index      = 1.52725
  Normalizat = 1.45455
  Prefactor  = 1.00274
 **********
 **   18 **HESSE 
 **********

 FCN=   7639.636     FROM HESSE     STATUS=OK            27 CALLS      249 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.315        24.615        .88835E-04   -1.4806    
   2  Index         1.5273        .68300        .10305E-01   -.76779    
   3  Normalizat    1.4546        .26660        .32563E-03   -.79063    
   4  Prefactor     1.0027        .19766        .28244E-03   -.92638    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76812e-09
Minuit parameter uncertainties:
  1  24.6271
  2  0.687176
  3  0.266858
  4  0.197798
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/332011': 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) = 7639.63587513
delta logL = 0.567026972006

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  2.032e+01  2.463e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  1.527e+00  6.872e-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.003e+00  1.978e-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:  1.455e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.23
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 1.53 +/- 0.69
Photon Flux (Free Index): 1.35e-08 +/- 2.06e-08
Energy Flux (Free Index): 3.90e-05 +/- 5.69e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/332011/cmap_HighResolution_516931201_517190401_4FGL_J1207.7-0106_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.53e-08', energy_flux2='3.90e-05', photon_flux_error='3.66e-08', dlogl='5.67e-01', energy_flux='1.62e-05', photon_flux2='1.35e-08', job_status='DONE', time_completed='2021-09-05 00:36:45.766477', photon_index_error2='0.69', photon_index2='1.53', ts='5.15', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='5.69e-05', EG='1.42', time_epoch_completed='1630827405.77', return_code='0', job_id='332011', GAL2='1.00', EG2='1.45', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.06e-08', ts2='6.23', photon_index='2.34' WHERE bin_id='1071' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 332011: <4FGL_J1207.7-0106_daily_bin1071> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1071 181.928 -1.1063 516931201 517190401 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 :                                   952.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             357.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            971 sec.

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

