/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 191 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 = 7382
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin230
RA = 192.46, Dec = 37.1306
tmin = 298944001, tmax = 299203201
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='935662', job_status='RUN', time_executed='2021-09-06 06:34:02.981369', time_epoch_executed='1630935242.98' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='230'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935662

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935662/ft1_4FGL_J1249.8+3707_daily_bin230.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935662/ft2_4FGL_J1249.8+3707_daily_bin230.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935662/ft1_4FGL_J1249.8+3707_daily_bin230.fits outfile=/scratch/kocevski/935662/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin230.fits ra=192.46 dec=37.1306 rad=12.0 tmin=298944001.0 tmax=299203201.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.43
user 3.19
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935662/ft2_4FGL_J1249.8+3707_daily_bin230.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/935662/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin230.fits evtable="EVENTS" outfile="/scratch/kocevski/935662/ft1_filtered_4FGL_J1249.8+3707_daily_bin230.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935662/ft1_filtered_4FGL_J1249.8+3707_daily_bin230.fits evtable="EVENTS" scfile=/scratch/kocevski/935662/ft2_4FGL_J1249.8+3707_daily_bin230.fits sctable="SC_DATA" expcube=/scratch/kocevski/935662/ltcube_298944001_299203201_4FGL_J1249.8+3707_daily_bin230.fits outfile=/scratch/kocevski/935662/expmap_298944001_299203201_4FGL_J1249.8+3707_daily_bin230.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/935662/ltcube_298944001_299203201_4FGL_J1249.8+3707_daily_bin230.fits
.....................!
real 191.73
user 187.30
sys 4.09

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/935662/ft1_filtered_4FGL_J1249.8+3707_daily_bin230.fits scfile=/scratch/kocevski/935662/ft2_4FGL_J1249.8+3707_daily_bin230.fits outfile=/scratch/kocevski/935662/cmap_298944001_299203201_4FGL_J1249.8+3707_daily_bin230.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.54
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    14.414       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5111       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.8501       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7326       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.6957       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.155       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.497       1.0000         .10000E-03   10000.    
    12 'norm      '    4.9863       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10662E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8550       1.0000         .10000E-03   10000.    
    17 'norm      '    24.309       1.0000         .10000E-03   10000.    
    18 'norm      '    .16622E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17120E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    21.991       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1750       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .71109       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=   6131.202     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     3125 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.180       -.23262E-05** at limit **
   2  Prefactor     14.386        34.398        .19943E-06   -.13662E-04
   3  norm          5.5113        3.3390        .30515E-08   -.22438E-04
   4  Prefactor     .10000E-03    10.206        .54240E-06** at limit **
   5  Prefactor     3.8502        2.8420        .19076E-08   -.67920E-04
   6  Prefactor     2.7327        2.1091       -.28259E-07   -.64073E-04
   7  Prefactor     4.6958        6.2592        .14621E-05   -.59920E-03
   8  Prefactor     .10000E-03    11.266       -.70525E-06** at limit **
   9  Prefactor     16.155        14.848        .23200E-07    .55608E-05
  10  Prefactor     .10000E-03    17.321        .97067E-06** at limit **
  11  Prefactor     12.497        6.2216        .19264E-07    .70299E-04
  12  norm          4.9852        3.5783       -.13502E-07    .68244E-05
  13  Prefactor     .10000E-03    241.58       -.38862E-07** at limit **
  14  Prefactor     .10000E-03    9.7265        .77660E-06** at limit **
  15  Prefactor     .10000E-03    7.7841        .56380E-07** at limit **
  16  norm          1.8546        2.9150        .12692E-08    .34082E-04
  17  norm          24.307        18.390        .12366E-05    .21938E-03
  18  norm          .10000E-03    2.0832        .85165E-07** at limit **
  19  norm          .10000E-03    2.8178        .17974E-07** at limit **
  20  Prefactor     .10000E-03    1.8465       -.33173E-06** at limit **
  21  Prefactor     21.976        15.673        .71942E-06    .53696E-03
  22  Prefactor     .10000E-03    25.040        .17513E-05** at limit **
  23  Prefactor     .10000E-03    9.4416        .29042E-07** at limit **
  24  Prefactor     .10000E-03    14.353       -.42069E-06** at limit **
  25  Normalizat    1.1750        .16541       -.53513E-06    .13496E-03
  26  Prefactor     .71108        .20090       -.10767E-06    .39177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 14.3859
  norm       = 5.51126
  Prefactor  = 0.0001
  Prefactor  = 3.85024
  Prefactor  = 2.73269
  Prefactor  = 4.6958
  Prefactor  = 0.0001
  Prefactor  = 16.155
  Prefactor  = 0.0001
  Prefactor  = 12.4969
  norm       = 4.98517
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.8546
  norm       = 24.307
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 21.9756
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17499
  Prefactor  = 0.711084
 **********
 **   18 **HESSE 
 **********

 FCN=   6131.202     FROM HESSE     STATUS=OK           454 CALLS     3579 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.386        34.401        .10550E-03   -1.4949    
   3  norm          5.5113        3.3623        .98035E-04   -1.5238    
   4  Prefactor     .10000E-03    10.665        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.8502        2.8568        .99713E-04   -1.5316    
   6  Prefactor     2.7327        2.1039        .95415E-04   -1.5377    
   7  Prefactor     4.6958        7.0799        .92852E-03   -1.5275    
   8  Prefactor     .10000E-03    11.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     16.155        14.849        .99648E-04   -1.4904    
  10  Prefactor     .10000E-03    17.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.497        6.2200        .11331E-03   -1.5001    
  12  norm          4.9852        3.5688        .12119E-03   -1.5261    
  13  Prefactor     .10000E-03    245.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.7898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.8071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8546        2.8798        .16202E-03   -1.5436    
  17  norm          24.307        18.657        .81244E-04   -1.4722    
  18  norm          .10000E-03    5.6261        .21404E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8414        .12814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.2946        .18488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     21.976        15.250        .85413E-04   -1.4770    
  22  Prefactor     .10000E-03    25.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.4845        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    14.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1750        .18821        .21055E-03   -.87379    
  26  Prefactor     .71108        .22905        .32656E-03   -1.0309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.27764e-10
Minuit parameter uncertainties:
  1  0.000294467
  2  34.4484
  3  3.36242
  4  5.06466e-05
  5  2.85689
  6  2.10398
  7  7.08113
  8  5.8766e-05
  9  14.8526
  10  0.000109106
  11  6.22033
  12  3.569
  13  0.000829818
  14  6.4847e-05
  15  6.77139e-06
  16  2.88006
  17  18.6613
  18  6.90767e-05
  19  3.35132e-06
  20  0.000152712
  21  15.2529
  22  0.000224436
  23  1.33674e-06
  24  4.13296e-05
  25  0.188317
  26  0.229357
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.616e+01  1.485e+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:  7.111e-01  2.294e-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.175e+00  1.883e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.07
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 1.47e-08 +/- 1.35e-08
Energy Flux (Fixed Index): 1.87e-05 +/- 1.72e-05

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) = 6130.84637681
delta logL = 0.355782380366

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6130.84612784
delta logL = 0.356031348258

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.179       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3476       1.0000          .0000       10.000    
     3 'Normalizat'    1.1786       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71077       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=   6130.846     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      273 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.157        1091.9        .20800E-02   -.38807E-05
   2  Index         1.3470        5.8548        .18016        .40913E-04
   3  Normalizat    1.1786        .15042        .35440E-01   -.22512E-05
   4  Prefactor     .71079        .15045        .73804E-01    .21528E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.157
  Index      = 1.34698
  Normalizat = 1.17857
  Prefactor  = 0.710793
 **********
 **   18 **HESSE 
 **********

 FCN=   6130.846     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.157        21.713        .83199E-04   -1.4745    
   2  Index         1.3470        .51197        .97585E-02   -.81921    
   3  Normalizat    1.1786        .18358        .21028E-03   -.87268    
   4  Prefactor     .71079        .22783        .32667E-03   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31047e-12
Minuit parameter uncertainties:
  1  21.7205
  2  0.513906
  3  0.183682
  4  0.228134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935662': 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) = 6130.84612653
delta logL = 0.356032664502

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.316e+01  2.172e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.347e+00  5.139e-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.108e-01  2.281e-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.179e+00  1.837e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.78
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.35 +/- 0.51
Photon Flux (Free Index): 8.76e-09 +/- 1.03e-08
Energy Flux (Free Index): 4.61e-05 +/- 6.22e-05

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/935662/cmap_HighResolution_298944001_299203201_4FGL_J1249.8+3707_daily_bin230.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.47e-08', energy_flux2='4.61e-05', photon_flux_error='1.35e-08', dlogl='3.56e-01', energy_flux='1.87e-05', photon_flux2='8.76e-09', job_status='DONE', time_completed='2021-09-06 06:45:33.894464', photon_index_error2='0.51', photon_index2='1.35', ts='7.07', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='6.22e-05', EG='1.17', time_epoch_completed='1630935933.89', return_code='0', job_id='935662', GAL2='0.71', EG2='1.18', return_code2='0', energy_flux_error='1.72e-05', photon_flux_error2='1.03e-08', ts2='7.78', photon_index='1.78' WHERE bin_id='230' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 935662: <4FGL_J1249.8+3707_daily_bin230> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin230 192.46 37.1306 298944001 299203201 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 :                                   689.49 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            892 sec.

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

