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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin190
RA = 192.46, Dec = 37.1306
tmin = 288576001, tmax = 288835201
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='934541', job_status='RUN', time_executed='2021-09-06 06:28:17.925830', time_epoch_executed='1630934897.93' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='190'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934541

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934541/ft1_4FGL_J1249.8+3707_daily_bin190.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934541/ft2_4FGL_J1249.8+3707_daily_bin190.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934541/ft1_4FGL_J1249.8+3707_daily_bin190.fits outfile=/scratch/kocevski/934541/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin190.fits ra=192.46 dec=37.1306 rad=12.0 tmin=288576001.0 tmax=288835201.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.58
user 3.34
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934541/ft1_filtered_4FGL_J1249.8+3707_daily_bin190.fits evtable="EVENTS" scfile=/scratch/kocevski/934541/ft2_4FGL_J1249.8+3707_daily_bin190.fits sctable="SC_DATA" expcube=/scratch/kocevski/934541/ltcube_288576001_288835201_4FGL_J1249.8+3707_daily_bin190.fits outfile=/scratch/kocevski/934541/expmap_288576001_288835201_4FGL_J1249.8+3707_daily_bin190.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/934541/ltcube_288576001_288835201_4FGL_J1249.8+3707_daily_bin190.fits
.....................!
real 192.53
user 186.14
sys 5.43

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/934541/ft1_filtered_4FGL_J1249.8+3707_daily_bin190.fits scfile=/scratch/kocevski/934541/ft2_4FGL_J1249.8+3707_daily_bin190.fits outfile=/scratch/kocevski/934541/cmap_288576001_288835201_4FGL_J1249.8+3707_daily_bin190.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.53
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6316       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.8745       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9583       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27805       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .67073       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.207       1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.989       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10463E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    44.198       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.038       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    14.309       1.0000         .10000E-03   10000.    
    17 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .58691E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.434       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11341E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .45953       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3924       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=   5206.760     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3162 TOTAL
                     EDM=   .78E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.5938        197.28       -.46705E-05   -.15474E-04
   2  Prefactor     .10000E-03    18.812        .39919E-06** at limit **
   3  norm          6.8748        3.3271       -.59603E-07    .21009E-03
   4  Prefactor     .10000E-03    3.8126       -.62084E-08** at limit **
   5  Prefactor     1.9585        2.1786       -.48420E-07    .21839E-03
   6  Prefactor     .27798        1.8406        .10520E-05    .99005E-04
   7  Prefactor     .65807        10.683       -.24233E-05    .52686E-03
   8  Prefactor     11.209        20.437        .22216E-06   -.88563E-05
   9  Prefactor     23.991        20.755        .72586E-07   -.92534E-05
  10  Prefactor     .10000E-03    36.609       -.31733E-06** at limit **
  11  Prefactor     .10000E-03    3.8578        .28447E-06** at limit **
  12  norm          .10000E-03    3.8540       -.15592E-07** at limit **
  13  Prefactor     44.206        50.711        .54985E-06    .34151E-04
  14  Prefactor     35.012        30.407       -.13245E-05   -.21348E-03
  15  Prefactor     .10000E-03    12.266       -.47410E-06** at limit **
  16  norm          14.305        8.0604       -.17461E-07   -.79338E-04
  17  norm          .10000E-03    38.322       -.93759E-06** at limit **
  18  norm          .10019E-03    2.7627        .11376E-05** at limit **
  19  norm          10.418        8.3578       -.11111E-05   -.73249E-03
  20  Prefactor     .10000E-03    2.0752        .49883E-06** at limit **
  21  Prefactor     .10000E-03    12.117        .12301E-05** at limit **
  22  Prefactor     .10000E-03    54.469        .24023E-05** at limit **
  23  Prefactor     .10000E-03    5.7091        .52954E-08** at limit **
  24  Prefactor     .10000E-03    130.64       -.11603E-05** at limit **
  25  Normalizat    .45931        .17086       -.15438E-05   -.71995E-04
  26  Prefactor     1.3925        .21626        .25586E-07   -.11120E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.59384
  Prefactor  = 0.0001
  norm       = 6.8748
  Prefactor  = 0.0001
  Prefactor  = 1.95845
  Prefactor  = 0.277979
  Prefactor  = 0.658074
  Prefactor  = 11.2094
  Prefactor  = 23.9912
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 44.2063
  Prefactor  = 35.0115
  Prefactor  = 0.0001
  norm       = 14.3048
  norm       = 0.0001
  norm       = 0.000100194
  norm       = 10.4182
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.459313
  Prefactor  = 1.39252
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.760     FROM HESSE     STATUS=OK           464 CALLS     3626 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.5938        203.47        .33103E-03   -1.5455    
   2  Prefactor     .10000E-03    18.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.8748        3.3109        .83997E-04   -1.5184    
   4  Prefactor     .10000E-03    3.8441        .13758E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9585        2.1616        .10331E-03   -1.5428    
   6  Prefactor     .27798        1.7070        .18155E-03   -1.5603    
   7  Prefactor     .65807        26.755        .40484E-02   -1.5546    
   8  Prefactor     11.209        20.436        .11967E-03   -1.5038    
   9  Prefactor     23.991        20.749        .81785E-04   -1.4728    
  10  Prefactor     .10000E-03    36.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    3.8810        .13832E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.9159        .13800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     44.206        50.794        .60305E-04   -1.4377    
  14  Prefactor     35.012        30.974        .67701E-04   -1.4524    
  15  Prefactor     .10000E-03    12.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          14.305        8.0169        .10588E-03   -1.4951    
  17  norm          .10000E-03    39.702        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10019E-03    16.933        .32852E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.418        11.335        .12404E-03   -1.5062    
  20  Prefactor     .10000E-03    8.8489        .19081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    54.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.7114        .16839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    131.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .45931        .19852        .30236E-03   -1.1434    
  26  Prefactor     1.3925        .25503        .23243E-03   -.80596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.51918e-09
Minuit parameter uncertainties:
  1  36.1417
  2  5.77744e-05
  3  3.31099
  4  5.55449e-06
  5  2.16166
  6  1.37752
  7  8.39547
  8  20.4489
  9  20.7557
  10  1.21706e-05
  11  2.44037e-06
  12  2.48241e-05
  13  50.8437
  14  30.9886
  15  0.000108617
  16  8.01751
  17  9.7871e-05
  18  0.00362924
  19  11.3377
  20  0.000233872
  21  8.5074e-05
  22  0.000372051
  23  1.31457e-06
  24  0.000212129
  25  0.198821
  26  0.255259
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.399e+01  2.076e+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.393e+00  2.553e-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:  4.593e-01  1.988e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 2.78e-05 +/- 2.41e-05

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

Saving results to:
/scratch/kocevski/934541/likelihoodResults_288576001_288835201_4FGL_J1249.8+3707_daily_bin190.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) = 5206.48992284
delta logL = 0.270055299174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5206.48709759
delta logL = 0.272880545517

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.188       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2386       1.0000          .0000       10.000    
     3 'Normalizat'    .43839       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4052       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=   5206.487     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      304 TOTAL
                     EDM=   .99E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.189        22.653        .11030E-03    .16059E-03
   2  Index         2.2385        .76770        .45419E-02    .72416E-04
   3  Normalizat    .43846        .19911        .30908E-03    .13106E-03
   4  Prefactor     1.4051        .25255        .23143E-03    .24162E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1892
  Index      = 2.23847
  Normalizat = 0.438459
  Prefactor  = 1.40505
 **********
 **   18 **HESSE 
 **********

 FCN=   5206.487     FROM HESSE     STATUS=OK            25 CALLS      329 TOTAL
                     EDM=   .82E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.189        18.678        .44119E-05   -1.4981    
   2  Index         2.2385        .63338        .18168E-03   -.58513    
   3  Normalizat    .43846        .19782        .12363E-04   -1.1536    
   4  Prefactor     1.4051        .25184        .46286E-04   -.80235    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19229e-11
Minuit parameter uncertainties:
  1  18.6863
  2  0.635847
  3  0.198141
  4  0.252062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934541': 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) = 5206.48709745
delta logL = 0.272880689637

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.319e+01  1.869e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.238e+00  6.358e-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.405e+00  2.521e-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:  4.385e-01  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.61
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.24 +/- 0.64
Photon Flux (Free Index): 4.13e-08 +/- 4.02e-08
Energy Flux (Free Index): 1.73e-05 +/- 1.53e-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/934541/cmap_HighResolution_288576001_288835201_4FGL_J1249.8+3707_daily_bin190.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.09e-03', comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='1.73e-05', photon_flux_error='1.89e-08', dlogl='2.73e-01', energy_flux='2.78e-05', photon_flux2='4.13e-08', job_status='DONE', time_completed='2021-09-06 06:39:44.184324', photon_index_error2='0.64', photon_index2='2.24', ts='3.08', fit_tolerance='1e-08', GAL='1.39', photon_index_error='0.00', photon_flux_upper_limit='6.92e-08', energy_flux_error2='1.53e-05', EG='0.46', time_epoch_completed='1630935584.18', return_code='0', job_id='934541', GAL2='1.41', EG2='0.44', return_code2='0', energy_flux_error='2.41e-05', photon_flux_error2='4.02e-08', ts2='3.61', photon_index='1.78' WHERE bin_id='190' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:39:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 934541: <4FGL_J1249.8+3707_daily_bin190> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin190> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:26:07 2021
Job was executed on host(s) <bullet0030>, 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:39:47 2021
Results reported at Mon Sep  6 06:39:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin190 192.46 37.1306 288576001 288835201 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 :                                   683.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            820 sec.

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

