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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin69
RA = 192.46, Dec = 37.1306
tmin = 257212801, tmax = 257472001
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='934378', job_status='RUN', time_executed='2021-09-06 06:27:28.396910', time_epoch_executed='1630934848.4' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='69'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934378

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934378/ft1_4FGL_J1249.8+3707_daily_bin69.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934378/ft2_4FGL_J1249.8+3707_daily_bin69.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934378/ft1_4FGL_J1249.8+3707_daily_bin69.fits outfile=/scratch/kocevski/934378/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin69.fits ra=192.46 dec=37.1306 rad=12.0 tmin=257212801.0 tmax=257472001.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 2.29
user 2.08
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934378/ft1_filtered_4FGL_J1249.8+3707_daily_bin69.fits" evtable="EVENTS" scfile=/scratch/kocevski/934378/ft2_4FGL_J1249.8+3707_daily_bin69.fits sctable="SC_DATA" outfile=/scratch/kocevski/934378/ltcube_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.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/934378/ft2_4FGL_J1249.8+3707_daily_bin69.fits
.....................!
real 14.19
user 12.44
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934378/ft1_filtered_4FGL_J1249.8+3707_daily_bin69.fits evtable="EVENTS" scfile=/scratch/kocevski/934378/ft2_4FGL_J1249.8+3707_daily_bin69.fits sctable="SC_DATA" expcube=/scratch/kocevski/934378/ltcube_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.fits outfile=/scratch/kocevski/934378/expmap_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.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/934378/ltcube_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.fits
.....................!
real 193.33
user 187.25
sys 5.56

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/934378/ft1_filtered_4FGL_J1249.8+3707_daily_bin69.fits scfile=/scratch/kocevski/934378/ft2_4FGL_J1249.8+3707_daily_bin69.fits outfile=/scratch/kocevski/934378/cmap_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.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.69
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934378/ft1_filtered_4FGL_J1249.8+3707_daily_bin69.fits scfile=/scratch/kocevski/934378/ft2_4FGL_J1249.8+3707_daily_bin69.fits outfile=/scratch/kocevski/934378/cmap_HighResolution_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.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.91
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.193       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10104E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.3544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3321       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.6402       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.8739       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    25.992       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.092       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .66691E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    29.645       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.627       1.0000         .10000E-03   10000.    
    16 'norm      '    3.3513       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    13.766       1.0000         .10000E-03   10000.    
    19 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .26655E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2527       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10440E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.6851       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2170       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .69799       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=   6713.091     FROM MIGRAD    STATUS=CONVERGED    613 CALLS     3085 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.223        42.543        .57753E-06    .60453E-04
   2  Prefactor     .10000E-03    9.3059        .80007E-08** at limit **
   3  norm          6.3542        2.6996       -.98829E-09    .18340E-04
   4  Prefactor     3.3309        6.1282        .45498E-06   -.82811E-04
   5  Prefactor     2.6400        1.8839        .17285E-08    .13918E-04
   6  Prefactor     5.8738        2.3603        .14443E-07    .53130E-05
   7  Prefactor     .10000E-03    3.6001       -.22067E-08** at limit **
   8  Prefactor     25.981        19.123        .37048E-07   -.18761E-04
   9  Prefactor     13.096        12.478       -.12159E-07    .50674E-05
  10  Prefactor     .10000E-03    45.153        .25921E-06** at limit **
  11  Prefactor     .10000E-03    1.9895        .44526E-07** at limit **
  12  norm          .10002E-03    2.2903        .22778E-06** at limit **
  13  Prefactor     .10000E-03    12.337       -.24503E-07** at limit **
  14  Prefactor     29.667        27.375       -.22067E-05    .19748E-03
  15  Prefactor     13.632        14.902       -.62972E-07   -.34692E-04
  16  norm          3.3529        3.8655       -.63756E-07   -.76009E-04
  17  norm          .10000E-03    4.8167       -.90641E-08** at limit **
  18  norm          13.769        5.3310       -.11404E-06   -.13302E-04
  19  norm          .10000E-03    4.4218       -.17757E-07** at limit **
  20  Prefactor     .10000E-03    2.0470        .85802E-06** at limit **
  21  Prefactor     2.2941        35.152       -.29724E-05   -.76035E-04
  22  Prefactor     .10000E-03    48.124       -.11691E-06** at limit **
  23  Prefactor     .10000E-03    23.112        .51134E-07** at limit **
  24  Prefactor     5.6682        261.99       -.41815E-06   -.97503E-05
  25  Normalizat    1.2172        .17133       -.27806E-06   -.47760E-04
  26  Prefactor     .69787        .19721       -.40024E-06   -.58871E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.2227
  Prefactor  = 0.0001
  norm       = 6.35423
  Prefactor  = 3.33088
  Prefactor  = 2.64003
  Prefactor  = 5.87379
  Prefactor  = 0.0001
  Prefactor  = 25.9808
  Prefactor  = 13.0958
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100018
  Prefactor  = 0.0001
  Prefactor  = 29.6672
  Prefactor  = 13.6322
  norm       = 3.35287
  norm       = 0.0001
  norm       = 13.7685
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.29408
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66824
  Normalizat = 1.21718
  Prefactor  = 0.697866
 **********
 **   18 **HESSE 
 **********

 FCN=   6713.091     FROM HESSE     STATUS=OK           460 CALLS     3545 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.223        42.132        .78274E-04   -1.4683    
   2  Prefactor     .10000E-03    9.3182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.3542        2.7062        .82268E-04   -1.5204    
   4  Prefactor     3.3309        6.0970        .22174E-03   -1.5343    
   5  Prefactor     2.6400        1.8888        .89227E-04   -1.5383    
   6  Prefactor     5.8738        2.3587        .76399E-04   -1.5223    
   7  Prefactor     .10000E-03    3.6100        .15180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     25.981        19.134        .78575E-04   -1.4688    
   9  Prefactor     13.096        12.477        .11070E-03   -1.4984    
  10  Prefactor     .10000E-03    45.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9949        .11281E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    10.982        .23426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.340        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     29.667        26.612        .73585E-04   -1.4618    
  15  Prefactor     13.632        14.873        .10851E-03   -1.4969    
  16  norm          3.3529        3.8451        .16294E-03   -1.5342    
  17  norm          .10000E-03    4.8229        .17562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          13.769        5.2428        .10147E-03   -1.4966    
  19  norm          .10000E-03    4.4447        .16773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.9461        .20540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2941        31.056        .27375E-03   -1.5405    
  22  Prefactor     .10000E-03    48.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    23.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.6682        266.65        .16847E-03   -1.5232    
  25  Normalizat    1.2172        .19793        .21772E-03   -.86074    
  26  Prefactor     .69787        .22525        .33770E-03   -1.0361    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80054e-09
Minuit parameter uncertainties:
  1  42.1795
  2  2.93591e-06
  3  2.70628
  4  6.09816
  5  1.88882
  6  2.35876
  7  2.08468e-06
  8  19.139
  9  12.4798
  10  0.00012036
  11  2.75796e-06
  12  0.00088705
  13  2.86118e-07
  14  26.6229
  15  14.8766
  16  3.84537
  17  3.69802e-06
  18  5.24298
  19  2.32705e-05
  20  2.99626e-05
  21  16.8915
  22  1.49685e-05
  23  2.5193e-05
  24  78.1262
  25  0.198052
  26  0.225547
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.310e+01  1.248e+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.979e-01  2.255e-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.217e+00  1.981e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.70
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.19e-08 +/- 1.14e-08
Energy Flux (Fixed Index): 1.52e-05 +/- 1.45e-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) = 6712.88167662
delta logL = 0.209336952125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6712.8815227
delta logL = 0.209490867702

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.564       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3568       1.0000          .0000       10.000    
     3 'Normalizat'    1.2205       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69823       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=   6712.882     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      285 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.564        16.530        .98409E-04    .37423E-03
   2  Index         1.3566        .66003        .12172E-01    .76884E-04
   3  Normalizat    1.2205        .18282        .21755E-03   -.51527E-04
   4  Prefactor     .69823        .22132        .33769E-03   -.32926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.5637
  Index      = 1.35665
  Normalizat = 1.22055
  Prefactor  = 0.698233
 **********
 **   18 **HESSE 
 **********

 FCN=   6712.882     FROM HESSE     STATUS=OK            25 CALLS      310 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.564        16.530        .19682E-04   -1.4894    
   2  Index         1.3566        .66035        .48686E-03   -.81638    
   3  Normalizat    1.2205        .18298        .87018E-05   -.85970    
   4  Prefactor     .69823        .22151        .13507E-04   -1.0360    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4296e-10
Minuit parameter uncertainties:
  1  16.5343
  2  0.664513
  3  0.183072
  4  0.221787
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934378': 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) = 6712.88152268
delta logL = 0.209490883112

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.656e+01  1.653e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.357e+00  6.645e-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.982e-01  2.218e-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.221e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.11
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.36 +/- 0.66
Photon Flux (Free Index): 6.36e-09 +/- 9.14e-09
Energy Flux (Free Index): 3.24e-05 +/- 4.91e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/934378/cmap_HighResolution_257212801_257472001_4FGL_J1249.8+3707_daily_bin69.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.19e-08', energy_flux2='3.24e-05', photon_flux_error='1.14e-08', dlogl='2.09e-01', energy_flux='1.52e-05', photon_flux2='6.36e-09', job_status='DONE', time_completed='2021-09-06 06:39:25.222326', photon_index_error2='0.66', photon_index2='1.36', ts='4.70', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='4.91e-05', EG='1.22', time_epoch_completed='1630935565.22', return_code='0', job_id='934378', GAL2='0.70', EG2='1.22', return_code2='0', energy_flux_error='1.45e-05', photon_flux_error2='9.14e-09', ts2='5.11', photon_index='1.78' WHERE bin_id='69' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:39:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 934378: <4FGL_J1249.8+3707_daily_bin69> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin69 192.46 37.1306 257212801 257472001 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 :                                   711.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            815 sec.

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

