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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin426
RA = 192.46, Dec = 37.1306
tmin = 349747201, tmax = 350006401
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='935923', job_status='RUN', time_executed='2021-09-06 06:33:53.739251', time_epoch_executed='1630935233.74' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='426'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935923

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935923/ft1_4FGL_J1249.8+3707_daily_bin426.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935923/ft2_4FGL_J1249.8+3707_daily_bin426.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935923/ft1_4FGL_J1249.8+3707_daily_bin426.fits outfile=/scratch/kocevski/935923/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin426.fits ra=192.46 dec=37.1306 rad=12.0 tmin=349747201.0 tmax=350006401.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.51
user 3.28
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935923/ft1_filtered_4FGL_J1249.8+3707_daily_bin426.fits" evtable="EVENTS" scfile=/scratch/kocevski/935923/ft2_4FGL_J1249.8+3707_daily_bin426.fits sctable="SC_DATA" outfile=/scratch/kocevski/935923/ltcube_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.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/935923/ft2_4FGL_J1249.8+3707_daily_bin426.fits
.....................!
real 13.05
user 12.68
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935923/ft1_filtered_4FGL_J1249.8+3707_daily_bin426.fits evtable="EVENTS" scfile=/scratch/kocevski/935923/ft2_4FGL_J1249.8+3707_daily_bin426.fits sctable="SC_DATA" expcube=/scratch/kocevski/935923/ltcube_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.fits outfile=/scratch/kocevski/935923/expmap_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.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/935923/ltcube_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.fits
.....................!
real 191.61
user 185.86
sys 5.09

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/935923/ft1_filtered_4FGL_J1249.8+3707_daily_bin426.fits scfile=/scratch/kocevski/935923/ft2_4FGL_J1249.8+3707_daily_bin426.fits outfile=/scratch/kocevski/935923/cmap_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935923/ft1_filtered_4FGL_J1249.8+3707_daily_bin426.fits scfile=/scratch/kocevski/935923/ft2_4FGL_J1249.8+3707_daily_bin426.fits outfile=/scratch/kocevski/935923/cmap_HighResolution_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.5497       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0761       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.3749       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7330       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1020       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.816       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5469       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.083       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .68478       1.0000         .10000E-03   10000.    
    16 'norm      '    .89498       1.0000         .10000E-03   10000.    
    17 'norm      '    5.9574       1.0000         .10000E-03   10000.    
    18 'norm      '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.6595       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.9756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.2210       1.0000         .10000E-03   10000.    
    22 'Prefactor '    53.024       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0566       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .79360       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=   5858.434     FROM MIGRAD    STATUS=CONVERGED    604 CALLS     3091 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    74.579        .20623E-05** at limit **
   2  Prefactor     1.5000        113.77       -.41721E-05   -.11570E-04
   3  norm          5.0760        2.9296       -.27501E-07    .58627E-04
   4  Prefactor     4.3744        5.3710        .63473E-08    .33279E-04
   5  Prefactor     1.7333        1.9846       -.25920E-08    .18281E-04
   6  Prefactor     4.1027        2.2623       -.88073E-07    .20303E-04
   7  Prefactor     1.3491        9.7215        .17955E-05   -.79594E-04
   8  Prefactor     .10000E-03    5.1877        .24646E-07** at limit **
   9  Prefactor     10.816        10.681        .39859E-07    .69858E-04
  10  Prefactor     .10000E-03    42.366        .36147E-06** at limit **
  11  Prefactor     .10000E-03    2.2659        .57440E-07** at limit **
  12  norm          3.5465        3.6703        .12495E-06    .22314E-04
  13  Prefactor     28.077        37.029       -.11360E-06    .14699E-05
  14  Prefactor     .10000E-03    6.1095        .11149E-06** at limit **
  15  Prefactor     .68367        13.746       -.29516E-05    .33526E-03
  16  norm          .88240        5.9283        .40408E-05    .35055E-03
  17  norm          5.9574        6.1782       -.16693E-05    .31448E-03
  18  norm          .10000E-03    2.6569        .24334E-06** at limit **
  19  norm          4.6578        4.8296       -.14898E-07   -.44426E-04
  20  Prefactor     2.9929        5.7460       -.12012E-05    .73077E-04
  21  Prefactor     7.1640        20.604        .27932E-05    .33379E-04
  22  Prefactor     52.950        63.822       -.40966E-05   -.68304E-04
  23  Prefactor     .10000E-03    4.4691        .23906E-07** at limit **
  24  Prefactor     .10000E-03    42.123       -.25902E-06** at limit **
  25  Normalizat    1.0565        .16336        .57513E-06    .24271E-03
  26  Prefactor     .79374        .20066       -.12304E-05    .19250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.5
  norm       = 5.07604
  Prefactor  = 4.37437
  Prefactor  = 1.7333
  Prefactor  = 4.10271
  Prefactor  = 1.34915
  Prefactor  = 0.0001
  Prefactor  = 10.8162
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.54649
  Prefactor  = 28.077
  Prefactor  = 0.0001
  Prefactor  = 0.683673
  norm       = 0.882402
  norm       = 5.95743
  norm       = 0.0001
  norm       = 4.65782
  Prefactor  = 2.99294
  Prefactor  = 7.16399
  Prefactor  = 52.9499
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.05645
  Prefactor  = 0.793737
 **********
 **   18 **HESSE 
 **********

 FCN=   5858.434     FROM HESSE     STATUS=OK           466 CALLS     3557 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.5000        117.22        .34218E-03   -1.5463    
   3  norm          5.0760        2.9354        .90556E-04   -1.5257    
   4  Prefactor     4.3744        5.3585        .18975E-03   -1.5290    
   5  Prefactor     1.7333        1.9773        .10519E-03   -1.5445    
   6  Prefactor     4.1027        2.2550        .81462E-04   -1.5303    
   7  Prefactor     1.3491        9.7240        .37592E-03   -1.5476    
   8  Prefactor     .10000E-03    5.1902        .17027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.816        10.687        .12182E-03   -1.5050    
  10  Prefactor     .10000E-03    42.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2794        .11243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5465        3.6594        .14351E-03   -1.5331    
  13  Prefactor     28.077        37.058        .75599E-04   -1.4648    
  14  Prefactor     .10000E-03    6.1118        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .68367        134.96        .44988E-02   -1.5543    
  16  norm          .88240        6.6114        .31645E-03   -1.5520    
  17  norm          5.9574        6.1212        .82258E-03   -1.5220    
  18  norm          .10000E-03    2.7222        .24170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.6578        4.8012        .16366E-03   -1.5276    
  20  Prefactor     2.9929        5.4876        .15331E-03   -1.5362    
  21  Prefactor     7.1640        19.906        .14927E-03   -1.5173    
  22  Prefactor     52.950        64.475        .27540E-03   -1.4251    
  23  Prefactor     .10000E-03    4.4717        .15803E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    42.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0565        .19550        .21072E-03   -.91162    
  26  Prefactor     .79374        .23688        .29966E-03   -.99960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.80114e-09
Minuit parameter uncertainties:
  1  0.000117222
  2  26.5734
  3  2.93548
  4  5.35912
  5  1.97734
  6  2.25502
  7  7.24548
  8  7.2131e-07
  9  10.6893
  10  4.13994e-06
  11  2.78412e-06
  12  3.6596
  13  37.0885
  14  1.65235e-06
  15  19.2543
  16  4.83115
  17  6.12188
  18  6.72456e-06
  19  4.80159
  20  5.48849
  21  19.9249
  22  64.5599
  23  5.59582e-07
  24  1.01473e-05
  25  0.195635
  26  0.237186
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.082e+01  1.069e+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:  7.937e-01  2.372e-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.056e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.54
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 9.86e-09 +/- 9.74e-09
Energy Flux (Fixed Index): 1.25e-05 +/- 1.24e-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) = 5857.24017164
delta logL = 1.194241195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5857.23944229
delta logL = 1.19497054641

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.457       1.0000         .10000E-03   10000.    
     2 'Index     '    .74112       1.0000          .0000       10.000    
     3 'Normalizat'    1.0624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79201       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=   5857.239     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      221 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.457        10.494        .30976E-02    .20419E-02
   2  Index         .74100        .54937        .34443       -.80823E-05
   3  Normalizat    1.0623        .15693        .39792E-01    .68355E-05
   4  Prefactor     .79207        .19709        .67796E-01    .18962E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.4567
  Index      = 0.740996
  Normalizat = 1.06233
  Prefactor  = 0.792072
 **********
 **   18 **HESSE 
 **********

 FCN=   5857.239     FROM HESSE     STATUS=OK            31 CALLS      252 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.457        13.313        .12391E-03   -1.5061    
   2  Index         .74100        .66987        .15754E-01   -1.0194    
   3  Normalizat    1.0623        .18465        .21016E-03   -.90970    
   4  Prefactor     .79207        .23161        .29995E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.49741e-09
Minuit parameter uncertainties:
  1  13.3169
  2  0.677394
  3  0.184766
  4  0.231898
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935923': 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) = 5857.23944208
delta logL = 1.19497075886

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.046e+01  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  7.410e-01  6.774e-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:  7.921e-01  2.319e-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.062e+00  1.848e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.93
Ra Dec: 192.460 37.131
Photon Index (Free Index): 0.74 +/- 0.68
Photon Flux (Free Index): 3.10e-09 +/- 3.23e-09
Energy Flux (Free Index): 7.67e-05 +/- 1.01e-04

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/935923/cmap_HighResolution_349747201_350006401_4FGL_J1249.8+3707_daily_bin426.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.86e-09', energy_flux2='7.67e-05', photon_flux_error='9.74e-09', dlogl='1.19e+00', energy_flux='1.25e-05', photon_flux2='3.10e-09', job_status='DONE', time_completed='2021-09-06 06:44:59.792428', photon_index_error2='0.68', photon_index2='0.74', ts='7.54', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='1.01e-04', EG='1.06', time_epoch_completed='1630935899.79', return_code='0', job_id='935923', GAL2='0.79', EG2='1.06', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='3.23e-09', ts2='9.93', photon_index='1.78' WHERE bin_id='426' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:44:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0149>
Subject: Job 935923: <4FGL_J1249.8+3707_daily_bin426> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin426 192.46 37.1306 349747201 350006401 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 :                                   663.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   833 sec.
    Turnaround time :                            835 sec.

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

