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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin582
RA = 192.46, Dec = 37.1306
tmin = 390182401, tmax = 390441601
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='937278', job_status='RUN', time_executed='2021-09-06 06:35:58.278413', time_epoch_executed='1630935358.28' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='582'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937278

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937278/ft1_4FGL_J1249.8+3707_daily_bin582.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937278/ft2_4FGL_J1249.8+3707_daily_bin582.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937278/ft1_4FGL_J1249.8+3707_daily_bin582.fits outfile=/scratch/kocevski/937278/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin582.fits ra=192.46 dec=37.1306 rad=12.0 tmin=390182401.0 tmax=390441601.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.05
user 3.84
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/937278/ft2_4FGL_J1249.8+3707_daily_bin582.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/937278/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin582.fits evtable="EVENTS" outfile="/scratch/kocevski/937278/ft1_filtered_4FGL_J1249.8+3707_daily_bin582.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.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937278/ft1_filtered_4FGL_J1249.8+3707_daily_bin582.fits evtable="EVENTS" scfile=/scratch/kocevski/937278/ft2_4FGL_J1249.8+3707_daily_bin582.fits sctable="SC_DATA" expcube=/scratch/kocevski/937278/ltcube_390182401_390441601_4FGL_J1249.8+3707_daily_bin582.fits outfile=/scratch/kocevski/937278/expmap_390182401_390441601_4FGL_J1249.8+3707_daily_bin582.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/937278/ltcube_390182401_390441601_4FGL_J1249.8+3707_daily_bin582.fits
.....................!
real 190.51
user 185.40
sys 4.74

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937278/ft1_filtered_4FGL_J1249.8+3707_daily_bin582.fits scfile=/scratch/kocevski/937278/ft2_4FGL_J1249.8+3707_daily_bin582.fits outfile=/scratch/kocevski/937278/cmap_HighResolution_390182401_390441601_4FGL_J1249.8+3707_daily_bin582.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.424       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.751       1.0000         .10000E-03   10000.    
     3 'norm      '    10.596       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.3988       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.7370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    119.20       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.0736       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.297       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.392       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    22.054       1.0000         .10000E-03   10000.    
    18 'norm      '    4.4629       1.0000         .10000E-03   10000.    
    19 'norm      '    4.6353       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .60975E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.1926       1.0000         .10000E-03   10000.    
    22 'Prefactor '    64.337       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    22.901       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95450       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96288       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=   7920.063     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3145 TOTAL
                     EDM=   .60E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.418        47.647       -.10584E-04   -.19971E-05
   2  Prefactor     18.751        26.285       -.27176E-06   -.61061E-05
   3  norm          10.596        3.3371        .37974E-07    .81794E-04
   4  Prefactor     5.3989        6.8494       -.19668E-06   -.17192E-03
   5  Prefactor     .10000E-03    .87399       -.12829E-07** at limit **
   6  Prefactor     .10000E-03    .99299       -.46918E-07** at limit **
   7  Prefactor     6.7355        10.348       -.40548E-06   -.93044E-04
   8  Prefactor     .10000E-03    4.0321        .69981E-07** at limit **
   9  Prefactor     .10000E-03    6.1054        .24550E-07** at limit **
  10  Prefactor     119.20        82.545        .49606E-05   -.21368E-04
  11  Prefactor     .10000E-03    1.3294       -.33001E-08** at limit **
  12  norm          3.0731        3.3815        .21845E-06   -.29485E-03
  13  Prefactor     .10000E-03    38.874       -.32913E-05** at limit **
  14  Prefactor     14.297        20.972       -.35324E-06   -.13497E-03
  15  Prefactor     14.392        11.907       -.23882E-06   -.16044E-03
  16  norm          .10000E-03    1.0982       -.11728E-07** at limit **
  17  norm          22.054        10.725       -.40305E-07    .16554E-04
  18  norm          4.4640        7.1008       -.54021E-06   -.12556E-02
  19  norm          4.6342        9.0034        .20073E-06   -.53533E-03
  20  Prefactor     .10093E-03    1.9798        .90234E-06** at limit **
  21  Prefactor     5.1908        21.626       -.43723E-05   -.44900E-03
  22  Prefactor     64.342        59.957        .57370E-05   -.20822E-03
  23  Prefactor     .10000E-03    19.318       -.82013E-06** at limit **
  24  Prefactor     22.900        47.036       -.35097E-05   -.23442E-04
  25  Normalizat    .95438        .15047        .93810E-07   -.29971E-03
  26  Prefactor     .96304        .17837        .37302E-06   -.19597E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.4177
  Prefactor  = 18.7512
  norm       = 10.5961
  Prefactor  = 5.39895
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.73548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 119.204
  Prefactor  = 0.0001
  norm       = 3.07313
  Prefactor  = 0.0001
  Prefactor  = 14.2972
  Prefactor  = 14.3922
  norm       = 0.0001
  norm       = 22.0542
  norm       = 4.46398
  norm       = 4.63425
  Prefactor  = 0.000100928
  Prefactor  = 5.19079
  Prefactor  = 64.3421
  Prefactor  = 0.0001
  Prefactor  = 22.8996
  Normalizat = 0.954376
  Prefactor  = 0.963038
 **********
 **   18 **HESSE 
 **********

 FCN=   7920.063     FROM HESSE     STATUS=OK           464 CALLS     3609 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.418        47.270        .76500E-04   -1.4660    
   2  Prefactor     18.751        26.285        .92493E-04   -1.4842    
   3  norm          10.596        3.3111        .87479E-04   -1.5057    
   4  Prefactor     5.3989        6.8535        .17295E-03   -1.5243    
   5  Prefactor     .10000E-03    .88635        .81089E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.1678        .16910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.7355        10.249        .15459E-03   -1.5189    
   8  Prefactor     .10000E-03    4.0354        .17453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     119.20        82.417        .36858E-04   -1.3520    
  11  Prefactor     .10000E-03    1.3302        .10016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.0731        3.3589        .15994E-03   -1.5357    
  13  Prefactor     .10000E-03    38.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     14.297        20.844        .10593E-03   -1.4952    
  15  Prefactor     14.392        11.892        .10558E-03   -1.4949    
  16  norm          .10000E-03    1.0996        .91045E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          22.054        10.725        .85292E-04   -1.4768    
  18  norm          4.4640        6.9858        .16675E-03   -1.5285    
  19  norm          4.6342        8.9489        .18694E-03   -1.5277    
  20  Prefactor     .10093E-03    39.256        .19083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.1908        19.080        .17641E-03   -1.5252    
  22  Prefactor     64.342        58.452        .50032E-04   -1.4102    
  23  Prefactor     .10000E-03    19.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     22.900        47.138        .83701E-04   -1.4751    
  25  Normalizat    .95438        .17950        .23723E-03   -.94575    
  26  Prefactor     .96304        .21170        .29060E-03   -.93972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29152e-08
Minuit parameter uncertainties:
  1  47.335
  2  26.301
  3  3.31113
  4  6.85454
  5  5.10106e-07
  6  8.15796e-06
  7  10.2513
  8  4.15219e-07
  9  1.51911e-06
  10  82.4968
  11  1.711e-07
  12  3.35913
  13  4.93651e-06
  14  20.8544
  15  11.8944
  16  6.90378e-07
  17  10.726
  18  6.98704
  19  8.95147
  20  0.0120793
  21  19.1025
  22  58.5043
  23  1.88589e-05
  24  47.2147
  25  0.179609
  26  0.211878
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.519e-06  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.630e-01  2.119e-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.544e-01  1.796e-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.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.00e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/937278/likelihoodResults_390182401_390441601_4FGL_J1249.8+3707_daily_bin582.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) = 7920.064011
delta logL = -0.000777783118792

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7920.06323317
delta logL = 4.9819391279e-08

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.7675       1.0000          .0000       10.000    
     3 'Normalizat'    .95438       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96304       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=   7920.063     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    42.888        .18142E-02** at limit **
   2  Index         1.7386        6.4536        .50000        .13482E-04
   3  Normalizat    .95438        .94161E-02    .23723E-03    .63737E-05
   4  Prefactor     .96304        .11634E-01    .29060E-03    .38730E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100358
  Index      = 1.73861
  Normalizat = 0.954377
  Prefactor  = 0.963037
 **********
 **   18 **HESSE 
 **********

 FCN=   7920.063     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    228.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7386        5.0349        .50000       -.71059    
   3  Normalizat    .95438        .22541E-01    .94893E-05   -.94575    
   4  Prefactor     .96304        .27839E-01    .11624E-04   -.93972    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.36207e-08
Minuit parameter uncertainties:
  1  0.0181299
  2  435.077
  3  0.0225411
  4  0.0278397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937278': 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) = 7920.06323309
delta logL = 1.29021827888e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.004e-04  1.813e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.739e+00  4.351e+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.630e-01  2.784e-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.544e-01  2.254e-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/937278/cmap_HighResolution_390182401_390441601_4FGL_J1249.8+3707_daily_bin582.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-03', job_status='DONE', photon_flux_upper_limit='2.72e-08', time_completed='2021-09-06 06:50:52.346041', job_id='937278', GAL2='0.96', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630936252.35', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.29e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='582' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0143>
Subject: Job 937278: <4FGL_J1249.8+3707_daily_bin582> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin582 192.46 37.1306 390182401 390441601 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 :                                   889.26 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             317.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            914 sec.

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

