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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin490
RA = 192.46, Dec = 37.1306
tmin = 366336001, tmax = 366595201
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='937145', job_status='RUN', time_executed='2021-09-06 06:38:42.184712', time_epoch_executed='1630935522.18' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/937145

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/937145/ft1_4FGL_J1249.8+3707_daily_bin490.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/937145/ft2_4FGL_J1249.8+3707_daily_bin490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/937145/ft1_4FGL_J1249.8+3707_daily_bin490.fits outfile=/scratch/kocevski/937145/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin490.fits ra=192.46 dec=37.1306 rad=12.0 tmin=366336001.0 tmax=366595201.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 5.50
user 5.19
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/937145/ft1_filtered_4FGL_J1249.8+3707_daily_bin490.fits" evtable="EVENTS" scfile=/scratch/kocevski/937145/ft2_4FGL_J1249.8+3707_daily_bin490.fits sctable="SC_DATA" outfile=/scratch/kocevski/937145/ltcube_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.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/937145/ft2_4FGL_J1249.8+3707_daily_bin490.fits
.....................!
real 11.82
user 11.30
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/937145/ft1_filtered_4FGL_J1249.8+3707_daily_bin490.fits evtable="EVENTS" scfile=/scratch/kocevski/937145/ft2_4FGL_J1249.8+3707_daily_bin490.fits sctable="SC_DATA" expcube=/scratch/kocevski/937145/ltcube_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.fits outfile=/scratch/kocevski/937145/expmap_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.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/937145/ltcube_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.fits
.....................!
real 190.61
user 185.63
sys 4.48

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/937145/ft1_filtered_4FGL_J1249.8+3707_daily_bin490.fits scfile=/scratch/kocevski/937145/ft2_4FGL_J1249.8+3707_daily_bin490.fits outfile=/scratch/kocevski/937145/cmap_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/937145/ft1_filtered_4FGL_J1249.8+3707_daily_bin490.fits scfile=/scratch/kocevski/937145/ft2_4FGL_J1249.8+3707_daily_bin490.fits outfile=/scratch/kocevski/937145/cmap_HighResolution_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.250       1.0000         .10000E-03   10000.    
     3 'norm      '    4.4020       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7803       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5842       1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.224       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3942       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .14906E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    8.4396       1.0000         .10000E-03   10000.    
    18 'norm      '    .11959E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10711E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    84.496       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.646       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11658E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4362       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .43030       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=   5070.474     FROM MIGRAD    STATUS=CONVERGED    617 CALLS     3071 TOTAL
                     EDM=   .67E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.798       -.52688E-05** at limit **
   2  Prefactor     25.249        34.187       -.14773E-05   -.88244E-04
   3  norm          4.4037        4.3062        .21815E-05   -.33484E-03
   4  Prefactor     .10000E-03    2.9369       -.65863E-08** at limit **
   5  Prefactor     1.7793        3.1262       -.22735E-05   -.34772E-03
   6  Prefactor     1.5841        1.7250       -.17048E-06   -.17776E-04
   7  Prefactor     10.224        8.6354       -.11662E-06    .13585E-04
   8  Prefactor     .10000E-03    15.493       -.15234E-05** at limit **
   9  Prefactor     .10000E-03    6.7744       -.67320E-06** at limit **
  10  Prefactor     .10000E-03    93.327        .48707E-04** at limit **
  11  Prefactor     .10000E-03    1.9029        .49594E-07** at limit **
  12  norm          2.3940        5.1526       -.21007E-05   -.85219E-03
  13  Prefactor     .10000E-03    20.761       -.24565E-05** at limit **
  14  Prefactor     .10000E-03    18.883        .52436E-05** at limit **
  15  Prefactor     .10000E-03    9.7776        .10524E-05** at limit **
  16  norm          .10000E-03    2.9109        .60642E-06** at limit **
  17  norm          8.4405        9.6970       -.11083E-06    .11813E-04
  18  norm          .10000E-03    4.1799        .38968E-06** at limit **
  19  norm          .10000E-03    2.3885        .51104E-07** at limit **
  20  Prefactor     .10000E-03    1.6482        .36614E-06** at limit **
  21  Prefactor     .10000E-03    10.433       -.53248E-06** at limit **
  22  Prefactor     84.469        75.224       -.23030E-04   -.19305E-05
  23  Prefactor     13.648        17.563       -.10257E-06   -.15181E-04
  24  Prefactor     .10000E-03    116.94       -.57258E-04** at limit **
  25  Normalizat    1.4366        .19194        .20559E-05   -.13578E-03
  26  Prefactor     .42990        .22650        .21128E-06    .16474E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 25.2492
  norm       = 4.40366
  Prefactor  = 0.0001
  Prefactor  = 1.77926
  Prefactor  = 1.58409
  Prefactor  = 10.2236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.39399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.44045
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 84.4693
  Prefactor  = 13.6481
  Prefactor  = 0.0001
  Normalizat = 1.43655
  Prefactor  = 0.429896
 **********
 **   18 **HESSE 
 **********

 FCN=   5070.474     FROM HESSE     STATUS=OK           452 CALLS     3523 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.249        34.180        .39860E-03   -1.4703    
   3  norm          4.4037        4.3659        .10978E-03   -1.5288    
   4  Prefactor     .10000E-03    2.9423        .11916E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.7793        3.1579        .12716E-03   -1.5441    
   6  Prefactor     1.5841        1.7166        .93012E-04   -1.5456    
   7  Prefactor     10.224        8.6277        .12531E-03   -1.5068    
   8  Prefactor     .10000E-03    15.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.7774        .18102E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    93.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.9050        .95925E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3940        5.1617        .22624E-03   -1.5399    
  13  Prefactor     .10000E-03    20.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.8047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.3831        .23570E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          8.4405        9.6948        .13799E-03   -1.5127    
  18  norm          .10000E-03    4.3488        .28339E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3970        .10745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.6612        .89222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     84.469        75.141        .43701E-04   -1.3867    
  23  Prefactor     13.648        17.550        .10843E-03   -1.4969    
  24  Prefactor     .10000E-03    116.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4366        .21274        .19648E-03   -.79577    
  26  Prefactor     .42990        .24761        .39746E-03   -1.1531    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30172e-09
Minuit parameter uncertainties:
  1  3.31318e-05
  2  34.2065
  3  4.36625
  4  4.13066e-06
  5  3.15823
  6  1.71664
  7  8.62878
  8  2.23818e-05
  9  2.40392e-06
  10  1.54468e-05
  11  4.70681e-07
  12  5.16264
  13  1.39333e-05
  14  8.90768e-05
  15  1.1789e-05
  16  7.77622e-05
  17  9.69656
  18  5.13097e-05
  19  6.79061e-06
  20  4.79464e-05
  21  0.000122247
  22  75.2257
  23  17.5566
  24  0.000313039
  25  0.212869
  26  0.248227
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.404e-06  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:  4.299e-01  2.482e-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.437e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/937145/likelihoodResults_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.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): 102
logL (Free Index) = 5070.47493899
delta logL = -0.000684561823618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5070.47425441
delta logL = 1.24227881315e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7578       1.0000          .0000       10.000    
     3 'Normalizat'    1.4366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .42984       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=   5070.474     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      244 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10073E-03    42.781        .18142E-02** at limit **
   2  Index         1.7184        5.2208        .50000        .21846E-04
   3  Normalizat    1.4366        .10862E-01    .19648E-03   -.88598E-04
   4  Prefactor     .42989        .12714E-01    .39746E-03   -.17917E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100734
  Index      = 1.71841
  Normalizat = 1.43656
  Prefactor  = 0.42989
 **********
 **   18 **HESSE 
 **********

 FCN=   5070.474     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10073E-03    198.15        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7184        5.1302        .50000       -.71593    
   3  Normalizat    1.4366        .24008E-01    .39296E-04   -.79577    
   4  Prefactor     .42989        .28098E-01    .15899E-04   -1.1531    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.46492e-08
Minuit parameter uncertainties:
  1  0.0242078
  2  307.883
  3  0.0240079
  4  0.0280989
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/937145': 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): 102
logL (Free Index) = 5070.47425409
delta logL = 3.34311152983e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.007e-04  2.421e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.718e+00  3.079e+02  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:  4.299e-01  2.810e-02  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.437e+00  2.401e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/937145/cmap_HighResolution_366336001_366595201_4FGL_J1249.8+3707_daily_bin490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.45e-03', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2021-09-06 06:50:13.784198', job_id='937145', GAL2='0.43', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630936213.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.43', dlogl='3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='490' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:50:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 937145: <4FGL_J1249.8+3707_daily_bin490> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin490 192.46 37.1306 366336001 366595201 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   882 sec.
    Turnaround time :                            884 sec.

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

