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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin933
RA = 192.46, Dec = 37.1306
tmin = 481161601, tmax = 481420801
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='938927', job_status='RUN', time_executed='2021-09-06 06:42:51.163159', time_epoch_executed='1630935771.16' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938927

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938927/ft1_4FGL_J1249.8+3707_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938927/ft2_4FGL_J1249.8+3707_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938927/ft1_4FGL_J1249.8+3707_daily_bin933.fits outfile=/scratch/kocevski/938927/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin933.fits ra=192.46 dec=37.1306 rad=12.0 tmin=481161601.0 tmax=481420801.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.71
user 3.44
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938927/ft2_4FGL_J1249.8+3707_daily_bin933.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/938927/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin933.fits evtable="EVENTS" outfile="/scratch/kocevski/938927/ft1_filtered_4FGL_J1249.8+3707_daily_bin933.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/938927/ft1_filtered_4FGL_J1249.8+3707_daily_bin933.fits" evtable="EVENTS" scfile=/scratch/kocevski/938927/ft2_4FGL_J1249.8+3707_daily_bin933.fits sctable="SC_DATA" outfile=/scratch/kocevski/938927/ltcube_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.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/938927/ft2_4FGL_J1249.8+3707_daily_bin933.fits
.....................!
real 11.86
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938927/ft1_filtered_4FGL_J1249.8+3707_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/938927/ft2_4FGL_J1249.8+3707_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/938927/ltcube_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.fits outfile=/scratch/kocevski/938927/expmap_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.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/938927/ltcube_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.fits
.....................!
real 190.86
user 185.18
sys 5.31

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/938927/ft1_filtered_4FGL_J1249.8+3707_daily_bin933.fits scfile=/scratch/kocevski/938927/ft2_4FGL_J1249.8+3707_daily_bin933.fits outfile=/scratch/kocevski/938927/cmap_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938927/ft1_filtered_4FGL_J1249.8+3707_daily_bin933.fits scfile=/scratch/kocevski/938927/ft2_4FGL_J1249.8+3707_daily_bin933.fits outfile=/scratch/kocevski/938927/cmap_HighResolution_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.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.57
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .15701E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.721       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.1781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4941       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .78909       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.0664       1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    11.258       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3767       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9755       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11237E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.003       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.0020       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95102       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .75207       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=   5082.796     FROM MIGRAD    STATUS=CONVERGED    640 CALLS     2682 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    141.27        .56522E-04** at limit **
   2  Prefactor     .10000E-03    8.9773        .46238E-07** at limit **
   3  norm          20.721        4.6883       -.51524E-07    .69485E-04
   4  Prefactor     2.1790        6.7193       -.20436E-05   -.51113E-03
   5  Prefactor     .10000E-03    1.4132        .11187E-07** at limit **
   6  Prefactor     2.4940        2.0919       -.46655E-07   -.15687E-03
   7  Prefactor     .10000E-03    2.9690        .35533E-07** at limit **
   8  Prefactor     .71746        21.954       -.25693E-06   -.18751E-03
   9  Prefactor     .10000E-03    10.071       -.31209E-06** at limit **
  10  Prefactor     .10000E-03    31.993       -.18692E-04** at limit **
  11  Prefactor     5.0655        4.8084       -.72678E-06    .13813E-03
  12  norm          .10000E-03    2.4875       -.10807E-07** at limit **
  13  Prefactor     .10000E-03    36.007        .44916E-04** at limit **
  14  Prefactor     .10000E-03    40.582       -.28425E-04** at limit **
  15  Prefactor     .10000E-03    12.794        .24890E-06** at limit **
  16  norm          .10000E-03    6.2008        .24315E-06** at limit **
  17  norm          11.258        11.209        .12424E-05   -.60239E-04
  18  norm          4.3777        8.1662        .44520E-05    .14750E-03
  19  norm          2.9699        15.647       -.93161E-05   -.30337E-03
  20  Prefactor     .10000E-03    2.4641        .93845E-06** at limit **
  21  Prefactor     15.982        14.670       -.10597E-05   -.10868E-03
  22  Prefactor     5.8199        95.114       -.34097E-04   -.27628E-04
  23  Prefactor     .10000E-03    6.6413       -.54169E-08** at limit **
  24  Prefactor     .10000E-03    100.20       -.57484E-05** at limit **
  25  Normalizat    .95087        .16738       -.39802E-07   -.42410E-04
  26  Prefactor     .75211        .19759        .13491E-05   -.11765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  norm       = 20.721
  Prefactor  = 2.17903
  Prefactor  = 0.0001
  Prefactor  = 2.49404
  Prefactor  = 0.0001
  Prefactor  = 0.717456
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.06547
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 11.2582
  norm       = 4.37766
  norm       = 2.96995
  Prefactor  = 0.000100002
  Prefactor  = 15.9824
  Prefactor  = 5.81992
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.95087
  Prefactor  = 0.752113
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.796     FROM HESSE     STATUS=OK           458 CALLS     3140 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    143.40        .40869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.9803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.721        4.6701        .70136E-04   -1.4797    
   4  Prefactor     2.1790        6.7331        .27896E-03   -1.5413    
   5  Prefactor     .10000E-03    1.4425        .16493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.4940        2.0853        .90600E-04   -1.5392    
   7  Prefactor     .10000E-03    2.9722        .11997E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .71746        197.57        .63432E-02   -1.5539    
   9  Prefactor     .10000E-03    10.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.0655        4.8080        .14753E-03   -1.5258    
  12  norm          .10000E-03    2.5080        .10970E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    35.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    12.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.4299        .34617E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          11.258        11.207        .11940E-03   -1.5037    
  18  norm          4.3777        7.8724        .13762E-03   -1.5289    
  19  norm          2.9699        14.727        .23537E-03   -1.5363    
  20  Prefactor     .10000E-03    4.0807        .20546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     15.982        14.326        .10012E-03   -1.4908    
  22  Prefactor     5.8199        94.262        .16390E-03   -1.5225    
  23  Prefactor     .10000E-03    6.6514        .17944E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    100.42        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95087        .20093        .21559E-03   -.94695    
  26  Prefactor     .75211        .23618        .28806E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01748e-09
Minuit parameter uncertainties:
  1  0.00216074
  2  1.75498e-06
  3  4.67022
  4  6.73539
  5  9.5287e-07
  6  2.08533
  7  7.0092e-07
  8  23.8901
  9  4.00696e-06
  10  9.96781e-06
  11  4.80837
  12  3.01955e-07
  13  6.09117e-05
  14  4.90956e-05
  15  2.0772e-05
  16  3.08621e-05
  17  11.2087
  18  7.87422
  19  13.2321
  20  0.000163567
  21  14.3287
  22  46.9316
  23  1.18087e-06
  24  8.73502e-05
  25  0.201087
  26  0.2365
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.007e-06  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.521e-01  2.365e-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.509e-01  2.011e-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.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938927/likelihoodResults_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.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) = 5082.79598483
delta logL = -0.000470890554425

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5082.79551393
delta logL = 4.01996658184e-09

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.7688       1.0000          .0000       10.000    
     3 'Normalizat'    .95091       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75208       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=   5082.796     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      204 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.0346        .90712E-02** at limit **
   2  Index         1.7580        8.3250        .50000        .75649E-05
   3  Normalizat    .95087        .28424E-02    .45549E-01    .72914E-04
   4  Prefactor     .75212        .34327E-02    .65114E-01    .71416E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.75802
  Normalizat = 0.950869
  Prefactor  = 0.752115
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.796     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      237 TOTAL
                     EDM=   .65E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    51.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7580        9.0517        .50000       -.70548    
   3  Normalizat    .95087        .91578E-02    .21559E-03   -.94695    
   4  Prefactor     .75212        .11048E-01    .28806E-03   -1.0152    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.48265e-08
Minuit parameter uncertainties:
  1  0.000309612
  2  135.736
  3  0.00915786
  4  0.0110478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938927': 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) = 5082.79551389
delta logL = 4.60240698885e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.096e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.758e+00  1.357e+02  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.521e-01  1.105e-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.509e-01  9.158e-03  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/938927/cmap_HighResolution_481161601_481420801_4FGL_J1249.8+3707_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-03', job_status='DONE', photon_flux_upper_limit='3.51e-08', time_completed='2021-09-06 06:54:08.888141', job_id='938927', GAL2='0.75', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630936448.89', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='4.60e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='933' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 938927: <4FGL_J1249.8+3707_daily_bin933> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin933> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:43 2021
Job was executed on host(s) <bullet0244>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:45 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:40:45 2021
Terminated at Mon Sep  6 06:54:09 2021
Results reported at Mon Sep  6 06:54:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin933 192.46 37.1306 481161601 481420801 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 :                                   674.46 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   804 sec.
    Turnaround time :                            806 sec.

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

