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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin733
RA = 192.46, Dec = 37.1306
tmin = 429321601, tmax = 429580801
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='938634', job_status='RUN', time_executed='2021-09-06 06:42:51.733539', time_epoch_executed='1630935771.73' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938634

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938634/ft1_4FGL_J1249.8+3707_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938634/ft2_4FGL_J1249.8+3707_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938634/ft1_4FGL_J1249.8+3707_daily_bin733.fits outfile=/scratch/kocevski/938634/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin733.fits ra=192.46 dec=37.1306 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.47
user 6.21
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938634/ft2_4FGL_J1249.8+3707_daily_bin733.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/938634/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin733.fits evtable="EVENTS" outfile="/scratch/kocevski/938634/ft1_filtered_4FGL_J1249.8+3707_daily_bin733.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/938634/ft1_filtered_4FGL_J1249.8+3707_daily_bin733.fits" evtable="EVENTS" scfile=/scratch/kocevski/938634/ft2_4FGL_J1249.8+3707_daily_bin733.fits sctable="SC_DATA" outfile=/scratch/kocevski/938634/ltcube_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.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/938634/ft2_4FGL_J1249.8+3707_daily_bin733.fits
.....................!
real 12.27
user 11.92
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938634/ft1_filtered_4FGL_J1249.8+3707_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/938634/ft2_4FGL_J1249.8+3707_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/938634/ltcube_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.fits outfile=/scratch/kocevski/938634/expmap_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.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/938634/ltcube_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.fits
.....................!
real 190.51
user 185.61
sys 4.60

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/938634/ft1_filtered_4FGL_J1249.8+3707_daily_bin733.fits scfile=/scratch/kocevski/938634/ft2_4FGL_J1249.8+3707_daily_bin733.fits outfile=/scratch/kocevski/938634/cmap_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938634/ft1_filtered_4FGL_J1249.8+3707_daily_bin733.fits scfile=/scratch/kocevski/938634/ft2_4FGL_J1249.8+3707_daily_bin733.fits outfile=/scratch/kocevski/938634/cmap_HighResolution_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10062E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.666       1.0000         .10000E-03   10000.    
     3 'norm      '    12.187       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0585       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7430       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8164       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.9391       1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.468       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.635       1.0000         .10000E-03   10000.    
    10 'Prefactor '    74.191       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11513E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10476E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .27373E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4532       1.0000         .10000E-03   10000.    
    19 'norm      '    .23351E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3490       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.310       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    49.345       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97855       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2124       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=   6487.971     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3058 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    48.053       -.72433E-06** at limit **
   2  Prefactor     18.670        46.768        .74615E-05   -.77095E-05
   3  norm          12.187        4.6656       -.50872E-07   -.31247E-04
   4  Prefactor     5.0586        8.1186       -.36987E-06   -.13905E-03
   5  Prefactor     1.7429        2.6616       -.14998E-06   -.44710E-03
   6  Prefactor     1.8163        1.7215       -.11007E-07   -.48342E-04
   7  Prefactor     5.9384        8.5391       -.43376E-06   -.10982E-03
   8  Prefactor     23.465        25.218       -.14491E-05   -.81646E-05
   9  Prefactor     14.634        14.217        .10023E-06   -.45636E-04
  10  Prefactor     74.233        79.697        .44964E-04   -.14402E-04
  11  Prefactor     .10000E-03    1.5591        .11296E-07** at limit **
  12  norm          .10000E-03    1.8681       -.57506E-06** at limit **
  13  Prefactor     .10000E-03    15.403       -.48769E-06** at limit **
  14  Prefactor     .10000E-03    10.945       -.97621E-06** at limit **
  15  Prefactor     .10018E-03    8.0475        .16879E-05** at limit **
  16  norm          .10000E-03    1.7903       -.24560E-07** at limit **
  17  norm          .10000E-03    5.2654        .10513E-06** at limit **
  18  norm          6.4525        3.5183       -.33566E-06   -.41133E-03
  19  norm          .10000E-03    12.098        .66983E-06** at limit **
  20  Prefactor     5.3468        3.9674       -.21818E-06   -.68356E-03
  21  Prefactor     .10000E-03    11.301        .72063E-06** at limit **
  22  Prefactor     32.314        69.494        .63301E-05   -.25720E-04
  23  Prefactor     .10000E-03    12.280        .31709E-06** at limit **
  24  Prefactor     49.340        66.177       -.61001E-05   -.20464E-04
  25  Normalizat    .97865        .18260       -.28243E-05   -.14414E-03
  26  Prefactor     1.2122        .21955       -.11145E-05   -.18250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 18.6696
  norm       = 12.1868
  Prefactor  = 5.05855
  Prefactor  = 1.74293
  Prefactor  = 1.81627
  Prefactor  = 5.93845
  Prefactor  = 23.4655
  Prefactor  = 14.6336
  Prefactor  = 74.2332
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100179
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.45247
  norm       = 0.0001
  Prefactor  = 5.34681
  Prefactor  = 0.0001
  Prefactor  = 32.3143
  Prefactor  = 0.0001
  Prefactor  = 49.3397
  Normalizat = 0.978648
  Prefactor  = 1.21223
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.971     FROM HESSE     STATUS=OK           458 CALLS     3516 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    48.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.670        46.721        .92705E-04   -1.4844    
   3  norm          12.187        4.6566        .95870E-04   -1.5010    
   4  Prefactor     5.0586        8.1014        .17878E-03   -1.5258    
   5  Prefactor     1.7429        2.6352        .14544E-03   -1.5444    
   6  Prefactor     1.8163        1.7223        .99313E-04   -1.5438    
   7  Prefactor     5.9384        8.5264        .16477E-03   -1.5221    
   8  Prefactor     23.465        25.221        .82687E-04   -1.4739    
   9  Prefactor     14.634        14.211        .10470E-03   -1.4943    
  10  Prefactor     74.233        79.626        .23307E-03   -1.3983    
  11  Prefactor     .10000E-03    1.5603        .98207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8848        .10765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10018E-03    54.537        .43615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.7976        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.2736        .18051E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4525        3.4615        .10362E-03   -1.5200    
  19  norm          .10000E-03    12.228        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.3468        3.9446        .11896E-03   -1.5245    
  21  Prefactor     .10000E-03    11.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     32.314        69.451        .70493E-04   -1.4570    
  23  Prefactor     .10000E-03    12.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     49.340        66.464        .57087E-04   -1.4302    
  25  Normalizat    .97865        .21580        .26029E-03   -.93749    
  26  Prefactor     1.2122        .26097        .29305E-03   -.85956    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.84674e-09
Minuit parameter uncertainties:
  1  2.8031e-05
  2  46.8125
  3  4.65675
  4  8.10314
  5  2.63534
  6  1.72234
  7  8.52819
  8  25.2327
  9  14.214
  10  79.7405
  11  2.26888e-06
  12  7.60374e-05
  13  1.55058e-05
  14  8.5338e-05
  15  0.0062474
  16  1.66024e-06
  17  8.64331e-06
  18  3.46158
  19  8.0761e-05
  20  3.94483
  21  1.48429e-05
  22  69.6255
  23  3.76933e-05
  24  66.5643
  25  0.215994
  26  0.261247
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.463e+01  1.421e+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.212e+00  2.612e-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.786e-01  2.160e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.21
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.33e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 1.70e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/938634/likelihoodResults_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.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): 0
logL (Free Index) = 6487.91180636
delta logL = 0.0590319483272

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6487.90978414
delta logL = 0.061054172058

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.252       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5636       1.0000          .0000       10.000    
     3 'Normalizat'    .98106       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2115       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=   6487.910     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      312 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.266        19.627        .93748E-04    .11642E-04
   2  Index         1.5645        .61091        .81276E-02    .20343E-03
   3  Normalizat    .98104        .20803        .25999E-03   -.49674E-04
   4  Prefactor     1.2115        .25847        .29313E-03    .43051E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.2658
  Index      = 1.56454
  Normalizat = 0.981041
  Prefactor  = 1.21148
 **********
 **   18 **HESSE 
 **********

 FCN=   6487.910     FROM HESSE     STATUS=OK            25 CALLS      337 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.266        19.316        .37499E-05   -1.4853    
   2  Index         1.5645        .60146        .16255E-02   -.75748    
   3  Normalizat    .98104        .20825        .10400E-04   -.93668    
   4  Prefactor     1.2115        .25875        .11725E-04   -.85979    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53328e-11
Minuit parameter uncertainties:
  1  19.3223
  2  0.604246
  3  0.208418
  4  0.259018
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938634': 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) = 6487.90978184
delta logL = 0.0610564662074

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.827e+01  1.932e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.565e+00  6.042e-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.211e+00  2.590e-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.810e-01  2.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.33
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.56 +/- 0.60
Photon Flux (Free Index): 1.02e-08 +/- 1.30e-08
Energy Flux (Free Index): 2.60e-05 +/- 4.01e-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/938634/cmap_HighResolution_429321601_429580801_4FGL_J1249.8+3707_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', comment='SUCCESS', photon_flux='1.33e-08', energy_flux2='2.60e-05', photon_flux_error='1.30e-08', dlogl='6.11e-02', energy_flux='1.70e-05', photon_flux2='1.02e-08', job_status='DONE', time_completed='2021-09-06 06:55:57.709559', photon_index_error2='0.60', photon_index2='1.56', ts='2.21', fit_tolerance='1e-08', GAL='1.21', photon_index_error='0.00', photon_flux_upper_limit='5.08e-08', energy_flux_error2='4.01e-05', EG='0.98', time_epoch_completed='1630936557.71', return_code='0', job_id='938634', GAL2='1.21', EG2='0.98', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='1.30e-08', ts2='2.33', photon_index='1.78' WHERE bin_id='733' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0112>
Subject: Job 938634: <4FGL_J1249.8+3707_daily_bin733> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin733 192.46 37.1306 429321601 429580801 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 :                                   783.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            933 sec.

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

