/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 136 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 = 7388
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin169
RA = 192.46, Dec = 37.1306
tmin = 283132801, tmax = 283392001
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='934496', job_status='RUN', time_executed='2021-09-06 06:28:30.547971', time_epoch_executed='1630934910.55' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934496

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934496/ft1_4FGL_J1249.8+3707_daily_bin169.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934496/ft2_4FGL_J1249.8+3707_daily_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934496/ft1_4FGL_J1249.8+3707_daily_bin169.fits outfile=/scratch/kocevski/934496/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin169.fits ra=192.46 dec=37.1306 rad=12.0 tmin=283132801.0 tmax=283392001.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.86
user 3.54
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934496/ft2_4FGL_J1249.8+3707_daily_bin169.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/934496/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/934496/ft1_filtered_4FGL_J1249.8+3707_daily_bin169.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.56
user 0.33
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934496/ft1_filtered_4FGL_J1249.8+3707_daily_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/934496/ft2_4FGL_J1249.8+3707_daily_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/934496/ltcube_283132801_283392001_4FGL_J1249.8+3707_daily_bin169.fits outfile=/scratch/kocevski/934496/expmap_283132801_283392001_4FGL_J1249.8+3707_daily_bin169.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/934496/ltcube_283132801_283392001_4FGL_J1249.8+3707_daily_bin169.fits
.....................!
real 190.17
user 184.75
sys 4.73

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/934496/ft1_filtered_4FGL_J1249.8+3707_daily_bin169.fits scfile=/scratch/kocevski/934496/ft2_4FGL_J1249.8+3707_daily_bin169.fits outfile=/scratch/kocevski/934496/cmap_283132801_283392001_4FGL_J1249.8+3707_daily_bin169.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934496/ft1_filtered_4FGL_J1249.8+3707_daily_bin169.fits scfile=/scratch/kocevski/934496/ft2_4FGL_J1249.8+3707_daily_bin169.fits outfile=/scratch/kocevski/934496/cmap_HighResolution_283132801_283392001_4FGL_J1249.8+3707_daily_bin169.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.55
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    56.784       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.3939       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1863       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.7791       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.309       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.656       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.834       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.3020       1.0000         .10000E-03   10000.    
    19 'norm      '    .10275E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .39277       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .20983E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.7894       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0957       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0065       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=   5709.963     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2695 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     56.776        41.403       -.45498E-05   -.40991E-05
   2  Prefactor     .10000E-03    66.039        .52025E-04** at limit **
   3  norm          8.3938        4.0865       -.11172E-05   -.25743E-03
   4  Prefactor     .10000E-03    4.9452        .46958E-06** at limit **
   5  Prefactor     4.1861        2.8275        .52391E-06   -.18431E-03
   6  Prefactor     1.7788        2.7739       -.32272E-07   -.69979E-03
   7  Prefactor     15.311        11.405        .37644E-06    .84669E-05
   8  Prefactor     .10000E-03    11.820        .97241E-05** at limit **
   9  Prefactor     10.656        10.681        .67601E-06    .66128E-03
  10  Prefactor     11.802        98.022       -.71963E-04    .15153E-04
  11  Prefactor     .10000E-03    2.8243       -.31938E-06** at limit **
  12  norm          .10000E-03    1.4192       -.16913E-06** at limit **
  13  Prefactor     .10000E-03    53.223        .16127E-05** at limit **
  14  Prefactor     .10000E-03    12.196       -.11201E-04** at limit **
  15  Prefactor     .10000E-03    7.2033       -.78481E-06** at limit **
  16  norm          .10000E-03    3.0462       -.21943E-06** at limit **
  17  norm          .10000E-03    6.1251       -.20615E-06** at limit **
  18  norm          3.3005        3.6259       -.23198E-07    .70838E-03
  19  norm          .10000E-03    4.9677       -.46898E-06** at limit **
  20  Prefactor     .39422        2.4541        .21389E-06    .34225E-03
  21  Prefactor     .10363E-03    14.164       -.41469E-05** at limit **
  22  Prefactor     .10000E-03    20.518        .29607E-05** at limit **
  23  Prefactor     2.7888        17.047       -.11852E-05   -.58669E-04
  24  Prefactor     .10000E-03    47.472       -.28572E-04** at limit **
  25  Normalizat    1.0957        .18421        .15934E-05    .21600E-03
  26  Prefactor     1.0065        .22393        .98319E-06    .17729E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 56.7763
  Prefactor  = 0.000100002
  norm       = 8.39385
  Prefactor  = 0.0001
  Prefactor  = 4.18615
  Prefactor  = 1.77883
  Prefactor  = 15.3106
  Prefactor  = 0.0001
  Prefactor  = 10.6557
  Prefactor  = 11.8016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 3.30049
  norm       = 0.0001
  Prefactor  = 0.394216
  Prefactor  = 0.000103631
  Prefactor  = 0.0001
  Prefactor  = 2.78879
  Prefactor  = 0.0001
  Normalizat = 1.09567
  Prefactor  = 1.00655
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.963     FROM HESSE     STATUS=OK           456 CALLS     3151 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     56.776        41.412        .53236E-04   -1.4200    
   2  Prefactor     .10000E-03    66.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.3938        4.0865        .96636E-04   -1.5128    
   4  Prefactor     .10000E-03    4.9986        .16407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.1861        2.8265        .95366E-04   -1.5299    
   6  Prefactor     1.7788        2.7390        .14399E-03   -1.5441    
   7  Prefactor     15.311        11.374        .10236E-03   -1.4925    
   8  Prefactor     .10000E-03    11.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.656        10.696        .61369E-03   -1.5055    
  10  Prefactor     11.802        98.183        .11645E-03   -1.5021    
  11  Prefactor     .10000E-03    2.8615        .12399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4212        .87869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    53.419        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.2288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.0839        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.1304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.3005        3.5402        .13890E-03   -1.5345    
  19  norm          .10000E-03    4.9972        .16319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .39422        6.6114        .19876E-02   -1.5582    
  21  Prefactor     .10363E-03    117.02        .48582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     2.7888        17.031        .24362E-03   -1.5374    
  24  Prefactor     .10000E-03    47.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0957        .22147        .23098E-03   -.89891    
  26  Prefactor     1.0065        .26971        .29458E-03   -.92512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98788e-08
Minuit parameter uncertainties:
  1  41.4331
  2  0.000670038
  3  4.08659
  4  1.03173e-05
  5  2.8266
  6  2.7392
  7  11.3752
  8  1.96801e-05
  9  10.698
  10  68.2321
  11  2.02574e-07
  12  2.12553e-05
  13  9.88647e-05
  14  6.6787e-05
  15  6.24446e-07
  16  2.74761e-06
  17  6.36965e-06
  18  3.54044
  19  2.56872e-05
  20  3.22883
  21  0.0413081
  22  9.95163e-06
  23  13.7892
  24  2.61128e-05
  25  0.221663
  26  0.270073
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.066e+01  1.070e+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.007e+00  2.701e-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:  1.096e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.19
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 9.72e-09 +/- 9.75e-09
Energy Flux (Fixed Index): 1.24e-05 +/- 1.24e-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) = 5709.01855424
delta logL = 0.944652052246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5708.9996095
delta logL = 0.963596790608

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.490       1.0000         .10000E-03   10000.    
     2 'Index     '    .89783       1.0000          .0000       10.000    
     3 'Normalizat'    1.0986       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0076       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=   5709.000     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      209 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.517        17.366        .27264E-02   -.35577E-04
   2  Index         .89867        .65725        .33256       -.35812E-05
   3  Normalizat    1.0985        .18070        .38057E-01   -.33785E-03
   4  Prefactor     1.0076        .22282        .66563E-01   -.23842E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.517
  Index      = 0.898673
  Normalizat = 1.09853
  Prefactor  = 1.00763
 **********
 **   18 **HESSE 
 **********

 FCN=   5709.000     FROM HESSE     STATUS=OK            29 CALLS      238 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.517        15.473        .10906E-03   -1.4972    
   2  Index         .89867        .64122        .13414E-01   -.96187    
   3  Normalizat    1.0985        .21793        .23068E-03   -.89799    
   4  Prefactor     1.0076        .26857        .29443E-03   -.92475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16426e-10
Minuit parameter uncertainties:
  1  15.4774
  2  0.646713
  3  0.218108
  4  0.268925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934496': 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) = 5708.99960761
delta logL = 0.963598681767

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.352e+01  1.548e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  8.987e-01  6.467e-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.008e+00  2.689e-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:  1.099e+00  2.181e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.11
Ra Dec: 192.460 37.131
Photon Index (Free Index): 0.90 +/- 0.65
Photon Flux (Free Index): 3.73e-09 +/- 4.10e-09
Energy Flux (Free Index): 6.82e-05 +/- 9.47e-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/934496/cmap_HighResolution_283132801_283392001_4FGL_J1249.8+3707_daily_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.72e-09', energy_flux2='6.82e-05', photon_flux_error='9.75e-09', dlogl='9.64e-01', energy_flux='1.24e-05', photon_flux2='3.73e-09', job_status='DONE', time_completed='2021-09-06 06:38:47.515296', photon_index_error2='0.65', photon_index2='0.90', ts='5.19', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='9.47e-05', EG='1.10', time_epoch_completed='1630935527.52', return_code='0', job_id='934496', GAL2='1.01', EG2='1.10', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='4.10e-09', ts2='7.11', photon_index='1.78' WHERE bin_id='169' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:38:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 934496: <4FGL_J1249.8+3707_daily_bin169> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin169> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:26:01 2021
Job was executed on host(s) <bullet0115>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:26:03 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:26:03 2021
Terminated at Mon Sep  6 06:38:48 2021
Results reported at Mon Sep  6 06:38:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin169 192.46 37.1306 283132801 283392001 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 :                                   613.31 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            767 sec.

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

