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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin612
RA = 192.46, Dec = 37.1306
tmin = 397958401, tmax = 398217601
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='937323', job_status='RUN', time_executed='2021-09-06 06:37:45.428823', time_epoch_executed='1630935465.43' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='612'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937323

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937323/ft1_4FGL_J1249.8+3707_daily_bin612.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937323/ft2_4FGL_J1249.8+3707_daily_bin612.fits


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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937323/ft1_filtered_4FGL_J1249.8+3707_daily_bin612.fits" evtable="EVENTS" scfile=/scratch/kocevski/937323/ft2_4FGL_J1249.8+3707_daily_bin612.fits sctable="SC_DATA" outfile=/scratch/kocevski/937323/ltcube_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.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/937323/ft2_4FGL_J1249.8+3707_daily_bin612.fits
.....................!
real 11.90
user 11.51
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937323/ft1_filtered_4FGL_J1249.8+3707_daily_bin612.fits evtable="EVENTS" scfile=/scratch/kocevski/937323/ft2_4FGL_J1249.8+3707_daily_bin612.fits sctable="SC_DATA" expcube=/scratch/kocevski/937323/ltcube_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.fits outfile=/scratch/kocevski/937323/expmap_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.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/937323/ltcube_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.fits
.....................!
real 190.14
user 185.28
sys 4.37

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/937323/ft1_filtered_4FGL_J1249.8+3707_daily_bin612.fits scfile=/scratch/kocevski/937323/ft2_4FGL_J1249.8+3707_daily_bin612.fits outfile=/scratch/kocevski/937323/cmap_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.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.73
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937323/ft1_filtered_4FGL_J1249.8+3707_daily_bin612.fits scfile=/scratch/kocevski/937323/ft2_4FGL_J1249.8+3707_daily_bin612.fits outfile=/scratch/kocevski/937323/cmap_HighResolution_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.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.77
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.7144       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.4484       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.5629       1.0000         .10000E-03   10000.    
     7 'Prefactor '    19.612       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9519       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.949       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10615E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0220       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3358       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.2903       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.9264       1.0000         .10000E-03   10000.    
    18 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.6163       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .29735E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0423       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1541       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83949       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=   6034.109     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     2669 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    20.450        .19365E-05** at limit **
   2  Prefactor     .10000E-03    10.848        .87771E-07** at limit **
   3  norm          9.7151        3.5253        .46579E-07   -.20352E-04
   4  Prefactor     8.4501        7.3764        .18704E-06   -.78984E-05
   5  Prefactor     .10000E-03    .73719        .15963E-07** at limit **
   6  Prefactor     4.5642        2.5597        .40621E-07   -.26035E-04
   7  Prefactor     19.606        10.339        .78741E-07   -.16398E-04
   8  Prefactor     2.9595        53.178        .22491E-05    .10438E-04
   9  Prefactor     28.946        21.845       -.17660E-07   -.52404E-04
  10  Prefactor     .10000E-03    26.948       -.46418E-06** at limit **
  11  Prefactor     .10000E-03    5.4889        .12891E-06** at limit **
  12  norm          .10000E-03    2.4005        .15886E-06** at limit **
  13  Prefactor     4.0328        63.642       -.18263E-06   -.84574E-05
  14  Prefactor     4.3342        19.641        .29968E-05    .44413E-05
  15  Prefactor     3.2913        7.3563        .14206E-06   -.28723E-04
  16  norm          .10000E-03    1.5914        .12181E-07** at limit **
  17  norm          2.9047        10.746        .86706E-06    .31915E-04
  18  norm          .10029E-03    2.4784        .10086E-05** at limit **
  19  norm          3.6111        4.9543        .12225E-05   -.22408E-03
  20  Prefactor     .10000E-03    1.5282       -.31487E-07** at limit **
  21  Prefactor     .10000E-03    7.9981        .15875E-07** at limit **
  22  Prefactor     .10002E-03    254.21        .20198E-04** at limit **
  23  Prefactor     4.0355        12.282       -.10951E-06   -.50793E-04
  24  Prefactor     .10000E-03    138.22       -.51386E-05** at limit **
  25  Normalizat    1.1541        .17641       -.78874E-06   -.60042E-03
  26  Prefactor     .83933        .21641       -.10241E-05   -.40698E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.71506
  Prefactor  = 8.45011
  Prefactor  = 0.0001
  Prefactor  = 4.56425
  Prefactor  = 19.6061
  Prefactor  = 2.95951
  Prefactor  = 28.9458
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.03281
  Prefactor  = 4.3342
  Prefactor  = 3.29127
  norm       = 0.0001
  norm       = 2.90469
  norm       = 0.000100289
  norm       = 3.61112
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100024
  Prefactor  = 4.03549
  Prefactor  = 0.000100002
  Normalizat = 1.15409
  Prefactor  = 0.839332
 **********
 **   18 **HESSE 
 **********

 FCN=   6034.109     FROM HESSE     STATUS=OK           458 CALLS     3127 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    20.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.7151        3.5218        .84231E-04   -1.5084    
   4  Prefactor     8.4501        7.3750        .13792E-03   -1.5127    
   5  Prefactor     .10000E-03    .73975        .65076E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.5642        2.5589        .88566E-04   -1.5281    
   7  Prefactor     19.606        10.336        .90441E-04   -1.4822    
   8  Prefactor     2.9595        53.366        .23637E-03   -1.5364    
   9  Prefactor     28.946        21.806        .74463E-04   -1.4631    
  10  Prefactor     .10000E-03    26.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.6956        .35453E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4273        .11721E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.0328        63.419        .20108E-03   -1.5306    
  14  Prefactor     4.3342        19.433        .96725E-03   -1.5292    
  15  Prefactor     3.2913        7.3296        .22321E-03   -1.5345    
  16  norm          .10000E-03    1.5969        .95667E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.9047        10.738        .23746E-03   -1.5367    
  18  norm          .10029E-03    18.462        .19038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.6111        4.9640        .97659E-03   -1.5328    
  20  Prefactor     .10000E-03    1.5704        .18736E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    8.0539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10002E-03    256.45        .39676E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0355        12.271        .20056E-03   -1.5306    
  24  Prefactor     .10000E-03    138.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1541        .20881        .21878E-03   -.88034    
  26  Prefactor     .83933        .25663        .31229E-03   -.98294    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58621e-08
Minuit parameter uncertainties:
  1  0.000177005
  2  1.03854e-05
  3  3.52187
  4  7.3758
  5  5.32816e-07
  6  2.55894
  7  10.3369
  8  25.1604
  9  21.8122
  10  4.52723e-05
  11  1.11934e-05
  12  1.06236e-06
  13  32.0248
  14  18.3646
  15  7.33164
  16  3.55522e-07
  17  10.7448
  18  0.00462131
  19  4.96457
  20  5.74944e-06
  21  1.55057e-05
  22  0.00497842
  23  12.2784
  24  0.000955239
  25  0.208959
  26  0.256997
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.895e+01  2.181e+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:  8.393e-01  2.570e-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.154e+00  2.090e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.75
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.64e-08 +/- 1.99e-08
Energy Flux (Fixed Index): 3.36e-05 +/- 2.53e-05

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

Saving results to:
/scratch/kocevski/937323/likelihoodResults_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6033.62317552
delta logL = 0.485890668414

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6033.62121059
delta logL = 0.48785560443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.076       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2511       1.0000          .0000       10.000    
     3 'Normalizat'    1.1336       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85096       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=   6033.621     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      296 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.079        20.524        .10676E-03    .41903E-03
   2  Index         2.2513        .57636        .37240E-02    .17266E-03
   3  Normalizat    1.1332        .20665        .22045E-03    .26605E-03
   4  Prefactor     .85137        .25467        .31012E-03    .23183E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0787
  Index      = 2.2513
  Normalizat = 1.13318
  Prefactor  = 0.851369
 **********
 **   18 **HESSE 
 **********

 FCN=   6033.621     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.079        17.638        .42704E-05   -1.4957    
   2  Index         2.2513        .49544        .14896E-03   -.58205    
   3  Normalizat    1.1332        .20636        .44091E-04   -.88693    
   4  Prefactor     .85137        .25454        .12405E-04   -.97862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69431e-10
Minuit parameter uncertainties:
  1  17.645
  2  0.496605
  3  0.206508
  4  0.254896
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937323': 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) = 6033.62120867
delta logL = 0.487857522277

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.408e+01  1.764e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.251e+00  4.966e-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:  8.514e-01  2.549e-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.133e+00  2.065e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.70
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.25 +/- 0.50
Photon Flux (Free Index): 4.58e-08 +/- 3.42e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.52e-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/937323/cmap_HighResolution_397958401_398217601_4FGL_J1249.8+3707_daily_bin612.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.41e-03', comment='SUCCESS', photon_flux='2.64e-08', energy_flux2='1.88e-05', photon_flux_error='1.99e-08', dlogl='4.88e-01', energy_flux='3.36e-05', photon_flux2='4.58e-08', job_status='DONE', time_completed='2021-09-06 06:49:52.196078', photon_index_error2='0.50', photon_index2='2.25', ts='3.75', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='7.35e-08', energy_flux_error2='1.52e-05', EG='1.15', time_epoch_completed='1630936192.2', return_code='0', job_id='937323', GAL2='0.85', EG2='1.13', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='3.42e-08', ts2='4.70', photon_index='1.78' WHERE bin_id='612' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:49:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0272>
Subject: Job 937323: <4FGL_J1249.8+3707_daily_bin612> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin612 192.46 37.1306 397958401 398217601 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 :                                   722.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             291.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            850 sec.

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

