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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin45
RA = 192.46, Dec = 37.1306
tmin = 250992001, tmax = 251251201
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='934342', job_status='RUN', time_executed='2021-09-06 06:26:12.629471', time_epoch_executed='1630934772.63' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='45'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934342

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934342/ft1_4FGL_J1249.8+3707_daily_bin45.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934342/ft2_4FGL_J1249.8+3707_daily_bin45.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934342/ft1_4FGL_J1249.8+3707_daily_bin45.fits outfile=/scratch/kocevski/934342/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin45.fits ra=192.46 dec=37.1306 rad=12.0 tmin=250992001.0 tmax=251251201.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.21
user 1.02
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934342/ft2_4FGL_J1249.8+3707_daily_bin45.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/934342/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin45.fits evtable="EVENTS" outfile="/scratch/kocevski/934342/ft1_filtered_4FGL_J1249.8+3707_daily_bin45.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.46
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934342/ft1_filtered_4FGL_J1249.8+3707_daily_bin45.fits" evtable="EVENTS" scfile=/scratch/kocevski/934342/ft2_4FGL_J1249.8+3707_daily_bin45.fits sctable="SC_DATA" outfile=/scratch/kocevski/934342/ltcube_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.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/934342/ft2_4FGL_J1249.8+3707_daily_bin45.fits
.....................!
real 11.10
user 10.74
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934342/ft1_filtered_4FGL_J1249.8+3707_daily_bin45.fits evtable="EVENTS" scfile=/scratch/kocevski/934342/ft2_4FGL_J1249.8+3707_daily_bin45.fits sctable="SC_DATA" expcube=/scratch/kocevski/934342/ltcube_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.fits outfile=/scratch/kocevski/934342/expmap_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.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/934342/ltcube_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.fits
.....................!
real 158.98
user 151.40
sys 4.05

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/934342/ft1_filtered_4FGL_J1249.8+3707_daily_bin45.fits scfile=/scratch/kocevski/934342/ft2_4FGL_J1249.8+3707_daily_bin45.fits outfile=/scratch/kocevski/934342/cmap_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.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.31
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934342/ft1_filtered_4FGL_J1249.8+3707_daily_bin45.fits scfile=/scratch/kocevski/934342/ft2_4FGL_J1249.8+3707_daily_bin45.fits outfile=/scratch/kocevski/934342/cmap_HighResolution_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.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.56
user 0.32
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.5858       1.0000         .10000E-03   10000.    
     3 'norm      '    5.1547       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70667       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3688       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.708       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .46624E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    11.075       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9154       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .59916       1.0000         .10000E-03   10000.    
    17 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    20.599       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11587E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.0454       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .92311       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3718       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=   8744.887     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     2659 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.071        .78584E-06** at limit **
   2  Prefactor     7.5640        29.788       -.34530E-05   -.10005E-03
   3  norm          5.1547        2.3377        .33437E-07    .26377E-04
   4  Prefactor     .10000E-03    2.5991       -.13698E-06** at limit **
   5  Prefactor     .70666        1.1153       -.12851E-06   -.42881E-03
   6  Prefactor     3.3686        2.0989        .53408E-07   -.95490E-05
   7  Prefactor     13.709        8.4859        .42980E-06   -.77298E-04
   8  Prefactor     .10000E-03    55.801       -.30036E-05** at limit **
   9  Prefactor     11.073        11.812        .32924E-07   -.51515E-05
  10  Prefactor     .10000E-03    42.173        .36940E-05** at limit **
  11  Prefactor     .10000E-03    1.2031       -.28958E-08** at limit **
  12  norm          .10000E-03    1.8521        .10859E-07** at limit **
  13  Prefactor     7.8047        66.826        .13117E-05    .15159E-04
  14  Prefactor     5.9092        18.762       -.65854E-06   -.59459E-04
  15  Prefactor     .10000E-03    5.0565       -.59747E-07** at limit **
  16  norm          .59952        3.3967        .26217E-05   -.15760E-03
  17  norm          .10000E-03    9.4552       -.25522E-06** at limit **
  18  norm          20.598        4.8236       -.71523E-07   -.23410E-03
  19  norm          .10000E-03    3.8426       -.38871E-07** at limit **
  20  Prefactor     .10000E-03    1.0453       -.29748E-07** at limit **
  21  Prefactor     .10000E-03    18.791        .56153E-06** at limit **
  22  Prefactor     .10000E-03    49.271       -.17752E-05** at limit **
  23  Prefactor     7.0389        14.385        .31345E-05   -.11665E-03
  24  Prefactor     .10000E-03    15.992       -.10498E-05** at limit **
  25  Normalizat    .92312        .15643        .60093E-06   -.11853E-03
  26  Prefactor     1.3719        .19238       -.12567E-05    .32026E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 7.564
  norm       = 5.15468
  Prefactor  = 0.0001
  Prefactor  = 0.706662
  Prefactor  = 3.36858
  Prefactor  = 13.7093
  Prefactor  = 0.000100001
  Prefactor  = 11.0729
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.80469
  Prefactor  = 5.90923
  Prefactor  = 0.0001
  norm       = 0.599517
  norm       = 0.0001
  norm       = 20.598
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 7.03891
  Prefactor  = 0.0001
  Normalizat = 0.923119
  Prefactor  = 1.37194
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.887     FROM HESSE     STATUS=OK           458 CALLS     3117 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.5640        30.988        .14560E-03   -1.5158    
   3  norm          5.1547        2.3190        .91049E-04   -1.5254    
   4  Prefactor     .10000E-03    2.6124        .14716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .70666        .86424        .11888E-02   -1.5540    
   6  Prefactor     3.3686        2.0896        .10120E-03   -1.5341    
   7  Prefactor     13.709        8.4878        .54091E-03   -1.4967    
   8  Prefactor     .10000E-03    58.640        .38594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.073        11.812        .12038E-03   -1.5042    
  10  Prefactor     .10000E-03    43.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.2043        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.9160        .24826E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.8047        66.871        .14357E-03   -1.5149    
  14  Prefactor     5.9092        18.695        .16511E-03   -1.5222    
  15  Prefactor     .10000E-03    5.0711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .59952        3.4381        .33615E-03   -1.5553    
  17  norm          .10000E-03    9.5151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          20.598        4.8013        .88249E-04   -1.4800    
  19  norm          .10000E-03    3.8515        .17852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0556        .93285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    19.300        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    49.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.0389        14.473        .75568E-03   -1.5177    
  24  Prefactor     .10000E-03    16.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .92312        .18601        .26483E-03   -.95652    
  26  Prefactor     1.3719        .22803        .28046E-03   -.81192    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21361e-10
Minuit parameter uncertainties:
  1  8.06889e-05
  2  30.6473
  3  2.31904
  4  6.75607e-06
  5  0.864253
  6  2.08965
  7  8.48858
  8  0.000414852
  9  11.8145
  10  0.00068278
  11  8.10167e-07
  12  2.02631e-06
  13  45.7594
  14  18.713
  15  1.10097e-05
  16  2.87139
  17  3.72834e-05
  18  4.80137
  19  2.09744e-06
  20  3.15466e-06
  21  2.85667e-05
  22  0.000405748
  23  14.4804
  24  0.000134952
  25  0.186139
  26  0.228198
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.107e+01  1.181e+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.372e+00  2.282e-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.231e-01  1.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.27
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.01e-08 +/- 1.08e-08
Energy Flux (Fixed Index): 1.28e-05 +/- 1.37e-05

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

Saving results to:
/scratch/kocevski/934342/likelihoodResults_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.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) = 8744.87839428
delta logL = 0.00869446157776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8744.87232013
delta logL = 0.0147686184118

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.4736       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9091       1.0000          .0000       10.000    
     3 'Normalizat'    .92100       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3732       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=   8744.872     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      262 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.4736        15.676        .13020E-03    .10565E-03
   2  Index         1.9091        .84746        .98603E-02    .51061E-04
   3  Normalizat    .92100        .17946        .26510E-03    .30191E-04
   4  Prefactor     1.3732        .22642        .28035E-03   -.64964E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.47364
  Index      = 1.90905
  Normalizat = 0.921001
  Prefactor  = 1.37318
 **********
 **   18 **HESSE 
 **********

 FCN=   8744.872     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.4736        14.114        .52081E-05   -1.5092    
   2  Index         1.9091        .76433        .39441E-03   -.66644    
   3  Normalizat    .92100        .17941        .10604E-04   -.95726    
   4  Prefactor     1.3732        .22653        .11214E-04   -.81156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.18667e-11
Minuit parameter uncertainties:
  1  14.1188
  2  0.769236
  3  0.179527
  4  0.226695
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934342': 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) = 8744.87232013
delta logL = 0.014768618541

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.474e+00  1.412e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.909e+00  7.692e-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.373e+00  2.267e-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.210e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.91 +/- 0.77
Photon Flux (Free Index): 1.20e-08 +/- 1.69e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.63e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/934342/cmap_HighResolution_250992001_251251201_4FGL_J1249.8+3707_daily_bin45.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.10e-03', comment='SUCCESS', photon_flux='1.01e-08', energy_flux2='1.05e-05', photon_flux_error='1.08e-08', dlogl='1.48e-02', energy_flux='1.28e-05', photon_flux2='1.20e-08', job_status='DONE', time_completed='2021-09-06 06:38:39.795418', photon_index_error2='0.77', photon_index2='1.91', ts='2.27', fit_tolerance='1e-08', GAL='1.37', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='1.63e-05', EG='0.92', time_epoch_completed='1630935519.8', return_code='0', job_id='934342', GAL2='1.37', EG2='0.92', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='1.69e-08', ts2='2.30', photon_index='1.78' WHERE bin_id='45' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:38:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 934342: <4FGL_J1249.8+3707_daily_bin45> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin45 192.46 37.1306 250992001 251251201 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 :                                   737.17 sec.
    Max Memory :                                 1053 MB
    Average Memory :                             304.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

