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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin857
RA = 192.46, Dec = 37.1306
tmin = 461462401, tmax = 461721601
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='938810', job_status='RUN', time_executed='2021-09-06 06:40:51.675477', time_epoch_executed='1630935651.68' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='857'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938810/ft1_4FGL_J1249.8+3707_daily_bin857.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938810/ft1_4FGL_J1249.8+3707_daily_bin857.fits outfile=/scratch/kocevski/938810/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin857.fits ra=192.46 dec=37.1306 rad=12.0 tmin=461462401.0 tmax=461721601.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.91
user 3.69
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.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/938810/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin857.fits evtable="EVENTS" outfile="/scratch/kocevski/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits" evtable="EVENTS" scfile=/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits sctable="SC_DATA" outfile=/scratch/kocevski/938810/ltcube_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.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/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits
.....................!
real 12.42
user 12.03
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits sctable="SC_DATA" expcube=/scratch/kocevski/938810/ltcube_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.fits outfile=/scratch/kocevski/938810/expmap_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.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/938810/ltcube_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.fits
.....................!
real 190.62
user 185.30
sys 4.30

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/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits scfile=/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits outfile=/scratch/kocevski/938810/cmap_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits scfile=/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits outfile=/scratch/kocevski/938810/cmap_HighResolution_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.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/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits evtable="EVENTS" scfile=/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938810/Model_4FGL_J1249.8+3707_daily_bin857.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/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits.....................!
real 50.66
user 49.38
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits', '/scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits', expMap='/scratch/kocevski/938810/expmap_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.fits', expCube='/scratch/kocevski/938810/ltcube_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938810/Model_4FGL_J1249.8+3707_daily_bin857.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/938810/ft1_filtered_4FGL_J1249.8+3707_daily_bin857.fits
Spacecraft file(s): /scratch/kocevski/938810/ft2_4FGL_J1249.8+3707_daily_bin857.fits
Exposure map: /scratch/kocevski/938810/expmap_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.fits
Exposure cube: /scratch/kocevski/938810/ltcube_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938810/Model_4FGL_J1249.8+3707_daily_bin857.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) = 6129.22313944

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.877       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.8583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.9069       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.8659       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.064       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.8076       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8357       1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.452       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.821       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .46650       1.0000         .10000E-03   10000.    
    16 'norm      '    .10227E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6690       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .79815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.703       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5328       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.7518       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95317       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0874       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=   6129.214     FROM MIGRAD    STATUS=CONVERGED    672 CALLS     3181 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.914        46.879        .23398E-06   -.65855E-05
   2  Prefactor     .10000E-03    6.6404        .49234E-07** at limit **
   3  norm          2.8580        2.0396       -.24370E-09   -.15135E-03
   4  Prefactor     .10000E-03    2.9776        .12200E-06** at limit **
   5  Prefactor     .10000E-03    .74537        .35846E-07** at limit **
   6  Prefactor     .10000E-03    1.0918        .20778E-06** at limit **
   7  Prefactor     8.9052        8.0712       -.13006E-08   -.63921E-04
   8  Prefactor     1.8565        88.933        .36856E-05    .18015E-04
   9  Prefactor     44.010        31.747       -.25766E-06    .24977E-04
  10  Prefactor     .10000E-03    41.574        .24318E-06** at limit **
  11  Prefactor     5.8696        9.7125        .14841E-05   -.39744E-05
  12  norm          1.8351        3.3189        .54946E-06    .12511E-03
  13  Prefactor     24.432        37.256        .17993E-06   -.12415E-04
  14  Prefactor     16.851        23.957       -.49980E-06   -.38659E-04
  15  Prefactor     .30757        22.236        .25117E-05   -.49082E-03
  16  norm          .10000E-03    7.1366       -.17276E-05** at limit **
  17  norm          .10000E-03    5.7753        .27523E-07** at limit **
  18  norm          4.6689        3.5427       -.66937E-07   -.34509E-03
  19  norm          .10000E-03    3.1555        .20991E-07** at limit **
  20  Prefactor     .80097        4.7677        .16714E-05   -.50711E-04
  21  Prefactor     16.699        16.534       -.10925E-05   -.38788E-03
  22  Prefactor     .10000E-03    18.636       -.18793E-06** at limit **
  23  Prefactor     6.5311        11.710        .21404E-06   -.16969E-04
  24  Prefactor     1.5609        477.43       -.99030E-05   -.25055E-04
  25  Normalizat    .95353        .17068       -.32492E-07   -.42705E-03
  26  Prefactor     1.0872        .20505       -.13525E-05   -.29635E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.9137
  Prefactor  = 0.0001
  norm       = 2.85804
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.90525
  Prefactor  = 1.85649
  Prefactor  = 44.0102
  Prefactor  = 0.0001
  Prefactor  = 5.86958
  norm       = 1.83514
  Prefactor  = 24.4319
  Prefactor  = 16.851
  Prefactor  = 0.307569
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 4.66886
  norm       = 0.0001
  Prefactor  = 0.800969
  Prefactor  = 16.6993
  Prefactor  = 0.0001
  Prefactor  = 6.53113
  Prefactor  = 1.56093
  Normalizat = 0.953529
  Prefactor  = 1.08716
 **********
 **   18 **HESSE 
 **********

 FCN=   6129.214     FROM HESSE     STATUS=OK           472 CALLS     3653 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.914        46.878        .62697E-04   -1.4428    
   2  Prefactor     .10000E-03    6.6427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.8580        2.0274        .91217E-04   -1.5370    
   4  Prefactor     .10000E-03    2.9978        .13193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .75422        .65876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.3478        .15544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.9052        8.0193        .13430E-03   -1.5111    
   8  Prefactor     1.8565        89.699        .30498E-03   -1.5435    
   9  Prefactor     44.010        33.116        .60395E-04   -1.4380    
  10  Prefactor     .10000E-03    41.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.8696        14.516        .16666E-03   -1.5223    
  12  norm          1.8351        3.2560        .17740E-03   -1.5437    
  13  Prefactor     24.432        37.270        .81008E-04   -1.4719    
  14  Prefactor     16.851        23.700        .97653E-04   -1.4887    
  15  Prefactor     .30757        629.91        .51934E-02   -1.5597    
  16  norm          .10000E-03    36.922        .32606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.7879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6689        3.5139        .11726E-03   -1.5276    
  19  norm          .10000E-03    3.1650        .13566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .80097        6.2130        .22699E-02   -1.5529    
  21  Prefactor     16.699        15.898        .97998E-04   -1.4890    
  22  Prefactor     .10000E-03    18.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.5311        11.696        .15701E-03   -1.5197    
  24  Prefactor     1.5609        494.16        .31676E-02   -1.5458    
  25  Normalizat    .95353        .20350        .23259E-03   -.94604    
  26  Prefactor     1.0872        .24150        .27916E-03   -.89878    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04753e-07
Minuit parameter uncertainties:
  1  46.92
  2  3.77186e-06
  3  2.02742
  4  6.03785e-06
  5  1.00004e-06
  6  4.79813e-05
  7  8.02027
  8  25.8495
  9  33.1297
  10  4.13706e-05
  11  14.5247
  12  3.25627
  13  37.3054
  14  23.7133
  15  28.1349
  16  0.000493751
  17  2.57326e-06
  18  3.51409
  19  2.96655e-07
  20  4.46196
  21  15.9016
  22  2.96209e-05
  23  11.6997
  24  56.0171
  25  0.203667
  26  0.241747
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.401e+01  3.313e+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.087e+00  2.417e-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:  9.535e-01  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.55
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 4.01e-08 +/- 3.02e-08
Energy Flux (Fixed Index): 5.10e-05 +/- 3.84e-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) = 6127.54681984
delta logL = 1.66725172256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6127.53460993
delta logL = 1.67946162715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.313       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6591       1.0000          .0000       10.000    
     3 'Normalizat'    .85877       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1537       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.

 FCN=   6127.535     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      277 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.302        63.189        .31192E-02    .15772E-03
   2  Index         2.6597        1.6148        .56054E-01    .26261E-03
   3  Normalizat    .85877        .81783E-01    .44373E-01    .86835E-06
   4  Prefactor     1.1538        .86863E-01    .61402E-01   -.51477E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.3019
  Index      = 2.65968
  Normalizat = 0.858766
  Prefactor  = 1.15384
 **********
 **   18 **HESSE 
 **********

 FCN=   6127.535     FROM HESSE     STATUS=OK            33 CALLS      310 TOTAL
                     EDM=   .92E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.302        28.591        .98548E-04   -1.5066    
   2  Index         2.6597        1.0166        .22986E-02   -.48710    
   3  Normalizat    .85877        .20946        .24299E-03   -.97925    
   4  Prefactor     1.1538        .25374        .27156E-03   -.87764    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.21055e-11
Minuit parameter uncertainties:
  1  28.6289
  2  1.02576
  3  0.209662
  4  0.254004
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938810': 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) = 6127.53460717
delta logL = 1.67946439154

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.030e+01  2.863e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.660e+00  1.026e+00  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.154e+00  2.540e-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.588e-01  2.097e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.05
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.66 +/- 1.03
Photon Flux (Free Index): 1.14e-07 +/- 6.77e-08
Energy Flux (Free Index): 2.84e-05 +/- 1.72e-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/938810/cmap_HighResolution_461462401_461721601_4FGL_J1249.8+3707_daily_bin857.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.01e-08', energy_flux2='2.84e-05', photon_flux_error='3.02e-08', dlogl='1.68e+00', energy_flux='5.10e-05', photon_flux2='1.14e-07', job_status='DONE', time_completed='2021-09-06 06:52:30.929079', photon_index_error2='1.03', photon_index2='2.66', ts='9.55', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.95', time_epoch_completed='1630936350.93', return_code='0', job_id='938810', GAL2='1.15', EG2='0.86', return_code2='0', energy_flux_error='3.84e-05', photon_flux_error2='6.77e-08', ts2='13.05', photon_index='1.78' WHERE bin_id='857' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:52:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 938810: <4FGL_J1249.8+3707_daily_bin857> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin857> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:36 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:37 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:40:37 2021
Terminated at Mon Sep  6 06:52:31 2021
Results reported at Mon Sep  6 06:52:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin857 192.46 37.1306 461462401 461721601 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 :                                   694.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             353.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            715 sec.

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

