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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin349
RA = 192.46, Dec = 37.1306
tmin = 329788801, tmax = 330048001
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='935826', job_status='RUN', time_executed='2021-09-06 06:34:51.803440', time_epoch_executed='1630935291.8' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='349'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935826

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935826/ft1_4FGL_J1249.8+3707_daily_bin349.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935826/ft1_4FGL_J1249.8+3707_daily_bin349.fits outfile=/scratch/kocevski/935826/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin349.fits ra=192.46 dec=37.1306 rad=12.0 tmin=329788801.0 tmax=330048001.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.48
user 3.24
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935826/ft1_filtered_4FGL_J1249.8+3707_daily_bin349.fits" evtable="EVENTS" scfile=/scratch/kocevski/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits sctable="SC_DATA" outfile=/scratch/kocevski/935826/ltcube_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.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/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits
.....................!
real 12.15
user 11.60
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935826/ft1_filtered_4FGL_J1249.8+3707_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits sctable="SC_DATA" expcube=/scratch/kocevski/935826/ltcube_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.fits outfile=/scratch/kocevski/935826/expmap_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.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/935826/ltcube_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.fits
.....................!
real 189.74
user 185.14
sys 4.18

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/935826/ft1_filtered_4FGL_J1249.8+3707_daily_bin349.fits scfile=/scratch/kocevski/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits outfile=/scratch/kocevski/935826/cmap_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935826/ft1_filtered_4FGL_J1249.8+3707_daily_bin349.fits scfile=/scratch/kocevski/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits outfile=/scratch/kocevski/935826/cmap_HighResolution_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.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/935826/ft1_filtered_4FGL_J1249.8+3707_daily_bin349.fits evtable="EVENTS" scfile=/scratch/kocevski/935826/ft2_4FGL_J1249.8+3707_daily_bin349.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935826/Model_4FGL_J1249.8+3707_daily_bin349.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/935826/ft1_filtered_4FGL_J1249.8+3707_daily_bin349.fits.....................!
real 47.81
user 46.22
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.937       1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.047       1.0000         .10000E-03   10000.    
     3 'norm      '    5.9889       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.9680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8399       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10605E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    188.09       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.2176       1.0000         .10000E-03   10000.    
    12 'norm      '    .12432E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    158.71       1.0000         .10000E-03   10000.    
    14 'Prefactor '    37.388       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.663       1.0000         .10000E-03   10000.    
    19 'norm      '    .86175E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4877       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    45.156       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .71673       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1265       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=   5801.188     FROM MIGRAD    STATUS=CONVERGED    622 CALLS     3126 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.932        65.618       -.14167E-05   -.66021E-04
   2  Prefactor     59.045        37.141       -.49824E-06   -.29376E-04
   3  norm          5.9889        2.8200       -.18890E-07    .22379E-04
   4  Prefactor     .10000E-03    2.3174        .86134E-08** at limit **
   5  Prefactor     .10000E-03    .66511        .24456E-08** at limit **
   6  Prefactor     4.9680        2.6468       -.20920E-07   -.28455E-04
   7  Prefactor     4.8399        6.3921        .17917E-07    .76816E-06
   8  Prefactor     .10000E-03    11.457        .79405E-06** at limit **
   9  Prefactor     .10000E-03    40.245        .14521E-07** at limit **
  10  Prefactor     188.07        102.75       -.35272E-05   -.20634E-03
  11  Prefactor     3.2189        5.5339       -.50951E-07   -.14278E-03
  12  norm          .10000E-03    8.7998       -.26373E-06** at limit **
  13  Prefactor     158.69        75.066       -.47685E-05   -.38421E-03
  14  Prefactor     37.380        34.527       -.98476E-06   -.15565E-03
  15  Prefactor     .10000E-03    12.233       -.12805E-05** at limit **
  16  norm          .10000E-03    2.6190       -.11769E-07** at limit **
  17  norm          .10000E-03    13.603        .35966E-06** at limit **
  18  norm          10.684        6.6752       -.20071E-07   -.43229E-03
  19  norm          .10000E-03    8.0671        .43892E-06** at limit **
  20  Prefactor     2.4847        4.8297        .84146E-06   -.14503E-03
  21  Prefactor     .10000E-03    23.078       -.25667E-06** at limit **
  22  Prefactor     45.141        63.392       -.58018E-05   -.19368E-03
  23  Prefactor     3.4060        8.0109        .41932E-05   -.92984E-03
  24  Prefactor     .10000E-03    131.01        .34426E-06** at limit **
  25  Normalizat    .71678        .17557        .16279E-05   -.73815E-04
  26  Prefactor     1.1264        .20594       -.24762E-06    .23663E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.932
  Prefactor  = 59.0453
  norm       = 5.98894
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.96795
  Prefactor  = 4.83988
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 188.072
  Prefactor  = 3.21893
  norm       = 0.0001
  Prefactor  = 158.691
  Prefactor  = 37.3803
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 10.6844
  norm       = 0.000100002
  Prefactor  = 2.48471
  Prefactor  = 0.0001
  Prefactor  = 45.1413
  Prefactor  = 3.40596
  Prefactor  = 0.0001
  Normalizat = 0.716779
  Prefactor  = 1.1264
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.188     FROM HESSE     STATUS=OK           450 CALLS     3576 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.932        65.807        .44920E-04   -1.3917    
   2  Prefactor     59.045        37.204        .52211E-04   -1.4170    
   3  norm          5.9889        2.8201        .84359E-04   -1.5218    
   4  Prefactor     .10000E-03    2.3207        .11322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .66731        .60630E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.9680        2.6444        .86437E-04   -1.5262    
   7  Prefactor     4.8399        6.3870        .18286E-03   -1.5268    
   8  Prefactor     .10000E-03    11.504        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    41.259        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     188.07        104.04        .14722E-03   -1.2957    
  11  Prefactor     3.2189        5.5193        .22585E-03   -1.5349    
  12  norm          .10000E-03    8.9815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     158.69        78.350        .16003E-03   -1.3182    
  14  Prefactor     37.380        34.371        .65546E-04   -1.4484    
  15  Prefactor     .10000E-03    12.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6359        .12030E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.684        5.6867        .11683E-03   -1.5054    
  19  norm          .10000E-03    18.686        .35342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.4847        4.7531        .19001E-03   -1.5393    
  21  Prefactor     .10000E-03    23.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     45.141        64.204        .59664E-04   -1.4363    
  23  Prefactor     3.4060        9.3729        .10959E-02   -1.5339    
  24  Prefactor     .10000E-03    131.52        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .71678        .20700        .27419E-03   -1.0323    
  26  Prefactor     1.1264        .24421        .27347E-03   -.88627    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7556e-09
Minuit parameter uncertainties:
  1  65.8667
  2  37.2189
  3  2.82016
  4  8.9345e-07
  5  2.29603e-07
  6  2.6445
  7  6.38788
  8  8.89678e-05
  9  7.39619e-07
  10  104.14
  11  5.52018
  12  0.00011229
  13  78.4014
  14  34.3892
  15  0.000145084
  16  1.47664e-06
  17  0.000100705
  18  5.68696
  19  0.000380953
  20  4.75383
  21  5.90665e-05
  22  64.3023
  23  9.37693
  24  5.41573e-06
  25  0.207231
  26  0.244453
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.396e-07  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.126e+00  2.445e-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:  7.168e-01  2.072e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 4.64e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935826/likelihoodResults_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.18767213
delta logL = -0.000115544910841

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.18755641
delta logL = 1.79013113666e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8725       1.0000          .0000       10.000    
     3 'Normalizat'    .71678       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1264       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=   5801.188     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      250 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10405        .90712E-01** at limit **
   2  Index         1.9120        5.9030        .50000       -.50375E-05
   3  Normalizat    .71678        .38966E-03    .61982E-01    .11638E-04
   4  Prefactor     1.1264        .47968E-03    .61835E-01   -.13206E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.91204
  Normalizat = 0.716782
  Prefactor  = 1.1264
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.188     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      283 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.169        .51965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9120        5.9546        .50000       -.66568    
   3  Normalizat    .71678        .25282E-02    .27419E-03   -1.0323    
   4  Prefactor     1.1264        .31145E-02    .27347E-03   -.88627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.31065e-09
Minuit parameter uncertainties:
  1  1.82584e-05
  2  28.4001
  3  0.00252822
  4  0.00311449
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935826': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5801.18755635
delta logL = 2.37319000007e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.826e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.912e+00  2.840e+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.126e+00  3.114e-03  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:  7.168e-01  2.528e-03  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/935826/cmap_HighResolution_329788801_330048001_4FGL_J1249.8+3707_daily_bin349.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.41e-03', job_status='DONE', photon_flux_upper_limit='4.64e-08', time_completed='2021-09-06 06:46:56.398398', job_id='935826', GAL2='1.13', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630936016.4', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.37e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='349' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 935826: <4FGL_J1249.8+3707_daily_bin349> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin349> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:55 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:56 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:30:56 2021
Terminated at Mon Sep  6 06:46:57 2021
Results reported at Mon Sep  6 06:46:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin349 192.46 37.1306 329788801 330048001 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 :                                   722.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             255.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            962 sec.

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

