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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin362
RA = 192.46, Dec = 37.1306
tmin = 333158401, tmax = 333417601
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='935839', job_status='RUN', time_executed='2021-09-06 06:33:28.780095', time_epoch_executed='1630935208.78' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='362'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935839

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935839/ft1_4FGL_J1249.8+3707_daily_bin362.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935839/ft2_4FGL_J1249.8+3707_daily_bin362.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935839/ft1_4FGL_J1249.8+3707_daily_bin362.fits outfile=/scratch/kocevski/935839/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin362.fits ra=192.46 dec=37.1306 rad=12.0 tmin=333158401.0 tmax=333417601.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 6.05
user 5.81
sys 0.21

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935839/ft1_filtered_4FGL_J1249.8+3707_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/935839/ft2_4FGL_J1249.8+3707_daily_bin362.fits sctable="SC_DATA" expcube=/scratch/kocevski/935839/ltcube_333158401_333417601_4FGL_J1249.8+3707_daily_bin362.fits outfile=/scratch/kocevski/935839/expmap_333158401_333417601_4FGL_J1249.8+3707_daily_bin362.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/935839/ltcube_333158401_333417601_4FGL_J1249.8+3707_daily_bin362.fits
.....................!
real 191.26
user 186.52
sys 4.35

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935839/ft1_filtered_4FGL_J1249.8+3707_daily_bin362.fits scfile=/scratch/kocevski/935839/ft2_4FGL_J1249.8+3707_daily_bin362.fits outfile=/scratch/kocevski/935839/cmap_HighResolution_333158401_333417601_4FGL_J1249.8+3707_daily_bin362.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/935839/ft1_filtered_4FGL_J1249.8+3707_daily_bin362.fits evtable="EVENTS" scfile=/scratch/kocevski/935839/ft2_4FGL_J1249.8+3707_daily_bin362.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/935839/Model_4FGL_J1249.8+3707_daily_bin362.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/935839/ft1_filtered_4FGL_J1249.8+3707_daily_bin362.fits.....................!
real 48.76
user 47.35
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.8283       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.5770       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .68155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.3916       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.2031       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.658       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.442       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8164       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .16014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .25224       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3962       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.600       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1758       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .87495       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=   5774.359     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3120 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.8267        120.31       -.53373E-05    .31072E-06
   2  Prefactor     .10000E-03    6.7176       -.51105E-05** at limit **
   3  norm          1.5774        2.2419       -.15119E-06   -.30981E-04
   4  Prefactor     .68117        .68560        .10143E-06   -.13796E-02
   5  Prefactor     .10000E-03    .87851       -.98761E-07** at limit **
   6  Prefactor     3.3913        2.3854       -.81100E-07   -.87975E-04
   7  Prefactor     .10000E-03    6.5576        .48490E-05** at limit **
   8  Prefactor     4.2032        40.032       -.24921E-05   -.22776E-05
   9  Prefactor     .10000E-03    32.435       -.45092E-06** at limit **
  10  Prefactor     24.633        39.639       -.23982E-04   -.60338E-05
  11  Prefactor     .10000E-03    3.4408        .71675E-07** at limit **
  12  norm          .10000E-03    2.0115        .15748E-06** at limit **
  13  Prefactor     .10000E-03    47.772        .71638E-06** at limit **
  14  Prefactor     34.431        24.647       -.78146E-06    .65537E-06
  15  Prefactor     7.8178        13.606       -.59865E-07   -.51012E-04
  16  norm          .10000E-03    1.2354        .65584E-07** at limit **
  17  norm          .10000E-03    8.9597        .58278E-07** at limit **
  18  norm          .10000E-03    2.3686       -.40407E-07** at limit **
  19  norm          .10000E-03    3.2209        .10670E-06** at limit **
  20  Prefactor     .25149        2.4678        .52836E-07    .26311E-04
  21  Prefactor     4.3872        18.628       -.36034E-06   -.93367E-05
  22  Prefactor     .10000E-03    81.481        .23376E-05** at limit **
  23  Prefactor     .10000E-03    4.6453        .20639E-06** at limit **
  24  Prefactor     10.595        111.40       -.11492E-04    .25197E-06
  25  Normalizat    1.1758        .17583        .12943E-05   -.68901E-04
  26  Prefactor     .87505        .20783        .32674E-06    .14759E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.82672
  Prefactor  = 0.0001
  norm       = 1.5774
  Prefactor  = 0.681173
  Prefactor  = 0.0001
  Prefactor  = 3.3913
  Prefactor  = 0.0001
  Prefactor  = 4.20316
  Prefactor  = 0.0001
  Prefactor  = 24.6329
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 34.4308
  Prefactor  = 7.81775
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.251494
  Prefactor  = 4.38722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.5952
  Normalizat = 1.17576
  Prefactor  = 0.875051
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.359     FROM HESSE     STATUS=OK           458 CALLS     3578 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.8267        120.36        .13490E-03   -1.5114    
   2  Prefactor     .10000E-03    6.7216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.5774        2.2106        .12977E-03   -1.5457    
   4  Prefactor     .68117        6.2080        .18239E-02   -1.5543    
   5  Prefactor     .10000E-03    .88463        .69429E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.3913        2.3750        .93949E-04   -1.5340    
   7  Prefactor     .10000E-03    6.6538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.2032        40.246        .19657E-03   -1.5298    
   9  Prefactor     .10000E-03    32.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.633        39.669        .80670E-04   -1.4715    
  11  Prefactor     .10000E-03    3.4597        .13750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.0212        .10511E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    47.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     34.431        24.279        .68283E-04   -1.4534    
  15  Prefactor     7.8178        13.622        .71712E-03   -1.5149    
  16  norm          .10000E-03    1.2362        .82469E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.9809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8024        .21897E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.2473        .13299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .25149        15.310        .18466E-02   -1.5608    
  21  Prefactor     4.3872        25.680        .19208E-03   -1.5289    
  22  Prefactor     .10000E-03    82.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    4.6468        .15996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10.595        112.40        .12306E-03   -1.5057    
  25  Normalizat    1.1758        .20550        .21297E-03   -.87355    
  26  Prefactor     .87505        .24228        .30225E-03   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.61372e-09
Minuit parameter uncertainties:
  1  65.3478
  2  3.01594e-06
  3  2.21073
  4  4.11305
  5  7.40005e-08
  6  2.37509
  7  2.09628e-05
  8  26.0351
  9  2.48671e-05
  10  39.7117
  11  4.25908e-07
  12  1.80051e-05
  13  4.45412e-05
  14  24.2855
  15  13.6276
  16  2.62504e-07
  17  8.41384e-06
  18  8.76925e-05
  19  1.78331e-06
  20  3.92477
  21  21.242
  22  3.48083e-05
  23  4.59351e-07
  24  69.1855
  25  0.205642
  26  0.242577
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.487e-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:  8.751e-01  2.426e-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.176e+00  2.056e-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.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935839/likelihoodResults_333158401_333417601_4FGL_J1249.8+3707_daily_bin362.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) = 5774.35891119
delta logL = -0.000144450850712

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5774.35876675
delta logL = -1.47383616422e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8481       1.0000          .0000       10.000    
     3 'Normalizat'    1.1758       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87505       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5774.359     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      232 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    96.398        .90712E-02** at limit **
   2  Index         1.8540        5.1040        .50000       -.15093E-05
   3  Normalizat    1.1758        .71169E-02    .35515E-01    .43709E-05
   4  Prefactor     .87505        .88950E-02    .68322E-01    .17669E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.854
  Normalizat = 1.17577
  Prefactor  = 0.87505
 **********
 **   18 **HESSE 
 **********

 FCN=   5774.359     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    547.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8540        9.0668        .50000       -.68052    
   3  Normalizat    1.1758        .17158E-01    .21297E-03   -.87355    
   4  Prefactor     .87505        .21414E-01    .30225E-03   -.97018    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.25349e-11
Minuit parameter uncertainties:
  1  9.72611e-05
  2  15.9416
  3  0.0171584
  4  0.0214146
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935839': 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) = 5774.35876671
delta logL = 2.66500137514e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  9.726e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.854e+00  1.594e+01  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:  8.750e-01  2.141e-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.176e+00  1.716e-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/935839/cmap_HighResolution_333158401_333417601_4FGL_J1249.8+3707_daily_bin362.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-03', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-09-06 06:46:04.953230', job_id='935839', GAL2='0.88', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1630935964.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.67e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='362' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 935839: <4FGL_J1249.8+3707_daily_bin362> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin362> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:57 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:58 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:30:58 2021
Terminated at Mon Sep  6 06:46:05 2021
Results reported at Mon Sep  6 06:46:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin362 192.46 37.1306 333158401 333417601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   752.30 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            908 sec.

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

