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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin979
RA = 192.46, Dec = 37.1306
tmin = 493084801, tmax = 493344001
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='940264', job_status='RUN', time_executed='2021-09-06 06:47:55.906053', time_epoch_executed='1630936075.91' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='979'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940264

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940264/ft1_4FGL_J1249.8+3707_daily_bin979.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940264/ft2_4FGL_J1249.8+3707_daily_bin979.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940264/ft1_4FGL_J1249.8+3707_daily_bin979.fits outfile=/scratch/kocevski/940264/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin979.fits ra=192.46 dec=37.1306 rad=12.0 tmin=493084801.0 tmax=493344001.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.72
user 3.34
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/940264/ft2_4FGL_J1249.8+3707_daily_bin979.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/940264/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin979.fits evtable="EVENTS" outfile="/scratch/kocevski/940264/ft1_filtered_4FGL_J1249.8+3707_daily_bin979.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.33
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940264/ft1_filtered_4FGL_J1249.8+3707_daily_bin979.fits evtable="EVENTS" scfile=/scratch/kocevski/940264/ft2_4FGL_J1249.8+3707_daily_bin979.fits sctable="SC_DATA" expcube=/scratch/kocevski/940264/ltcube_493084801_493344001_4FGL_J1249.8+3707_daily_bin979.fits outfile=/scratch/kocevski/940264/expmap_493084801_493344001_4FGL_J1249.8+3707_daily_bin979.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/940264/ltcube_493084801_493344001_4FGL_J1249.8+3707_daily_bin979.fits
.....................!
real 190.75
user 185.26
sys 4.84

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/940264/ft1_filtered_4FGL_J1249.8+3707_daily_bin979.fits scfile=/scratch/kocevski/940264/ft2_4FGL_J1249.8+3707_daily_bin979.fits outfile=/scratch/kocevski/940264/cmap_493084801_493344001_4FGL_J1249.8+3707_daily_bin979.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.67
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940264/ft1_filtered_4FGL_J1249.8+3707_daily_bin979.fits scfile=/scratch/kocevski/940264/ft2_4FGL_J1249.8+3707_daily_bin979.fits outfile=/scratch/kocevski/940264/cmap_HighResolution_493084801_493344001_4FGL_J1249.8+3707_daily_bin979.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.73
user 0.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .26908E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.242       1.0000         .10000E-03   10000.    
     3 'norm      '    18.373       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    11.226       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    30.925       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.1901       1.0000         .10000E-03   10000.    
    13 'Prefactor '    29.713       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.023       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.172       1.0000         .10000E-03   10000.    
    16 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .87119E-02   1.0000         .10000E-03   10000.    
    18 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .59617       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .88618       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.3382       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.657       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.1358       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.498       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .61623       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4437       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=   5296.624     FROM MIGRAD    STATUS=CONVERGED   1122 CALLS     3646 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.073        .14045    ** at limit **
   2  Prefactor     25.260        32.394        .79733E-04    .96958E-05
   3  norm          18.374        5.3831        .77518E-04   -.34025E-04
   4  Prefactor     5.2985        5.8695        .17460E-03   -.19013E-05
   5  Prefactor     1.2008        3.0451        .17330E-03    .46576E-04
   6  Prefactor     .10000E-03    .92387        .67835E-03** at limit **
   7  Prefactor     11.227        11.629        .11957E-03    .19016E-06
   8  Prefactor     .10000E-03    7.9118        .18142E-02** at limit **
   9  Prefactor     30.929        22.042        .72050E-04   -.63115E-06
  10  Prefactor     .10000E-03    25.884        .18142E-02** at limit **
  11  Prefactor     .10000E-03    2.6450        .11537E-02** at limit **
  12  norm          4.1886        4.6531        .71680E-03    .13037E-04
  13  Prefactor     29.819        47.268        .73501E-04   -.80430E-05
  14  Prefactor     16.024        25.514        .10006E-03   -.15680E-04
  15  Prefactor     11.173        15.259        .11986E-03   -.40690E-04
  16  norm          .10000E-03    8.5504        .36285E-03** at limit **
  17  norm          .10000E-03    75.759        .41890E-02** at limit **
  18  norm          .10000E-03    4.8688        .21378E-02** at limit **
  19  norm          .58941        9.7647        .42348E-03    .39436E-04
  20  Prefactor     .88632        2.6167        .18373E-03    .20413E-03
  21  Prefactor     3.3368        14.346        .22153E-03   -.27199E-04
  22  Prefactor     10.652        40.773        .12273E-03   -.23158E-05
  23  Prefactor     4.1354        11.234        .19821E-03    .39577E-05
  24  Prefactor     23.492        64.975        .82633E-04   -.12382E-05
  25  Normalizat    .61617        .21489        .28021E-03    .18014E-04
  26  Prefactor     1.4438        .27294        .25244E-03   -.13510E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 25.2605
  norm       = 18.3736
  Prefactor  = 5.29848
  Prefactor  = 1.20083
  Prefactor  = 0.0001
  Prefactor  = 11.2268
  Prefactor  = 0.0001
  Prefactor  = 30.9294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.18862
  Prefactor  = 29.8189
  Prefactor  = 16.0236
  Prefactor  = 11.1726
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0001
  norm       = 0.589412
  Prefactor  = 0.886323
  Prefactor  = 3.3368
  Prefactor  = 10.6524
  Prefactor  = 4.13545
  Prefactor  = 23.4921
  Normalizat = 0.616169
  Prefactor  = 1.44379
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.624     FROM HESSE     STATUS=OK           442 CALLS     4088 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.898        .14125       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.260        32.393        .31893E-05   -1.4702    
   3  norm          18.374        5.3811        .31007E-05   -1.4850    
   4  Prefactor     5.2985        5.8694        .34920E-04   -1.5248    
   5  Prefactor     1.2008        3.0438        .69322E-05   -1.5489    
   6  Prefactor     .10000E-03    .92393        .13567E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     11.227        11.628        .47828E-05   -1.5038    
   8  Prefactor     .10000E-03    7.9119        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     30.929        22.042        .28820E-05   -1.4595    
  10  Prefactor     .10000E-03    25.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6450        .23074E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.1886        4.6524        .28672E-04   -1.5299    
  13  Prefactor     29.819        47.259        .29400E-05   -1.4615    
  14  Prefactor     16.024        25.510        .40023E-05   -1.4907    
  15  Prefactor     11.173        15.257        .47944E-05   -1.5039    
  16  norm          .10000E-03    8.5506        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    78.433        .16756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.8721        .42756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .58941        9.7212        .16939E-04   -1.5554    
  20  Prefactor     .88632        2.6140        .73494E-05   -1.5520    
  21  Prefactor     3.3368        14.313        .88611E-05   -1.5343    
  22  Prefactor     10.652        40.760        .49092E-05   -1.5055    
  23  Prefactor     4.1354        11.234        .79283E-05   -1.5301    
  24  Prefactor     23.492        65.021        .33053E-05   -1.4738    
  25  Normalizat    .61617        .21506        .11209E-04   -1.0730    
  26  Prefactor     1.4438        .27314        .10098E-04   -.79126    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11203e-10
Minuit parameter uncertainties:
  1  0.000262835
  2  32.416
  3  5.38123
  4  5.87003
  5  3.04417
  6  1.7809e-06
  7  11.6305
  8  3.30525e-06
  9  22.0474
  10  1.04851e-05
  11  2.87203e-06
  12  4.65277
  13  47.3187
  14  25.5276
  15  15.2628
  16  6.53459e-05
  17  0.000709689
  18  3.27212e-05
  19  4.78792
  20  2.61436
  21  13.8268
  22  40.8673
  23  11.2394
  24  65.2179
  25  0.215351
  26  0.27342
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.093e+01  2.205e+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:  1.444e+00  2.734e-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:  6.162e-01  2.154e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.34
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.82e-08 +/- 2.01e-08
Energy Flux (Fixed Index): 3.59e-05 +/- 2.56e-05

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) = 5296.59083604
delta logL = 0.0332410637511

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5296.582758
delta logL = 0.0413191040852

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    36.459       1.0000         .10000E-03   10000.    
     2 'Index     '    1.6567       1.0000          .0000       10.000    
     3 'Normalizat'    .61919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4422       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=   5296.583     FROM MIGRAD    STATUS=CONVERGED     47 CALLS      264 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     36.459        693.82        .16593E-02    .14234E-03
   2  Index         1.6566        2.9682        .14998        .20240E-03
   3  Normalizat    .61947        .90015E-01    .63176E-01    .11500E-04
   4  Prefactor     1.4418        .93345E-01    .57127E-01   -.45537E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 36.4594
  Index      = 1.65663
  Normalizat = 0.619465
  Prefactor  = 1.4418
 **********
 **   18 **HESSE 
 **********

 FCN=   5296.583     FROM HESSE     STATUS=OK            29 CALLS      293 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     36.459        32.148        .66373E-04   -1.4500    
   2  Index         1.6566        .43280        .52662E-02   -.73242    
   3  Normalizat    .61947        .20254        .27952E-03   -1.0716    
   4  Prefactor     1.4418        .26941        .25259E-03   -.79183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83116e-10
Minuit parameter uncertainties:
  1  32.1629
  2  0.433779
  3  0.202782
  4  0.269673
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940264': 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) = 5296.58275699
delta logL = 0.0413201137417

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.646e+01  3.216e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.657e+00  4.338e-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:  1.442e+00  2.697e-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:  6.195e-01  2.028e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.42
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.66 +/- 0.43
Photon Flux (Free Index): 2.49e-08 +/- 2.11e-08
Energy Flux (Free Index): 4.67e-05 +/- 5.58e-05

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/940264/cmap_HighResolution_493084801_493344001_4FGL_J1249.8+3707_daily_bin979.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.82e-08', energy_flux2='4.67e-05', photon_flux_error='2.01e-08', dlogl='4.13e-02', energy_flux='3.59e-05', photon_flux2='2.49e-08', job_status='DONE', time_completed='2021-09-06 06:59:15.362006', photon_index_error2='0.43', photon_index2='1.66', ts='4.34', fit_tolerance='1e-08', GAL='1.44', photon_index_error='0.00', energy_flux_error2='5.58e-05', EG='0.62', time_epoch_completed='1630936755.36', return_code='0', job_id='940264', GAL2='1.44', EG2='0.62', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='2.11e-08', ts2='4.42', photon_index='1.78' WHERE bin_id='979' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:59:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 940264: <4FGL_J1249.8+3707_daily_bin979> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin979> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:24 2021
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:26 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:45:26 2021
Terminated at Mon Sep  6 06:59:16 2021
Results reported at Mon Sep  6 06:59:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin979 192.46 37.1306 493084801 493344001 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 :                                   673.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   844 sec.
    Turnaround time :                            832 sec.

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

