/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 91 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 = 7422
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin188
RA = 192.46, Dec = 37.1306
tmin = 288057601, tmax = 288316801
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='934538', job_status='RUN', time_executed='2021-09-06 06:28:10.436318', time_epoch_executed='1630934890.44' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934538

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934538/ft1_4FGL_J1249.8+3707_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934538/ft2_4FGL_J1249.8+3707_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934538/ft1_4FGL_J1249.8+3707_daily_bin188.fits outfile=/scratch/kocevski/934538/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin188.fits ra=192.46 dec=37.1306 rad=12.0 tmin=288057601.0 tmax=288316801.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.60
user 3.36
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934538/ft1_filtered_4FGL_J1249.8+3707_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/934538/ft2_4FGL_J1249.8+3707_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/934538/ltcube_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.fits outfile=/scratch/kocevski/934538/expmap_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.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/934538/ltcube_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.fits
.....................!
real 193.38
user 187.09
sys 4.96

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/934538/ft1_filtered_4FGL_J1249.8+3707_daily_bin188.fits scfile=/scratch/kocevski/934538/ft2_4FGL_J1249.8+3707_daily_bin188.fits outfile=/scratch/kocevski/934538/cmap_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934538/ft1_filtered_4FGL_J1249.8+3707_daily_bin188.fits scfile=/scratch/kocevski/934538/ft2_4FGL_J1249.8+3707_daily_bin188.fits outfile=/scratch/kocevski/934538/cmap_HighResolution_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.140       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.0626       1.0000         .10000E-03   10000.    
     3 'norm      '    3.7096       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.7784       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12076E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7394       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.582       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.498       1.0000         .10000E-03   10000.    
     9 'Prefactor '    22.084       1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.823       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.4540       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.233       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2881       1.0000         .10000E-03   10000.    
    17 'norm      '    21.107       1.0000         .10000E-03   10000.    
    18 'norm      '    7.8386       1.0000         .10000E-03   10000.    
    19 'norm      '    .10083E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .44685E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .85530E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10450E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3554       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .64707       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=   5932.000     FROM MIGRAD    STATUS=CONVERGED   1165 CALLS     4167 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.178        61.791        .21161E-03   -.19072E-04
   2  Prefactor     1.1090        212.56        .76095E-02    .50598E-04
   3  norm          3.7110        2.4061        .89752E-04    .16340E-04
   4  Prefactor     9.7800        10.177        .12815E-03   -.12704E-03
   5  Prefactor     .10003E-03    1.5788        .29798E-01** at limit **
   6  Prefactor     2.7397        1.8206        .81519E-04   -.19162E-03
   7  Prefactor     16.579        12.201        .98357E-04   -.17800E-04
   8  Prefactor     22.505        23.093        .84447E-04   -.28810E-04
   9  Prefactor     22.078        19.823        .85235E-04   -.93367E-05
  10  Prefactor     38.702        90.135        .64328E-04    .19653E-04
  11  Prefactor     .10000E-03    6.4285        .18142E-02** at limit **
  12  norm          1.4548        4.0223        .23779E-03   -.22365E-03
  13  Prefactor     .10000E-03    22.459        .18142E-02** at limit **
  14  Prefactor     .10000E-03    24.193        .18142E-02** at limit **
  15  Prefactor     14.236        16.481        .10617E-03   -.11201E-03
  16  norm          1.2889        3.1120        .20611E-03    .20552E-03
  17  norm          21.105        15.001        .87182E-04   -.80823E-04
  18  norm          7.8466        4.6665        .11656E-03   -.16381E-02
  19  norm          .10000E-03    4.0956        .15139E-02** at limit **
  20  Prefactor     .10000E-03    15.312        .19440E-02** at limit **
  21  Prefactor     .10141E-03    20.974        .77314E-01** at limit **
  22  Prefactor     .10020E-03    48.578        .16165    ** at limit **
  23  Prefactor     .10000E-03    8.6775        .18142E-02** at limit **
  24  Prefactor     .10000E-03    28.850        .18142E-02** at limit **
  25  Normalizat    1.3556        .22219        .21973E-03   -.38977E-03
  26  Prefactor     .64703        .25704        .36243E-03   -.44916E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.1778
  Prefactor  = 1.10901
  norm       = 3.711
  Prefactor  = 9.77999
  Prefactor  = 0.000100033
  Prefactor  = 2.73966
  Prefactor  = 16.5788
  Prefactor  = 22.5054
  Prefactor  = 22.0778
  Prefactor  = 38.7021
  Prefactor  = 0.0001
  norm       = 1.45484
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2356
  norm       = 1.28891
  norm       = 21.1047
  norm       = 7.84656
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000101412
  Prefactor  = 0.000100197
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35558
  Prefactor  = 0.647033
 **********
 **   18 **HESSE 
 **********

 FCN=   5932.000     FROM HESSE     STATUS=OK           462 CALLS     4629 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.178        61.791        .84646E-05   -1.3806    
   2  Prefactor     1.1090        213.97        .30438E-03   -1.5497    
   3  norm          3.7110        2.4034        .35901E-05   -1.5323    
   4  Prefactor     9.7800        10.151        .51259E-05   -1.5082    
   5  Prefactor     .10003E-03    1.5076        .31062E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7397        1.8206        .32608E-05   -1.5377    
   7  Prefactor     16.579        12.201        .39343E-05   -1.4893    
   8  Prefactor     22.505        23.088        .33779E-05   -1.4759    
   9  Prefactor     22.078        19.822        .34094E-05   -1.4768    
  10  Prefactor     38.702        90.097        .12866E-04   -1.4463    
  11  Prefactor     .10000E-03    6.4312        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.4548        4.0207        .95118E-05   -1.5467    
  13  Prefactor     .10000E-03    22.460        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.196        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.236        16.476        .42466E-05   -1.4953    
  16  norm          1.2889        3.1117        .82446E-05   -1.5481    
  17  norm          21.105        15.001        .17436E-04   -1.4789    
  18  norm          7.8466        4.6623        .46622E-05   -1.5148    
  19  norm          .10000E-03    4.0958        .30277E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    15.391        .38879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10141E-03    18.694        .82927E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10020E-03    49.039        .16035       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.851        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3556        .22193        .43946E-04   -.81922    
  26  Prefactor     .64703        .25724        .14497E-04   -1.0564    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37735e-09
Minuit parameter uncertainties:
  1  61.8352
  2  30.9201
  3  2.40343
  4  10.1532
  5  0.000443812
  6  1.82065
  7  12.2028
  8  23.0976
  9  19.8283
  10  90.4165
  11  1.44211e-05
  12  4.02143
  13  1.88382e-05
  14  3.76931e-05
  15  16.4816
  16  3.11207
  17  15.0032
  18  4.66251
  19  8.79165e-05
  20  0.000353762
  21  0.0102794
  22  0.0062285
  23  2.56255e-05
  24  6.32424e-05
  25  0.222087
  26  0.257707
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.208e+01  1.983e+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:  6.470e-01  2.577e-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.356e+00  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.22
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.01e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 2.56e-05 +/- 2.30e-05

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

Saving results to:
/scratch/kocevski/934538/likelihoodResults_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.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) = 5931.49905049
delta logL = 0.50109204858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5931.45378712
delta logL = 0.546355416136

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.6766       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4981       1.0000          .0000       10.000    
     3 'Normalizat'    1.3206       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66865       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=   5931.454     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      337 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.6732        20.831        .14473E-03   -.35017E-03
   2  Index         2.4983        1.1361        .43140E-02   -.57191E-04
   3  Normalizat    1.3207        .22590        .22207E-03    .53703E-03
   4  Prefactor     .66866        .26003        .35673E-03    .10048E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.67321
  Index      = 2.49827
  Normalizat = 1.32065
  Prefactor  = 0.668664
 **********
 **   18 **HESSE 
 **********

 FCN=   5931.454     FROM HESSE     STATUS=OK            25 CALLS      362 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.6732        13.474        .57894E-05   -1.5154    
   2  Index         2.4983        .73853        .17256E-03   -.52400    
   3  Normalizat    1.3207        .21983        .44413E-04   -.82952    
   4  Prefactor     .66866        .25612        .14269E-04   -1.0477    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88961e-10
Minuit parameter uncertainties:
  1  13.479
  2  0.742158
  3  0.219987
  4  0.256573
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934538': 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) = 5931.45378701
delta logL = 0.546355531585

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.673e+00  1.348e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.498e+00  7.422e-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:  6.687e-01  2.566e-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.321e+00  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.30
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.50 +/- 0.74
Photon Flux (Free Index): 5.19e-08 +/- 5.04e-08
Energy Flux (Free Index): 1.51e-05 +/- 1.13e-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/934538/cmap_HighResolution_288057601_288316801_4FGL_J1249.8+3707_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.86e-03', comment='SUCCESS', photon_flux='2.01e-08', energy_flux2='1.51e-05', photon_flux_error='1.81e-08', dlogl='5.46e-01', energy_flux='2.56e-05', photon_flux2='5.19e-08', job_status='DONE', time_completed='2021-09-06 06:41:53.675324', photon_index_error2='0.74', photon_index2='2.50', ts='2.22', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='6.61e-08', energy_flux_error2='1.13e-05', EG='1.36', time_epoch_completed='1630935713.68', return_code='0', job_id='934538', GAL2='0.67', EG2='1.32', return_code2='0', energy_flux_error='2.30e-05', photon_flux_error2='5.04e-08', ts2='3.30', photon_index='1.78' WHERE bin_id='188' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:41:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0185>
Subject: Job 934538: <4FGL_J1249.8+3707_daily_bin188> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin188> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:26:06 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:26:08 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:26:08 2021
Terminated at Mon Sep  6 06:41:54 2021
Results reported at Mon Sep  6 06:41:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin188 192.46 37.1306 288057601 288316801 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 :                                   818.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             262.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   945 sec.
    Turnaround time :                            948 sec.

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

