/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 2 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 = 7368
number of fields = 29
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin506
RA = 192.46, Dec = 37.1306
tmin = 370483201, tmax = 370742401
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='937167', job_status='RUN', time_executed='2021-09-06 06:35:45.251588', time_epoch_executed='1630935345.25' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937167

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937167/ft1_4FGL_J1249.8+3707_daily_bin506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937167/ft2_4FGL_J1249.8+3707_daily_bin506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937167/ft1_4FGL_J1249.8+3707_daily_bin506.fits outfile=/scratch/kocevski/937167/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin506.fits ra=192.46 dec=37.1306 rad=12.0 tmin=370483201.0 tmax=370742401.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 19.52
user 18.95
sys 0.51

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937167/ft1_filtered_4FGL_J1249.8+3707_daily_bin506.fits evtable="EVENTS" scfile=/scratch/kocevski/937167/ft2_4FGL_J1249.8+3707_daily_bin506.fits sctable="SC_DATA" expcube=/scratch/kocevski/937167/ltcube_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.fits outfile=/scratch/kocevski/937167/expmap_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.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/937167/ltcube_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.fits
.....................!
real 189.74
user 185.09
sys 4.01

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/937167/ft1_filtered_4FGL_J1249.8+3707_daily_bin506.fits scfile=/scratch/kocevski/937167/ft2_4FGL_J1249.8+3707_daily_bin506.fits outfile=/scratch/kocevski/937167/cmap_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.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.58
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937167/ft1_filtered_4FGL_J1249.8+3707_daily_bin506.fits scfile=/scratch/kocevski/937167/ft2_4FGL_J1249.8+3707_daily_bin506.fits outfile=/scratch/kocevski/937167/cmap_HighResolution_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.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.59
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    10.884       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .56173E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    50.599       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .39517       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    40.137       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.036       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.313       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10807E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .97422       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72207       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=   2397.761     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3108 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.639        .28060E-05** at limit **
   2  Prefactor     .10000E-03    15.263       -.37415E-06** at limit **
   3  norm          10.885        8.5972       -.18126E-06   -.99644E-05
   4  Prefactor     .10000E-03    9.1447        .81632E-06** at limit **
   5  Prefactor     5.1732        6.9314       -.46923E-06   -.11802E-04
   6  Prefactor     .10010E-03    3.8267        .49536E-06** at limit **
   7  Prefactor     50.606        30.785       -.10369E-05    .10391E-04
   8  Prefactor     .58273        197.02       -.27604E-04    .22444E-05
   9  Prefactor     .10000E-03    15.616        .47519E-06** at limit **
  10  Prefactor     .10000E-03    42.793       -.18248E-05** at limit **
  11  Prefactor     .10000E-03    7.4404       -.47958E-06** at limit **
  12  norm          .10000E-03    2.9012       -.13788E-06** at limit **
  13  Prefactor     40.226        79.897       -.66652E-05    .15741E-04
  14  Prefactor     .10000E-03    108.61       -.55124E-05** at limit **
  15  Prefactor     27.042        28.112       -.14383E-05    .37440E-04
  16  norm          .10000E-03    6.3750       -.55288E-06** at limit **
  17  norm          .10000E-03    10.977       -.27547E-05** at limit **
  18  norm          18.314        9.6687       -.35171E-06   -.22830E-05
  19  norm          .10000E-03    9.7779       -.69022E-06** at limit **
  20  Prefactor     .10000E-03    3.7155        .24758E-06** at limit **
  21  Prefactor     .10000E-03    62.867        .40315E-05** at limit **
  22  Prefactor     .10000E-03    307.55        .22623E-04** at limit **
  23  Prefactor     .10000E-03    31.405        .93153E-06** at limit **
  24  Prefactor     .10000E-03    77.609        .10376E-05** at limit **
  25  Normalizat    .97414        .25111        .32124E-05    .59059E-04
  26  Prefactor     .72189        .29715        .38718E-05    .79145E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.8854
  Prefactor  = 0.0001
  Prefactor  = 5.17324
  Prefactor  = 0.000100103
  Prefactor  = 50.6057
  Prefactor  = 0.582732
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 40.2257
  Prefactor  = 0.0001
  Prefactor  = 27.042
  norm       = 0.0001
  norm       = 0.0001
  norm       = 18.314
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.974136
  Prefactor  = 0.721889
 **********
 **   18 **HESSE 
 **********

 FCN=   2397.761     FROM HESSE     STATUS=OK           458 CALLS     3566 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    65.658        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    15.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          10.885        8.6912        .97495E-04   -1.5048    
   4  Prefactor     .10000E-03    9.1589        .14440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1732        6.9928        .11406E-03   -1.5253    
   6  Prefactor     .10010E-03    9.7446        .31674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     50.606        30.669        .56378E-04   -1.4284    
   8  Prefactor     .58273        196.66        .46583E-02   -1.5555    
   9  Prefactor     .10000E-03    15.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.831        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.4621        .13039E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.9033        .81458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     40.226        79.858        .63270E-04   -1.4439    
  14  Prefactor     .10000E-03    109.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     27.042        28.045        .77046E-04   -1.4667    
  16  norm          .10000E-03    6.3842        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.000        .15861E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.314        9.6561        .93593E-04   -1.4852    
  19  norm          .10000E-03    9.7911        .14944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.7252        .92040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    63.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    305.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    31.442        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    77.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .97414        .29582        .22144E-03   -.93902    
  26  Prefactor     .72189        .35177        .30372E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63117e-10
Minuit parameter uncertainties:
  1  0.000161304
  2  2.32091e-05
  3  8.69217
  4  5.36786e-05
  5  6.99394
  6  0.00200715
  7  30.6782
  8  21.48
  9  1.55156e-05
  10  3.67247e-05
  11  1.25238e-05
  12  3.92969e-06
  13  80.0717
  14  0.000431709
  15  28.0582
  16  3.27663e-06
  17  1.25856e-06
  18  9.65694
  19  1.20296e-05
  20  1.82503e-05
  21  0.000375806
  22  0.00129292
  23  4.92844e-05
  24  0.000114407
  25  0.296317
  26  0.352864
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.552e-05  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:  7.219e-01  3.529e-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.741e-01  2.963e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937167/likelihoodResults_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.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): 102
logL (Free Index) = 2397.7610198
delta logL = -0.000303817328586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2397.76071614
delta logL = -1.61785465025e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8756       1.0000          .0000       10.000    
     3 'Normalizat'    .97413       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72189       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=   2397.761     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      233 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    165.20        .90712E-02** at limit **
   2  Index         1.8623        8.4908        .50000        .67847E-05
   3  Normalizat    .97414        .20601E-01    .45842E-01    .37903E-04
   4  Prefactor     .72189        .24765E-01    .68638E-01    .32758E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86228
  Normalizat = 0.974137
  Prefactor  = 0.721887
 **********
 **   18 **HESSE 
 **********

 FCN=   2397.761     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1566.5        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8623        9.0070        .50000       -.67839    
   3  Normalizat    .97414        .75198E-01    .22144E-03   -.93902    
   4  Prefactor     .72189        .90267E-01    .30373E-03   -1.0268    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.42146e-09
Minuit parameter uncertainties:
  1  0.00101634
  2  41.0316
  3  0.0752058
  4  0.0902853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937167': 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): 102
logL (Free Index) = 2397.76071612
delta logL = -1.3574208424e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.016e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.862e+00  4.103e+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:  7.219e-01  9.029e-02  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.741e-01  7.521e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/937167/cmap_HighResolution_370483201_370742401_4FGL_J1249.8+3707_daily_bin506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.92e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-06 06:45:17.977866', job_id='937167', GAL2='0.72', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1630935917.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='-1.36e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='506' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0025>
Subject: Job 937167: <4FGL_J1249.8+3707_daily_bin506> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin506> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:35:31 2021
Job was executed on host(s) <bullet0025>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:35:34 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:35:34 2021
Terminated at Mon Sep  6 06:45:18 2021
Results reported at Mon Sep  6 06:45:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin506 192.46 37.1306 370483201 370742401 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 :                                   559.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   584 sec.
    Turnaround time :                            587 sec.

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

