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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin299
RA = 192.46, Dec = 37.1306
tmin = 316828801, tmax = 317088001
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='935770', job_status='RUN', time_executed='2021-09-06 06:33:50.608451', time_epoch_executed='1630935230.61' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='299'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935770

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935770/ft1_4FGL_J1249.8+3707_daily_bin299.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935770/ft2_4FGL_J1249.8+3707_daily_bin299.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935770/ft1_4FGL_J1249.8+3707_daily_bin299.fits outfile=/scratch/kocevski/935770/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin299.fits ra=192.46 dec=37.1306 rad=12.0 tmin=316828801.0 tmax=317088001.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.47
user 3.25
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935770/ft1_filtered_4FGL_J1249.8+3707_daily_bin299.fits evtable="EVENTS" scfile=/scratch/kocevski/935770/ft2_4FGL_J1249.8+3707_daily_bin299.fits sctable="SC_DATA" expcube=/scratch/kocevski/935770/ltcube_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.fits outfile=/scratch/kocevski/935770/expmap_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.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/935770/ltcube_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.fits
.....................!
real 189.90
user 185.20
sys 4.04

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/935770/ft1_filtered_4FGL_J1249.8+3707_daily_bin299.fits scfile=/scratch/kocevski/935770/ft2_4FGL_J1249.8+3707_daily_bin299.fits outfile=/scratch/kocevski/935770/cmap_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.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.62
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935770/ft1_filtered_4FGL_J1249.8+3707_daily_bin299.fits scfile=/scratch/kocevski/935770/ft2_4FGL_J1249.8+3707_daily_bin299.fits outfile=/scratch/kocevski/935770/cmap_HighResolution_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.301       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10849E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .17240E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.346       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0134       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1175       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.788       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    117.12       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.7407       1.0000         .10000E-03   10000.    
    13 'Prefactor '    35.544       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.106       1.0000         .10000E-03   10000.    
    15 'Prefactor '    25.770       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.739       1.0000         .10000E-03   10000.    
    18 'norm      '    8.0790       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8427       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.1979       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99390       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78703       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=   5561.753     FROM MIGRAD    STATUS=CONVERGED    611 CALLS     3096 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.298        39.357       -.56881E-05   -.16149E-05
   2  Prefactor     .10000E-03    91.379       -.36663E-05** at limit **
   3  norm          .10000E-03    1.7772       -.27779E-06** at limit **
   4  Prefactor     14.347        8.6250       -.24315E-06    .44778E-04
   5  Prefactor     6.0148        3.3613       -.91388E-07    .29756E-03
   6  Prefactor     4.1185        3.0070        .39091E-09    .10372E-03
   7  Prefactor     19.788        12.256        .11567E-05    .54296E-04
   8  Prefactor     .10000E-03    16.211        .84298E-05** at limit **
   9  Prefactor     .10000E-03    4.5676        .30075E-06** at limit **
  10  Prefactor     116.99        105.45       -.11206E-03   -.19169E-04
  11  Prefactor     .10000E-03    1.9109        .11929E-07** at limit **
  12  norm          6.7447        8.1483        .15443E-04    .86929E-04
  13  Prefactor     35.545        42.125       -.12680E-06    .48845E-05
  14  Prefactor     31.091        32.426       -.11376E-04   -.35546E-04
  15  Prefactor     25.775        18.646       -.47723E-06    .16281E-05
  16  norm          .10000E-03    1.9898        .93654E-07** at limit **
  17  norm          11.739        11.054       -.32392E-06    .24817E-04
  18  norm          8.0808        4.8111       -.88039E-06   -.15250E-03
  19  norm          .10000E-03    5.5578       -.78812E-06** at limit **
  20  Prefactor     4.8442        3.6771        .16507E-06   -.14743E-03
  21  Prefactor     .10000E-03    6.5418        .11911E-05** at limit **
  22  Prefactor     .10000E-03    22.843       -.22924E-04** at limit **
  23  Prefactor     .10000E-03    27.945        .19139E-04** at limit **
  24  Prefactor     8.1991        31.715        .44376E-07   -.49607E-05
  25  Normalizat    .99356        .17577        .51962E-05   -.25706E-03
  26  Prefactor     .78744        .20657        .11379E-05    .93678E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.2978
  Prefactor  = 0.000100001
  norm       = 0.000100004
  Prefactor  = 14.3465
  Prefactor  = 6.01485
  Prefactor  = 4.11846
  Prefactor  = 19.7884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 116.992
  Prefactor  = 0.0001
  norm       = 6.7447
  Prefactor  = 35.5448
  Prefactor  = 31.0913
  Prefactor  = 25.7754
  norm       = 0.0001
  norm       = 11.7387
  norm       = 8.08082
  norm       = 0.0001
  Prefactor  = 4.84422
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.19908
  Normalizat = 0.993562
  Prefactor  = 0.787444
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.753     FROM HESSE     STATUS=OK           460 CALLS     3556 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.298        39.365        .10983E-03   -1.4978    
   2  Prefactor     .10000E-03    92.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    10.593        .18081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.347        8.6307        .10575E-03   -1.4950    
   5  Prefactor     6.0148        3.2104        .90829E-04   -1.5217    
   6  Prefactor     4.1185        2.9848        .10121E-03   -1.5302    
   7  Prefactor     19.788        12.249        .90039E-04   -1.4818    
   8  Prefactor     .10000E-03    16.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.5679        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     116.99        105.40        .18590E-03   -1.3540    
  11  Prefactor     .10000E-03    1.9120        .10063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.7447        8.1038        .15455E-03   -1.5188    
  13  Prefactor     35.545        42.126        .67219E-04   -1.4515    
  14  Prefactor     31.091        32.336        .71841E-04   -1.4592    
  15  Prefactor     25.775        18.695        .78912E-04   -1.4692    
  16  norm          .10000E-03    1.9959        .10269E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.739        11.056        .11692E-03   -1.5023    
  18  norm          8.0808        4.7756        .11489E-03   -1.5139    
  19  norm          .10000E-03    5.6143        .17055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.8442        3.6738        .11673E-03   -1.5268    
  21  Prefactor     .10000E-03    6.5486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    28.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     8.1991        31.714        .14002E-03   -1.5135    
  25  Normalizat    .99356        .20714        .23053E-03   -.93246    
  26  Prefactor     .78744        .24190        .30951E-03   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11845e-09
Minuit parameter uncertainties:
  1  39.4423
  2  0.000539875
  3  0.000433198
  4  8.63141
  5  3.21047
  6  2.9849
  7  12.2507
  8  0.000104902
  9  1.53087e-06
  10  105.573
  11  4.01747e-06
  12  8.1051
  13  42.1616
  14  32.3543
  15  18.6993
  16  3.43972e-06
  17  11.0575
  18  4.77582
  19  5.49743e-05
  20  3.67393
  21  1.96668e-07
  22  2.33151e-05
  23  0.00016917
  24  31.7793
  25  0.207306
  26  0.242224
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.531e-06  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:  7.874e-01  2.422e-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.936e-01  2.073e-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: 2.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.80e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935770/likelihoodResults_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.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) = 5561.75416732
delta logL = -0.000975598163677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5561.75319189
delta logL = -1.68785845744e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10532E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7469       1.0000          .0000       10.000    
     3 'Normalizat'    .99365       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78732       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=   5561.753     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10110E-03    27.172        .16336E-02** at limit **
   2  Index         1.6940        9.0497        .50000        .48220E-04
   3  Normalizat    .99356        .97213E-02    .23053E-03   -.60511E-04
   4  Prefactor     .78744        .11797E-01    .30952E-03    .16753E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101096
  Index      = 1.69399
  Normalizat = 0.993563
  Prefactor  = 0.787442
 **********
 **   18 **HESSE 
 **********

 FCN=   5561.753     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10110E-03    119.33        .32672E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6940        8.7592        .50000       -.72242    
   3  Normalizat    .99356        .20802E-01    .92210E-05   -.93246    
   4  Prefactor     .78744        .25244E-01    .12381E-04   -1.0019    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.40888e-08
Minuit parameter uncertainties:
  1  0.022914
  2  182.08
  3  0.0208021
  4  0.0252445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935770': 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) = 5561.7531906
delta logL = 1.12366251415e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.011e-04  2.291e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.694e+00  1.821e+02  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:  7.874e-01  2.524e-02  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.936e-01  2.080e-02  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/935770/cmap_HighResolution_316828801_317088001_4FGL_J1249.8+3707_daily_bin299.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.80e-03', job_status='DONE', photon_flux_upper_limit='2.45e-08', time_completed='2021-09-06 06:45:53.033656', job_id='935770', GAL2='0.79', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630935953.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='299' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 935770: <4FGL_J1249.8+3707_daily_bin299> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin299 192.46 37.1306 316828801 317088001 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 :                                   719.30 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

