/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 216 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 = 7443
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin49
RA = 192.46, Dec = 37.1306
tmin = 252028801, tmax = 252288001
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='934349', job_status='RUN', time_executed='2021-09-06 06:29:47.442278', time_epoch_executed='1630934987.44' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='49'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934349

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934349/ft1_4FGL_J1249.8+3707_daily_bin49.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934349/ft1_4FGL_J1249.8+3707_daily_bin49.fits outfile=/scratch/kocevski/934349/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin49.fits ra=192.46 dec=37.1306 rad=12.0 tmin=252028801.0 tmax=252288001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.32
user 1.25
sys 0.18

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.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/934349/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin49.fits evtable="EVENTS" outfile="/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.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.96
user 0.31
sys 0.19

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits" evtable="EVENTS" scfile=/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits sctable="SC_DATA" outfile=/scratch/kocevski/934349/ltcube_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.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/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits
.....................!
real 13.10
user 12.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits sctable="SC_DATA" expcube=/scratch/kocevski/934349/ltcube_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.fits outfile=/scratch/kocevski/934349/expmap_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.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/934349/ltcube_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.fits
.....................!
real 190.15
user 184.76
sys 5.02

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits scfile=/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits outfile=/scratch/kocevski/934349/cmap_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.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=192.46 yref=37.1306 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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits scfile=/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits outfile=/scratch/kocevski/934349/cmap_HighResolution_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.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=192.46 yref=37.1306 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits evtable="EVENTS" scfile=/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934349/Model_4FGL_J1249.8+3707_daily_bin49.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/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits.....................!
real 59.38
user 57.94
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits', '/scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits', expMap='/scratch/kocevski/934349/expmap_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.fits', expCube='/scratch/kocevski/934349/ltcube_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934349/Model_4FGL_J1249.8+3707_daily_bin49.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934349/ft1_filtered_4FGL_J1249.8+3707_daily_bin49.fits
Spacecraft file(s): /scratch/kocevski/934349/ft2_4FGL_J1249.8+3707_daily_bin49.fits
Exposure map: /scratch/kocevski/934349/expmap_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.fits
Exposure cube: /scratch/kocevski/934349/ltcube_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934349/Model_4FGL_J1249.8+3707_daily_bin49.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) = 7316.30892304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11393E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.762       1.0000         .10000E-03   10000.    
     3 'norm      '    4.2645       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.1235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3022       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18077E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.835       1.0000         .10000E-03   10000.    
    10 'Prefactor '    29.217       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1219       1.0000         .10000E-03   10000.    
    12 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.632       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .14891E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.2432       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9224       1.0000         .10000E-03   10000.    
    18 'norm      '    4.2796       1.0000         .10000E-03   10000.    
    19 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10420E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1512       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .19129E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9566       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83557       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0163       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7316.252     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3155 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.570        .41688E-05** at limit **
   2  Prefactor     30.758        25.104        .33662E-06   -.21719E-04
   3  norm          4.2643        2.4720       -.54970E-06   -.34166E-02
   4  Prefactor     .10000E-03    7.1701        .11940E-06** at limit **
   5  Prefactor     3.1235        2.1131        .19850E-06   -.16954E-03
   6  Prefactor     4.3023        2.0822        .30026E-07   -.16034E-03
   7  Prefactor     .10001E-03    3.8139        .24637E-06** at limit **
   8  Prefactor     .10000E-03    19.147       -.42294E-05** at limit **
   9  Prefactor     36.839        20.893       -.11435E-06    .28600E-04
  10  Prefactor     29.216        33.623       -.20503E-06    .61515E-05
  11  Prefactor     3.1238        3.8348       -.39075E-07   -.33495E-04
  12  norm          .10000E-03    1.3808        .49031E-09** at limit **
  13  Prefactor     16.627        30.564        .33780E-08   -.27768E-04
  14  Prefactor     .10000E-03    6.8348        .91684E-07** at limit **
  15  Prefactor     .10000E-03    42.711       -.33228E-05** at limit **
  16  norm          4.2542        4.8741       -.15947E-06   -.23738E-03
  17  norm          5.9227        7.5567        .48496E-05   -.63346E-03
  18  norm          4.2892        3.0354        .72617E-07   -.83363E-04
  19  norm          .10000E-03    2.7727        .12901E-07** at limit **
  20  Prefactor     .10000E-03    1.5157        .17964E-07** at limit **
  21  Prefactor     4.1490        9.7370       -.47157E-06   -.10071E-03
  22  Prefactor     .10000E-03    199.40       -.50103E-05** at limit **
  23  Prefactor     2.9559        8.8548       -.58851E-06   -.17714E-03
  24  Prefactor     .10000E-03    18.568        .36530E-05** at limit **
  25  Normalizat    .83571        .14452        .18934E-06    .49532E-06
  26  Prefactor     1.0162        .17993       -.22262E-06    .23762E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 30.7579
  norm       = 4.26434
  Prefactor  = 0.0001
  Prefactor  = 3.12352
  Prefactor  = 4.3023
  Prefactor  = 0.000100006
  Prefactor  = 0.000100001
  Prefactor  = 36.8392
  Prefactor  = 29.2158
  Prefactor  = 3.12383
  norm       = 0.0001
  Prefactor  = 16.6274
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.25419
  norm       = 5.92271
  norm       = 4.28915
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.14904
  Prefactor  = 0.000100002
  Prefactor  = 2.95592
  Prefactor  = 0.0001
  Normalizat = 0.835706
  Prefactor  = 1.01619
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.252     FROM HESSE     STATUS=OK           460 CALLS     3615 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    81.066        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.758        25.113        .72241E-04   -1.4598    
   3  norm          4.2643        2.6780        .49580E-03   -1.5295    
   4  Prefactor     .10000E-03    7.3340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.1235        2.1276        .92268E-04   -1.5354    
   6  Prefactor     4.3023        2.0634        .80329E-04   -1.5293    
   7  Prefactor     .10001E-03    28.421        .31941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    19.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.839        20.885        .66035E-04   -1.4493    
  10  Prefactor     29.216        33.621        .74121E-04   -1.4626    
  11  Prefactor     3.1238        3.8204        .17697E-03   -1.5354    
  12  norm          .10000E-03    1.3892        .98097E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.627        30.570        .98207E-04   -1.4892    
  14  Prefactor     .10000E-03    6.8431        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.552        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.2542        4.8243        .18994E-03   -1.5295    
  17  norm          5.9227        7.2593        .16501E-03   -1.5221    
  18  norm          4.2892        2.7987        .10941E-03   -1.5294    
  19  norm          .10000E-03    4.7055        .25550E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.5349        .10239E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.1490        9.6892        .19783E-03   -1.5301    
  22  Prefactor     .10000E-03    201.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.9559        8.8788        .23617E-03   -1.5364    
  24  Prefactor     .10000E-03    18.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83571        .17366        .23520E-03   -.98758    
  26  Prefactor     1.0162        .21660        .26963E-03   -.92192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.71504e-09
Minuit parameter uncertainties:
  1  0.000475304
  2  25.1212
  3  2.67807
  4  4.48566e-06
  5  2.12764
  6  2.06339
  7  0.000802488
  8  0.00022356
  9  20.889
  10  33.6428
  11  3.82073
  12  3.48192e-07
  13  30.599
  14  6.65456e-07
  15  0.000467072
  16  4.82472
  17  7.26035
  18  2.79881
  19  1.49172e-05
  20  4.27085e-06
  21  9.69285
  22  0.00117912
  23  8.88276
  24  0.000186001
  25  0.173776
  26  0.21679
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.684e+01  2.089e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.016e+00  2.168e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.357e-01  1.738e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.06
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.36e-08 +/- 1.90e-08
Energy Flux (Fixed Index): 4.27e-05 +/- 2.42e-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) = 7316.12258977
delta logL = 0.129594830039

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7316.09673677
delta logL = 0.155447824549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.255       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9753       1.0000          .0000       10.000    
     3 'Normalizat'    .82804       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0195       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   7316.097     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      272 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.256        23.874        .75370E-04   -.10483E-03
   2  Index         1.9754        .37623        .40187E-02   -.10453E-03
   3  Normalizat    .82802        .17149        .23613E-03    .17997E-03
   4  Prefactor     1.0195        .21507        .26916E-03    .20591E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.2561
  Index      = 1.97542
  Normalizat = 0.828019
  Prefactor  = 1.01948
 **********
 **   18 **HESSE 
 **********

 FCN=   7316.097     FROM HESSE     STATUS=OK            25 CALLS      297 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.256        22.457        .15074E-04   -1.4644    
   2  Index         1.9754        .35380        .16075E-03   -.64966    
   3  Normalizat    .82802        .17157        .94454E-05   -.99038    
   4  Prefactor     1.0195        .21526        .10766E-04   -.92083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39997e-10
Minuit parameter uncertainties:
  1  22.4636
  2  0.354266
  3  0.17168
  4  0.215443
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934349': 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) = 7316.09673665
delta logL = 0.155447949712

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.826e+01  2.246e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.975e+00  3.543e-01  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.019e+00  2.154e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.280e-01  1.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.35
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.98 +/- 0.35
Photon Flux (Free Index): 4.25e-08 +/- 2.73e-08
Energy Flux (Free Index): 3.13e-05 +/- 2.37e-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/934349/cmap_HighResolution_252028801_252288001_4FGL_J1249.8+3707_daily_bin49.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.36e-08', energy_flux2='3.13e-05', photon_flux_error='1.90e-08', dlogl='1.55e-01', energy_flux='4.27e-05', photon_flux2='4.25e-08', job_status='DONE', time_completed='2021-09-06 06:42:10.470654', photon_index_error2='0.35', photon_index2='1.98', ts='9.06', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='2.37e-05', EG='0.84', time_epoch_completed='1630935730.47', return_code='0', job_id='934349', GAL2='1.02', EG2='0.83', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='2.73e-08', ts2='9.35', photon_index='1.78' WHERE bin_id='49' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:42:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 934349: <4FGL_J1249.8+3707_daily_bin49> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin49> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:25:48 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:25:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:25:50 2021
Terminated at Mon Sep  6 06:42:11 2021
Results reported at Mon Sep  6 06:42:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin49 192.46 37.1306 252028801 252288001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   740.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

