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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin320
RA = 192.46, Dec = 37.1306
tmin = 322272001, tmax = 322531201
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='935797', job_status='RUN', time_executed='2021-09-06 06:34:15.336281', time_epoch_executed='1630935255.34' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='320'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935797

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935797/ft1_4FGL_J1249.8+3707_daily_bin320.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935797/ft2_4FGL_J1249.8+3707_daily_bin320.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935797/ft1_4FGL_J1249.8+3707_daily_bin320.fits outfile=/scratch/kocevski/935797/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin320.fits ra=192.46 dec=37.1306 rad=12.0 tmin=322272001.0 tmax=322531201.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.41
user 3.20
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935797/ft1_filtered_4FGL_J1249.8+3707_daily_bin320.fits evtable="EVENTS" scfile=/scratch/kocevski/935797/ft2_4FGL_J1249.8+3707_daily_bin320.fits sctable="SC_DATA" expcube=/scratch/kocevski/935797/ltcube_322272001_322531201_4FGL_J1249.8+3707_daily_bin320.fits outfile=/scratch/kocevski/935797/expmap_322272001_322531201_4FGL_J1249.8+3707_daily_bin320.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/935797/ltcube_322272001_322531201_4FGL_J1249.8+3707_daily_bin320.fits
.....................!
real 190.17
user 185.47
sys 4.34

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/935797/ft1_filtered_4FGL_J1249.8+3707_daily_bin320.fits scfile=/scratch/kocevski/935797/ft2_4FGL_J1249.8+3707_daily_bin320.fits outfile=/scratch/kocevski/935797/cmap_322272001_322531201_4FGL_J1249.8+3707_daily_bin320.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935797/ft1_filtered_4FGL_J1249.8+3707_daily_bin320.fits scfile=/scratch/kocevski/935797/ft2_4FGL_J1249.8+3707_daily_bin320.fits outfile=/scratch/kocevski/935797/cmap_HighResolution_322272001_322531201_4FGL_J1249.8+3707_daily_bin320.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    87.008       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.2151       1.0000         .10000E-03   10000.    
     3 'norm      '    6.1824       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6378       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5229       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.305       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.8365       1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.672       1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.930       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .62656E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.448       1.0000         .10000E-03   10000.    
    15 'Prefactor '    36.653       1.0000         .10000E-03   10000.    
    16 'norm      '    .10093E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.5014       1.0000         .10000E-03   10000.    
    18 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .41916       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.713       1.0000         .10000E-03   10000.    
    24 'Prefactor '    25.199       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92064       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .95625       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=   5949.216     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3070 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     87.009        57.436        .32650E-06    .92116E-05
   2  Prefactor     5.2151        22.646        .81049E-06    .15963E-05
   3  norm          6.1825        3.2329       -.80548E-07   -.25392E-03
   4  Prefactor     .10000E-03    11.278       -.35996E-07** at limit **
   5  Prefactor     2.6377        2.1214        .53467E-07    .36078E-05
   6  Prefactor     1.5231        1.7202        .91281E-07   -.32525E-04
   7  Prefactor     15.305        10.892        .84526E-07   -.48888E-04
   8  Prefactor     2.8372        22.472        .17158E-04   -.93938E-04
   9  Prefactor     19.675        14.499       -.93560E-08   -.38325E-04
  10  Prefactor     13.947        130.32        .39040E-05   -.37427E-04
  11  Prefactor     .10000E-03    4.2094        .55670E-06** at limit **
  12  norm          .10004E-03    2.8234        .15243E-05** at limit **
  13  Prefactor     .10000E-03    12.494        .29888E-06** at limit **
  14  Prefactor     16.444        27.256       -.25843E-05   -.40911E-03
  15  Prefactor     36.668        18.298        .69157E-06    .61805E-04
  16  norm          .10000E-03    2.8114        .17546E-06** at limit **
  17  norm          9.5009        10.254        .11920E-06   -.62506E-05
  18  norm          .10000E-03    .96278       -.33677E-07** at limit **
  19  norm          .10000E-03    1.2962       -.27247E-07** at limit **
  20  Prefactor     .41809        3.1491        .21468E-05   -.14323E-03
  21  Prefactor     .10000E-03    5.5955       -.29553E-06** at limit **
  22  Prefactor     .10000E-03    31.028       -.45914E-07** at limit **
  23  Prefactor     42.712        18.828       -.72319E-08   -.65484E-04
  24  Prefactor     25.136        51.431       -.11723E-04   -.37158E-03
  25  Normalizat    .92025        .16539        .27305E-06   -.53828E-03
  26  Prefactor     .95675        .20133       -.18797E-05   -.27146E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 87.0086
  Prefactor  = 5.21513
  norm       = 6.18249
  Prefactor  = 0.0001
  Prefactor  = 2.63773
  Prefactor  = 1.52307
  Prefactor  = 15.305
  Prefactor  = 2.83716
  Prefactor  = 19.6751
  Prefactor  = 13.9472
  Prefactor  = 0.0001
  norm       = 0.000100045
  Prefactor  = 0.0001
  Prefactor  = 16.4441
  Prefactor  = 36.6682
  norm       = 0.0001
  norm       = 9.50089
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.418091
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 42.7125
  Prefactor  = 25.1362
  Normalizat = 0.920253
  Prefactor  = 0.956749
 **********
 **   18 **HESSE 
 **********

 FCN=   5949.216     FROM HESSE     STATUS=OK           452 CALLS     3522 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     87.009        57.454        .43071E-04   -1.3840    
   2  Prefactor     5.2151        22.609        .17602E-03   -1.5251    
   3  norm          6.1825        3.2270        .93070E-04   -1.5211    
   4  Prefactor     .10000E-03    11.606        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.6377        2.1210        .94235E-04   -1.5383    
   6  Prefactor     1.5231        1.7011        .10245E-03   -1.5461    
   7  Prefactor     15.305        10.881        .10238E-03   -1.4925    
   8  Prefactor     2.8372        23.409        .12072E-02   -1.5371    
   9  Prefactor     19.675        14.497        .90304E-04   -1.4821    
  10  Prefactor     13.947        124.35        .10732E-03   -1.4961    
  11  Prefactor     .10000E-03    4.2384        .15425E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10004E-03    10.572        .22535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     16.444        26.169        .98755E-04   -1.4897    
  15  Prefactor     36.668        18.275        .66198E-04   -1.4496    
  16  norm          .10000E-03    2.8258        .12609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.5009        10.254        .13001E-03   -1.5091    
  18  norm          .10000E-03    .96565        .73819E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2965        .85751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .41809        3.1740        .25566E-03   -1.5579    
  21  Prefactor     .10000E-03    5.6099        .17802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    31.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.712        18.827        .61340E-04   -1.4400    
  24  Prefactor     25.136        54.296        .79800E-04   -1.4705    
  25  Normalizat    .92025        .19383        .22652E-03   -.95752    
  26  Prefactor     .95675        .23422        .28218E-03   -.94185    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32801e-09
Minuit parameter uncertainties:
  1  57.4906
  2  21.7306
  3  3.2271
  4  2.15407e-05
  5  2.12108
  6  1.70119
  7  10.882
  8  16.3075
  9  14.5
  10  83.5217
  11  7.91796e-06
  12  0.00137334
  13  3.16216e-05
  14  26.1875
  15  18.2775
  16  7.89816e-06
  17  10.2561
  18  1.47845e-06
  19  1.45678e-06
  20  2.30383
  21  2.78499e-05
  22  2.73623e-05
  23  18.8301
  24  54.403
  25  0.19398
  26  0.234471
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.968e+01  1.450e+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:  9.567e-01  2.345e-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.203e-01  1.940e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.44
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.79e-08 +/- 1.32e-08
Energy Flux (Fixed Index): 2.28e-05 +/- 1.68e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5948.66000157
delta logL = 0.555666149701

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5948.58269391
delta logL = 0.632973810437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.724       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2546       1.0000          .0000       10.000    
     3 'Normalizat'    .92697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95438       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=   5948.583     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      268 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.742        812.36        .18688E-02   -.10378E-04
   2  Index         1.2551        5.4098        .23036        .35110E-04
   3  Normalizat    .92695        .15036        .45245E-01    .73614E-05
   4  Prefactor     .95439        .13414        .45694E-01    .16470E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.742
  Index      = 1.25507
  Normalizat = 0.926952
  Prefactor  = 0.954393
 **********
 **   18 **HESSE 
 **********

 FCN=   5948.583     FROM HESSE     STATUS=OK            33 CALLS      301 TOTAL
                     EDM=   .57E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.742        21.107        .74753E-04   -1.4635    
   2  Index         1.2551        .44840        .84939E-02   -.84653    
   3  Normalizat    .92695        .18107        .22579E-03   -.95519    
   4  Prefactor     .95439        .23069        .28248E-03   -.94266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73211e-12
Minuit parameter uncertainties:
  1  21.1123
  2  0.449781
  3  0.181186
  4  0.230928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935797': 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) = 5948.58269297
delta logL = 0.63297475219

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.874e+01  2.111e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.255e+00  4.498e-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.544e-01  2.309e-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.270e-01  1.812e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.69
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.26 +/- 0.45
Photon Flux (Free Index): 9.60e-09 +/- 8.59e-09
Energy Flux (Free Index): 6.78e-05 +/- 7.81e-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/935797/cmap_HighResolution_322272001_322531201_4FGL_J1249.8+3707_daily_bin320.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.79e-08', energy_flux2='6.78e-05', photon_flux_error='1.32e-08', dlogl='6.33e-01', energy_flux='2.28e-05', photon_flux2='9.60e-09', job_status='DONE', time_completed='2021-09-06 06:45:22.511820', photon_index_error2='0.45', photon_index2='1.26', ts='8.44', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='7.81e-05', EG='0.92', time_epoch_completed='1630935922.51', return_code='0', job_id='935797', GAL2='0.95', EG2='0.93', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='8.59e-09', ts2='9.69', photon_index='1.78' WHERE bin_id='320' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 935797: <4FGL_J1249.8+3707_daily_bin320> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin320 192.46 37.1306 322272001 322531201 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 :                                   666.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             261.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

