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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin575
RA = 192.46, Dec = 37.1306
tmin = 388368001, tmax = 388627201
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='937268', job_status='RUN', time_executed='2021-09-06 06:39:36.887220', time_epoch_executed='1630935576.89' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='575'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937268

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937268/ft1_4FGL_J1249.8+3707_daily_bin575.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937268/ft2_4FGL_J1249.8+3707_daily_bin575.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937268/ft1_4FGL_J1249.8+3707_daily_bin575.fits outfile=/scratch/kocevski/937268/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin575.fits ra=192.46 dec=37.1306 rad=12.0 tmin=388368001.0 tmax=388627201.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.43
user 4.18
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937268/ft1_filtered_4FGL_J1249.8+3707_daily_bin575.fits" evtable="EVENTS" scfile=/scratch/kocevski/937268/ft2_4FGL_J1249.8+3707_daily_bin575.fits sctable="SC_DATA" outfile=/scratch/kocevski/937268/ltcube_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.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/937268/ft2_4FGL_J1249.8+3707_daily_bin575.fits
.....................!
real 11.89
user 11.53
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937268/ft1_filtered_4FGL_J1249.8+3707_daily_bin575.fits evtable="EVENTS" scfile=/scratch/kocevski/937268/ft2_4FGL_J1249.8+3707_daily_bin575.fits sctable="SC_DATA" expcube=/scratch/kocevski/937268/ltcube_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.fits outfile=/scratch/kocevski/937268/expmap_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.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/937268/ltcube_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.fits
.....................!
real 190.85
user 185.29
sys 5.24

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/937268/ft1_filtered_4FGL_J1249.8+3707_daily_bin575.fits scfile=/scratch/kocevski/937268/ft2_4FGL_J1249.8+3707_daily_bin575.fits outfile=/scratch/kocevski/937268/cmap_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.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.53
user 0.37
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.172       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2806       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .47461E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0300       1.0000         .10000E-03   10000.    
     7 'Prefactor '    31.124       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.409       1.0000         .10000E-03   10000.    
    10 'Prefactor '    92.319       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5045       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10994E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.4980       1.0000         .10000E-03   10000.    
    18 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.5050       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.1883       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95690       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1652       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=   6463.974     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     2652 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.698       -.44370E-05** at limit **
   2  Prefactor     10.163        27.962       -.15021E-04   -.11922E-04
   3  norm          5.2825        3.1064        .17205E-06   -.35022E-03
   4  Prefactor     .10000E-03    3.0234        .36062E-07** at limit **
   5  Prefactor     .55651E-02    1.1186        .48109E-06   -.12446E-02
   6  Prefactor     1.0266        2.5206       -.14675E-05   -.15810E-02
   7  Prefactor     31.139        16.669        .29426E-05    .60726E-04
   8  Prefactor     .10000E-03    17.669        .49315E-05** at limit **
   9  Prefactor     23.409        19.561        .25305E-06    .56769E-04
  10  Prefactor     92.274        69.259       -.42259E-04    .42796E-04
  11  Prefactor     .10000E-03    1.7962        .93247E-09** at limit **
  12  norm          5.5009        5.3659        .55015E-05    .32484E-03
  13  Prefactor     .10000E-03    30.733        .94238E-05** at limit **
  14  Prefactor     .10000E-03    21.574       -.49866E-05** at limit **
  15  Prefactor     .10002E-03    5.4576       -.13542E-05** at limit **
  16  norm          .10000E-03    1.6120       -.12602E-07** at limit **
  17  norm          9.4976        15.137       -.58021E-06   -.42070E-04
  18  norm          .10001E-03    2.3441       -.10952E-05** at limit **
  19  norm          9.4914        6.5403        .11052E-05    .99457E-03
  20  Prefactor     .10000E-03    1.0255       -.48339E-07** at limit **
  21  Prefactor     8.1858        8.5902        .20858E-06    .21629E-03
  22  Prefactor     .10000E-03    35.585       -.59048E-05** at limit **
  23  Prefactor     .10000E-03    5.3731       -.59020E-06** at limit **
  24  Prefactor     .10000E-03    25.962        .63478E-05** at limit **
  25  Normalizat    .95633        .16433        .27181E-05    .17926E-03
  26  Prefactor     1.1659        .20517       -.10268E-05    .31692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 10.1632
  norm       = 5.28246
  Prefactor  = 0.0001
  Prefactor  = 0.00556511
  Prefactor  = 1.02663
  Prefactor  = 31.1393
  Prefactor  = 0.0001
  Prefactor  = 23.4091
  Prefactor  = 92.2742
  Prefactor  = 0.0001
  norm       = 5.50093
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100022
  norm       = 0.0001
  norm       = 9.49763
  norm       = 0.000100006
  norm       = 9.49145
  Prefactor  = 0.0001
  Prefactor  = 8.18581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.956328
  Prefactor  = 1.16592
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.974     FROM HESSE     STATUS=OK           464 CALLS     3116 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.163        28.001        .12563E-03   -1.5070    
   3  norm          5.2825        3.1417        .98138E-04   -1.5248    
   4  Prefactor     .10000E-03    3.0413        .13650E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55651E-02    1.8281        .30106E-01   -1.5693    
   6  Prefactor     1.0266        2.4356        .17665E-03   -1.5505    
   7  Prefactor     31.139        16.424        .71820E-04   -1.4591    
   8  Prefactor     .10000E-03    17.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.409        19.541        .82790E-04   -1.4740    
  10  Prefactor     92.274        68.655        .20912E-03   -1.3784    
  11  Prefactor     .10000E-03    1.7991        .10520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5009        5.3123        .16896E-03   -1.5239    
  13  Prefactor     .10000E-03    30.760        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10002E-03    21.524        .36332E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.6241        .99666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.4976        15.141        .13003E-03   -1.5092    
  18  norm          .10001E-03    6.1549        .21041E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.4914        5.9404        .12999E-03   -1.5092    
  20  Prefactor     .10000E-03    1.0337        .79410E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.1858        8.5482        .14011E-03   -1.5136    
  22  Prefactor     .10000E-03    35.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    5.3772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95633        .19527        .23944E-03   -.94508    
  26  Prefactor     1.1659        .24504        .27929E-03   -.87387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.55191e-09
Minuit parameter uncertainties:
  1  5.71496e-06
  2  28.0373
  3  3.14184
  4  1.14785e-05
  5  0.199916
  6  2.43587
  7  16.4267
  8  5.90579e-05
  9  19.5463
  10  68.7146
  11  1.43165e-06
  12  5.31273
  13  3.9657e-05
  14  0.000361382
  15  0.00136228
  16  1.74444e-06
  17  15.1467
  18  0.000383903
  19  5.94081
  20  3.293e-06
  21  8.54952
  22  2.90643e-05
  23  2.89173e-06
  24  2.2794e-05
  25  0.195418
  26  0.245282
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.341e+01  1.955e+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.166e+00  2.453e-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:  9.563e-01  1.954e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.64
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.13e-08 +/- 1.78e-08
Energy Flux (Fixed Index): 2.71e-05 +/- 2.27e-05

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

Saving results to:
/scratch/kocevski/937268/likelihoodResults_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.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) = 6463.97311143
delta logL = 0.000981603488071

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6463.97249691
delta logL = 0.00159612354491

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.228       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7469       1.0000          .0000       10.000    
     3 'Normalizat'    .95717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1655       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=   6463.972     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      248 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.248        609.10        .20345E-02    .60405E-05
   2  Index         1.7468        5.7681        .13195        .10758E-03
   3  Normalizat    .95733        .92239E-01    .45628E-01    .28901E-05
   4  Prefactor     1.1654        .85955E-01    .63155E-01    .57922E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.2481
  Index      = 1.74677
  Normalizat = 0.957325
  Prefactor  = 1.16545
 **********
 **   18 **HESSE 
 **********

 FCN=   6463.972     FROM HESSE     STATUS=OK            33 CALLS      281 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.248        26.150        .81381E-04   -1.4723    
   2  Index         1.7468        .61627        .73922E-02   -.70843    
   3  Normalizat    .95733        .19135        .23933E-03   -.94474    
   4  Prefactor     1.1654        .24381        .27934E-03   -.87401    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.86972e-12
Minuit parameter uncertainties:
  1  26.1628
  2  0.619005
  3  0.191489
  4  0.244042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937268': 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) = 6463.97249591
delta logL = 0.00159712116965

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.425e+01  2.616e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.747e+00  6.190e-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.165e+00  2.440e-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:  9.573e-01  1.915e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.65
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.75 +/- 0.62
Photon Flux (Free Index): 2.04e-08 +/- 2.37e-08
Energy Flux (Free Index): 2.87e-05 +/- 4.03e-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/937268/cmap_HighResolution_388368001_388627201_4FGL_J1249.8+3707_daily_bin575.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.74e-03', comment='SUCCESS', photon_flux='2.13e-08', energy_flux2='2.87e-05', photon_flux_error='1.78e-08', dlogl='1.60e-03', energy_flux='2.71e-05', photon_flux2='2.04e-08', job_status='DONE', time_completed='2021-09-06 06:52:16.677709', photon_index_error2='0.62', photon_index2='1.75', ts='2.64', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='6.44e-08', energy_flux_error2='4.03e-05', EG='0.96', time_epoch_completed='1630936336.68', return_code='0', job_id='937268', GAL2='1.17', EG2='0.96', return_code2='0', energy_flux_error='2.27e-05', photon_flux_error2='2.37e-08', ts2='2.65', photon_index='1.78' WHERE bin_id='575' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:52:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 937268: <4FGL_J1249.8+3707_daily_bin575> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin575 192.46 37.1306 388368001 388627201 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 :                                   758.20 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             244.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   996 sec.
    Turnaround time :                            999 sec.

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

