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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin127
RA = 192.46, Dec = 37.1306
tmin = 272246401, tmax = 272505601
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='934454', job_status='RUN', time_executed='2021-09-06 06:28:47.937192', time_epoch_executed='1630934927.94' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934454/ft1_4FGL_J1249.8+3707_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934454/ft2_4FGL_J1249.8+3707_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934454/ft1_4FGL_J1249.8+3707_daily_bin127.fits outfile=/scratch/kocevski/934454/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin127.fits ra=192.46 dec=37.1306 rad=12.0 tmin=272246401.0 tmax=272505601.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.01
user 2.30
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934454/ft1_filtered_4FGL_J1249.8+3707_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/934454/ft2_4FGL_J1249.8+3707_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/934454/ltcube_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.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/934454/ft2_4FGL_J1249.8+3707_daily_bin127.fits
.....................!
real 15.60
user 15.06
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934454/ft1_filtered_4FGL_J1249.8+3707_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/934454/ft2_4FGL_J1249.8+3707_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/934454/ltcube_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.fits outfile=/scratch/kocevski/934454/expmap_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.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/934454/ltcube_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.fits
.....................!
real 193.52
user 185.62
sys 6.53

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/934454/ft1_filtered_4FGL_J1249.8+3707_daily_bin127.fits scfile=/scratch/kocevski/934454/ft2_4FGL_J1249.8+3707_daily_bin127.fits outfile=/scratch/kocevski/934454/cmap_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.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.57
user 0.36
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    50.976       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.2722       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1919       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3584       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.9777       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1916       1.0000         .10000E-03   10000.    
     8 'Prefactor '    16.243       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10466E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12614E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13478E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.808       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.0173       1.0000         .10000E-03   10000.    
    18 'norm      '    11.802       1.0000         .10000E-03   10000.    
    19 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10281E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.561       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13681E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91304       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0845       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=   4596.961     FROM MIGRAD    STATUS=CONVERGED    647 CALLS     3098 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     50.914        49.178        .74787E-07   -.47904E-05
   2  Prefactor     .10000E-03    13.347        .19397E-06** at limit **
   3  norm          6.2739        3.2330       -.17165E-07   -.48363E-04
   4  Prefactor     5.1811        9.6032        .36247E-06    .16663E-04
   5  Prefactor     1.3582        1.3680       -.36732E-07   -.64784E-04
   6  Prefactor     2.9775        1.9625       -.22532E-07   -.69634E-04
   7  Prefactor     1.1858        7.6247        .34452E-05    .21221E-03
   8  Prefactor     16.176        33.869       -.53185E-06   -.76754E-05
   9  Prefactor     .10000E-03    9.4012        .81768E-07** at limit **
  10  Prefactor     .10000E-03    20.240        .97311E-07** at limit **
  11  Prefactor     .10005E-03    6.3025        .16722E-05** at limit **
  12  norm          .10000E-03    1.1330        .56161E-07** at limit **
  13  Prefactor     18.526        100.41        .18197E-05   -.17259E-04
  14  Prefactor     .10000E-03    12.708        .15566E-06** at limit **
  15  Prefactor     .10000E-03    5.2250       -.23755E-07** at limit **
  16  norm          .10000E-03    1.6177        .16000E-07** at limit **
  17  norm          3.0222        22.098       -.41743E-05   -.11032E-03
  18  norm          11.801        5.3371        .16887E-06   -.15408E-03
  19  norm          .10000E-03    6.6140        .54376E-06** at limit **
  20  Prefactor     .10000E-03    3.0379       -.97822E-08** at limit **
  21  Prefactor     .10000E-03    6.0288        .58612E-07** at limit **
  22  Prefactor     56.545        62.944       -.33929E-06   -.16895E-04
  23  Prefactor     .10000E-03    7.7495        .15987E-06** at limit **
  24  Prefactor     .10000E-03    75.604        .42340E-06** at limit **
  25  Normalizat    .91275        .19790        .29267E-05   -.18171E-03
  26  Prefactor     1.0850        .25026       -.36684E-05   -.81593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 50.9137
  Prefactor  = 0.0001
  norm       = 6.2739
  Prefactor  = 5.18105
  Prefactor  = 1.35823
  Prefactor  = 2.9775
  Prefactor  = 1.18578
  Prefactor  = 16.1764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  norm       = 0.0001
  Prefactor  = 18.5262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.02219
  norm       = 11.8011
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.5453
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.912753
  Prefactor  = 1.08498
 **********
 **   18 **HESSE 
 **********

 FCN=   4596.961     FROM HESSE     STATUS=OK           454 CALLS     3552 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     50.914        49.186        .56171E-04   -1.4280    
   2  Prefactor     .10000E-03    13.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.2739        3.2299        .83957E-04   -1.5207    
   4  Prefactor     5.1811        9.5966        .17642E-03   -1.5253    
   5  Prefactor     1.3582        1.3881        .76992E-04   -1.5475    
   6  Prefactor     2.9775        1.9612        .74600E-04   -1.5363    
   7  Prefactor     1.1858        7.8802        .36974E-03   -1.5490    
   8  Prefactor     16.176        33.842        .99379E-04   -1.4903    
   9  Prefactor     .10000E-03    9.4061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    20.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10005E-03    23.119        .29563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.1338        .70470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.526        101.02        .92354E-04   -1.4847    
  14  Prefactor     .10000E-03    12.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.2279        .15136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6198        .84208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.0222        22.553        .23364E-03   -1.5360    
  18  norm          11.801        4.8126        .90308E-04   -1.5021    
  19  norm          .10000E-03    13.446        .29995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1194        .22996E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.0361        .16255E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     56.545        62.913        .53340E-04   -1.4203    
  23  Prefactor     .10000E-03    7.7569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    75.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .91275        .21796        .23691E-03   -.96013    
  26  Prefactor     1.0850        .27638        .27855E-03   -.89948    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70986e-09
Minuit parameter uncertainties:
  1  49.2257
  2  1.34319e-05
  3  3.22995
  4  9.59949
  5  1.3881
  6  1.96127
  7  6.11454
  8  33.8818
  9  1.23621e-07
  10  5.6809e-07
  11  0.00218838
  12  1.6031e-07
  13  86.7484
  14  7.9773e-06
  15  5.87414e-06
  16  1.21758e-06
  17  16.5203
  18  4.81273
  19  0.000424858
  20  1.19903e-05
  21  2.98867e-06
  22  62.9874
  23  6.36528e-06
  24  3.91355e-05
  25  0.218174
  26  0.276743
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.236e-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:  1.085e+00  2.767e-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.128e-01  2.182e-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: 4.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.14e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934454/likelihoodResults_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.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) = 4596.96132861
delta logL = -0.000504025767441

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4596.96082775
delta logL = -3.16490786645e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .13806E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7556       1.0000          .0000       10.000    
     3 'Normalizat'    .91243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0854       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=   4596.961     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      240 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    65.760        .18142E-02** at limit **
   2  Index         1.7084        9.0903        .50000        .14668E-04
   3  Normalizat    .91275        .11830E-01    .23690E-03    .46885E-04
   4  Prefactor     1.0850        .15096E-01    .27855E-03    .42037E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101015
  Index      = 1.70844
  Normalizat = 0.912754
  Prefactor  = 1.08498
 **********
 **   18 **HESSE 
 **********

 FCN=   4596.961     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10102E-03    344.72        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7084        5.7441        .50000       -.71857    
   3  Normalizat    .91275        .28096E-01    .94761E-05   -.96013    
   4  Prefactor     1.0850        .35845E-01    .11142E-04   -.89948    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.15631e-08
Minuit parameter uncertainties:
  1  0.0376339
  2  522.347
  3  0.0280967
  4  0.0358458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934454': 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) = 4596.96082432
delta logL = 2.59835360339e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.010e-04  3.763e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.708e+00  5.223e+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:  1.085e+00  3.585e-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:  9.128e-01  2.810e-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/934454/cmap_HighResolution_272246401_272505601_4FGL_J1249.8+3707_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.14e-03', job_status='DONE', photon_flux_upper_limit='4.27e-08', time_completed='2021-09-06 06:39:50.204190', job_id='934454', GAL2='1.08', fit_tolerance='1e-08', EG2='0.91', EG='0.91', time_epoch_completed='1630935590.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='2.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='127' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:39:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 934454: <4FGL_J1249.8+3707_daily_bin127> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin127> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:25:57 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:25:59 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:25:59 2021
Terminated at Mon Sep  6 06:39:50 2021
Results reported at Mon Sep  6 06:39:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin127 192.46 37.1306 272246401 272505601 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 :                                   658.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             262.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

