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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin341
RA = 192.46, Dec = 37.1306
tmin = 327715201, tmax = 327974401
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='935818', job_status='RUN', time_executed='2021-09-06 06:34:38.554310', time_epoch_executed='1630935278.55' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='341'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935818

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935818/ft1_4FGL_J1249.8+3707_daily_bin341.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935818/ft2_4FGL_J1249.8+3707_daily_bin341.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935818/ft1_4FGL_J1249.8+3707_daily_bin341.fits outfile=/scratch/kocevski/935818/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin341.fits ra=192.46 dec=37.1306 rad=12.0 tmin=327715201.0 tmax=327974401.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.33
user 3.13
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935818/ft1_filtered_4FGL_J1249.8+3707_daily_bin341.fits evtable="EVENTS" scfile=/scratch/kocevski/935818/ft2_4FGL_J1249.8+3707_daily_bin341.fits sctable="SC_DATA" expcube=/scratch/kocevski/935818/ltcube_327715201_327974401_4FGL_J1249.8+3707_daily_bin341.fits outfile=/scratch/kocevski/935818/expmap_327715201_327974401_4FGL_J1249.8+3707_daily_bin341.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/935818/ltcube_327715201_327974401_4FGL_J1249.8+3707_daily_bin341.fits
.....................!
real 194.84
user 190.35
sys 4.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/935818/ft1_filtered_4FGL_J1249.8+3707_daily_bin341.fits scfile=/scratch/kocevski/935818/ft2_4FGL_J1249.8+3707_daily_bin341.fits outfile=/scratch/kocevski/935818/cmap_327715201_327974401_4FGL_J1249.8+3707_daily_bin341.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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935818/ft1_filtered_4FGL_J1249.8+3707_daily_bin341.fits scfile=/scratch/kocevski/935818/ft2_4FGL_J1249.8+3707_daily_bin341.fits outfile=/scratch/kocevski/935818/cmap_HighResolution_327715201_327974401_4FGL_J1249.8+3707_daily_bin341.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.58
user 0.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.402       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4491       1.0000         .10000E-03   10000.    
     3 'norm      '    2.5597       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14369E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.1142       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.0471       1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2879       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.828       1.0000         .10000E-03   10000.    
     9 'Prefactor '    34.190       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .59244       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.767       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.810       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8707       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0091       1.0000         .10000E-03   10000.    
    17 'norm      '    55.098       1.0000         .10000E-03   10000.    
    18 'norm      '    .23981       1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .63472       1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.596       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.3964       1.0000         .10000E-03   10000.    
    24 'Prefactor '    76.098       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .85639       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .93045       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=   5350.134     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3119 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.393        52.147       -.68654E-06   -.54670E-04
   2  Prefactor     1.5089        145.76        .37133E-05   -.13154E-04
   3  norm          2.5596        2.3388       -.55366E-07   -.10544E-03
   4  Prefactor     .10000E-03    6.3888        .28292E-06** at limit **
   5  Prefactor     1.1140        1.9536        .13934E-06   -.20053E-03
   6  Prefactor     3.0476        2.3743        .17614E-07   -.10803E-03
   7  Prefactor     9.2876        8.0101        .20340E-06    .78364E-04
   8  Prefactor     11.833        16.946       -.13809E-06   -.47111E-04
   9  Prefactor     34.188        20.096        .16409E-06    .10245E-04
  10  Prefactor     .10000E-03    19.393       -.21601E-06** at limit **
  11  Prefactor     .10000E-03    2.7006        .22709E-07** at limit **
  12  norm          .58921        7.1825        .15426E-05   -.26287E-03
  13  Prefactor     22.770        35.536        .75881E-06    .39802E-04
  14  Prefactor     16.839        27.165       -.24794E-05   -.19843E-03
  15  Prefactor     8.8725        8.7665       -.47405E-06   -.21441E-03
  16  norm          1.0066        2.9678        .34747E-06   -.12800E-03
  17  norm          55.092        21.313        .41507E-06    .15727E-03
  18  norm          .23918        2.7931        .20257E-06   -.28307E-03
  19  norm          .10000E-03    3.8693       -.14665E-06** at limit **
  20  Prefactor     .63481        3.3257        .11806E-05   -.38007E-03
  21  Prefactor     12.601        12.167       -.57817E-06   -.98249E-04
  22  Prefactor     .10000E-03    19.328        .33937E-06** at limit **
  23  Prefactor     3.3978        11.669        .50730E-06   -.24701E-04
  24  Prefactor     76.109        62.787        .15643E-05    .81201E-04
  25  Normalizat    .85605        .17198       -.10311E-05   -.14999E-03
  26  Prefactor     .93089        .20763        .18728E-06   -.14710E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.3935
  Prefactor  = 1.5089
  norm       = 2.55962
  Prefactor  = 0.000100004
  Prefactor  = 1.114
  Prefactor  = 3.04761
  Prefactor  = 9.28761
  Prefactor  = 11.8334
  Prefactor  = 34.1877
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.589208
  Prefactor  = 22.77
  Prefactor  = 16.8388
  Prefactor  = 8.87254
  norm       = 1.00663
  norm       = 55.0916
  norm       = 0.23918
  norm       = 0.0001
  Prefactor  = 0.634806
  Prefactor  = 12.6011
  Prefactor  = 0.0001
  Prefactor  = 3.39781
  Prefactor  = 76.1089
  Normalizat = 0.856046
  Prefactor  = 0.930891
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.134     FROM HESSE     STATUS=OK           470 CALLS     3589 TOTAL
                     EDM=   .41E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.393        52.421        .60166E-04   -1.4374    
   2  Prefactor     1.5089        141.88        .35797E-03   -1.5462    
   3  norm          2.5596        2.3190        .96795E-04   -1.5388    
   4  Prefactor     .10000E-03    31.345        .34672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.1140        1.8858        .12250E-03   -1.5497    
   6  Prefactor     3.0476        2.3625        .93119E-04   -1.5359    
   7  Prefactor     9.2876        8.0189        .13150E-03   -1.5098    
   8  Prefactor     11.833        16.978        .11648E-03   -1.5020    
   9  Prefactor     34.188        20.097        .68534E-04   -1.4538    
  10  Prefactor     .10000E-03    19.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.7267        .11738E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .58921        12.759        .26561E-02   -1.5554    
  13  Prefactor     22.770        35.590        .83948E-04   -1.4753    
  14  Prefactor     16.839        27.466        .97687E-04   -1.4887    
  15  Prefactor     8.8725        8.8284        .13458E-03   -1.5112    
  16  norm          1.0066        2.4700        .20500E-02   -1.5507    
  17  norm          55.092        21.417        .54039E-04   -1.4222    
  18  norm          .23918        5.9062        .21615E-02   -1.5610    
  19  norm          .10000E-03    3.9196        .27901E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .63481        3.0574        .22342E-03   -1.5549    
  21  Prefactor     12.601        11.905        .11287E-03   -1.4998    
  22  Prefactor     .10000E-03    19.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.3978        11.634        .21953E-03   -1.5339    
  24  Prefactor     76.109        63.516        .46030E-04   -1.3961    
  25  Normalizat    .85605        .19896        .22645E-03   -.98022    
  26  Prefactor     .93089        .24208        .27647E-03   -.95070    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08172e-08
Minuit parameter uncertainties:
  1  52.4751
  2  29.3341
  3  2.31911
  4  0.000702078
  5  1.88585
  6  2.36254
  7  8.01986
  8  16.9851
  9  20.101
  10  2.99276e-05
  11  6.79547e-06
  12  5.48456
  13  35.6227
  14  27.487
  15  8.82966
  16  2.47024
  17  21.4203
  18  2.37687
  19  4.74776e-07
  20  2.78631
  21  11.9071
  22  5.01838e-05
  23  11.6421
  24  63.5723
  25  0.199129
  26  0.242362
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.419e+01  2.010e+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:  9.309e-01  2.424e-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:  8.560e-01  1.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.56
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 3.12e-08 +/- 1.83e-08
Energy Flux (Fixed Index): 3.96e-05 +/- 2.33e-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) = 5350.12580688
delta logL = 0.00781634572104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5350.11852072
delta logL = 0.0151025043997

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.301       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7128       1.0000          .0000       10.000    
     3 'Normalizat'    .85777       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93032       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=   5350.119     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      232 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.316        29.020        .32811E-03    .59603E-04
   2  Index         1.7126        .39900        .47162E-02    .37860E-03
   3  Normalizat    .85777        .18757        .22626E-03   -.60296E-04
   4  Prefactor     .93032        .23890        .27657E-03    .15538E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.3164
  Index      = 1.71261
  Normalizat = 0.857772
  Prefactor  = 0.930316
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.119     FROM HESSE     STATUS=OK            25 CALLS      257 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.316        28.232        .65622E-04   -1.4485    
   2  Index         1.7126        .38820        .94325E-03   -.71747    
   3  Normalizat    .85777        .18774        .90503E-05   -.97960    
   4  Prefactor     .93032        .23915        .11063E-04   -.95090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98802e-11
Minuit parameter uncertainties:
  1  28.2422
  2  0.38889
  3  0.187886
  4  0.239416
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935818': 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) = 5350.11852052
delta logL = 0.0151026966714

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.732e+01  2.824e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.713e+00  3.889e-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:  9.303e-01  2.394e-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:  8.578e-01  1.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.58
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.71 +/- 0.39
Photon Flux (Free Index): 2.90e-08 +/- 2.14e-08
Energy Flux (Free Index): 4.54e-05 +/- 4.51e-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/935818/cmap_HighResolution_327715201_327974401_4FGL_J1249.8+3707_daily_bin341.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.12e-08', energy_flux2='4.54e-05', photon_flux_error='1.83e-08', dlogl='1.51e-02', energy_flux='3.96e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-09-06 06:45:19.174455', photon_index_error2='0.39', photon_index2='1.71', ts='7.56', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='4.51e-05', EG='0.86', time_epoch_completed='1630935919.17', return_code='0', job_id='935818', GAL2='0.93', EG2='0.86', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='2.14e-08', ts2='7.58', photon_index='1.78' WHERE bin_id='341' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 935818: <4FGL_J1249.8+3707_daily_bin341> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin341> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Sep  6 06:30:54 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:30:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:30:55 2021
Terminated at Mon Sep  6 06:45:19 2021
Results reported at Mon Sep  6 06:45:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin341 192.46 37.1306 327715201 327974401 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 :                                   638.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             276.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   864 sec.
    Turnaround time :                            865 sec.

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

