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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin522
RA = 192.46, Dec = 37.1306
tmin = 374630401, tmax = 374889601
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='937190', job_status='RUN', time_executed='2021-09-06 06:39:31.092553', time_epoch_executed='1630935571.09' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='522'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937190

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937190/ft1_4FGL_J1249.8+3707_daily_bin522.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937190/ft2_4FGL_J1249.8+3707_daily_bin522.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937190/ft1_4FGL_J1249.8+3707_daily_bin522.fits outfile=/scratch/kocevski/937190/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin522.fits ra=192.46 dec=37.1306 rad=12.0 tmin=374630401.0 tmax=374889601.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.81
user 4.34
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937190/ft1_filtered_4FGL_J1249.8+3707_daily_bin522.fits evtable="EVENTS" scfile=/scratch/kocevski/937190/ft2_4FGL_J1249.8+3707_daily_bin522.fits sctable="SC_DATA" expcube=/scratch/kocevski/937190/ltcube_374630401_374889601_4FGL_J1249.8+3707_daily_bin522.fits outfile=/scratch/kocevski/937190/expmap_374630401_374889601_4FGL_J1249.8+3707_daily_bin522.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/937190/ltcube_374630401_374889601_4FGL_J1249.8+3707_daily_bin522.fits
.....................!
real 190.19
user 184.12
sys 5.49

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/937190/ft1_filtered_4FGL_J1249.8+3707_daily_bin522.fits scfile=/scratch/kocevski/937190/ft2_4FGL_J1249.8+3707_daily_bin522.fits outfile=/scratch/kocevski/937190/cmap_374630401_374889601_4FGL_J1249.8+3707_daily_bin522.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937190/ft1_filtered_4FGL_J1249.8+3707_daily_bin522.fits scfile=/scratch/kocevski/937190/ft2_4FGL_J1249.8+3707_daily_bin522.fits outfile=/scratch/kocevski/937190/cmap_HighResolution_374630401_374889601_4FGL_J1249.8+3707_daily_bin522.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.59
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    45.838       1.0000         .10000E-03   10000.    
     3 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10166E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6787       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.0425       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.411       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.505       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .29999E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10413E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11571E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.976       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.939       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.9891       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13283E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    58.931       1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.234       1.0000         .10000E-03   10000.    
    24 'Prefactor '    54.046       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .64734       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1394       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=   5684.191     FROM MIGRAD    STATUS=CONVERGED    605 CALLS     3073 TOTAL
                     EDM=   .87E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.433        .86132E-07** at limit **
   2  Prefactor     45.785        36.150       -.50129E-06   -.39654E-04
   3  norm          .10000E-03    .88081       -.79194E-08** at limit **
   4  Prefactor     .10000E-03    2.6413       -.15373E-06** at limit **
   5  Prefactor     1.6789        1.6020       -.32451E-07   -.87742E-05
   6  Prefactor     7.0436        3.0412       -.39879E-07   -.14926E-04
   7  Prefactor     .10000E-03    7.7856        .35886E-06** at limit **
   8  Prefactor     14.414        17.379       -.24133E-06   -.98067E-05
   9  Prefactor     28.512        20.959       -.37595E-07    .75254E-05
  10  Prefactor     .10000E-03    106.75        .22942E-05** at limit **
  11  Prefactor     .10000E-03    9.8088       -.31512E-06** at limit **
  12  norm          .10000E-03    3.6648        .12115E-06** at limit **
  13  Prefactor     13.975        38.840       -.65944E-06    .12331E-05
  14  Prefactor     10.947        19.693        .46793E-06    .37233E-04
  15  Prefactor     .10000E-03    9.7001       -.17262E-06** at limit **
  16  norm          .10000E-03    1.5131       -.21324E-06** at limit **
  17  norm          .10000E-03    3.9742        .44923E-07** at limit **
  18  norm          6.9894        3.8438        .37529E-07    .25658E-03
  19  norm          .10000E-03    3.0956        .10890E-06** at limit **
  20  Prefactor     .10000E-03    1.9027       -.22448E-05** at limit **
  21  Prefactor     .10000E-03    4.5491       -.76540E-06** at limit **
  22  Prefactor     58.847        63.475        .43572E-06    .43681E-04
  23  Prefactor     42.237        23.561       -.84631E-07    .33073E-04
  24  Prefactor     53.984        62.847       -.81332E-06   -.26007E-04
  25  Normalizat    .64692        .16682        .29517E-05    .12605E-04
  26  Prefactor     1.1400        .20376       -.22983E-05    .19613E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 45.7852
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.67889
  Prefactor  = 7.04362
  Prefactor  = 0.0001
  Prefactor  = 14.4142
  Prefactor  = 28.5116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.9753
  Prefactor  = 10.947
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 6.98941
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.8466
  Prefactor  = 42.237
  Prefactor  = 53.9843
  Normalizat = 0.646925
  Prefactor  = 1.13997
 **********
 **   18 **HESSE 
 **********

 FCN=   5684.191     FROM HESSE     STATUS=OK           454 CALLS     3527 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     45.785        36.185        .59221E-04   -1.4354    
   3  norm          .10000E-03    .88381        .69032E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.6497        .11965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.6789        1.6155        .88934E-04   -1.5449    
   6  Prefactor     7.0436        3.0298        .81204E-04   -1.5177    
   7  Prefactor     .10000E-03    7.8355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     14.414        17.385        .10551E-03   -1.4948    
   9  Prefactor     28.512        20.908        .75039E-04   -1.4640    
  10  Prefactor     .10000E-03    107.30        .21390E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    10.160        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.8000        .28068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     13.975        38.853        .10714E-03   -1.4960    
  14  Prefactor     10.947        19.682        .12113E-03   -1.5046    
  15  Prefactor     .10000E-03    9.7448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.5179        .90587E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.9759        .14679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.9894        3.8336        .10157E-03   -1.5179    
  19  norm          .10000E-03    3.1002        .12926E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.9854        .20446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.5634        .15716E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     58.847        63.697        .26131E-03   -1.4172    
  23  Prefactor     42.237        23.559        .61685E-04   -1.4407    
  24  Prefactor     53.984        62.924        .54560E-04   -1.4237    
  25  Normalizat    .64692        .18560        .25287E-03   -1.0603    
  26  Prefactor     1.1400        .22797        .25051E-03   -.88199    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.20755e-10
Minuit parameter uncertainties:
  1  4.76723e-06
  2  36.2027
  3  1.51605e-07
  4  1.10406e-06
  5  1.6155
  6  3.02984
  7  6.40458e-06
  8  17.3912
  9  20.9135
  10  0.000243427
  11  1.28211e-05
  12  9.77106e-06
  13  38.9238
  14  19.6938
  15  9.06565e-06
  16  7.91568e-07
  17  4.35541e-06
  18  3.83375
  19  1.93468e-06
  20  1.26337e-06
  21  2.05264e-07
  22  63.7712
  23  23.5644
  24  63.0017
  25  0.185782
  26  0.228166
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.851e+01  2.091e+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.140e+00  2.282e-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.469e-01  1.858e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.42
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.60e-08 +/- 1.91e-08
Energy Flux (Fixed Index): 3.30e-05 +/- 2.42e-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) = 5683.43734592
delta logL = 0.753978190857

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5683.41435248
delta logL = 0.776971629339

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1069       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4634       1.0000          .0000       10.000    
     3 'Normalizat'    .60914       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1654       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=   5683.414     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      261 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.0771        101.80        .33203E-02    .11293E-03
   2  Index         2.4646        2.0922        .83780E-01    .17901E-03
   3  Normalizat    .60895        .68758E-01    .58846E-01    .24419E-04
   4  Prefactor     1.1656        .73147E-01    .56084E-01    .42103E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.07712
  Index      = 2.46455
  Normalizat = 0.608952
  Prefactor  = 1.16563
 **********
 **   18 **HESSE 
 **********

 FCN=   5683.414     FROM HESSE     STATUS=OK            33 CALLS      294 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.0771        21.098        .12714E-03   -1.5105    
   2  Index         2.4646        .89869        .31699E-02   -.53180    
   3  Normalizat    .60895        .18528        .26031E-03   -1.0761    
   4  Prefactor     1.1656        .23298        .24799E-03   -.87396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.2653e-08
Minuit parameter uncertainties:
  1  21.1155
  2  0.905334
  3  0.185471
  4  0.233182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937190': 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) = 5683.41434993
delta logL = 0.776974181175

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.077e+00  2.112e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.465e+00  9.053e-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.166e+00  2.332e-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.090e-01  1.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.96
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.46 +/- 0.91
Photon Flux (Free Index): 5.55e-08 +/- 4.18e-08
Energy Flux (Free Index): 1.68e-05 +/- 1.40e-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/937190/cmap_HighResolution_374630401_374889601_4FGL_J1249.8+3707_daily_bin522.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.60e-08', energy_flux2='1.68e-05', photon_flux_error='1.91e-08', dlogl='7.77e-01', energy_flux='3.30e-05', photon_flux2='5.55e-08', job_status='DONE', time_completed='2021-09-06 06:50:21.776966', photon_index_error2='0.91', photon_index2='2.46', ts='4.42', fit_tolerance='1e-08', GAL='1.14', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.65', time_epoch_completed='1630936221.78', return_code='0', job_id='937190', GAL2='1.17', EG2='0.61', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='4.18e-08', ts2='5.96', photon_index='1.78' WHERE bin_id='522' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 937190: <4FGL_J1249.8+3707_daily_bin522> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin522 192.46 37.1306 374630401 374889601 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 :                                   648.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             257.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            888 sec.

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

