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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin413
RA = 192.46, Dec = 37.1306
tmin = 346377601, tmax = 346636801
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='935902', job_status='RUN', time_executed='2021-09-06 06:35:01.271523', time_epoch_executed='1630935301.27' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='413'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935902

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935902/ft1_4FGL_J1249.8+3707_daily_bin413.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935902/ft2_4FGL_J1249.8+3707_daily_bin413.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935902/ft1_4FGL_J1249.8+3707_daily_bin413.fits outfile=/scratch/kocevski/935902/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin413.fits ra=192.46 dec=37.1306 rad=12.0 tmin=346377601.0 tmax=346636801.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.36
user 3.14
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935902/ft2_4FGL_J1249.8+3707_daily_bin413.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/935902/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin413.fits evtable="EVENTS" outfile="/scratch/kocevski/935902/ft1_filtered_4FGL_J1249.8+3707_daily_bin413.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/935902/ft1_filtered_4FGL_J1249.8+3707_daily_bin413.fits" evtable="EVENTS" scfile=/scratch/kocevski/935902/ft2_4FGL_J1249.8+3707_daily_bin413.fits sctable="SC_DATA" outfile=/scratch/kocevski/935902/ltcube_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.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/935902/ft2_4FGL_J1249.8+3707_daily_bin413.fits
.....................!
real 11.95
user 11.58
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935902/ft1_filtered_4FGL_J1249.8+3707_daily_bin413.fits evtable="EVENTS" scfile=/scratch/kocevski/935902/ft2_4FGL_J1249.8+3707_daily_bin413.fits sctable="SC_DATA" expcube=/scratch/kocevski/935902/ltcube_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.fits outfile=/scratch/kocevski/935902/expmap_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.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/935902/ltcube_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.fits
.....................!
real 189.79
user 185.36
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/935902/ft1_filtered_4FGL_J1249.8+3707_daily_bin413.fits scfile=/scratch/kocevski/935902/ft2_4FGL_J1249.8+3707_daily_bin413.fits outfile=/scratch/kocevski/935902/cmap_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935902/ft1_filtered_4FGL_J1249.8+3707_daily_bin413.fits scfile=/scratch/kocevski/935902/ft2_4FGL_J1249.8+3707_daily_bin413.fits outfile=/scratch/kocevski/935902/cmap_HighResolution_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.809       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.4530       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3352       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.877       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9085       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10705E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1489       1.0000         .10000E-03   10000.    
    17 'norm      '    9.3625       1.0000         .10000E-03   10000.    
    18 'norm      '    2.2083       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    46.596       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14243E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4181       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .51553       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=   5583.571     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3057 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.816        50.547        .32476E-05   -.23993E-08
   2  Prefactor     .10000E-03    26.878       -.40581E-05** at limit **
   3  norm          3.4532        2.3845        .14878E-07   -.20607E-04
   4  Prefactor     .10000E-03    3.1068        .11811E-07** at limit **
   5  Prefactor     .10000E-03    .77953       -.46948E-08** at limit **
   6  Prefactor     3.3355        2.6235       -.26912E-07   -.29802E-03
   7  Prefactor     14.877        9.7940       -.16287E-06    .30756E-04
   8  Prefactor     .10000E-03    6.4890        .15973E-07** at limit **
   9  Prefactor     .10000E-03    5.2103       -.28742E-07** at limit **
  10  Prefactor     .10000E-03    271.33       -.21594E-04** at limit **
  11  Prefactor     .10000E-03    1.7336       -.42748E-08** at limit **
  12  norm          5.9005        5.0093        .68450E-06    .74027E-03
  13  Prefactor     .10000E-03    37.840        .87320E-05** at limit **
  14  Prefactor     .10000E-03    61.102       -.29711E-04** at limit **
  15  Prefactor     .10000E-03    22.652        .17387E-05** at limit **
  16  norm          1.1474        3.6990       -.94404E-06   -.79708E-03
  17  norm          9.3629        9.0197       -.50643E-06    .33146E-04
  18  norm          2.2073        2.9750       -.13520E-06   -.11292E-03
  19  norm          .10000E-03    2.9387        .45040E-07** at limit **
  20  Prefactor     .10000E-03    1.0700        .17230E-07** at limit **
  21  Prefactor     .10000E-03    8.1046       -.98918E-08** at limit **
  22  Prefactor     46.600        41.742        .89889E-06   -.25185E-05
  23  Prefactor     .10001E-03    72.621        .45603E-04** at limit **
  24  Prefactor     .10000E-03    63.833       -.16618E-04** at limit **
  25  Normalizat    1.4180        .17376        .11141E-06   -.47197E-04
  26  Prefactor     .51554        .21002       -.67875E-06   -.75540E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.8157
  Prefactor  = 0.0001
  norm       = 3.45317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.33551
  Prefactor  = 14.8766
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.90047
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.14737
  norm       = 9.3629
  norm       = 2.20732
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.6004
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  Normalizat = 1.41796
  Prefactor  = 0.515541
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.571     FROM HESSE     STATUS=OK           452 CALLS     3509 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.816        50.533        .65181E-04   -1.4477    
   2  Prefactor     .10000E-03    27.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.4532        2.3783        .91903E-04   -1.5336    
   4  Prefactor     .10000E-03    3.1183        .12862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .78689        .64323E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3355        2.6135        .10070E-03   -1.5343    
   7  Prefactor     14.877        9.7880        .10384E-03   -1.4936    
   8  Prefactor     .10000E-03    6.4919        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.2118        .16659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    273.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.7383        .96075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9005        5.0000        .14569E-03   -1.5222    
  13  Prefactor     .10000E-03    37.920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    61.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    23.628        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1474        3.6522        .24849E-03   -1.5494    
  17  norm          9.3629        9.0212        .13098E-03   -1.5096    
  18  norm          2.2073        2.9420        .14110E-03   -1.5411    
  19  norm          .10000E-03    2.9436        .12470E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0809        .75405E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.2150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     46.600        41.755        .58739E-04   -1.4342    
  23  Prefactor     .10001E-03    72.232        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    64.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4180        .19676        .19559E-03   -.80111    
  26  Prefactor     .51554        .23548        .37331E-03   -1.1127    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.21492e-09
Minuit parameter uncertainties:
  1  50.5906
  2  1.96553e-05
  3  2.37832
  4  1.01676e-06
  5  3.63467e-07
  6  2.61358
  7  9.78908
  8  2.18778e-07
  9  8.84242e-07
  10  7.73774e-05
  11  1.38734e-06
  12  5.00037
  13  2.15102e-06
  14  0.000226545
  15  9.08771e-05
  16  3.65294
  17  9.02256
  18  2.94219
  19  5.84263e-06
  20  1.45226e-06
  21  2.51214e-06
  22  41.7811
  23  0.0019507
  24  3.34582e-05
  25  0.196862
  26  0.235929
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.842e-07  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:  5.155e-01  2.359e-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.418e+00  1.969e-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: 2.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935902/likelihoodResults_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.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) = 5583.57219441
delta logL = -0.000865974065164

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5583.57132803
delta logL = 4.07616425946e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7475       1.0000          .0000       10.000    
     3 'Normalizat'    1.4179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .51555       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=   5583.571     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      247 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10105E-03    29.835        .17395E-02** at limit **
   2  Index         1.6962        5.7129        .50000        .39884E-04
   3  Normalizat    1.4180        .94851E-02    .19559E-03   -.50487E-03
   4  Prefactor     .51554        .11485E-01    .37331E-03   -.22472E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101052
  Index      = 1.69623
  Normalizat = 1.41795
  Prefactor  = 0.515543
 **********
 **   18 **HESSE 
 **********

 FCN=   5583.571     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10105E-03    134.94        .34790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6962        8.9623        .50000       -.72182    
   3  Normalizat    1.4180        .20607E-01    .39119E-04   -.80111    
   4  Prefactor     .51554        .24950E-01    .14932E-04   -1.1127    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.49317e-08
Minuit parameter uncertainties:
  1  0.0238813
  2  205.094
  3  0.020607
  4  0.0249504
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935902': 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) = 5583.57132754
delta logL = 8.96248820936e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.011e-04  2.388e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.696e+00  2.051e+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:  5.155e-01  2.495e-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:  1.418e+00  2.061e-02  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/935902/cmap_HighResolution_346377601_346636801_4FGL_J1249.8+3707_daily_bin413.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.97e-03', job_status='DONE', photon_flux_upper_limit='2.68e-08', time_completed='2021-09-06 06:46:56.780419', job_id='935902', GAL2='0.52', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630936016.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.52', dlogl='8.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='413' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 935902: <4FGL_J1249.8+3707_daily_bin413> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin413 192.46 37.1306 346377601 346636801 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 :                                   714.06 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   951 sec.
    Turnaround time :                            953 sec.

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

