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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin827
RA = 192.46, Dec = 37.1306
tmin = 453686401, tmax = 453945601
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='938767', job_status='RUN', time_executed='2021-09-06 06:43:57.388941', time_epoch_executed='1630935837.39' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='827'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938767

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938767/ft1_4FGL_J1249.8+3707_daily_bin827.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938767/ft2_4FGL_J1249.8+3707_daily_bin827.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938767/ft1_4FGL_J1249.8+3707_daily_bin827.fits outfile=/scratch/kocevski/938767/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin827.fits ra=192.46 dec=37.1306 rad=12.0 tmin=453686401.0 tmax=453945601.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.57
user 3.35
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938767/ft1_filtered_4FGL_J1249.8+3707_daily_bin827.fits evtable="EVENTS" scfile=/scratch/kocevski/938767/ft2_4FGL_J1249.8+3707_daily_bin827.fits sctable="SC_DATA" expcube=/scratch/kocevski/938767/ltcube_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.fits outfile=/scratch/kocevski/938767/expmap_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.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/938767/ltcube_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.fits
.....................!
real 191.60
user 185.63
sys 5.62

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/938767/ft1_filtered_4FGL_J1249.8+3707_daily_bin827.fits scfile=/scratch/kocevski/938767/ft2_4FGL_J1249.8+3707_daily_bin827.fits outfile=/scratch/kocevski/938767/cmap_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.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.65
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938767/ft1_filtered_4FGL_J1249.8+3707_daily_bin827.fits scfile=/scratch/kocevski/938767/ft2_4FGL_J1249.8+3707_daily_bin827.fits outfile=/scratch/kocevski/938767/cmap_HighResolution_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.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.65
user 0.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    53.640       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.7321       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12522E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13031       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.645       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10224E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.6363       1.0000         .10000E-03   10000.    
    18 'norm      '    6.9299       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6997       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.980       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10361E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1003       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96592       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=   5645.401     FROM MIGRAD    STATUS=CONVERGED   1100 CALLS     3545 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     53.638        49.054        .27383E-03    .53558E-05
   2  Prefactor     .10000E-03    25.165        .18142E-02** at limit **
   3  norm          2.4031        2.0871        .95865E-04   -.43285E-04
   4  Prefactor     .10000E-03    5.5379        .17142E-02** at limit **
   5  Prefactor     4.7321        2.5158        .81716E-04   -.68171E-04
   6  Prefactor     .10000E-03    2.9404        .18396E-02** at limit **
   7  Prefactor     .97872E-01    11.292        .63911E-01    .23106E-03
   8  Prefactor     .10000E-03    8.8487        .18142E-02** at limit **
   9  Prefactor     .10000E-03    9.1455        .18142E-02** at limit **
  10  Prefactor     39.659        76.375        .63659E-04    .18001E-04
  11  Prefactor     .10000E-03    2.1564        .10766E-02** at limit **
  12  norm          .10000E-03    1.7687        .97346E-03** at limit **
  13  Prefactor     .10000E-03    40.533        .18142E-02** at limit **
  14  Prefactor     .10000E-03    9.8711        .18142E-02** at limit **
  15  Prefactor     .10000E-03    16.600        .18142E-02** at limit **
  16  norm          .10000E-03    2.5718        .11707E-02** at limit **
  17  norm          9.6358        11.055        .64547E-03    .42800E-05
  18  norm          6.9361        5.8467        .13251E-03    .17674E-04
  19  norm          4.6993        6.5529        .18562E-03   -.68595E-05
  20  Prefactor     .10000E-03    3.3670        .26379E-03** at limit **
  21  Prefactor     .10000E-03    66.828        .49621E-02** at limit **
  22  Prefactor     21.990        48.162        .85435E-04   -.10779E-04
  23  Prefactor     .10000E-03    8.6480        .18142E-02** at limit **
  24  Prefactor     .10000E-03    30.371        .18142E-02** at limit **
  25  Normalizat    1.1004        .21245        .22991E-03   -.32191E-04
  26  Prefactor     .96593        .25679        .29631E-03    .41706E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 53.6379
  Prefactor  = 0.0001
  norm       = 2.40308
  Prefactor  = 0.0001
  Prefactor  = 4.73209
  Prefactor  = 0.0001
  Prefactor  = 0.0978718
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 39.6585
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 9.63584
  norm       = 6.93612
  norm       = 4.6993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.9896
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10037
  Prefactor  = 0.965927
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.401     FROM HESSE     STATUS=OK           440 CALLS     3985 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     53.638        49.053        .10953E-04   -1.4242    
   2  Prefactor     .10000E-03    25.168        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4031        2.0873        .38346E-05   -1.5398    
   4  Prefactor     .10000E-03    5.5408        .34284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.7321        2.5155        .32686E-05   -1.5273    
   6  Prefactor     .10000E-03    2.9483        .36792E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .97872E-01    9.9082        .70203E-01   -1.5645    
   8  Prefactor     .10000E-03    8.8489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1459        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     39.659        76.374        .12732E-04   -1.4448    
  11  Prefactor     .10000E-03    2.1565        .21532E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.7688        .19469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    40.536        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8715        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.604        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.5722        .23414E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.6358        11.054        .25819E-04   -1.5087    
  18  norm          6.9361        5.8446        .53003E-05   -1.5181    
  19  norm          4.6993        6.5546        .74249E-05   -1.5274    
  20  Prefactor     .10000E-03    3.3671        .52758E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    67.881        .99242E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     21.990        48.119        .34174E-05   -1.4770    
  23  Prefactor     .10000E-03    8.6485        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1004        .21268        .91964E-05   -.89740    
  26  Prefactor     .96593        .25699        .11852E-04   -.93874    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18107e-10
Minuit parameter uncertainties:
  1  49.0898
  2  8.16935e-05
  3  2.08732
  4  4.70124e-06
  5  2.51554
  6  1.39127e-05
  7  1.96883
  8  1.24167e-05
  9  2.784e-05
  10  76.5636
  11  8.8094e-07
  12  2.89469e-06
  13  2.91095e-05
  14  2.80666e-05
  15  1.25278e-05
  16  4.83055e-08
  17  11.0566
  18  5.84506
  19  6.55565
  20  6.85532e-06
  21  2.62283e-05
  22  48.2039
  23  1.94833e-05
  24  8.71607e-05
  25  0.212849
  26  0.257315
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.784e-05  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:  9.659e-01  2.573e-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.100e+00  2.128e-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: 3.91e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938767/likelihoodResults_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.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) = 5645.40139697
delta logL = -0.000519653317497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5645.40087742
delta logL = -1.01415025711e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10389E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7569       1.0000          .0000       10.000    
     3 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96590       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=   5645.401     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      208 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    138.52        .90712E-02** at limit **
   2  Index         1.7342        9.0968        .50000        .16862E-04
   3  Normalizat    1.1004        .16955E-01    .37984E-01    .14202E-05
   4  Prefactor     .96593        .20715E-01    .66989E-01    .93019E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.73423
  Normalizat = 1.10037
  Prefactor  = 0.965926
 **********
 **   18 **HESSE 
 **********

 FCN=   5645.401     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      241 TOTAL
                     EDM=   .49E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2121.8        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7342        7.9174        .50000       -.71174    
   3  Normalizat    1.1004        .16464        .22991E-03   -.89740    
   4  Prefactor     .96593        .20082        .29631E-03   -.93874    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.93489e-08
Minuit parameter uncertainties:
  1  0.000760678
  2  58.8206
  3  0.164717
  4  0.200977
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938767': 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) = 5645.4008771
delta logL = 2.19105459109e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.607e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.734e+00  5.882e+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:  9.659e-01  2.010e-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.100e+00  1.647e-01  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/938767/cmap_HighResolution_453686401_453945601_4FGL_J1249.8+3707_daily_bin827.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.87e-03', job_status='DONE', photon_flux_upper_limit='3.91e-08', time_completed='2021-09-06 06:56:25.424672', job_id='938767', GAL2='0.97', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630936585.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='2.19e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='827' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 938767: <4FGL_J1249.8+3707_daily_bin827> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin827 192.46 37.1306 453686401 453945601 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 :                                   745.21 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             309.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   950 sec.
    Turnaround time :                            953 sec.

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

