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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin368
RA = 192.46, Dec = 37.1306
tmin = 334713601, tmax = 334972801
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='935845', job_status='RUN', time_executed='2021-09-06 06:33:16.331331', time_epoch_executed='1630935196.33' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='368'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935845

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935845/ft1_4FGL_J1249.8+3707_daily_bin368.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935845/ft2_4FGL_J1249.8+3707_daily_bin368.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935845/ft1_4FGL_J1249.8+3707_daily_bin368.fits outfile=/scratch/kocevski/935845/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin368.fits ra=192.46 dec=37.1306 rad=12.0 tmin=334713601.0 tmax=334972801.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.51
user 3.30
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935845/ft1_filtered_4FGL_J1249.8+3707_daily_bin368.fits" evtable="EVENTS" scfile=/scratch/kocevski/935845/ft2_4FGL_J1249.8+3707_daily_bin368.fits sctable="SC_DATA" outfile=/scratch/kocevski/935845/ltcube_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.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/935845/ft2_4FGL_J1249.8+3707_daily_bin368.fits
.....................!
real 12.15
user 11.79
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935845/ft1_filtered_4FGL_J1249.8+3707_daily_bin368.fits evtable="EVENTS" scfile=/scratch/kocevski/935845/ft2_4FGL_J1249.8+3707_daily_bin368.fits sctable="SC_DATA" expcube=/scratch/kocevski/935845/ltcube_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.fits outfile=/scratch/kocevski/935845/expmap_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.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/935845/ltcube_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.fits
.....................!
real 190.88
user 185.75
sys 4.79

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/935845/ft1_filtered_4FGL_J1249.8+3707_daily_bin368.fits scfile=/scratch/kocevski/935845/ft2_4FGL_J1249.8+3707_daily_bin368.fits outfile=/scratch/kocevski/935845/cmap_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.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/935845/ft1_filtered_4FGL_J1249.8+3707_daily_bin368.fits scfile=/scratch/kocevski/935845/ft2_4FGL_J1249.8+3707_daily_bin368.fits outfile=/scratch/kocevski/935845/cmap_HighResolution_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.628       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4395       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52931E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1912       1.0000         .10000E-03   10000.    
     7 'Prefactor '    20.751       1.0000         .10000E-03   10000.    
     8 'Prefactor '    26.226       1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.469       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0423       1.0000         .10000E-03   10000.    
    12 'norm      '    .99304E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.703       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.836       1.0000         .10000E-03   10000.    
    18 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    79.416       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.396       1.0000         .10000E-03   10000.    
    24 'Prefactor '    37.762       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92913       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93112       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=   5422.528     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3056 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.620        72.414       -.11758E-05   -.51333E-07
   2  Prefactor     .10000E-03    10.467        .24246E-06** at limit **
   3  norm          3.4388        2.3400       -.36764E-07    .99593E-04
   4  Prefactor     .10000E-03    4.4295        .10464E-06** at limit **
   5  Prefactor     .55729E-01    1.1235       -.18407E-07    .10146E-03
   6  Prefactor     2.1909        2.1352       -.10430E-07    .41332E-04
   7  Prefactor     20.750        13.889       -.16699E-06    .36511E-04
   8  Prefactor     26.223        22.800       -.20469E-06    .15670E-05
   9  Prefactor     24.468        22.323       -.17193E-06    .93949E-05
  10  Prefactor     .10000E-03    21.523        .84533E-07** at limit **
  11  Prefactor     5.0416        6.8947        .13250E-06   -.35640E-04
  12  norm          .10001E-03    3.0113        .19721E-05** at limit **
  13  Prefactor     .10000E-03    54.220        .44513E-06** at limit **
  14  Prefactor     31.722        25.819       -.54051E-05    .11890E-03
  15  Prefactor     .10000E-03    7.0319        .88887E-07** at limit **
  16  norm          .10000E-03    2.2820        .17840E-06** at limit **
  17  norm          14.835        14.337        .57664E-07    .26201E-05
  18  norm          .10000E-03    .81390        .15094E-06** at limit **
  19  norm          .10000E-03    1.3743        .86636E-07** at limit **
  20  Prefactor     .10000E-03    .83795        .41824E-07** at limit **
  21  Prefactor     .10000E-03    3.3991        .28287E-07** at limit **
  22  Prefactor     79.409        57.524       -.55102E-06    .42000E-06
  23  Prefactor     27.394        17.812       -.67096E-07    .86197E-05
  24  Prefactor     37.697        73.822       -.89438E-05   -.10972E-04
  25  Normalizat    .92942        .17997        .84329E-06   -.59744E-04
  26  Prefactor     .93081        .21275       -.94309E-06    .82717E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.6197
  Prefactor  = 0.0001
  norm       = 3.43881
  Prefactor  = 0.0001
  Prefactor  = 0.0557291
  Prefactor  = 2.19091
  Prefactor  = 20.7504
  Prefactor  = 26.2226
  Prefactor  = 24.4684
  Prefactor  = 0.0001
  Prefactor  = 5.04159
  norm       = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 31.7224
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 14.8352
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 79.4086
  Prefactor  = 27.3945
  Prefactor  = 37.6971
  Normalizat = 0.929416
  Prefactor  = 0.93081
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.528     FROM HESSE     STATUS=OK           456 CALLS     3512 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.620        72.440        .76217E-04   -1.4656    
   2  Prefactor     .10000E-03    10.473        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4388        2.3596        .87875E-04   -1.5337    
   4  Prefactor     .10000E-03    4.4527        .15133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55729E-01    7.4307        .14733E-02   -1.5661    
   6  Prefactor     2.1909        2.1240        .99818E-04   -1.5412    
   7  Prefactor     20.750        13.828        .87927E-04   -1.4797    
   8  Prefactor     26.223        22.822        .78224E-04   -1.4683    
   9  Prefactor     24.468        22.306        .80979E-04   -1.4718    
  10  Prefactor     .10000E-03    21.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0416        6.8817        .17907E-03   -1.5259    
  12  norm          .10001E-03    14.589        .22809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    54.312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     31.722        26.349        .71163E-04   -1.4581    
  15  Prefactor     .10000E-03    7.0528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.3161        .10865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.835        14.338        .10398E-03   -1.4937    
  18  norm          .10000E-03    .81643        .64900E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.3758        .84315E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .84190        .65817E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.4028        .13259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     79.409        57.510        .45066E-04   -1.3923    
  23  Prefactor     27.394        17.820        .76539E-04   -1.4661    
  24  Prefactor     37.697        73.853        .65222E-04   -1.4479    
  25  Normalizat    .92942        .20991        .23604E-03   -.95434    
  26  Prefactor     .93081        .24761        .28438E-03   -.95073    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.80914e-10
Minuit parameter uncertainties:
  1  72.6717
  2  3.12724e-06
  3  2.35969
  4  5.47046e-06
  5  1.28603
  6  2.1241
  7  13.8301
  8  22.8301
  9  22.314
  10  1.77006e-07
  11  6.88281
  12  0.00077278
  13  2.48528e-05
  14  26.3591
  15  5.08975e-06
  16  2.51202e-06
  17  14.3417
  18  8.86872e-07
  19  6.24683e-07
  20  3.11972e-06
  21  4.42707e-06
  22  57.5503
  23  17.8235
  24  74.0329
  25  0.210095
  26  0.247913
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.447e+01  2.231e+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.308e-01  2.479e-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.294e-01  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.10
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.23e-08 +/- 2.03e-08
Energy Flux (Fixed Index): 2.84e-05 +/- 2.59e-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) = 5422.47358967
delta logL = 0.0546908212409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5422.47232044
delta logL = 0.0559600489523

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.564       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5561       1.0000          .0000       10.000    
     3 'Normalizat'    .93572       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92848       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=   5422.472     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      272 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.631        1026.8        .18741E-02   -.43168E-04
   2  Index         1.5580        5.4946        .15084        .80786E-05
   3  Normalizat    .93554        .16517        .45356E-01   -.11506E-03
   4  Prefactor     .92849        .11828        .45367E-01   -.86357E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6312
  Index      = 1.55803
  Normalizat = 0.935539
  Prefactor  = 0.92849
 **********
 **   18 **HESSE 
 **********

 FCN=   5422.472     FROM HESSE     STATUS=OK            31 CALLS      303 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.631        27.341        .74962E-04   -1.4637    
   2  Index         1.5580        .64964        .97816E-02   -.75927    
   3  Normalizat    .93554        .20310        .23535E-03   -.95222    
   4  Prefactor     .92849        .24559        .28474E-03   -.95153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.06332e-11
Minuit parameter uncertainties:
  1  27.3531
  2  0.653162
  3  0.203262
  4  0.245879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935845': 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) = 5422.47230901
delta logL = 0.0559714839465

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.863e+01  2.735e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.558e+00  6.532e-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.285e-01  2.459e-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.355e-01  2.033e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.22
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.56 +/- 0.65
Photon Flux (Free Index): 1.58e-08 +/- 2.17e-08
Energy Flux (Free Index): 4.11e-05 +/- 6.03e-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/935845/cmap_HighResolution_334713601_334972801_4FGL_J1249.8+3707_daily_bin368.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.23e-08', energy_flux2='4.11e-05', photon_flux_error='2.03e-08', dlogl='5.60e-02', energy_flux='2.84e-05', photon_flux2='1.58e-08', job_status='DONE', time_completed='2021-09-06 06:43:41.774992', photon_index_error2='0.65', photon_index2='1.56', ts='7.10', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='6.03e-05', EG='0.93', time_epoch_completed='1630935821.78', return_code='0', job_id='935845', GAL2='0.93', EG2='0.94', return_code2='0', energy_flux_error='2.59e-05', photon_flux_error2='2.17e-08', ts2='7.22', photon_index='1.78' WHERE bin_id='368' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:43:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 935845: <4FGL_J1249.8+3707_daily_bin368> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin368 192.46 37.1306 334713601 334972801 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 :                                   623.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            765 sec.

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

