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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin571
RA = 192.46, Dec = 37.1306
tmin = 387331201, tmax = 387590401
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='937262', job_status='RUN', time_executed='2021-09-06 06:38:49.660267', time_epoch_executed='1630935529.66' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937262

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937262/ft1_4FGL_J1249.8+3707_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937262/ft2_4FGL_J1249.8+3707_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937262/ft1_4FGL_J1249.8+3707_daily_bin571.fits outfile=/scratch/kocevski/937262/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin571.fits ra=192.46 dec=37.1306 rad=12.0 tmin=387331201.0 tmax=387590401.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 4.43
user 4.17
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937262/ft1_filtered_4FGL_J1249.8+3707_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/937262/ft2_4FGL_J1249.8+3707_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/937262/ltcube_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.fits outfile=/scratch/kocevski/937262/expmap_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.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/937262/ltcube_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.fits
.....................!
real 189.36
user 184.91
sys 4.10

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/937262/ft1_filtered_4FGL_J1249.8+3707_daily_bin571.fits scfile=/scratch/kocevski/937262/ft2_4FGL_J1249.8+3707_daily_bin571.fits outfile=/scratch/kocevski/937262/cmap_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937262/ft1_filtered_4FGL_J1249.8+3707_daily_bin571.fits scfile=/scratch/kocevski/937262/ft2_4FGL_J1249.8+3707_daily_bin571.fits outfile=/scratch/kocevski/937262/cmap_HighResolution_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.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.58
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.9026       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8397       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .93922       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2553       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.7469       1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.445       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.2215       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .15829E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .19090       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.794       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.1897       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1307       1.0000         .10000E-03   10000.    
    16 'norm      '    5.3131       1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .14246E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.5488       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .55443       1.0000         .10000E-03   10000.    
    24 'Prefactor '    41.186       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0384       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .89371       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=   5862.321     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3139 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.651       -.69490E-05** at limit **
   2  Prefactor     8.9020        27.140       -.12367E-05    .23659E-04
   3  norm          6.8397        3.4711       -.84404E-06    .30102E-03
   4  Prefactor     .94258        5.4854       -.93740E-06   -.28623E-04
   5  Prefactor     2.2552        2.7232        .75843E-06   -.46731E-03
   6  Prefactor     8.7469        2.8831        .78589E-07   -.42436E-04
   7  Prefactor     11.445        9.6215       -.55642E-07   -.44806E-04
   8  Prefactor     .10000E-03    19.104        .58211E-05** at limit **
   9  Prefactor     9.2306        18.663        .81402E-05    .31132E-04
  10  Prefactor     .10000E-03    29.408       -.76192E-05** at limit **
  11  Prefactor     .10001E-03    4.3700       -.16542E-05** at limit **
  12  norm          .19459        2.5714        .25241E-05   -.97202E-03
  13  Prefactor     30.791        41.956       -.45671E-05    .45556E-04
  14  Prefactor     5.1735        19.227       -.20474E-04   -.26485E-03
  15  Prefactor     7.1375        13.852        .19013E-05    .61289E-04
  16  norm          5.3133        4.0393        .20668E-05   -.35574E-03
  17  norm          .10000E-03    4.5063       -.19198E-05** at limit **
  18  norm          .10000E-03    1.4188        .71678E-06** at limit **
  19  norm          .10000E-03    3.4871       -.91229E-07** at limit **
  20  Prefactor     2.5493        2.5902       -.26622E-06   -.83754E-03
  21  Prefactor     .10000E-03    4.3887        .21601E-05** at limit **
  22  Prefactor     .10000E-03    26.246        .81353E-05** at limit **
  23  Prefactor     .56074        8.4358        .99420E-07   -.28403E-03
  24  Prefactor     41.182        71.537       -.56734E-05    .19357E-04
  25  Normalizat    1.0385        .16853        .22180E-05   -.37782E-03
  26  Prefactor     .89352        .20380       -.14445E-05   -.56899E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.90205
  norm       = 6.8397
  Prefactor  = 0.942582
  Prefactor  = 2.25524
  Prefactor  = 8.74686
  Prefactor  = 11.4454
  Prefactor  = 0.0001
  Prefactor  = 9.23058
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.194587
  Prefactor  = 30.791
  Prefactor  = 5.17351
  Prefactor  = 7.13752
  norm       = 5.31328
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.54934
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.560744
  Prefactor  = 41.1821
  Normalizat = 1.03855
  Prefactor  = 0.893516
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.321     FROM HESSE     STATUS=OK           468 CALLS     3607 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.597        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.9020        27.026        .13433E-03   -1.5111    
   3  norm          6.8397        3.4683        .88190E-04   -1.5185    
   4  Prefactor     .94258        23.062        .32732E-02   -1.5514    
   5  Prefactor     2.2552        2.7052        .12025E-03   -1.5408    
   6  Prefactor     8.7469        2.8821        .70946E-04   -1.5116    
   7  Prefactor     11.445        9.6196        .11842E-03   -1.5031    
   8  Prefactor     .10000E-03    19.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.2306        18.236        .13198E-03   -1.5100    
  10  Prefactor     .10000E-03    29.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    9.1090        .29027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .19459        16.179        .21360E-02   -1.5620    
  13  Prefactor     30.791        41.955        .72203E-04   -1.4598    
  14  Prefactor     5.1735        19.424        .17646E-03   -1.5253    
  15  Prefactor     7.1375        13.393        .15022E-03   -1.5174    
  16  norm          5.3133        4.0213        .12591E-03   -1.5247    
  17  norm          .10000E-03    4.5020        .15864E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.340        .17286E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.5374        .13934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     2.5493        2.5694        .11785E-03   -1.5389    
  21  Prefactor     .10000E-03    4.3969        .15651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    26.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .56074        68.439        .43033E-02   -1.5558    
  24  Prefactor     41.182        71.724        .62462E-04   -1.4424    
  25  Normalizat    1.0385        .19707        .22064E-03   -.91750    
  26  Prefactor     .89352        .24018        .29695E-03   -.96368    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1952e-08
Minuit parameter uncertainties:
  1  0.000146604
  2  27.063
  3  3.46836
  4  9.32838
  5  2.70539
  6  2.88213
  7  9.62093
  8  0.000165092
  9  18.2469
  10  0.000241483
  11  0.000577968
  12  3.54874
  13  41.9953
  14  19.4477
  15  13.3988
  16  4.02147
  17  2.5137e-05
  18  0.00019904
  19  4.3882e-06
  20  2.56949
  21  2.17876e-05
  22  0.000232033
  23  12.4032
  24  71.8748
  25  0.197212
  26  0.240461
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.231e+00  1.825e+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:  8.935e-01  2.405e-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.039e+00  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937262/likelihoodResults_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.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) = 5862.02035829
delta logL = 0.300898819713

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5862.01425521
delta logL = 0.307001901671

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4094       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4167       1.0000          .0000       10.000    
     3 'Normalizat'    1.0260       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89703       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=   5862.014     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      249 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4020        174.42        .47947E-02    .59745E-03
   2  Index         2.4173        3.2430        .94258E-01    .23500E-03
   3  Normalizat    1.0260        .58043E-01    .42583E-01   -.32939E-04
   4  Prefactor     .89699        .66475E-01    .66969E-01   -.96909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.40202
  Index      = 2.41734
  Normalizat = 1.02604
  Prefactor  = 0.896992
 **********
 **   18 **HESSE 
 **********

 FCN=   5862.014     FROM HESSE     STATUS=OK            33 CALLS      282 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4020        15.574        .18242E-03   -1.5288    
   2  Index         2.4173        1.2638        .59021E-02   -.54280    
   3  Normalizat    1.0260        .18902        .22178E-03   -.92163    
   4  Prefactor     .89699        .23686        .29624E-03   -.96246    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73074e-10
Minuit parameter uncertainties:
  1  15.5883
  2  1.28291
  3  0.189147
  4  0.237127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937262': 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) = 5862.01425487
delta logL = 0.307002243133

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.402e+00  1.559e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.417e+00  1.283e+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:  8.970e-01  2.371e-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.026e+00  1.891e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
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/937262/cmap_HighResolution_387331201_387590401_4FGL_J1249.8+3707_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.80e-03', job_status='DONE', photon_flux_upper_limit='5.16e-08', time_completed='2021-09-06 06:51:27.642468', job_id='937262', GAL2='0.90', fit_tolerance='1e-08', EG2='1.03', EG='1.04', time_epoch_completed='1630936287.64', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='3.07e-01', ts2='0.93', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='571' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 937262: <4FGL_J1249.8+3707_daily_bin571> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin571 192.46 37.1306 387331201 387590401 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 :                                   755.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   948 sec.
    Turnaround time :                            950 sec.

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

