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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin600
RA = 192.46, Dec = 37.1306
tmin = 394848001, tmax = 395107201
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='937306', job_status='RUN', time_executed='2021-09-06 06:37:43.133158', time_epoch_executed='1630935463.13' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='600'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937306

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937306/ft1_4FGL_J1249.8+3707_daily_bin600.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937306/ft2_4FGL_J1249.8+3707_daily_bin600.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937306/ft1_4FGL_J1249.8+3707_daily_bin600.fits outfile=/scratch/kocevski/937306/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin600.fits ra=192.46 dec=37.1306 rad=12.0 tmin=394848001.0 tmax=395107201.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 5.32
user 5.05
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937306/ft1_filtered_4FGL_J1249.8+3707_daily_bin600.fits evtable="EVENTS" scfile=/scratch/kocevski/937306/ft2_4FGL_J1249.8+3707_daily_bin600.fits sctable="SC_DATA" expcube=/scratch/kocevski/937306/ltcube_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.fits outfile=/scratch/kocevski/937306/expmap_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.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/937306/ltcube_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.fits
.....................!
real 190.36
user 185.09
sys 4.54

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/937306/ft1_filtered_4FGL_J1249.8+3707_daily_bin600.fits scfile=/scratch/kocevski/937306/ft2_4FGL_J1249.8+3707_daily_bin600.fits outfile=/scratch/kocevski/937306/cmap_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.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.63
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937306/ft1_filtered_4FGL_J1249.8+3707_daily_bin600.fits scfile=/scratch/kocevski/937306/ft2_4FGL_J1249.8+3707_daily_bin600.fits outfile=/scratch/kocevski/937306/cmap_HighResolution_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.59
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.952       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6279       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.7655       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2662       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6587       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.6592       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.769       1.0000         .10000E-03   10000.    
    10 'Prefactor '    67.936       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8091       1.0000         .10000E-03   10000.    
    12 'norm      '    .10203E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10145E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.703       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    26.202       1.0000         .10000E-03   10000.    
    18 'norm      '    14.065       1.0000         .10000E-03   10000.    
    19 'norm      '    .10386E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.914       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10225E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3455       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .47122       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=   5455.755     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     3081 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.811        74.491       -.13639E-05   -.45841E-04
   2  Prefactor     1.4439        316.44        .26316E-05   -.31227E-06
   3  norm          5.3332        3.1855       -.23746E-07   -.69846E-05
   4  Prefactor     5.7661        6.8779        .25503E-07    .19170E-04
   5  Prefactor     1.2662        1.2938       -.27715E-07   -.43082E-04
   6  Prefactor     1.6588        1.5734       -.35425E-07   -.55719E-04
   7  Prefactor     .10000E-03    5.5984        .42786E-07** at limit **
   8  Prefactor     9.6577        20.624       -.19327E-06   -.14806E-04
   9  Prefactor     31.766        24.599       -.25294E-06   -.18405E-04
  10  Prefactor     67.901        59.787       -.40632E-06   -.23689E-04
  11  Prefactor     6.8091        6.4290       -.26963E-07   -.23609E-04
  12  norm          .10000E-03    1.4540       -.66810E-07** at limit **
  13  Prefactor     .10000E-03    41.191        .76598E-07** at limit **
  14  Prefactor     .10000E-03    17.340        .72772E-07** at limit **
  15  Prefactor     28.707        19.180       -.50188E-07   -.37274E-04
  16  norm          .10000E-03    2.4184        .11502E-06** at limit **
  17  norm          26.201        15.240       -.15348E-06   -.16219E-04
  18  norm          14.058        5.7758       -.65205E-07   -.93950E-04
  19  norm          .10000E-03    8.5190       -.26150E-06** at limit **
  20  Prefactor     .10000E-03    1.9892        .18363E-06** at limit **
  21  Prefactor     18.915        15.464       -.19029E-06   -.40285E-04
  22  Prefactor     .10000E-03    15.956        .46481E-07** at limit **
  23  Prefactor     .10000E-03    7.0692        .49624E-07** at limit **
  24  Prefactor     .10000E-03    94.961        .35324E-06** at limit **
  25  Normalizat    1.3453        .20480       -.25768E-05    .19878E-03
  26  Prefactor     .47162        .23259        .70825E-05    .56338E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.811
  Prefactor  = 1.44395
  norm       = 5.33319
  Prefactor  = 5.76606
  Prefactor  = 1.26617
  Prefactor  = 1.65875
  Prefactor  = 0.0001
  Prefactor  = 9.65774
  Prefactor  = 31.766
  Prefactor  = 67.9012
  Prefactor  = 6.80913
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 28.7075
  norm       = 0.0001
  norm       = 26.201
  norm       = 14.0576
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.9146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.3453
  Prefactor  = 0.471621
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.755     FROM HESSE     STATUS=OK           458 CALLS     3539 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.811        75.185        .61891E-04   -1.4414    
   2  Prefactor     1.4439        311.33        .33151E-03   -1.5468    
   3  norm          5.3332        3.1726        .96755E-04   -1.5246    
   4  Prefactor     5.7661        6.8515        .16727E-03   -1.5228    
   5  Prefactor     1.2662        1.3133        .81914E-04   -1.5483    
   6  Prefactor     1.6588        1.5914        .87489E-04   -1.5450    
   7  Prefactor     .10000E-03    5.6270        .17065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.6577        20.676        .12894E-03   -1.5086    
   9  Prefactor     31.766        24.610        .71089E-04   -1.4580    
  10  Prefactor     67.901        59.875        .24348E-03   -1.4058    
  11  Prefactor     6.8091        6.4235        .15376E-03   -1.5186    
  12  norm          .10000E-03    1.4563        .86966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    41.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.707        19.220        .74781E-04   -1.4636    
  16  norm          .10000E-03    2.4273        .11212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          26.201        15.250        .78260E-04   -1.4684    
  18  norm          14.058        5.7527        .10491E-03   -1.4958    
  19  norm          .10000E-03    8.5575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0155        .10158E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.915        15.477        .92094E-04   -1.4838    
  22  Prefactor     .10000E-03    15.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.0767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    95.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3453        .21105        .21210E-03   -.82224    
  26  Prefactor     .47162        .23469        .19760E-02   -1.1330    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33233e-10
Minuit parameter uncertainties:
  1  75.3566
  2  42.6299
  3  3.17266
  4  6.85244
  5  1.31329
  6  1.59147
  7  2.71042e-06
  8  20.6917
  9  24.6182
  10  59.9285
  11  6.42419
  12  1.16411e-06
  13  2.82903e-05
  14  5.44692e-06
  15  19.2238
  16  1.10067e-06
  17  15.2521
  18  5.75296
  19  1.30215e-05
  20  4.09863e-06
  21  15.4799
  22  1.53989e-06
  23  1.95707e-06
  24  1.40934e-05
  25  0.211182
  26  0.235168
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.177e+01  2.462e+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:  4.716e-01  2.352e-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.345e+00  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.99
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.90e-08 +/- 2.24e-08
Energy Flux (Fixed Index): 3.68e-05 +/- 2.85e-05

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

Saving results to:
/scratch/kocevski/937306/likelihoodResults_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.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) = 5455.40766454
delta logL = 0.347560755564

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5455.40246589
delta logL = 0.35275940045

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.061       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2522       1.0000          .0000       10.000    
     3 'Normalizat'    1.3197       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48591       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5455.402     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      307 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.071        25.391        .96966E-04    .39417E-03
   2  Index         2.2514        .66813        .37649E-02    .11839E-03
   3  Normalizat    1.3199        .20638        .21362E-03   -.53067E-03
   4  Prefactor     .48566        .23502        .38943E-03   -.10215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.0706
  Index      = 2.25143
  Normalizat = 1.31989
  Prefactor  = 0.48566
 **********
 **   18 **HESSE 
 **********

 FCN=   5455.402     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.071        21.640        .38787E-05   -1.4881    
   2  Index         2.2514        .56955        .15059E-03   -.58202    
   3  Normalizat    1.3199        .20535        .42725E-04   -.82975    
   4  Prefactor     .48566        .23449        .15577E-04   -1.1264    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.03078e-10
Minuit parameter uncertainties:
  1  21.65
  2  0.571327
  3  0.205477
  4  0.234956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937306': 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) = 5455.40246348
delta logL = 0.352761817087

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.707e+01  2.165e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.251e+00  5.713e-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:  4.857e-01  2.350e-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.320e+00  2.055e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.68
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.25 +/- 0.57
Photon Flux (Free Index): 5.55e-08 +/- 4.80e-08
Energy Flux (Free Index): 2.28e-05 +/- 1.75e-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/937306/cmap_HighResolution_394848001_395107201_4FGL_J1249.8+3707_daily_bin600.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.10e-03', comment='SUCCESS', photon_flux='2.90e-08', energy_flux2='2.28e-05', photon_flux_error='2.24e-08', dlogl='3.53e-01', energy_flux='3.68e-05', photon_flux2='5.55e-08', job_status='DONE', time_completed='2021-09-06 06:49:44.172001', photon_index_error2='0.57', photon_index2='2.25', ts='3.99', fit_tolerance='1e-08', GAL='0.47', photon_index_error='0.00', photon_flux_upper_limit='8.29e-08', energy_flux_error2='1.75e-05', EG='1.35', time_epoch_completed='1630936184.17', return_code='0', job_id='937306', GAL2='0.49', EG2='1.32', return_code2='0', energy_flux_error='2.85e-05', photon_flux_error2='4.80e-08', ts2='4.68', photon_index='1.78' WHERE bin_id='600' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:49:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 937306: <4FGL_J1249.8+3707_daily_bin600> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin600 192.46 37.1306 394848001 395107201 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 :                                   717.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             286.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            843 sec.

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

