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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin498
RA = 192.46, Dec = 37.1306
tmin = 368409601, tmax = 368668801
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='937156', job_status='RUN', time_executed='2021-09-06 06:37:32.020692', time_epoch_executed='1630935452.02' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='498'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937156

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937156/ft1_4FGL_J1249.8+3707_daily_bin498.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937156/ft2_4FGL_J1249.8+3707_daily_bin498.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937156/ft1_4FGL_J1249.8+3707_daily_bin498.fits outfile=/scratch/kocevski/937156/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin498.fits ra=192.46 dec=37.1306 rad=12.0 tmin=368409601.0 tmax=368668801.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.30
user 3.10
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937156/ft1_filtered_4FGL_J1249.8+3707_daily_bin498.fits evtable="EVENTS" scfile=/scratch/kocevski/937156/ft2_4FGL_J1249.8+3707_daily_bin498.fits sctable="SC_DATA" expcube=/scratch/kocevski/937156/ltcube_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.fits outfile=/scratch/kocevski/937156/expmap_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.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/937156/ltcube_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.fits
.....................!
real 195.54
user 188.22
sys 4.23

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/937156/ft1_filtered_4FGL_J1249.8+3707_daily_bin498.fits scfile=/scratch/kocevski/937156/ft2_4FGL_J1249.8+3707_daily_bin498.fits outfile=/scratch/kocevski/937156/cmap_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937156/ft1_filtered_4FGL_J1249.8+3707_daily_bin498.fits scfile=/scratch/kocevski/937156/ft2_4FGL_J1249.8+3707_daily_bin498.fits outfile=/scratch/kocevski/937156/cmap_HighResolution_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    7.8164       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.0560       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2943       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .19070E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1339       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0649       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.268       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    6.9902       1.0000         .10000E-03   10000.    
    18 'norm      '    .38579E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10240E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7207       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4821       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.5885       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3762       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .50631       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=   5626.231     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3143 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.543        .32617E-05** at limit **
   2  Prefactor     .10000E-03    17.048       -.27465E-06** at limit **
   3  norm          7.8190        3.3819        .80568E-08   -.11224E-03
   4  Prefactor     9.0566        8.4025        .15037E-06   -.26222E-04
   5  Prefactor     .10000E-03    1.4512       -.45009E-07** at limit **
   6  Prefactor     2.2949        1.7783       -.29227E-07   -.22068E-03
   7  Prefactor     .10001E-03    6.5576        .18208E-06** at limit **
   8  Prefactor     .10000E-03    16.803        .47456E-06** at limit **
   9  Prefactor     8.1347        11.839       -.71096E-08   -.29738E-05
  10  Prefactor     .10000E-03    22.710        .13035E-05** at limit **
  11  Prefactor     8.0645        5.3319        .22422E-06    .37103E-03
  12  norm          .10000E-03    1.4110        .88763E-07** at limit **
  13  Prefactor     47.294        54.931        .35860E-05    .19595E-03
  14  Prefactor     .10000E-03    13.472       -.26883E-05** at limit **
  15  Prefactor     .10000E-03    16.996       -.32810E-05** at limit **
  16  norm          .10000E-03    3.7460       -.11320E-06** at limit **
  17  norm          6.9896        10.886       -.98992E-07    .10516E-04
  18  norm          .10000E-03    1.7430       -.15959E-06** at limit **
  19  norm          .10000E-03    4.0145        .35954E-06** at limit **
  20  Prefactor     .10000E-03    1.2572       -.17742E-07** at limit **
  21  Prefactor     4.7199        6.3757        .93121E-06   -.54711E-03
  22  Prefactor     9.4796        40.818       -.95390E-06   -.25171E-04
  23  Prefactor     4.5883        11.082        .38120E-05   -.59620E-03
  24  Prefactor     .10000E-03    14.430        .10683E-05** at limit **
  25  Normalizat    1.3762        .17685       -.39906E-06   -.67477E-04
  26  Prefactor     .50630        .21464       -.67491E-06   -.76239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 7.81904
  Prefactor  = 9.05658
  Prefactor  = 0.0001
  Prefactor  = 2.29491
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  Prefactor  = 8.13473
  Prefactor  = 0.000100001
  Prefactor  = 8.06446
  norm       = 0.0001
  Prefactor  = 47.2938
  Prefactor  = 0.000100003
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 6.9896
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.71989
  Prefactor  = 9.47958
  Prefactor  = 4.58825
  Prefactor  = 0.0001
  Normalizat = 1.37622
  Prefactor  = 0.506303
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.231     FROM HESSE     STATUS=OK           462 CALLS     3605 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.234        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          7.8190        3.3691        .86466E-04   -1.5149    
   4  Prefactor     9.0566        8.4018        .13319E-03   -1.5106    
   5  Prefactor     .10000E-03    1.4681        .87877E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2949        1.7751        .84299E-04   -1.5405    
   7  Prefactor     .10001E-03    11.108        .61665E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1347        11.834        .14058E-03   -1.5137    
  10  Prefactor     .10000E-03    22.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0645        5.3571        .13683E-03   -1.5140    
  12  norm          .10000E-03    1.4173        .87013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     47.294        56.057        .58322E-04   -1.4331    
  14  Prefactor     .10000E-03    13.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8656        .28327E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          6.9896        10.877        .15174E-03   -1.5179    
  18  norm          .10000E-03    9.3774        .18071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    8.4685        .27708E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.2756        .81966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7199        6.4735        .92600E-03   -1.5273    
  22  Prefactor     9.4796        40.691        .13014E-03   -1.5092    
  23  Prefactor     4.5883        12.289        .93956E-03   -1.5280    
  24  Prefactor     .10000E-03    14.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.3762        .19204        .19461E-03   -.81319    
  26  Prefactor     .50630        .23247        .37256E-03   -1.1169    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44408e-09
Minuit parameter uncertainties:
  1  0.000493881
  2  3.41717e-05
  3  3.36915
  4  8.40293
  5  5.023e-07
  6  1.77514
  7  0.00053614
  8  7.35805e-05
  9  11.8373
  10  0.000245986
  11  5.35737
  12  5.43975e-06
  13  56.1198
  14  0.000376079
  15  0.000487983
  16  2.17785e-06
  17  10.88
  18  0.000123275
  19  5.31242e-05
  20  2.19228e-06
  21  6.47444
  22  39.3255
  23  12.2961
  24  0.000159505
  25  0.192138
  26  0.232905
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  8.135e+00  1.184e+01  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:  5.063e-01  2.329e-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.376e+00  1.921e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937156/likelihoodResults_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.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): 0
logL (Free Index) = 5626.22945198
delta logL = 0.00189621806203

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5626.22833006
delta logL = 0.00301814627528

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.4628       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8509       1.0000          .0000       10.000    
     3 'Normalizat'    1.3754       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .50667       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=   5626.228     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      216 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.4628        535.60        .36702E-02    .11322E-03
   2  Index         1.8510        5.1612        .15231        .80000E-04
   3  Normalizat    1.3755        .79736E-01    .31575E-01   -.14695E-05
   4  Prefactor     .50665        .78428E-01    .84071E-01    .35087E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.4628
  Index      = 1.851
  Normalizat = 1.37552
  Prefactor  = 0.506651
 **********
 **   18 **HESSE 
 **********

 FCN=   5626.228     FROM HESSE     STATUS=OK            33 CALLS      249 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.4628        15.262        .14681E-03   -1.5162    
   2  Index         1.8510        .98975        .10401E-01   -.68130    
   3  Normalizat    1.3755        .18998        .19465E-03   -.81339    
   4  Prefactor     .50665        .23108        .37243E-03   -1.1167    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.23182e-09
Minuit parameter uncertainties:
  1  15.2703
  2  1.00079
  3  0.190076
  4  0.231506
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937156': 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): 0
logL (Free Index) = 5626.2283297
delta logL = 0.00301850071082

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.463e+00  1.527e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.851e+00  1.001e+00  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:  5.067e-01  2.315e-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.376e+00  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.90
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/937156/cmap_HighResolution_368409601_368668801_4FGL_J1249.8+3707_daily_bin498.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.22e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-06 06:50:01.466490', job_id='937156', GAL2='0.51', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1630936201.47', return_code2='0', ts='0.90', comment='SUCCESS', return_code='0', GAL='0.51', dlogl='3.02e-03', ts2='0.90', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='498' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 937156: <4FGL_J1249.8+3707_daily_bin498> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin498 192.46 37.1306 368409601 368668801 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 :                                   742.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             286.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

