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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin1403
RA = 181.928, Dec = -1.1063
tmin = 602985601, tmax = 603244801
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='334992', job_status='RUN', time_executed='2021-09-05 00:33:37.705645', time_epoch_executed='1630827217.71' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='1403'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/334992

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/334992/ft1_4FGL_J1207.7-0106_daily_bin1403.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/334992/ft2_4FGL_J1207.7-0106_daily_bin1403.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/334992/ft1_4FGL_J1207.7-0106_daily_bin1403.fits outfile=/scratch/kocevski/334992/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin1403.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=602985601.0 tmax=603244801.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.01
user 2.79
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/334992/ft1_filtered_4FGL_J1207.7-0106_daily_bin1403.fits" evtable="EVENTS" scfile=/scratch/kocevski/334992/ft2_4FGL_J1207.7-0106_daily_bin1403.fits sctable="SC_DATA" outfile=/scratch/kocevski/334992/ltcube_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.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/334992/ft2_4FGL_J1207.7-0106_daily_bin1403.fits
.....................!
real 12.81
user 12.41
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/334992/ft1_filtered_4FGL_J1207.7-0106_daily_bin1403.fits evtable="EVENTS" scfile=/scratch/kocevski/334992/ft2_4FGL_J1207.7-0106_daily_bin1403.fits sctable="SC_DATA" expcube=/scratch/kocevski/334992/ltcube_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.fits outfile=/scratch/kocevski/334992/expmap_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.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/334992/ltcube_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.fits
.....................!
real 190.97
user 185.59
sys 4.54

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/334992/ft1_filtered_4FGL_J1207.7-0106_daily_bin1403.fits scfile=/scratch/kocevski/334992/ft2_4FGL_J1207.7-0106_daily_bin1403.fits outfile=/scratch/kocevski/334992/cmap_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.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.62
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/334992/ft1_filtered_4FGL_J1207.7-0106_daily_bin1403.fits scfile=/scratch/kocevski/334992/ft2_4FGL_J1207.7-0106_daily_bin1403.fits outfile=/scratch/kocevski/334992/cmap_HighResolution_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.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.59
user 0.36
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.5364       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.4973       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    631.96       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10879E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    133.21       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    100.60       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.5321       1.0000         .10000E-03   10000.    
    20 'norm      '    .10574E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .18259E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5720       1.0000         .10000E-03   10000.    
    25 'Prefactor '    18.934       1.0000         .10000E-03   10000.    
    26 'norm      '    1.7956       1.0000         .10000E-03   10000.    
    27 'Prefactor '    29.193       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .21912E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    .14959E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2943       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80256       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=   3189.756     FROM MIGRAD    STATUS=CONVERGED    832 CALLS     4373 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1197       -.89898E-07** at limit **
   2  norm          .10000E-03    14.377       -.29130E-05** at limit **
   3  Prefactor     2.5358        6.3869        .29676E-05   -.28013E-03
   4  Prefactor     .10000E-03    23.687       -.67191E-05** at limit **
   5  norm          .10000E-03    5.1467        .74596E-07** at limit **
   6  Prefactor     5.4954        6.0132        .28558E-06   -.10003E-02
   7  Prefactor     .10001E-03    126.75        .60926E-04** at limit **
   8  Prefactor     .10000E-03    30.264       -.86218E-05** at limit **
   9  Prefactor     631.98        417.56        .44219E-05    .65545E-05
  10  Prefactor     .10000E-03    11.267       -.13762E-05** at limit **
  11  Prefactor     .10000E-03    24.084       -.11781E-04** at limit **
  12  Prefactor     .10001E-03    23.829       -.13411E-04** at limit **
  13  Prefactor     .10000E-03    35.598        .17818E-04** at limit **
  14  Prefactor     .10000E-03    22.469        .14533E-04** at limit **
  15  Prefactor     133.27        129.79        .48030E-04    .49973E-04
  16  Prefactor     .10000E-03    23.686       -.73565E-05** at limit **
  17  Prefactor     100.59        84.803       -.73310E-05    .63931E-04
  18  Prefactor     .10000E-03    11.898        .26240E-05** at limit **
  19  norm          2.5324        2.5270        .38691E-07   -.46300E-05
  20  norm          .10000E-03    2.7845       -.28381E-06** at limit **
  21  Prefactor     .10000E-03    22.320        .17622E-04** at limit **
  22  norm          .10000E-03    32.918        .78259E-05** at limit **
  23  Prefactor     .10000E-03    348.48       -.27528E-03** at limit **
  24  norm          1.5718        1.0357       -.68506E-07   -.14328E-02
  25  Prefactor     18.930        21.323        .57923E-06   -.14754E-03
  26  norm          1.7952        2.2181        .37678E-06   -.40644E-03
  27  Prefactor     29.186        17.881       -.34364E-06   -.39295E-03
  28  Prefactor     .10000E-03    141.43        .82260E-04** at limit **
  29  Prefactor     .10000E-03    85.954       -.89521E-04** at limit **
  30  norm          .10000E-03    120.24        .43061E-04** at limit **
  31  Normalizat    1.2944        .37484       -.99780E-05   -.20197E-03
  32  Prefactor     .80248        .24023        .18012E-05   -.58025E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.53577
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.49535
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 631.975
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 133.272
  Prefactor  = 0.0001
  Prefactor  = 100.592
  Prefactor  = 0.0001
  norm       = 2.53236
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.57181
  Prefactor  = 18.9301
  norm       = 1.79524
  Prefactor  = 29.1862
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Normalizat = 1.29439
  Prefactor  = 0.802483
 **********
 **   18 **HESSE 
 **********

 FCN=   3189.756     FROM HESSE     STATUS=OK           639 CALLS     5012 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1204        .97428E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    14.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.5358        6.3616        .21842E-03   -1.5389    
   4  Prefactor     .10000E-03    23.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.1682        .12510E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.4954        6.0019        .13721E-03   -1.5239    
   7  Prefactor     .10001E-03    131.18        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     631.98        418.56        .82198E-04   -1.0626    
  10  Prefactor     .10000E-03    11.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    24.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    24.048        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    22.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     133.27        130.45        .17445E-03   -1.3394    
  16  Prefactor     .10000E-03    23.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     100.59        84.711        .40084E-04   -1.3699    
  18  Prefactor     .10000E-03    11.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.5324        2.5327        .87070E-04   -1.5390    
  20  norm          .10000E-03    2.7898        .91902E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    22.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    32.926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    348.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5718        1.0267        .42134E-04   -1.5457    
  25  Prefactor     18.930        21.287        .92045E-04   -1.4838    
  26  norm          1.7952        2.1976        .88620E-04   -1.5440    
  27  Prefactor     29.186        17.881        .74151E-04   -1.4627    
  28  Prefactor     .10000E-03    144.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    86.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          .10000E-03    122.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2944        .44731        .32085E-03   -.83734    
  32  Prefactor     .80248        .28458        .27059E-03   -.99637    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.95004e-09
Minuit parameter uncertainties:
  1  3.74606e-07
  2  9.57827e-08
  3  6.36333
  4  3.83514e-06
  5  6.11265e-06
  6  6.00255
  7  0.00207048
  8  5.21383e-05
  9  420.651
  10  2.02046e-05
  11  7.26431e-06
  12  0.000932216
  13  5.65479e-05
  14  9.05072e-06
  15  130.736
  16  4.55093e-05
  17  84.8126
  18  2.17648e-05
  19  2.53281
  20  1.46558e-05
  21  1.88926e-05
  22  2.13784e-06
  23  0.00110122
  24  1.02668
  25  21.2957
  26  2.19774
  27  17.8847
  28  0.0015226
  29  0.000537628
  30  0.000578819
  31  0.44866
  32  0.285103
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.000e-04  4.551e-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:  8.025e-01  2.851e-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.294e+00  4.487e-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.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.15e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/334992/likelihoodResults_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.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) = 3189.75634184
delta logL = -0.000199450688797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3189.7561436
delta logL = -1.20497452372e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9164       1.0000          .0000       10.000    
     3 'Normalizat'    1.2943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80254       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=   3189.756     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      273 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10541E-03    6.7661        .18142E-01** at limit **
   2  Index         2.7789        7.6200        .50000        .12848E-04
   3  Normalizat    1.2944        .54298E-02    .32085E-03    .61298E-05
   4  Prefactor     .80249        .37234E-02    .27058E-03    .16806E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105412
  Index      = 2.7789
  Normalizat = 1.29438
  Prefactor  = 0.802494
 **********
 **   18 **HESSE 
 **********

 FCN=   3189.756     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      302 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10541E-03    160.64        .22943E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7789        5.5766        .50000       -.46030    
   3  Normalizat    1.2944        .26561E-01    .12834E-04   -.83734    
   4  Prefactor     .80249        .18214E-01    .10823E-04   -.99636    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42455e-08
Minuit parameter uncertainties:
  1  0.0591266
  2  618.116
  3  0.0265615
  4  0.0182142
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/334992': 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) = 3189.75614329
delta logL = -8.93466221896e-07

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.054e-04  5.913e-02  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.779e+00  6.181e+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:  8.025e-01  1.821e-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:  1.294e+00  2.656e-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/334992/cmap_HighResolution_602985601_603244801_4FGL_J1207.7-0106_daily_bin1403.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.15e-02', job_status='DONE', photon_flux_upper_limit='1.49e-07', time_completed='2021-09-05 00:44:35.663208', job_id='334992', GAL2='0.80', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630827875.66', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='-8.93e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='1403' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:44:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0203>
Subject: Job 334992: <4FGL_J1207.7-0106_daily_bin1403> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin1403> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep  5 00:30:39 2021
Job was executed on host(s) <bullet0203>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:30:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep  5 00:30:40 2021
Terminated at Sun Sep  5 00:44:36 2021
Results reported at Sun Sep  5 00:44:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin1403 181.928 -1.1063 602985601 603244801 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 :                                   640.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             263.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            837 sec.

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

