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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin541
RA = 192.46, Dec = 37.1306
tmin = 379555201, tmax = 379814401
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='937217', job_status='RUN', time_executed='2021-09-06 06:37:44.026330', time_epoch_executed='1630935464.03' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937217

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937217/ft1_4FGL_J1249.8+3707_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937217/ft2_4FGL_J1249.8+3707_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937217/ft1_4FGL_J1249.8+3707_daily_bin541.fits outfile=/scratch/kocevski/937217/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin541.fits ra=192.46 dec=37.1306 rad=12.0 tmin=379555201.0 tmax=379814401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.44
user 3.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937217/ft2_4FGL_J1249.8+3707_daily_bin541.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/937217/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin541.fits evtable="EVENTS" outfile="/scratch/kocevski/937217/ft1_filtered_4FGL_J1249.8+3707_daily_bin541.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/937217/ft1_filtered_4FGL_J1249.8+3707_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/937217/ft2_4FGL_J1249.8+3707_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/937217/ltcube_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.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/937217/ft2_4FGL_J1249.8+3707_daily_bin541.fits
.....................!
real 11.57
user 11.20
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937217/ft1_filtered_4FGL_J1249.8+3707_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/937217/ft2_4FGL_J1249.8+3707_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/937217/ltcube_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.fits outfile=/scratch/kocevski/937217/expmap_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.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/937217/ltcube_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.fits
.....................!
real 191.22
user 185.40
sys 5.43

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/937217/ft1_filtered_4FGL_J1249.8+3707_daily_bin541.fits scfile=/scratch/kocevski/937217/ft2_4FGL_J1249.8+3707_daily_bin541.fits outfile=/scratch/kocevski/937217/cmap_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937217/ft1_filtered_4FGL_J1249.8+3707_daily_bin541.fits scfile=/scratch/kocevski/937217/ft2_4FGL_J1249.8+3707_daily_bin541.fits outfile=/scratch/kocevski/937217/cmap_HighResolution_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.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.62
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.2768       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7973       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1407       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.2227       1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.470       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .65815       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.643       1.0000         .10000E-03   10000.    
    16 'norm      '    .13876E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.7640       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .14088E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    38.934       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95731       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2796       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=   6972.244     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3060 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.124       -.46979E-05** at limit **
   2  Prefactor     .10000E-03    14.101       -.63445E-05** at limit **
   3  norm          3.2768        2.0999        .17540E-07    .15392E-03
   4  Prefactor     .10000E-03    4.7586       -.54420E-05** at limit **
   5  Prefactor     2.7972        1.8318       -.17111E-07    .14778E-03
   6  Prefactor     2.1406        1.6885       -.59237E-07   -.88711E-04
   7  Prefactor     5.2227        6.0481       -.81526E-07    .14156E-05
   8  Prefactor     22.471        22.520       -.79945E-06   -.11271E-04
   9  Prefactor     .10000E-03    8.8160        .43619E-05** at limit **
  10  Prefactor     .10000E-03    18.036        .12378E-05** at limit **
  11  Prefactor     .10000E-03    2.0365        .12982E-06** at limit **
  12  norm          .10000E-03    1.5124        .11940E-07** at limit **
  13  Prefactor     .10000E-03    21.230        .12235E-04** at limit **
  14  Prefactor     .63221        10.439       -.17179E-05    .23230E-03
  15  Prefactor     18.623        17.512       -.75277E-05   -.23555E-03
  16  norm          .10000E-03    4.7320        .52002E-05** at limit **
  17  norm          .10000E-03    4.9310        .27675E-05** at limit **
  18  norm          2.7633        2.6325        .95254E-07    .14072E-03
  19  norm          .10000E-03    5.7619       -.20581E-06** at limit **
  20  Prefactor     .10000E-03    1.5885        .33702E-06** at limit **
  21  Prefactor     .10000E-03    6.0537       -.38694E-05** at limit **
  22  Prefactor     .10000E-03    29.254        .69502E-05** at limit **
  23  Prefactor     .10000E-03    32.018       -.12003E-04** at limit **
  24  Prefactor     38.936        65.036        .30660E-05   -.23478E-05
  25  Normalizat    .95728        .16064        .14975E-05    .68148E-04
  26  Prefactor     1.2796        .19907        .68564E-07    .11009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.27684
  Prefactor  = 0.0001
  Prefactor  = 2.79725
  Prefactor  = 2.14064
  Prefactor  = 5.22266
  Prefactor  = 22.4708
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.632205
  Prefactor  = 18.623
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.76335
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 38.9364
  Normalizat = 0.957279
  Prefactor  = 1.27965
 **********
 **   18 **HESSE 
 **********

 FCN=   6972.244     FROM HESSE     STATUS=OK           456 CALLS     3516 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    16.123        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.148        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.2768        2.1007        .93175E-04   -1.5346    
   4  Prefactor     .10000E-03    4.7825        .17753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.7972        1.8328        .87998E-04   -1.5373    
   6  Prefactor     2.1406        1.6827        .92928E-04   -1.5415    
   7  Prefactor     5.2227        6.0439        .17589E-03   -1.5251    
   8  Prefactor     22.471        22.543        .84499E-04   -1.4760    
   9  Prefactor     .10000E-03    8.8460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.0490        .11635E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.5209        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    21.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .63221        68.043        .50544E-02   -1.5549    
  15  Prefactor     18.623        17.691        .92760E-04   -1.4845    
  16  norm          .10000E-03    5.0047        .35646E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.9358        .18099E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.7633        2.5792        .12379E-03   -1.5375    
  19  norm          .10000E-03    5.8412        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1470        .20117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    29.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    32.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     38.936        65.113        .64236E-04   -1.4459    
  25  Normalizat    .95728        .18998        .24544E-03   -.94476    
  26  Prefactor     1.2796        .23642        .27515E-03   -.83914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45792e-09
Minuit parameter uncertainties:
  1  4.15337e-06
  2  2.53536e-06
  3  2.10079
  4  3e-06
  5  1.83283
  6  1.68271
  7  6.04463
  8  22.5513
  9  1.00494e-05
  10  6.7945e-07
  11  2.03191e-05
  12  4.44621e-06
  13  1.29045e-05
  14  13.1318
  15  17.6959
  16  9.99967e-05
  17  3.09047e-06
  18  2.5793
  19  2.32618e-06
  20  5.71741e-05
  21  4.12081e-06
  22  1.62658e-08
  23  8.11596e-05
  24  65.2326
  25  0.190116
  26  0.236616
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.005e-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:  1.280e+00  2.366e-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.573e-01  1.901e-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: 3.09e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937217/likelihoodResults_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.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) = 6972.24457119
delta logL = -0.000538069568393

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6972.24403313
delta logL = -2.80670064967e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7731       1.0000          .0000       10.000    
     3 'Normalizat'    .95726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2797       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=   6972.244     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    65.703        .90712E-02** at limit **
   2  Index         1.7662        7.3422        .50000        .56270E-05
   3  Normalizat    .95728        .10834E-01    .45629E-01    .17348E-04
   4  Prefactor     1.2796        .13861E-01    .62211E-01    .96735E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76618
  Normalizat = 0.95728
  Prefactor  = 1.27965
 **********
 **   18 **HESSE 
 **********

 FCN=   6972.244     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7662        5.4173        .50000       -.70333    
   3  Normalizat    .95728        .18386        .24544E-03   -.94476    
   4  Prefactor     1.2796        .23512        .27515E-03   -.83914    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17393e-10
Minuit parameter uncertainties:
  1  1.43573e-06
  2  7.38971
  3  0.183977
  4  0.235311
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937217': 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) = 6972.2440331
delta logL = 2.11766746361e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.436e-06  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.766e+00  7.390e+00  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.280e+00  2.353e-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.573e-01  1.840e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/937217/cmap_HighResolution_379555201_379814401_4FGL_J1249.8+3707_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-03', job_status='DONE', photon_flux_upper_limit='3.09e-08', time_completed='2021-09-06 06:51:05.916025', job_id='937217', GAL2='1.28', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630936265.92', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='2.12e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='541' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 937217: <4FGL_J1249.8+3707_daily_bin541> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin541 192.46 37.1306 379555201 379814401 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 :                                   798.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

