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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin423
RA = 192.46, Dec = 37.1306
tmin = 348969601, tmax = 349228801
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='935918', job_status='RUN', time_executed='2021-09-06 06:33:34.788033', time_epoch_executed='1630935214.79' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='423'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935918

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935918/ft1_4FGL_J1249.8+3707_daily_bin423.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935918/ft2_4FGL_J1249.8+3707_daily_bin423.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935918/ft1_4FGL_J1249.8+3707_daily_bin423.fits outfile=/scratch/kocevski/935918/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin423.fits ra=192.46 dec=37.1306 rad=12.0 tmin=348969601.0 tmax=349228801.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.74
user 3.51
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935918/ft2_4FGL_J1249.8+3707_daily_bin423.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/935918/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin423.fits evtable="EVENTS" outfile="/scratch/kocevski/935918/ft1_filtered_4FGL_J1249.8+3707_daily_bin423.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/935918/ft1_filtered_4FGL_J1249.8+3707_daily_bin423.fits" evtable="EVENTS" scfile=/scratch/kocevski/935918/ft2_4FGL_J1249.8+3707_daily_bin423.fits sctable="SC_DATA" outfile=/scratch/kocevski/935918/ltcube_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.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/935918/ft2_4FGL_J1249.8+3707_daily_bin423.fits
.....................!
real 11.77
user 11.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935918/ft1_filtered_4FGL_J1249.8+3707_daily_bin423.fits evtable="EVENTS" scfile=/scratch/kocevski/935918/ft2_4FGL_J1249.8+3707_daily_bin423.fits sctable="SC_DATA" expcube=/scratch/kocevski/935918/ltcube_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.fits outfile=/scratch/kocevski/935918/expmap_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.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/935918/ltcube_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.fits
.....................!
real 191.20
user 185.65
sys 5.21

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/935918/ft1_filtered_4FGL_J1249.8+3707_daily_bin423.fits scfile=/scratch/kocevski/935918/ft2_4FGL_J1249.8+3707_daily_bin423.fits outfile=/scratch/kocevski/935918/cmap_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.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.86
user 0.36
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.5186       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5694       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9459       1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.7011       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.1967       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.6889       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.7155       1.0000         .10000E-03   10000.    
    19 'norm      '    1.0823       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.2938       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.369       1.0000         .10000E-03   10000.    
    24 'Prefactor '    18.390       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0716       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94207       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=   6222.628     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     3104 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.771        .24343E-05** at limit **
   2  Prefactor     .10000E-03    52.522       -.28761E-04** at limit **
   3  norm          5.5187        2.8968        .78376E-06    .17858E-03
   4  Prefactor     .10000E-03    3.4319        .47039E-07** at limit **
   5  Prefactor     3.5694        2.2241       -.28780E-06    .17695E-03
   6  Prefactor     3.9460        2.2491       -.10275E-06    .82048E-04
   7  Prefactor     8.7013        7.6241       -.18270E-06   -.57328E-03
   8  Prefactor     .10000E-03    5.5751        .41487E-07** at limit **
   9  Prefactor     9.1964        9.9653        .68028E-06    .60976E-03
  10  Prefactor     5.6515        123.92       -.12537E-03   -.21795E-04
  11  Prefactor     .10000E-03    1.8587        .15075E-07** at limit **
  12  norm          .10000E-03    3.2995        .72310E-06** at limit **
  13  Prefactor     .10000E-03    14.480       -.26071E-05** at limit **
  14  Prefactor     .10000E-03    42.327        .31167E-04** at limit **
  15  Prefactor     .10000E-03    4.0118       -.59695E-07** at limit **
  16  norm          .10000E-03    1.2767       -.11731E-07** at limit **
  17  norm          .10000E-03    10.368       -.11968E-05** at limit **
  18  norm          1.7107        5.0931        .17057E-05   -.95441E-03
  19  norm          1.0858        10.583       -.33182E-05   -.11137E-02
  20  Prefactor     4.2927        3.1165       -.55978E-06   -.64808E-03
  21  Prefactor     .10000E-03    13.610        .29779E-05** at limit **
  22  Prefactor     .10000E-03    22.462       -.64415E-05** at limit **
  23  Prefactor     21.369        17.017       -.48287E-06   -.22254E-03
  24  Prefactor     18.398        65.617        .15962E-04   -.71252E-06
  25  Normalizat    1.0715        .16631        .17781E-05   -.96906E-04
  26  Prefactor     .94214        .19862        .52096E-06    .56702E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.51874
  Prefactor  = 0.0001
  Prefactor  = 3.5694
  Prefactor  = 3.94602
  Prefactor  = 8.70131
  Prefactor  = 0.0001
  Prefactor  = 9.19643
  Prefactor  = 5.65151
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.71072
  norm       = 1.08578
  Prefactor  = 4.29269
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3695
  Prefactor  = 18.3981
  Normalizat = 1.0715
  Prefactor  = 0.942142
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.628     FROM HESSE     STATUS=OK           456 CALLS     3560 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    52.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.5187        2.8976        .91847E-04   -1.5238    
   4  Prefactor     .10000E-03    3.4512        .14270E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5694        2.2247        .87812E-04   -1.5330    
   6  Prefactor     3.9460        2.2473        .85431E-04   -1.5311    
   7  Prefactor     8.7013        7.6234        .67944E-03   -1.5118    
   8  Prefactor     .10000E-03    5.5805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.1964        9.9799        .66079E-03   -1.5101    
  10  Prefactor     5.6515        124.47        .16841E-03   -1.5232    
  11  Prefactor     .10000E-03    1.8641        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.3851        .27963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.292        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.0169        .15430E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2808        .87037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.7107        4.9978        .16703E-03   -1.5446    
  19  norm          1.0858        10.186        .28684E-03   -1.5500    
  20  Prefactor     4.2927        3.1011        .11149E-03   -1.5294    
  21  Prefactor     .10000E-03    13.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.369        17.024        .43324E-03   -1.4783    
  24  Prefactor     18.398        65.798        .93397E-04   -1.4850    
  25  Normalizat    1.0715        .19713        .22470E-03   -.90672    
  26  Prefactor     .94214        .23480        .29151E-03   -.94684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.44984e-09
Minuit parameter uncertainties:
  1  4.35484e-06
  2  2.66946e-05
  3  2.89767
  4  2.43446e-06
  5  2.22471
  6  2.24737
  7  7.62428
  8  3.81563e-06
  9  9.98173
  10  53.1713
  11  2.65245e-07
  12  0.000134463
  13  1.04373e-05
  14  0.000170974
  15  2.23527e-06
  16  1.87105e-08
  17  1.87748e-05
  18  4.999
  19  6.65228
  20  3.10122
  21  1.3296e-05
  22  1.2358e-05
  23  17.0274
  24  66.0595
  25  0.197265
  26  0.235056
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.196e+00  9.982e+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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.421e-01  2.351e-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.072e+00  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.05
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 8.39e-09 +/- 9.10e-09
Energy Flux (Fixed Index): 1.07e-05 +/- 1.16e-05

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

Saving results to:
/scratch/kocevski/935918/likelihoodResults_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.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) = 6222.61448345
delta logL = 0.0137387959512

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6222.60662988
delta logL = 0.0215923628384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.810       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6187       1.0000          .0000       10.000    
     3 'Normalizat'    1.0732       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94130       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=   6222.607     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      266 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.822        14.065        .12186E-03    .25497E-03
   2  Index         1.6180        .77943        .10909E-01    .72200E-04
   3  Normalizat    1.0732        .19019        .22453E-03    .33974E-04
   4  Prefactor     .94128        .23362        .29162E-03   -.91418E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.8221
  Index      = 1.61797
  Normalizat = 1.07319
  Prefactor  = 0.94128
 **********
 **   18 **HESSE 
 **********

 FCN=   6222.607     FROM HESSE     STATUS=OK            25 CALLS      291 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.822        13.658        .48744E-05   -1.5050    
   2  Index         1.6180        .75752        .43635E-03   -.74287    
   3  Normalizat    1.0732        .19037        .89814E-05   -.90617    
   4  Prefactor     .94128        .23387        .11665E-04   -.94713    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.26957e-10
Minuit parameter uncertainties:
  1  13.6623
  2  0.762968
  3  0.190495
  4  0.234121
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935918': 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) = 6222.60662927
delta logL = 0.0215929732412

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.082e+01  1.366e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.618e+00  7.630e-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:  9.413e-01  2.341e-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.073e+00  1.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.62 +/- 0.76
Photon Flux (Free Index): 6.78e-09 +/- 1.01e-08
Energy Flux (Free Index): 1.45e-05 +/- 2.68e-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/935918/cmap_HighResolution_348969601_349228801_4FGL_J1249.8+3707_daily_bin423.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.99e-03', comment='SUCCESS', photon_flux='8.39e-09', energy_flux2='1.45e-05', photon_flux_error='9.10e-09', dlogl='2.16e-02', energy_flux='1.07e-05', photon_flux2='6.78e-09', job_status='DONE', time_completed='2021-09-06 06:46:22.699552', photon_index_error2='0.76', photon_index2='1.62', ts='3.05', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='4.06e-08', energy_flux_error2='2.68e-05', EG='1.07', time_epoch_completed='1630935982.7', return_code='0', job_id='935918', GAL2='0.94', EG2='1.07', return_code2='0', energy_flux_error='1.16e-05', photon_flux_error2='1.01e-08', ts2='3.09', photon_index='1.78' WHERE bin_id='423' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 935918: <4FGL_J1249.8+3707_daily_bin423> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin423> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:31:05 2021
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:31:07 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:31:07 2021
Terminated at Mon Sep  6 06:46:23 2021
Results reported at Mon Sep  6 06:46:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin423 192.46 37.1306 348969601 349228801 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 :                                   766.19 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            918 sec.

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

