/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 45 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 = 7389
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin76
RA = 192.46, Dec = 37.1306
tmin = 259027201, tmax = 259286401
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='934388', job_status='RUN', time_executed='2021-09-06 06:26:50.353066', time_epoch_executed='1630934810.35' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934388

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934388/ft1_4FGL_J1249.8+3707_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934388/ft2_4FGL_J1249.8+3707_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934388/ft1_4FGL_J1249.8+3707_daily_bin76.fits outfile=/scratch/kocevski/934388/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin76.fits ra=192.46 dec=37.1306 rad=12.0 tmin=259027201.0 tmax=259286401.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 1.44
user 1.27
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934388/ft2_4FGL_J1249.8+3707_daily_bin76.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/934388/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/934388/ft1_filtered_4FGL_J1249.8+3707_daily_bin76.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934388/ft1_filtered_4FGL_J1249.8+3707_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/934388/ft2_4FGL_J1249.8+3707_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/934388/ltcube_259027201_259286401_4FGL_J1249.8+3707_daily_bin76.fits outfile=/scratch/kocevski/934388/expmap_259027201_259286401_4FGL_J1249.8+3707_daily_bin76.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/934388/ltcube_259027201_259286401_4FGL_J1249.8+3707_daily_bin76.fits
.....................!
real 191.42
user 186.66
sys 4.40

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/934388/ft1_filtered_4FGL_J1249.8+3707_daily_bin76.fits scfile=/scratch/kocevski/934388/ft2_4FGL_J1249.8+3707_daily_bin76.fits outfile=/scratch/kocevski/934388/cmap_259027201_259286401_4FGL_J1249.8+3707_daily_bin76.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11924E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.5637       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7928       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.662       1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.095       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.312       1.0000         .10000E-03   10000.    
    14 'Prefactor '    84.914       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.3884       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .62112E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.3256       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.3716       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90834       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1317       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=   5668.119     FROM MIGRAD    STATUS=CONVERGED    629 CALLS     3108 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.750       -.21973E-07** at limit **
   2  Prefactor     .10000E-03    65.427        .17817E-06** at limit **
   3  norm          .10000E-03    2.0008       -.23474E-06** at limit **
   4  Prefactor     2.5629        6.0502        .53226E-06   -.27541E-04
   5  Prefactor     2.1011        2.0156        .52542E-09    .12652E-03
   6  Prefactor     8.7914        3.2312        .23192E-06    .14058E-03
   7  Prefactor     .10000E-03    8.8824       -.12077E-06** at limit **
   8  Prefactor     15.668        18.276        .85693E-07   -.14017E-05
   9  Prefactor     14.095        13.497       -.34436E-06   -.12706E-05
  10  Prefactor     .10000E-03    25.334        .15769E-06** at limit **
  11  Prefactor     .10000E-03    1.6750        .36464E-07** at limit **
  12  norm          .10000E-03    2.0179        .30992E-06** at limit **
  13  Prefactor     43.346        55.810        .28513E-05    .74861E-04
  14  Prefactor     84.942        31.864        .42623E-06    .58896E-04
  15  Prefactor     .10000E-03    42.186       -.71941E-07** at limit **
  16  norm          3.3881        4.1571        .70686E-07   -.20055E-04
  17  norm          .10000E-03    4.9603        .15970E-06** at limit **
  18  norm          .10001E-03    2.9522        .18121E-06** at limit **
  19  norm          13.243        8.7734       -.41005E-06   -.17613E-03
  20  Prefactor     .10000E-03    2.2638       -.53402E-07** at limit **
  21  Prefactor     9.3311        15.365        .27293E-05   -.50806E-04
  22  Prefactor     6.3825        143.31       -.16354E-05    .23540E-05
  23  Prefactor     .10000E-03    11.101       -.16166E-06** at limit **
  24  Prefactor     .10000E-03    25.689       -.68144E-07** at limit **
  25  Normalizat    .90833        .17900       -.15283E-05    .30093E-04
  26  Prefactor     1.1316        .21862        .76445E-06   -.63684E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.56295
  Prefactor  = 2.10113
  Prefactor  = 8.79144
  Prefactor  = 0.0001
  Prefactor  = 15.6677
  Prefactor  = 14.0946
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.3464
  Prefactor  = 84.9416
  Prefactor  = 0.0001
  norm       = 3.3881
  norm       = 0.0001
  norm       = 0.000100011
  norm       = 13.2429
  Prefactor  = 0.0001
  Prefactor  = 9.33115
  Prefactor  = 6.38253
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.908325
  Prefactor  = 1.13162
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.119     FROM HESSE     STATUS=OK           456 CALLS     3564 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.756        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    67.039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    3.6704        .19961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.5629        6.0387        .25496E-03   -1.5388    
   5  Prefactor     2.1011        1.9896        .98657E-04   -1.5418    
   6  Prefactor     8.7914        3.2010        .38686E-03   -1.5115    
   7  Prefactor     .10000E-03    8.9411        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.668        18.275        .10120E-03   -1.4916    
   9  Prefactor     14.095        13.506        .53343E-03   -1.4957    
  10  Prefactor     .10000E-03    25.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.6766        .95153E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0261        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.346        56.896        .60915E-04   -1.4390    
  14  Prefactor     84.942        31.928        .43594E-04   -1.3862    
  15  Prefactor     .10000E-03    43.626        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.3881        4.1414        .16401E-03   -1.5340    
  17  norm          .10000E-03    4.9644        .16374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10001E-03    14.525        .20475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.243        7.5977        .11014E-03   -1.4980    
  20  Prefactor     .10000E-03    2.2937        .11013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.3311        15.241        .65618E-03   -1.5097    
  22  Prefactor     6.3825        142.92        .15901E-03   -1.5203    
  23  Prefactor     .10000E-03    11.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90833        .20686        .24277E-03   -.96168    
  26  Prefactor     1.1316        .25714        .28039E-03   -.88462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23627e-10
Minuit parameter uncertainties:
  1  1.90842e-06
  2  0.00013776
  3  1.67679e-05
  4  6.04013
  5  1.98962
  6  3.20103
  7  2.35407e-06
  8  18.2816
  9  13.509
  10  1.176e-05
  11  3.03586e-07
  12  1.79366e-06
  13  56.967
  14  31.9346
  15  4.84068e-05
  16  4.14175
  17  1.92751e-06
  18  0.000813918
  19  7.59827
  20  2.38125e-05
  21  15.2476
  22  60.5697
  23  7.91948e-06
  24  1.36742e-06
  25  0.207039
  26  0.25742
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.409e+01  1.351e+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.132e+00  2.574e-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.083e-01  2.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.07
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 1.23e-08
Energy Flux (Fixed Index): 1.63e-05 +/- 1.57e-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) = 5667.75359381
delta logL = 0.365294728141

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5667.75261418
delta logL = 0.366274356335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.083       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1679       1.0000          .0000       10.000    
     3 'Normalizat'    .91517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1294       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=   5667.753     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      260 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.083        27.110        .24226E-02   -.15101E-03
   2  Index         1.1679        .94049        .25199       -.26895E-05
   3  Normalizat    .91527        .16962        .45095E-01    .12516E-04
   4  Prefactor     1.1293        .21524        .63456E-01    .70853E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0828
  Index      = 1.1679
  Normalizat = 0.915269
  Prefactor  = 1.12931
 **********
 **   18 **HESSE 
 **********

 FCN=   5667.753     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .46E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.083        17.435        .96903E-04   -1.4881    
   2  Index         1.1679        .67089        .13630E-01   -.87325    
   3  Normalizat    .91527        .19922        .24194E-03   -.95926    
   4  Prefactor     1.1293        .25487        .28067E-03   -.88535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5956e-11
Minuit parameter uncertainties:
  1  17.4397
  2  0.675871
  3  0.199377
  4  0.255148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934388': 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) = 5667.75261405
delta logL = 0.366274491849

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.708e+01  1.744e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.168e+00  6.759e-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.129e+00  2.551e-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.153e-01  1.994e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.79
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.17 +/- 0.68
Photon Flux (Free Index): 5.21e-09 +/- 6.69e-09
Energy Flux (Free Index): 4.78e-05 +/- 7.37e-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/934388/cmap_HighResolution_259027201_259286401_4FGL_J1249.8+3707_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='4.78e-05', photon_flux_error='1.23e-08', dlogl='3.66e-01', energy_flux='1.63e-05', photon_flux2='5.21e-09', job_status='DONE', time_completed='2021-09-06 06:37:40.490121', photon_index_error2='0.68', photon_index2='1.17', ts='7.07', fit_tolerance='1e-08', GAL='1.13', photon_index_error='0.00', energy_flux_error2='7.37e-05', EG='0.91', time_epoch_completed='1630935460.49', return_code='0', job_id='934388', GAL2='1.13', EG2='0.92', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='6.69e-09', ts2='7.79', photon_index='1.78' WHERE bin_id='76' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:37:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 934388: <4FGL_J1249.8+3707_daily_bin76> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin76 192.46 37.1306 259027201 259286401 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 :                                   648.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   707 sec.
    Turnaround time :                            710 sec.

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

