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


Performing analysis on: 4FGL_J1207.7-0106_daily_bin876
RA = 181.928, Dec = -1.1063
tmin = 466387201, tmax = 466646401
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='330835', job_status='RUN', time_executed='2021-09-05 00:16:53.428185', time_epoch_executed='1630826213.43' WHERE source_name='4FGL J1207.7-0106' and cadence='daily' and bin_id='876'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330835

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330835/ft1_4FGL_J1207.7-0106_daily_bin876.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330835/ft2_4FGL_J1207.7-0106_daily_bin876.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330835/ft1_4FGL_J1207.7-0106_daily_bin876.fits outfile=/scratch/kocevski/330835/ft1_filteredMKT_4FGL_J1207.7-0106_daily_bin876.fits ra=181.928 dec=-1.1063 rad=12.0 tmin=466387201.0 tmax=466646401.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.76
user 3.47
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330835/ft1_filtered_4FGL_J1207.7-0106_daily_bin876.fits" evtable="EVENTS" scfile=/scratch/kocevski/330835/ft2_4FGL_J1207.7-0106_daily_bin876.fits sctable="SC_DATA" outfile=/scratch/kocevski/330835/ltcube_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.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/330835/ft2_4FGL_J1207.7-0106_daily_bin876.fits
.....................!
real 12.18
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330835/ft1_filtered_4FGL_J1207.7-0106_daily_bin876.fits evtable="EVENTS" scfile=/scratch/kocevski/330835/ft2_4FGL_J1207.7-0106_daily_bin876.fits sctable="SC_DATA" expcube=/scratch/kocevski/330835/ltcube_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.fits outfile=/scratch/kocevski/330835/expmap_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.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/330835/ltcube_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.fits
.....................!
real 189.95
user 185.33
sys 4.15

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/330835/ft1_filtered_4FGL_J1207.7-0106_daily_bin876.fits scfile=/scratch/kocevski/330835/ft2_4FGL_J1207.7-0106_daily_bin876.fits outfile=/scratch/kocevski/330835/cmap_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.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.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330835/ft1_filtered_4FGL_J1207.7-0106_daily_bin876.fits evtable="EVENTS" scfile=/scratch/kocevski/330835/ft2_4FGL_J1207.7-0106_daily_bin876.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330835/Model_4FGL_J1207.7-0106_daily_bin876.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/330835/ft1_filtered_4FGL_J1207.7-0106_daily_bin876.fits.....................!
real 56.71
user 55.17
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.881       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.3283       1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.922       1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.7959       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .36942E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15489E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10236E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8760       1.0000         .10000E-03   10000.    
    17 'Prefactor '    30.388       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.5018       1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.647       1.0000         .10000E-03   10000.    
    22 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.0312       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.5497       1.0000         .10000E-03   10000.    
    26 'norm      '    2.1688       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    30 'norm      '    10.703       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0873       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0228       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=   6319.683     FROM MIGRAD    STATUS=CONVERGED    820 CALLS     4321 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4095       -.17218E-07** at limit **
   2  norm          27.861        23.951       -.52179E-05   -.55738E-05
   3  Prefactor     5.3282        2.9000       -.18962E-06   -.10954E-04
   4  Prefactor     14.931        30.541        .96827E-05    .11035E-04
   5  norm          .10000E-03    2.2006       -.11989E-08** at limit **
   6  Prefactor     6.8021        4.2871       -.42463E-06   -.18210E-03
   7  Prefactor     .10000E-03    86.731        .19751E-05** at limit **
   8  Prefactor     .10000E-03    36.843       -.14402E-04** at limit **
   9  Prefactor     .10014E-03    644.33       -.48939E-03** at limit **
  10  Prefactor     .10000E-03    13.295       -.71555E-05** at limit **
  11  Prefactor     .10000E-03    16.185       -.12714E-05** at limit **
  12  Prefactor     .10000E-03    11.728        .58038E-05** at limit **
  13  Prefactor     .10000E-03    9.2915       -.89563E-06** at limit **
  14  Prefactor     .10000E-03    23.031        .79889E-05** at limit **
  15  Prefactor     .10000E-03    12.956       -.40360E-05** at limit **
  16  Prefactor     1.8759        26.410       -.21734E-05   -.13017E-03
  17  Prefactor     30.353        29.920       -.16810E-04    .89169E-04
  18  Prefactor     .10000E-03    6.6929       -.24038E-08** at limit **
  19  norm          1.5017        1.7323       -.36046E-07   -.21347E-04
  20  norm          .10000E-03    1.1230        .11423E-06** at limit **
  21  Prefactor     11.654        23.021        .29369E-05    .15693E-04
  22  norm          .10000E-03    12.263        .39999E-05** at limit **
  23  Prefactor     .10000E-03    56.042        .29425E-04** at limit **
  24  norm          4.0312        .83721        .28046E-07    .59595E-03
  25  Prefactor     6.5479        7.1831       -.81268E-07   -.55555E-05
  26  norm          2.1685        1.8000       -.10805E-06   -.33278E-03
  27  Prefactor     .10000E-03    5.1709       -.80114E-07** at limit **
  28  Prefactor     .10000E-03    30.344       -.16738E-04** at limit **
  29  Prefactor     .10000E-03    22.896        .85064E-05** at limit **
  30  norm          10.699        17.168       -.79104E-07   -.37394E-05
  31  Normalizat    1.0873        .22467        .16639E-05    .76848E-03
  32  Prefactor     1.0230        .16575        .76649E-06    .80220E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 27.8608
  Prefactor  = 5.32824
  Prefactor  = 14.9306
  norm       = 0.0001
  Prefactor  = 6.80209
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87589
  Prefactor  = 30.3528
  Prefactor  = 0.0001
  norm       = 1.50173
  norm       = 0.0001
  Prefactor  = 11.6544
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.03122
  Prefactor  = 6.54793
  norm       = 2.16851
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.6994
  Normalizat = 1.08728
  Prefactor  = 1.02295
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.683     FROM HESSE     STATUS=OK           649 CALLS     4970 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4253        .12038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.861        23.944        .37936E-03   -1.4652    
   3  Prefactor     5.3282        2.8994        .95959E-04   -1.5246    
   4  Prefactor     14.931        30.513        .10368E-03   -1.4935    
   5  norm          .10000E-03    2.2034        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.8021        4.2814        .12437E-03   -1.5186    
   7  Prefactor     .10000E-03    89.868        .39183E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    37.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10014E-03    644.87        .20445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    12.134        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.8759        26.409        .30400E-03   -1.5434    
  17  Prefactor     30.353        29.942        .72683E-04   -1.4606    
  18  Prefactor     .10000E-03    6.7220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.5017        1.7232        .10879E-03   -1.5463    
  20  norm          .10000E-03    1.1286        .82207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     11.654        23.015        .11739E-03   -1.5025    
  22  norm          .10000E-03    12.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    56.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.0312        .83952        .30807E-04   -1.5306    
  25  Prefactor     6.5479        7.1804        .15681E-03   -1.5196    
  26  norm          2.1685        1.7887        .92342E-04   -1.5413    
  27  Prefactor     .10000E-03    5.2102        .17650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    30.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    22.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  norm          10.699        17.167        .12247E-03   -1.5054    
  31  Normalizat    1.0873        .25970        .31463E-03   -.90161    
  32  Prefactor     1.0230        .19139        .24495E-03   -.91968    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.93495e-09
Minuit parameter uncertainties:
  1  7.28306e-06
  2  23.9525
  3  2.89945
  4  30.5448
  5  6.31627e-06
  6  4.28155
  7  0.000441385
  8  1.48939e-05
  9  0.0193121
  10  0.000137721
  11  9.26169e-06
  12  4.33145e-05
  13  2.48673e-05
  14  2.16012e-05
  15  3.55629e-05
  16  14.0842
  17  29.9569
  18  1.0045e-06
  19  1.72328
  20  1.32735e-05
  21  23.0326
  22  1.17091e-05
  23  2.99311e-05
  24  0.839524
  25  7.1813
  26  1.78874
  27  9.50377e-06
  28  9.6522e-06
  29  1.41059e-05
  30  17.1746
  31  0.260009
  32  0.191518
Done.

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

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.876e+00  1.408e+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.023e+00  1.915e-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.087e+00  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 181.928 -1.106
Photon Flux Upper Limit: 8.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/330835/likelihoodResults_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.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) = 6319.66619962
delta logL = 0.0167381274832

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6319.66605831
delta logL = 0.0168794296997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8167       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8273       1.0000          .0000       10.000    
     3 'Normalizat'    1.0831       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0243       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6319.666     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      293 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8057        20.380        .15494E-02    .34677E-03
   2  Index         2.8350        2.9216        .68303E-02   -.46937E-05
   3  Normalizat    1.0830        .25105        .31518E-03   -.43645E-05
   4  Prefactor     1.0244        .19007        .24480E-03   -.13375E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.80566
  Index      = 2.83499
  Normalizat = 1.08302
  Prefactor  = 1.02436
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.666     FROM HESSE     STATUS=OK            27 CALLS      320 TOTAL
                     EDM=   .75E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8057        15.148        .30987E-03   -1.5439    
   2  Index         2.8350        2.5755        .27321E-03   -.44782    
   3  Normalizat    1.0830        .25134        .12607E-04   -.90299    
   4  Prefactor     1.0244        .19022        .97919E-05   -.91922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51338e-12
Minuit parameter uncertainties:
  1  10.4632
  2  2.74141
  3  0.251617
  4  0.190348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330835': 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) = 6319.66605367
delta logL = 0.0168840719252

Extracting fit parameters...

4FGL J1207.7-0106
   Spectrum: PowerLaw
320    Prefactor:  1.806e+00  1.046e+01  1.000e-04  1.000e+04 ( 1.000e-13)
321        Index:  2.835e+00  2.741e+00  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.024e+00  1.903e-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.083e+00  2.516e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.02
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/330835/cmap_HighResolution_466387201_466646401_4FGL_J1207.7-0106_daily_bin876.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.78e-03', job_status='DONE', photon_flux_upper_limit='8.81e-08', time_completed='2021-09-05 00:33:03.007702', job_id='330835', GAL2='1.02', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630827183.01', return_code2='0', ts='0.02', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.69e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='876' AND source_name='4FGL J1207.7-0106' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep  5 00:33:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 330835: <4FGL_J1207.7-0106_daily_bin876> in cluster <slac> Done

Job <4FGL_J1207.7-0106_daily_bin876> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sun Sep  5 00:16:40 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep  5 00:16:42 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:16:42 2021
Terminated at Sun Sep  5 00:33:03 2021
Results reported at Sun Sep  5 00:33:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1207.7-0106_daily_bin876 181.928 -1.1063 466387201 466646401 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 :                                   962.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             302.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            983 sec.

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

