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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin945
RA = 192.46, Dec = 37.1306
tmin = 484272001, tmax = 484531201
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='938949', job_status='RUN', time_executed='2021-09-06 06:43:06.281979', time_epoch_executed='1630935786.28' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='945'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938949

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938949/ft1_4FGL_J1249.8+3707_daily_bin945.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938949/ft2_4FGL_J1249.8+3707_daily_bin945.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938949/ft1_4FGL_J1249.8+3707_daily_bin945.fits outfile=/scratch/kocevski/938949/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin945.fits ra=192.46 dec=37.1306 rad=12.0 tmin=484272001.0 tmax=484531201.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.11
user 4.89
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938949/ft1_filtered_4FGL_J1249.8+3707_daily_bin945.fits evtable="EVENTS" scfile=/scratch/kocevski/938949/ft2_4FGL_J1249.8+3707_daily_bin945.fits sctable="SC_DATA" expcube=/scratch/kocevski/938949/ltcube_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.fits outfile=/scratch/kocevski/938949/expmap_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.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/938949/ltcube_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.fits
.....................!
real 191.12
user 186.62
sys 4.19

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/938949/ft1_filtered_4FGL_J1249.8+3707_daily_bin945.fits scfile=/scratch/kocevski/938949/ft2_4FGL_J1249.8+3707_daily_bin945.fits outfile=/scratch/kocevski/938949/cmap_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938949/ft1_filtered_4FGL_J1249.8+3707_daily_bin945.fits scfile=/scratch/kocevski/938949/ft2_4FGL_J1249.8+3707_daily_bin945.fits outfile=/scratch/kocevski/938949/cmap_HighResolution_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.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.54
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.5592       1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.871       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0939       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2575       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.950       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.100       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    94.931       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13287E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.151       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.874       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13820E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.6637       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7565       1.0000         .10000E-03   10000.    
    17 'norm      '    14.189       1.0000         .10000E-03   10000.    
    18 'norm      '    1.2253       1.0000         .10000E-03   10000.    
    19 'norm      '    6.1205       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.5050       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11145E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10271E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0849       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90025       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=   6595.467     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3116 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.027       -.10155E-05** at limit **
   2  Prefactor     .10000E-03    13.175        .11144E-05** at limit **
   3  norm          8.5587        3.7787       -.25511E-07   -.59968E-04
   4  Prefactor     11.871        8.0908        .45668E-06   -.15298E-03
   5  Prefactor     4.0937        2.5516       -.25165E-07   -.46522E-04
   6  Prefactor     1.2578        2.4865        .46099E-06   -.14724E-03
   7  Prefactor     16.949        12.711       -.16975E-07   -.37065E-04
   8  Prefactor     10.111        22.563       -.28606E-06   -.71611E-04
   9  Prefactor     .10000E-03    14.603       -.18539E-05** at limit **
  10  Prefactor     94.944        94.318        .22195E-05    .80414E-04
  11  Prefactor     .10000E-03    13.055        .98285E-06** at limit **
  12  norm          31.158        8.6156       -.72973E-07   -.46088E-04
  13  Prefactor     28.933        38.598        .70379E-05    .52920E-03
  14  Prefactor     .10000E-03    151.39        .72471E-06** at limit **
  15  Prefactor     5.6605        16.449       -.58054E-07   -.66162E-04
  16  norm          3.7560        3.8245       -.30246E-06   -.38318E-04
  17  norm          14.189        12.070       -.13823E-06   -.15914E-04
  18  norm          1.2246        14.964       -.37092E-06   -.34969E-03
  19  norm          6.1218        11.977       -.13372E-07    .92129E-05
  20  Prefactor     4.5084        3.9464        .25588E-05   -.16495E-02
  21  Prefactor     .10000E-03    11.898       -.19865E-05** at limit **
  22  Prefactor     .10000E-03    45.400       -.35347E-06** at limit **
  23  Prefactor     .10000E-03    10.015       -.15235E-07** at limit **
  24  Prefactor     .10000E-03    20.888        .11706E-05** at limit **
  25  Normalizat    1.0850        .17925       -.14817E-05    .28550E-04
  26  Prefactor     .90016        .21385        .39116E-07   -.61046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.55875
  Prefactor  = 11.8709
  Prefactor  = 4.09373
  Prefactor  = 1.25777
  Prefactor  = 16.9488
  Prefactor  = 10.1107
  Prefactor  = 0.000100002
  Prefactor  = 94.9437
  Prefactor  = 0.0001
  norm       = 31.1581
  Prefactor  = 28.9333
  Prefactor  = 0.0001
  Prefactor  = 5.66046
  norm       = 3.75597
  norm       = 14.1891
  norm       = 1.22457
  norm       = 6.12184
  Prefactor  = 4.50838
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 1.08497
  Prefactor  = 0.900158
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.467     FROM HESSE     STATUS=OK           460 CALLS     3576 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    13.248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.5587        3.7659        .95316E-04   -1.5123    
   4  Prefactor     11.871        8.0905        .58135E-03   -1.5019    
   5  Prefactor     4.0937        2.5482        .94625E-04   -1.5303    
   6  Prefactor     1.2578        2.4344        .16172E-03   -1.5484    
   7  Prefactor     16.949        12.637        .97282E-04   -1.4884    
   8  Prefactor     10.111        22.639        .12608E-03   -1.5072    
   9  Prefactor     .10000E-03    14.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     94.944        94.565        .41251E-04   -1.3756    
  11  Prefactor     .10000E-03    13.407        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.158        8.4292        .71789E-04   -1.4591    
  13  Prefactor     28.933        40.928        .74559E-04   -1.4632    
  14  Prefactor     .10000E-03    156.43        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.6605        16.258        .16879E-03   -1.5232    
  16  norm          3.7560        3.8211        .15270E-03   -1.5320    
  17  norm          14.189        12.076        .10633E-03   -1.4954    
  18  norm          1.2246        9.6728        .28644E-03   -1.5487    
  19  norm          6.1218        9.8017        .16228E-03   -1.5213    
  20  Prefactor     4.5084        3.9928        .68154E-03   -1.5283    
  21  Prefactor     .10000E-03    12.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    45.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    10.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    20.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0850        .20873        .23746E-03   -.90236    
  26  Prefactor     .90016        .24994        .32213E-03   -.96136    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.24864e-09
Minuit parameter uncertainties:
  1  0.000229306
  2  0.000191844
  3  3.76599
  4  8.0912
  5  2.54824
  6  2.43457
  7  12.6393
  8  22.6582
  9  0.000322426
  10  94.7157
  11  0.000150798
  12  8.42957
  13  40.9677
  14  0.000190263
  15  16.2706
  16  3.82138
  17  12.0777
  18  6.88457
  19  9.8043
  20  3.99308
  21  0.000297435
  22  7.60733e-05
  23  6.0477e-06
  24  0.000251835
  25  0.208885
  26  0.250257
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.224e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  9.002e-01  2.503e-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.085e+00  2.089e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938949/likelihoodResults_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.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) = 6595.46758235
delta logL = -0.000322332806718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6595.46726003
delta logL = -8.4628482e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8072       1.0000          .0000       10.000    
     3 'Normalizat'    1.0850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90015       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=   6595.467     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      249 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10399E-03    .57151        .18142E-01** at limit **
   2  Index         1.8881        9.0377        .50000       -.18656E-04
   3  Normalizat    1.0850        .77029E-03    .23746E-03    .32076E-04
   4  Prefactor     .90016        .96464E-03    .32213E-03    .25517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010399
  Index      = 1.88812
  Normalizat = 1.08497
  Prefactor  = 0.90016
 **********
 **   18 **HESSE 
 **********

 FCN=   6595.467     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .15E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10399E-03    284.59        .64452E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8881        8.1438        .50000       -.67177    
   3  Normalizat    1.0850        .17330E-01    .94986E-05   -.90236    
   4  Prefactor     .90016        .21696E-01    .12885E-04   -.96136    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.47848e-07
Minuit parameter uncertainties:
  1  0.067716
  2  338.935
  3  0.0173297
  4  0.0216963
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938949': 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) = 6595.4672597
delta logL = 3.22841515299e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.040e-04  6.772e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.888e+00  3.389e+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:  9.002e-01  2.170e-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.085e+00  1.733e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/938949/cmap_HighResolution_484272001_484531201_4FGL_J1249.8+3707_daily_bin945.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.44e-08', time_completed='2021-09-06 06:56:46.275671', job_id='938949', GAL2='0.90', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630936606.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='3.23e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='945' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 938949: <4FGL_J1249.8+3707_daily_bin945> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin945> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:44 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:46 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:46 2021
Terminated at Mon Sep  6 06:56:47 2021
Results reported at Mon Sep  6 06:56:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin945 192.46 37.1306 484272001 484531201 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 :                                   815.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             306.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            963 sec.

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

