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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin777
RA = 192.46, Dec = 37.1306
tmin = 440726401, tmax = 440985601
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='938697', job_status='RUN', time_executed='2021-09-06 06:42:32.809614', time_epoch_executed='1630935752.81' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='777'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938697

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938697/ft1_4FGL_J1249.8+3707_daily_bin777.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938697/ft2_4FGL_J1249.8+3707_daily_bin777.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938697/ft1_4FGL_J1249.8+3707_daily_bin777.fits outfile=/scratch/kocevski/938697/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin777.fits ra=192.46 dec=37.1306 rad=12.0 tmin=440726401.0 tmax=440985601.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.89
user 3.57
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938697/ft1_filtered_4FGL_J1249.8+3707_daily_bin777.fits" evtable="EVENTS" scfile=/scratch/kocevski/938697/ft2_4FGL_J1249.8+3707_daily_bin777.fits sctable="SC_DATA" outfile=/scratch/kocevski/938697/ltcube_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.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/938697/ft2_4FGL_J1249.8+3707_daily_bin777.fits
.....................!
real 12.17
user 11.72
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938697/ft1_filtered_4FGL_J1249.8+3707_daily_bin777.fits evtable="EVENTS" scfile=/scratch/kocevski/938697/ft2_4FGL_J1249.8+3707_daily_bin777.fits sctable="SC_DATA" expcube=/scratch/kocevski/938697/ltcube_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.fits outfile=/scratch/kocevski/938697/expmap_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.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/938697/ltcube_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.fits
.....................!
real 193.30
user 187.31
sys 5.31

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/938697/ft1_filtered_4FGL_J1249.8+3707_daily_bin777.fits scfile=/scratch/kocevski/938697/ft2_4FGL_J1249.8+3707_daily_bin777.fits outfile=/scratch/kocevski/938697/cmap_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938697/ft1_filtered_4FGL_J1249.8+3707_daily_bin777.fits scfile=/scratch/kocevski/938697/ft2_4FGL_J1249.8+3707_daily_bin777.fits outfile=/scratch/kocevski/938697/cmap_HighResolution_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.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.56
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    106.01       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.1290       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.1123       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.4820       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.4464       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.9238       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.557       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    60.340       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.8082       1.0000         .10000E-03   10000.    
    12 'norm      '    6.9315       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3330       1.0000         .10000E-03   10000.    
    16 'norm      '    3.2759       1.0000         .10000E-03   10000.    
    17 'norm      '    4.1293       1.0000         .10000E-03   10000.    
    18 'norm      '    .11308E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    6.4600       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16706E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    29.403       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3582       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .65335       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7165.719     FROM MIGRAD    STATUS=CONVERGED    121 CALLS     2654 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     106.01        3.0272        .26935E-07    .36327E-02
   2  Prefactor     .10001E-03    8.4643        .15735E-05** at limit **
   3  norm          3.1291        2.2555       -.22734E-07   -.71965E-04
   4  Prefactor     4.1115        1.2246        .88188E-07    .21860E-03
   5  Prefactor     1.4819        1.6330       -.69353E-07   -.84182E-04
   6  Prefactor     2.4462        1.9713        .19087E-07   -.28625E-04
   7  Prefactor     3.9237        1.0267        .17758E-07   -.13432E-03
   8  Prefactor     14.555        1.3789        .46326E-07   -.47971E-03
   9  Prefactor     .10000E-03    3.9984        .43772E-07** at limit **
  10  Prefactor     60.340        1.0701       -.13135E-07    .19050E-03
  11  Prefactor     4.8102        4.3271        .10109E-05    .14210E-02
  12  norm          6.9325        1.9924        .95081E-07   -.48110E-02
  13  Prefactor     .10008E-03    7.2549       -.94848E-06** at limit **
  14  Prefactor     .10008E-03    5.9452       -.58984E-08** at limit **
  15  Prefactor     3.3205        20.082        .24407E-05    .48685E-03
  16  norm          3.2813        4.3782       -.61511E-06   -.13771E-03
  17  norm          4.1293        1.0178        .15498E-07    .76465E-04
  18  norm          .10000E-03    4.5647        .89021E-07** at limit **
  19  norm          6.4662        4.7393        .47258E-06   -.12908E-02
  20  Prefactor     .10017E-03    1010.3        .24980E-04** at limit **
  21  Prefactor     .10000E-03    7.4650        .37579E-07** at limit **
  22  Prefactor     29.404        6.5769        .23718E-06   -.62150E-02
  23  Prefactor     .10002E-03    13.014       -.61124E-06** at limit **
  24  Prefactor     .10000E-03    17.993        .15192E-05** at limit **
  25  Normalizat    1.3583        .18551        .72680E-06   -.36427E-04
  26  Prefactor     .65327        .22310       -.18096E-05   -.47207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 106.007
  Prefactor  = 0.00010001
  norm       = 3.12909
  Prefactor  = 4.11151
  Prefactor  = 1.48185
  Prefactor  = 2.44622
  Prefactor  = 3.92375
  Prefactor  = 14.5547
  Prefactor  = 0.0001
  Prefactor  = 60.3402
  Prefactor  = 4.8102
  norm       = 6.9325
  Prefactor  = 0.00010008
  Prefactor  = 0.000100077
  Prefactor  = 3.32049
  norm       = 3.28125
  norm       = 4.12934
  norm       = 0.0001
  norm       = 6.46621
  Prefactor  = 0.000100168
  Prefactor  = 0.0001
  Prefactor  = 29.404
  Prefactor  = 0.000100019
  Prefactor  = 0.000100002
  Normalizat = 1.35831
  Prefactor  = 0.653266
 **********
 **   18 **HESSE 
 **********

 FCN=   7165.719     FROM HESSE     STATUS=OK           530 CALLS     3184 TOTAL
                     EDM=   .49E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     106.01        75.775        .97642E-03   -1.3645    
   2  Prefactor     .10001E-03    9.1711        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.1291        2.2464        .57298E-02   -1.5354    
   4  Prefactor     4.1115        7.5052        .49697E-02   -1.5302    
   5  Prefactor     1.4819        1.6322        .88128E-02   -1.5465    
   6  Prefactor     2.4462        1.9936        .65388E-02   -1.5395    
   7  Prefactor     3.9237        6.4219        .50916E-02   -1.5312    
   8  Prefactor     14.555        17.849        .26245E-02   -1.4945    
   9  Prefactor     .10000E-03    4.0275        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     60.340        65.651        .12913E-02   -1.4153    
  11  Prefactor     4.8102        4.5714        .45867E-02   -1.5269    
  12  norm          6.9325        4.9991        .38096E-02   -1.5181    
  13  Prefactor     .10008E-03    11.553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10008E-03    10.319        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3205        23.007        .55427E-02   -1.5344    
  16  norm          3.2813        4.5195        .55932E-02   -1.5346    
  17  norm          4.1293        7.4082        .49592E-02   -1.5302    
  18  norm          .10000E-03    2.5639        .40090E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          6.4662        5.0988        .39477E-02   -1.5199    
  20  Prefactor     .10017E-03    1.4619        .66065E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.4701        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     29.404        48.572        .18472E-02   -1.4623    
  23  Prefactor     .10002E-03    13.965        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.154        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3583        .16230        .47767E-01   -.81842    
  26  Prefactor     .65327        .19503        .79762E-01   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.88942e-07
Minuit parameter uncertainties:
  1  75.8442
  2  0.000595151
  3  2.24642
  4  7.50691
  5  1.63228
  6  1.99364
  7  6.42307
  8  17.8557
  9  7.79818e-05
  10  65.73
  11  4.57171
  12  4.99942
  13  0.00192881
  14  0.00178204
  15  17.4903
  16  4.51999
  17  7.40985
  18  6.40458e-05
  19  5.09913
  20  0.000992169
  21  2.62002e-05
  22  48.6372
  23  0.00102701
  24  0.000387783
  25  0.162363
  26  0.195233
Done.

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

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:  6.533e-01  1.952e-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.358e+00  1.624e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 2.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938697/likelihoodResults_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.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) = 7165.71969771
delta logL = -0.00109509435242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7165.71860238
delta logL = 2.35999323195e-07

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 'Index     '    1.7498       1.0000          .0000       10.000    
     3 'Normalizat'    1.3584       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .65311       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=   7165.719     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      242 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10130E-03    26.838        .17261E-02** at limit **
   2  Index         1.6948        7.8593        .50000        .49862E-04
   3  Normalizat    1.3583        .95939E-02    .21116E-03   -.17297E-03
   4  Prefactor     .65327        .11591E-01    .35319E-03    .50118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101297
  Index      = 1.69483
  Normalizat = 1.35831
  Prefactor  = 0.65327
 **********
 **   18 **HESSE 
 **********

 FCN=   7165.719     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10130E-03    119.11        .34522E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6948        7.2173        .50000       -.72219    
   3  Normalizat    1.3583        .20704E-01    .42232E-04   -.81842    
   4  Prefactor     .65327        .25013E-01    .14128E-04   -1.0539    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.68002e-08
Minuit parameter uncertainties:
  1  0.0249086
  2  222.09
  3  0.0207046
  4  0.0250139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938697': 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) = 7165.71860151
delta logL = 1.10650580609e-06

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.013e-04  2.491e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.695e+00  2.221e+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:  6.533e-01  2.501e-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.358e+00  2.070e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/938697/cmap_HighResolution_440726401_440985601_4FGL_J1249.8+3707_daily_bin777.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-03', job_status='DONE', photon_flux_upper_limit='2.15e-08', time_completed='2021-09-06 06:56:11.012628', job_id='938697', GAL2='0.65', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630936571.01', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='1.11e-06', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='777' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 938697: <4FGL_J1249.8+3707_daily_bin777> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin777 192.46 37.1306 440726401 440985601 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.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            942 sec.

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

