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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin712
RA = 192.46, Dec = 37.1306
tmin = 423878401, tmax = 424137601
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='938605', job_status='RUN', time_executed='2021-09-06 06:43:03.061660', time_epoch_executed='1630935783.06' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938605/ft1_4FGL_J1249.8+3707_daily_bin712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938605/ft2_4FGL_J1249.8+3707_daily_bin712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938605/ft1_4FGL_J1249.8+3707_daily_bin712.fits outfile=/scratch/kocevski/938605/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin712.fits ra=192.46 dec=37.1306 rad=12.0 tmin=423878401.0 tmax=424137601.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.48
user 5.19
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938605/ft2_4FGL_J1249.8+3707_daily_bin712.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/938605/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin712.fits evtable="EVENTS" outfile="/scratch/kocevski/938605/ft1_filtered_4FGL_J1249.8+3707_daily_bin712.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938605/ft1_filtered_4FGL_J1249.8+3707_daily_bin712.fits" evtable="EVENTS" scfile=/scratch/kocevski/938605/ft2_4FGL_J1249.8+3707_daily_bin712.fits sctable="SC_DATA" outfile=/scratch/kocevski/938605/ltcube_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.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/938605/ft2_4FGL_J1249.8+3707_daily_bin712.fits
.....................!
real 12.88
user 12.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938605/ft1_filtered_4FGL_J1249.8+3707_daily_bin712.fits evtable="EVENTS" scfile=/scratch/kocevski/938605/ft2_4FGL_J1249.8+3707_daily_bin712.fits sctable="SC_DATA" expcube=/scratch/kocevski/938605/ltcube_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.fits outfile=/scratch/kocevski/938605/expmap_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.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/938605/ltcube_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.fits
.....................!
real 195.96
user 190.77
sys 4.72

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/938605/ft1_filtered_4FGL_J1249.8+3707_daily_bin712.fits scfile=/scratch/kocevski/938605/ft2_4FGL_J1249.8+3707_daily_bin712.fits outfile=/scratch/kocevski/938605/cmap_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938605/ft1_filtered_4FGL_J1249.8+3707_daily_bin712.fits scfile=/scratch/kocevski/938605/ft2_4FGL_J1249.8+3707_daily_bin712.fits outfile=/scratch/kocevski/938605/cmap_HighResolution_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.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.62
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    75.415       1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.822       1.0000         .10000E-03   10000.    
     3 'norm      '    2.0247       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10251E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7625       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0602       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .21965E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.496       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11127E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    156.29       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10218E-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      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    23.131       1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.042       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10472E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11200E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    142.17       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1431       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .63653       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=   1810.507     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     3056 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     75.404        79.230       -.88653E-08   -.91350E-05
   2  Prefactor     25.823        48.770        .21392E-06   -.45738E-04
   3  norm          2.0253        5.5974       -.74442E-06    .73864E-04
   4  Prefactor     .10000E-03    11.492       -.59886E-06** at limit **
   5  Prefactor     3.7631        4.5924        .15180E-07    .24958E-04
   6  Prefactor     1.0555        2.8757        .18710E-05    .63327E-03
   7  Prefactor     .10001E-03    186.88       -.26112E-04** at limit **
   8  Prefactor     36.489        41.987       -.11611E-07   -.14348E-04
   9  Prefactor     .10001E-03    132.44       -.52027E-05** at limit **
  10  Prefactor     156.25        141.85        .67420E-06   -.16516E-04
  11  Prefactor     .10000E-03    14.393       -.78406E-06** at limit **
  12  norm          .10000E-03    3.0050       -.82651E-08** at limit **
  13  Prefactor     .10000E-03    43.250       -.22487E-08** at limit **
  14  Prefactor     .10000E-03    41.488       -.71656E-06** at limit **
  15  Prefactor     .10000E-03    16.362       -.12772E-06** at limit **
  16  norm          .10000E-03    5.5034       -.10145E-06** at limit **
  17  norm          .10000E-03    13.077       -.12695E-06** at limit **
  18  norm          .10000E-03    5.4851       -.15439E-06** at limit **
  19  norm          23.131        15.500        .85347E-07   -.42404E-04
  20  Prefactor     14.032        9.4206        .23494E-06   -.25925E-03
  21  Prefactor     .10000E-03    66.809       -.71027E-06** at limit **
  22  Prefactor     .10000E-03    174.88        .94319E-06** at limit **
  23  Prefactor     .10000E-03    173.49       -.16927E-06** at limit **
  24  Prefactor     141.93        251.97        .29231E-05   -.23400E-04
  25  Normalizat    1.1426        .30569       -.31586E-06    .13893E-03
  26  Prefactor     .63714        .36833        .13803E-05   -.42351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 75.4035
  Prefactor  = 25.823
  norm       = 2.02527
  Prefactor  = 0.0001
  Prefactor  = 3.76314
  Prefactor  = 1.05546
  Prefactor  = 0.000100006
  Prefactor  = 36.4889
  Prefactor  = 0.000100013
  Prefactor  = 156.246
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 23.1311
  Prefactor  = 14.0321
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 141.934
  Normalizat = 1.14257
  Prefactor  = 0.63714
 **********
 **   18 **HESSE 
 **********

 FCN=   1810.507     FROM HESSE     STATUS=OK           448 CALLS     3504 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     75.404        79.226        .46237E-04   -1.3969    
   2  Prefactor     25.823        48.718        .78833E-04   -1.4691    
   3  norm          2.0253        5.6167        .13432E-03   -1.5423    
   4  Prefactor     .10000E-03    11.527        .14070E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.7631        4.6209        .81332E-04   -1.5320    
   6  Prefactor     1.0555        2.8349        .12373E-02   -1.5502    
   7  Prefactor     .10001E-03    184.84        .41539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     36.489        41.972        .66339E-04   -1.4499    
   9  Prefactor     .10001E-03    130.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     156.25        141.84        .16125E-03   -1.3201    
  11  Prefactor     .10000E-03    14.503        .15740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0066        .72041E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    43.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    41.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.372        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    5.5077        .97494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    13.081        .15032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.5103        .97053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          23.131        15.457        .83285E-04   -1.4746    
  20  Prefactor     14.032        9.3837        .10173E-03   -1.4959    
  21  Prefactor     .10000E-03    67.718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    174.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    177.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     141.93        251.67        .16894E-03   -1.3320    
  25  Normalizat    1.1426        .34367        .21343E-03   -.88397    
  26  Prefactor     .63714        .40912        .33529E-03   -1.0604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15096e-09
Minuit parameter uncertainties:
  1  79.3375
  2  48.7929
  3  5.61816
  4  0.000105812
  5  4.62135
  6  2.83526
  7  0.00204321
  8  42.0057
  9  0.00265687
  10  142.154
  11  0.000183698
  12  2.68094e-06
  13  1.77595e-05
  14  0.00015341
  15  6.25232e-06
  16  1.24831e-06
  17  4.24118e-06
  18  1.7527e-06
  19  15.4597
  20  9.38473
  21  0.000113973
  22  0.00104071
  23  0.0001771
  24  253.608
  25  0.344347
  26  0.411061
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.657e-03  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:  6.371e-01  4.111e-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.143e+00  3.443e-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: 1.31e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938605/likelihoodResults_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.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) = 1810.5069453
delta logL = -3.62387997939e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1809.92413033
delta logL = 0.582778733419

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44679       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5889       1.0000          .0000       10.000    
     3 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71017       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=   1809.924     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      318 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44392        11.120        .61638E-02   -.35306E-03
   2  Index         3.5913        2.5107        .57539E-01    .90240E-05
   3  Normalizat    1.0226        .84951E-01    .42930E-01   -.24706E-04
   4  Prefactor     .71073        .10208        .71971E-01   -.72513E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.443916
  Index      = 3.59135
  Normalizat = 1.02262
  Prefactor  = 0.710735
 **********
 **   18 **HESSE 
 **********

 FCN=   1809.924     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      351 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44392        21.530        .27719E-04   -1.5575    
   2  Index         3.5913        3.7079        .22875E-02   -.28560    
   3  Normalizat    1.0226        .31343        .22379E-03   -.92276    
   4  Prefactor     .71073        .37502        .31853E-03   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60619e-10
Minuit parameter uncertainties:
  1  6.18472
  2  4.23793
  3  0.314002
  4  0.376367
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938605': 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) = 1809.92412804
delta logL = 0.582781022414

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.439e-01  6.185e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.591e+00  4.238e+00  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.107e-01  3.764e-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.023e+00  3.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.59 +/- 4.24
Photon Flux (Free Index): 9.84e-08 +/- 1.01e-07
Energy Flux (Free Index): 1.60e-05 +/- 2.19e-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/938605/cmap_HighResolution_423878401_424137601_4FGL_J1249.8+3707_daily_bin712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.66e-03', comment='SUCCESS', energy_flux2='1.60e-05', dlogl='5.83e-01', photon_flux2='9.84e-08', job_status='DONE', time_completed='2021-09-06 06:51:00.010861', photon_index_error2='4.24', photon_index2='3.59', ts='-0.00', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='1.31e-07', energy_flux_error2='2.19e-05', EG='1.14', time_epoch_completed='1630936260.01', return_code='0', job_id='938605', GAL2='0.71', EG2='1.02', return_code2='102', photon_flux_error2='1.01e-07', ts2='1.23', photon_index='1.78' WHERE bin_id='712' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:51:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 938605: <4FGL_J1249.8+3707_daily_bin712> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:23 2021
Job was executed on host(s) <bullet0149>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:40:25 2021
Terminated at Mon Sep  6 06:51:00 2021
Results reported at Mon Sep  6 06:51:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin712 192.46 37.1306 423878401 424137601 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 :                                   473.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   635 sec.
    Turnaround time :                            637 sec.

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

