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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin955
RA = 192.46, Dec = 37.1306
tmin = 486864001, tmax = 487123201
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='940230', job_status='RUN', time_executed='2021-09-06 06:48:42.806961', time_epoch_executed='1630936122.81' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='955'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940230

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940230/ft1_4FGL_J1249.8+3707_daily_bin955.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940230/ft2_4FGL_J1249.8+3707_daily_bin955.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940230/ft1_4FGL_J1249.8+3707_daily_bin955.fits outfile=/scratch/kocevski/940230/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin955.fits ra=192.46 dec=37.1306 rad=12.0 tmin=486864001.0 tmax=487123201.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 4.35
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/940230/ft1_filtered_4FGL_J1249.8+3707_daily_bin955.fits" evtable="EVENTS" scfile=/scratch/kocevski/940230/ft2_4FGL_J1249.8+3707_daily_bin955.fits sctable="SC_DATA" outfile=/scratch/kocevski/940230/ltcube_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.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/940230/ft2_4FGL_J1249.8+3707_daily_bin955.fits
.....................!
real 12.23
user 11.89
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940230/ft1_filtered_4FGL_J1249.8+3707_daily_bin955.fits evtable="EVENTS" scfile=/scratch/kocevski/940230/ft2_4FGL_J1249.8+3707_daily_bin955.fits sctable="SC_DATA" expcube=/scratch/kocevski/940230/ltcube_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.fits outfile=/scratch/kocevski/940230/expmap_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.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/940230/ltcube_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.fits
.....................!
real 190.06
user 185.74
sys 3.87

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/940230/ft1_filtered_4FGL_J1249.8+3707_daily_bin955.fits scfile=/scratch/kocevski/940230/ft2_4FGL_J1249.8+3707_daily_bin955.fits outfile=/scratch/kocevski/940230/cmap_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=192.46 yref=37.1306 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940230/ft1_filtered_4FGL_J1249.8+3707_daily_bin955.fits scfile=/scratch/kocevski/940230/ft2_4FGL_J1249.8+3707_daily_bin955.fits outfile=/scratch/kocevski/940230/cmap_HighResolution_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.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.63
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10233E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    20.102       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8913       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6289       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.3571       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.341       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.909       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.405       1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.850       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.3948       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.562       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.387       1.0000         .10000E-03   10000.    
    24 'Prefactor '    8.2860       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0393       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0037       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=   6151.272     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3109 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.859       -.15546E-07** at limit **
   2  Prefactor     .10000E-03    85.818       -.88080E-06** at limit **
   3  norm          20.103        5.2734       -.59099E-07    .30977E-04
   4  Prefactor     .10000E-03    8.2041       -.22897E-06** at limit **
   5  Prefactor     .10000E-03    1.5969       -.11254E-07** at limit **
   6  Prefactor     2.8913        2.7585       -.19987E-06   -.79016E-05
   7  Prefactor     2.6280        10.194        .62581E-05   -.14042E-03
   8  Prefactor     5.3573        16.272        .20035E-05   -.29730E-04
   9  Prefactor     .10000E-03    29.862       -.30592E-06** at limit **
  10  Prefactor     12.335        74.900        .19886E-05    .14475E-04
  11  Prefactor     .10000E-03    3.3911       -.61086E-07** at limit **
  12  norm          .10000E-03    1.8347       -.73981E-07** at limit **
  13  Prefactor     23.905        30.606        .45587E-06    .21552E-04
  14  Prefactor     33.406        27.536        .16046E-07    .16223E-04
  15  Prefactor     21.850        18.299        .35202E-06    .35931E-04
  16  norm          .10000E-03    1.5575       -.24931E-09** at limit **
  17  norm          8.3947        8.4085       -.28676E-07    .11639E-05
  18  norm          .10000E-03    2.4935       -.80681E-07** at limit **
  19  norm          .10000E-03    2.8155       -.29821E-07** at limit **
  20  Prefactor     .10000E-03    1.0491        .43137E-07** at limit **
  21  Prefactor     10.562        13.619        .27748E-06    .28988E-04
  22  Prefactor     .10000E-03    36.510        .30433E-06** at limit **
  23  Prefactor     10.386        19.647        .85437E-06   -.69079E-05
  24  Prefactor     8.3205        164.39       -.12923E-04   -.38320E-04
  25  Normalizat    1.0392        .18363       -.19393E-05   -.23232E-04
  26  Prefactor     1.0038        .21215        .21438E-05    .14396E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 20.1025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.89129
  Prefactor  = 2.62798
  Prefactor  = 5.35725
  Prefactor  = 0.0001
  Prefactor  = 12.3346
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.9046
  Prefactor  = 33.4064
  Prefactor  = 21.8496
  norm       = 0.0001
  norm       = 8.39468
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5615
  Prefactor  = 0.0001
  Prefactor  = 10.3861
  Prefactor  = 8.32054
  Normalizat = 1.03923
  Prefactor  = 1.00383
 **********
 **   18 **HESSE 
 **********

 FCN=   6151.272     FROM HESSE     STATUS=OK           456 CALLS     3565 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    86.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          20.103        5.2506        .86275E-04   -1.4811    
   4  Prefactor     .10000E-03    8.4357        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.6160        .96438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.8913        2.7508        .11846E-03   -1.5368    
   7  Prefactor     2.6280        10.386        .12576E-02   -1.5384    
   8  Prefactor     5.3573        16.268        .86816E-03   -1.5245    
   9  Prefactor     .10000E-03    30.094        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     12.335        74.933        .11403E-03   -1.5005    
  11  Prefactor     .10000E-03    3.3984        .14091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.8395        .10367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.905        30.609        .81921E-04   -1.4730    
  14  Prefactor     33.406        27.531        .69332E-04   -1.4551    
  15  Prefactor     21.850        18.334        .85690E-04   -1.4773    
  16  norm          .10000E-03    1.5608        .95557E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.3947        8.4099        .13836E-03   -1.5128    
  18  norm          .10000E-03    2.5357        .12063E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.8266        .12848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0528        .78291E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.562        13.584        .12328E-03   -1.5058    
  22  Prefactor     .10000E-03    36.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     10.386        19.640        .62160E-03   -1.5063    
  24  Prefactor     8.3205        166.66        .13927E-03   -1.5131    
  25  Normalizat    1.0392        .21428        .23828E-03   -.91727    
  26  Prefactor     1.0038        .25044        .30089E-03   -.92602    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.56041e-10
Minuit parameter uncertainties:
  1  2.72083e-06
  2  0.000342681
  3  5.25072
  4  3.47017e-05
  5  1.839e-06
  6  2.75089
  7  10.3934
  8  16.2812
  9  7.79755e-05
  10  60.9174
  11  6.21495e-06
  12  5.48694e-06
  13  30.629
  14  27.5419
  15  18.3386
  16  2.34043e-07
  17  8.41109
  18  7.26397e-06
  19  3.42515e-06
  20  2.3537e-06
  21  13.5883
  22  7.64251e-05
  23  19.652
  24  74.7167
  25  0.214456
  26  0.250736
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.798e-05  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:  1.004e+00  2.507e-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.039e+00  2.145e-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: 5.37e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/940230/likelihoodResults_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.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) = 6151.27213721
delta logL = -0.0001582828354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6150.43503693
delta logL = 0.836942002888

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16193       1.0000         .10000E-03   10000.    
     2 'Index     '    3.7742       1.0000          .0000       10.000    
     3 'Normalizat'    .96308       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0546       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=   6150.435     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      284 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16163        2.0661        .56980E-02    .20439E-02
   2  Index         3.7749        1.7199        .66187E-01    .24793E-03
   3  Normalizat    .96323        .39514E-01    .45703E-01    .10977E-05
   4  Prefactor     1.0544        .49240E-01    .66505E-01    .26355E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.161629
  Index      = 3.77491
  Normalizat = 0.963226
  Prefactor  = 1.05437
 **********
 **   18 **HESSE 
 **********

 FCN=   6150.435     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      319 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16163        5.3915        .25892E-03   -1.5628    
   2  Index         3.7749        3.2092        .32658E-02   -.24754    
   3  Normalizat    .96323        .15023        .24609E-03   -.94273    
   4  Prefactor     1.0544        .18440        .29419E-03   -.90938    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.15652e-07
Minuit parameter uncertainties:
  1  1.86661
  2  3.50722
  3  0.150293
  4  0.184516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940230': 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) = 6150.43503609
delta logL = 0.836942840696

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.616e-01  1.867e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.775e+00  3.507e+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:  1.054e+00  1.845e-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:  9.632e-01  1.503e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.77
Ra Dec: 192.460 37.131
Photon Index (Free Index): 3.77 +/- 3.51
Photon Flux (Free Index): 6.59e-08 +/- 5.39e-08
Energy Flux (Free Index): 1.03e-05 +/- 1.00e-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/940230/cmap_HighResolution_486864001_487123201_4FGL_J1249.8+3707_daily_bin955.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-03', comment='SUCCESS', energy_flux2='1.03e-05', dlogl='8.37e-01', photon_flux2='6.59e-08', job_status='DONE', time_completed='2021-09-06 07:01:26.183503', photon_index_error2='3.51', photon_index2='3.77', ts='-0.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='5.37e-08', energy_flux_error2='1.00e-05', EG='1.04', time_epoch_completed='1630936886.18', return_code='0', job_id='940230', GAL2='1.05', EG2='0.96', return_code2='102', photon_flux_error2='5.39e-08', ts2='1.77', photon_index='1.78' WHERE bin_id='955' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:01:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 940230: <4FGL_J1249.8+3707_daily_bin955> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin955> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:22 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:24 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:45:24 2021
Terminated at Mon Sep  6 07:01:26 2021
Results reported at Mon Sep  6 07:01:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin955 192.46 37.1306 486864001 487123201 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             288.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   962 sec.
    Turnaround time :                            964 sec.

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

