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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1029
RA = 181.928, Dec = -1.1063
tmin = 506044801, tmax = 506304001
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='331950', job_status='RUN', time_executed='2021-09-05 00:20:44.229523', time_epoch_executed='1630826444.23' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1029'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/331950

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/331950/ft1_4FGL_J1207.7-0106_daily_bin1029.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/331950/ft1_4FGL_J1207.7-0106_daily_bin1029.fits outfile=/scratch/kocevski/331950/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1029.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=506044801.0 tmax=506304001.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.32
user 3.10
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/331950/ft1_filtered_4FGL_J1207.7-0106_daily_bin1029.fits" evtable="EVENTS" scfile=/scratch/kocevski/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits sctable="SC_DATA" outfile=/scratch/kocevski/331950/ltcube_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.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/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits
.....................!
real 9.05
user 8.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/331950/ft1_filtered_4FGL_J1207.7-0106_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits sctable="SC_DATA" expcube=/scratch/kocevski/331950/ltcube_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.fits outfile=/scratch/kocevski/331950/expmap_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.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/331950/ltcube_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.fits
.....................!
real 144.94
user 141.47
sys 3.24

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/331950/ft1_filtered_4FGL_J1207.7-0106_daily_bin1029.fits scfile=/scratch/kocevski/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits outfile=/scratch/kocevski/331950/cmap_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.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.49
user 0.29
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/331950/ft1_filtered_4FGL_J1207.7-0106_daily_bin1029.fits scfile=/scratch/kocevski/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits outfile=/scratch/kocevski/331950/cmap_HighResolution_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.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.49
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/331950/ft1_filtered_4FGL_J1207.7-0106_daily_bin1029.fits evtable="EVENTS" scfile=/scratch/kocevski/331950/ft2_4FGL_J1207.7-0106_daily_bin1029.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/331950/Model_4FGL_J1207.7-0106_daily_bin1029.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/331950/ft1_filtered_4FGL_J1207.7-0106_daily_bin1029.fits....................!
real 41.16
user 39.82
sys 0.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.9536       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.8891       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    10.169       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.832       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.757       1.0000         .10000E-03   10000.    
     9 'Prefactor '    48.476       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.5356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    31.779       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.0353       1.0000         .10000E-03   10000.    
    16 'Prefactor '    40.302       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .80917E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    2.0526       1.0000         .10000E-03   10000.    
    20 'norm      '    .14445E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.926       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.7912       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    84.239       1.0000         .10000E-03   10000.    
    30 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.4753       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81905       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=   5710.993     FROM MIGRAD    STATUS=CONVERGED    901 CALLS     4487 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7046        .14176E-06** at limit **
   2  norm          3.9532        16.048        .18514E-06   -.52168E-04
   3  Prefactor     3.8889        2.9913        .22121E-06   -.25577E-03
   4  Prefactor     .10000E-03    24.130       -.37637E-05** at limit **
   5  norm          10.169        7.1583        .18795E-05   -.77070E-04
   6  Prefactor     .10000E-03    2.6953        .15358E-07** at limit **
   7  Prefactor     23.826        21.950       -.63251E-05   -.26391E-04
   8  Prefactor     38.785        26.801        .53331E-06   -.26909E-04
   9  Prefactor     48.695        125.83        .16464E-03    .20893E-04
  10  Prefactor     7.5333        9.5924       -.41035E-05   -.12551E-03
  11  Prefactor     31.770        33.455        .10313E-04    .88135E-04
  12  Prefactor     .10000E-03    2.9459        .36399E-07** at limit **
  13  Prefactor     .10000E-03    10.067        .17789E-06** at limit **
  14  Prefactor     .10000E-03    35.338       -.26719E-04** at limit **
  15  Prefactor     4.0320        110.31       -.79201E-04   -.89968E-04
  16  Prefactor     40.332        28.000       -.33242E-05   -.40784E-03
  17  Prefactor     .10000E-03    14.570       -.22326E-07** at limit **
  18  Prefactor     .10078E-03    15.326        .47972E-05** at limit **
  19  norm          2.0614        2.5453       -.33711E-06   -.22757E-02
  20  norm          .10000E-03    2.6952       -.66552E-06** at limit **
  21  Prefactor     .10000E-03    26.671        .88643E-05** at limit **
  22  norm          14.907        36.829        .34724E-04   -.56798E-05
  23  Prefactor     .10000E-03    48.389       -.13647E-04** at limit **
  24  norm          1.7916        .76569       -.30072E-06   -.29037E-02
  25  Prefactor     .10000E-03    3.8578        .60673E-07** at limit **
  26  norm          .10000E-03    1.1382        .30439E-06** at limit **
  27  Prefactor     .10000E-03    2.7742        .45018E-07** at limit **
  28  Prefactor     .10000E-03    40.676        .34921E-04** at limit **
  29  Prefactor     84.265        59.047       -.11818E-04   -.18819E-04
  30  norm          .10000E-03    8.4952       -.27538E-07** at limit **
  31  Normalizat    1.4754        .24827       -.56368E-05   -.11893E-03
  32  Prefactor     .81900        .17363        .53324E-06   -.43163E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.95315
  Prefactor  = 3.88887
  Prefactor  = 0.0001
  norm       = 10.1688
  Prefactor  = 0.0001
  Prefactor  = 23.8258
  Prefactor  = 38.7854
  Prefactor  = 48.6954
  Prefactor  = 7.53325
  Prefactor  = 31.7702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.032
  Prefactor  = 40.3319
  Prefactor  = 0.0001
  Prefactor  = 0.000100776
  norm       = 2.06141
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 14.9068
  Prefactor  = 0.0001
  norm       = 1.79163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.2654
  norm       = 0.0001
  Normalizat = 1.47544
  Prefactor  = 0.818999
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.993     FROM HESSE     STATUS=OK           659 CALLS     5146 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.7783        .28277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.9532        15.893        .20287E-03   -1.5310    
   3  Prefactor     3.8889        2.9933        .10918E-03   -1.5314    
   4  Prefactor     .10000E-03    24.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          10.169        7.1437        .12565E-03   -1.5070    
   6  Prefactor     .10000E-03    2.7285        .12080E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.826        21.936        .82054E-04   -1.4731    
   8  Prefactor     38.785        26.801        .64382E-04   -1.4462    
   9  Prefactor     48.695        126.09        .28797E-03   -1.4311    
  10  Prefactor     7.5333        9.5889        .14609E-03   -1.5159    
  11  Prefactor     31.770        33.472        .71078E-04   -1.4580    
  12  Prefactor     .10000E-03    2.9516        .12666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    35.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.0320        111.46        .20074E-03   -1.5306    
  16  Prefactor     40.332        28.091        .63140E-04   -1.4437    
  17  Prefactor     .10000E-03    14.582        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10078E-03    26.030        .69932E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.0614        2.5898        .11704E-03   -1.5421    
  20  norm          .10000E-03    5.5321        .23102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    26.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.907        36.529        .10367E-03   -1.4936    
  23  Prefactor     .10000E-03    48.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.7916        .75945        .37998E-04   -1.5440    
  25  Prefactor     .10000E-03    3.8638        .14495E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.7775        .15362E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    2.7784        .12292E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    40.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     84.265        59.034        .43767E-04   -1.3869    
  30  norm          .10000E-03    8.4969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.4754        .28972        .27862E-03   -.78471    
  32  Prefactor     .81900        .20198        .26954E-03   -.99032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.72587e-09
Minuit parameter uncertainties:
  1  2.10459e-05
  2  15.8601
  3  2.99342
  4  8.86211e-05
  5  7.14425
  6  3.73715e-06
  7  21.9438
  8  26.809
  9  126.786
  10  9.59082
  11  33.4916
  12  1.58966e-05
  13  3.22816e-05
  14  0.000176209
  15  42.4862
  16  28.0999
  17  2.47081e-05
  18  0.008994
  19  2.58993
  20  0.000179711
  21  2.92642e-05
  22  36.584
  23  3.07209e-06
  24  0.759452
  25  1.40063e-05
  26  3.95016e-05
  27  1.07487e-05
  28  9.68356e-05
  29  59.0749
  30  7.5422e-06
  31  0.290047
  32  0.20216
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  4.033e+01  2.810e+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:  8.190e-01  2.022e-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.475e+00  2.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.66
Ra Dec: 181.928 -1.106
Photon Index (Fixed Index): 2.34 +/- 0.00
Photon Flux (Fixed Index): 7.27e-08 +/- 5.06e-08
Energy Flux (Fixed Index): 2.60e-05 +/- 1.81e-05

TS (Fixed Index): 3.66
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 1.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.36e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/331950/likelihoodResults_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.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): 0
logL (Free Index) = 5710.93879463
delta logL = 0.0546682117465

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5710.93573915
delta logL = 0.0577236902436

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.894       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0873       1.0000          .0000       10.000    
     3 'Normalizat'    1.4937       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81086       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=   5710.936     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      298 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.895        33.406        .59184E-04   -.21491E-03
   2  Index         2.0873        .70812        .94428E-02   -.99745E-04
   3  Normalizat    1.4936        .26623        .27726E-03    .62449E-04
   4  Prefactor     .81091        .19602        .27072E-03    .81092E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.8953
  Index      = 2.08728
  Normalizat = 1.49365
  Prefactor  = 0.810905
 **********
 **   18 **HESSE 
 **********

 FCN=   5710.936     FROM HESSE     STATUS=OK            25 CALLS      323 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.895        32.922        .11837E-04   -1.4352    
   2  Index         2.0873        .69713        .37771E-03   -.62186    
   3  Normalizat    1.4936        .26621        .11090E-04   -.77957    
   4  Prefactor     .81091        .19608        .10829E-04   -.99328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.80861e-10
Minuit parameter uncertainties:
  1  32.9354
  2  0.700594
  3  0.26646
  4  0.196253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/331950': 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) = 5710.93573912
delta logL = 0.0577237149319

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  4.590e+01  3.294e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.087e+00  7.006e-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:  8.109e-01  1.963e-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.494e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 181.928 -1.106
Photon Index (Free Index): 2.09 +/- 0.70
Photon Flux (Free Index): 5.65e-08 +/- 6.17e-08
Energy Flux (Free Index): 3.19e-05 +/- 3.15e-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/331950/cmap_HighResolution_506044801_506304001_4FGL_J1207.7-0106_daily_bin1029.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.36e-02', comment='SUCCESS', photon_flux='7.27e-08', energy_flux2='3.19e-05', photon_flux_error='5.06e-08', dlogl='5.77e-02', energy_flux='2.60e-05', photon_flux2='5.65e-08', job_status='DONE', time_completed='2021-09-05 00:32:38.969771', photon_index_error2='0.70', photon_index2='2.09', ts='3.66', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.77e-07', energy_flux_error2='3.15e-05', EG='1.48', time_epoch_completed='1630827158.97', return_code='0', job_id='331950', GAL2='0.81', EG2='1.49', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='6.17e-08', ts2='3.77', photon_index='2.34' WHERE bin_id='1029' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:32:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 331950: <4FGL_J1207.7-0106_daily_bin1029> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1029 181.928 -1.1063 506044801 506304001 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 :                                   709.00 sec.
    Max Memory :                                 1045 MB
    Average Memory :                             319.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

