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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin820
RA = 192.326, Dec = -5.7621
tmin = 451872001, tmax = 452131201
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='929648', job_status='RUN', time_executed='2021-09-06 06:13:06.228705', time_epoch_executed='1630933986.23' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='820'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929648

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929648/ft1_4FGL_J1249.3-0545_daily_bin820.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929648/ft1_4FGL_J1249.3-0545_daily_bin820.fits outfile=/scratch/kocevski/929648/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin820.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=451872001.0 tmax=452131201.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.39
user 3.14
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.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/929648/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin820.fits evtable="EVENTS" outfile="/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.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.50
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits" evtable="EVENTS" scfile=/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits sctable="SC_DATA" outfile=/scratch/kocevski/929648/ltcube_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.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/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits
.....................!
real 11.86
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits sctable="SC_DATA" expcube=/scratch/kocevski/929648/ltcube_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.fits outfile=/scratch/kocevski/929648/expmap_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.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/929648/ltcube_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.fits
.....................!
real 189.50
user 185.15
sys 3.91

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 199 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.3-0545 @ 192.326 -5.7621

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits scfile=/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits outfile=/scratch/kocevski/929648/cmap_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.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.326 yref=-5.7621 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits scfile=/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits outfile=/scratch/kocevski/929648/cmap_HighResolution_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.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.326 yref=-5.7621 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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits evtable="EVENTS" scfile=/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929648/Model_4FGL_J1249.3-0545_daily_bin820.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/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits.....................!
real 45.19
user 43.81
sys 1.10

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits', '/scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits', expMap='/scratch/kocevski/929648/expmap_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.fits', expCube='/scratch/kocevski/929648/ltcube_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929648/Model_4FGL_J1249.3-0545_daily_bin820.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.3-0545'

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  6.563e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/929648/ft1_filtered_4FGL_J1249.3-0545_daily_bin820.fits
Spacecraft file(s): /scratch/kocevski/929648/ft2_4FGL_J1249.3-0545_daily_bin820.fits
Exposure map: /scratch/kocevski/929648/expmap_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.fits
Exposure cube: /scratch/kocevski/929648/ltcube_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929648/Model_4FGL_J1249.3-0545_daily_bin820.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) = 5169.25977705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2808       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.431       1.0000         .10000E-03   10000.    
     5 'norm      '    .14579E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.671       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .83855       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.1888       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.302       1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.985       1.0000         .10000E-03   10000.    
    12 'norm      '    .30754       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .61643       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.357       1.0000         .10000E-03   10000.    
    20 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10353E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.981       1.0000         .10000E-03   10000.    
    24 'norm      '    1.9955       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0185       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90544       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5169.252     FROM MIGRAD    STATUS=CONVERGED    607 CALLS     3888 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2790        13.238       -.38545E-07   -.32024E-05
   2  Prefactor     .10000E-03    18.625       -.70300E-05** at limit **
   3  Prefactor     .10000E-03    24.321        .75079E-05** at limit **
   4  Prefactor     14.428        13.486        .51556E-08    .18853E-04
   5  norm          .10000E-03    2.0735       -.18243E-06** at limit **
   6  norm          23.672        47.204        .11185E-05    .62520E-05
   7  Prefactor     .10000E-03    7.6538       -.21985E-06** at limit **
   8  norm          .83817        .63213        .59044E-07    .16010E-03
   9  Prefactor     2.1902        1.9562       -.18690E-07    .86041E-05
  10  Prefactor     11.301        12.252       -.71726E-07   -.10235E-03
  11  Prefactor     20.984        15.546       -.11306E-06    .36231E-05
  12  norm          .30757        1.1444       -.18427E-06   -.76714E-04
  13  Prefactor     2.9360        2.8119        .29714E-06   -.95889E-03
  14  Prefactor     .10000E-03    14.701        .14629E-05** at limit **
  15  Prefactor     .10000E-03    35.991       -.27768E-05** at limit **
  16  norm          .10000E-03    9.6747       -.68996E-06** at limit **
  17  norm          .61635        .25145        .23208E-07    .20873E-03
  18  Prefactor     .10000E-03    21.935        .38806E-06** at limit **
  19  norm          11.356        8.6946       -.14134E-07   -.43067E-04
  20  norm          .10000E-03    4.5076       -.10374E-06** at limit **
  21  Prefactor     .10000E-03    14.729       -.52360E-06** at limit **
  22  Prefactor     .10000E-03    14.512        .17854E-05** at limit **
  23  Prefactor     17.980        10.776        .17511E-07    .77170E-05
  24  norm          1.9954        1.5564       -.23345E-07   -.48480E-04
  25  Normalizat    1.0187        .24713        .18191E-06    .18268E-04
  26  Prefactor     .90536        .15874        .17921E-07    .42460E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.27903
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.4278
  norm       = 0.0001
  norm       = 23.6718
  Prefactor  = 0.0001
  norm       = 0.838166
  Prefactor  = 2.19018
  Prefactor  = 11.3007
  Prefactor  = 20.9842
  norm       = 0.307568
  Prefactor  = 2.93605
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.616354
  Prefactor  = 0.0001
  norm       = 11.3559
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.9797
  norm       = 1.99541
  Normalizat = 1.01866
  Prefactor  = 0.90536
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.252     FROM HESSE     STATUS=OK           464 CALLS     4352 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2790        13.239        .13932E-03   -1.5132    
   2  Prefactor     .10000E-03    18.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    24.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.428        12.791        .10544E-03   -1.4948    
   5  norm          .10000E-03    3.5695        .18946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.672        47.063        .82331E-04   -1.4735    
   7  Prefactor     .10000E-03    7.9449        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .83817        .61244        .43749E-04   -1.5525    
   9  Prefactor     2.1902        1.9538        .91668E-04   -1.5412    
  10  Prefactor     11.301        12.220        .59584E-03   -1.5036    
  11  Prefactor     20.984        15.586        .87436E-04   -1.4791    
  12  norm          .30757        1.6149        .13878E-02   -1.5597    
  13  Prefactor     2.9360        7.4991        .11851E-02   -1.5365    
  14  Prefactor     .10000E-03    14.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    36.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.6806        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .61635        .25077        .21822E-04   -1.5551    
  18  Prefactor     .10000E-03    21.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.356        8.6994        .59440E-03   -1.5034    
  20  norm          .10000E-03    4.5137        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    15.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.980        10.800        .94452E-04   -1.4860    
  24  norm          1.9954        1.5489        .76119E-04   -1.5425    
  25  Normalizat    1.0187        .29359        .30253E-03   -.92408    
  26  Prefactor     .90536        .18828        .21836E-03   -.95954    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66091e-08
Minuit parameter uncertainties:
  1  13.2437
  2  5.26974e-05
  3  4.67366e-05
  4  12.793
  5  7.73938e-06
  6  47.1367
  7  2.04555e-06
  8  0.612447
  9  1.95385
  10  12.223
  11  15.5893
  12  1.40935
  13  7.50154
  14  7.25108e-06
  15  4.15003e-05
  16  4.88185e-06
  17  0.250766
  18  2.66128e-07
  19  8.70036
  20  7.41484e-07
  21  3.1498e-06
  22  9.30139e-07
  23  10.8014
  24  1.54889
  25  0.29406
  26  0.188415
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.150e-05  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.054e-01  1.884e-01  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.019e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 8.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929648/likelihoodResults_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.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) = 5169.25190485
delta logL = -0.000131996892378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5169.25177282
delta logL = 2.84353518509e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1247       1.0000          .0000       10.000    
     3 'Normalizat'    1.0187       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90536       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5169.252     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      233 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    782.21        .90712E-02** at limit **
   2  Index         2.1343        8.5080        .50000       -.22721E-05
   3  Normalizat    1.0187        .27814E-01    .68385E-01   -.89845E-04
   4  Prefactor     .90536        .19148E-01    .45073E-01    .36965E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 2.13433
  Normalizat = 1.01866
  Prefactor  = 0.905361
 **********
 **   18 **HESSE 
 **********

 FCN=   5169.252     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      266 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6505.1        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1343        8.2043        .50000       -.61033    
   3  Normalizat    1.0187        .62672E-01    .30253E-03   -.92408    
   4  Prefactor     .90536        .43189E-01    .21836E-03   -.95954    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.60731e-08
Minuit parameter uncertainties:
  1  0.0077963
  2  39.3422
  3  0.0626769
  4  0.0431904
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929648': 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) = 5169.25177282
delta logL = 3.72983777197e-08

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  7.796e-03  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.134e+00  3.934e+01  0.000e+00  1.000e+01 (-1.000e+00)
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  9.054e-01  4.319e-02  0.000e+00  1.000e+01 ( 1.000e+00)
649        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
650        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
647   Normalization:  1.019e+00  6.268e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.326 -5.762

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/929648/cmap_HighResolution_451872001_452131201_4FGL_J1249.3-0545_daily_bin820.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.65e-03', job_status='DONE', photon_flux_upper_limit='8.83e-08', time_completed='2021-09-06 06:25:41.128416', job_id='929648', GAL2='0.91', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630934741.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='3.73e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='820' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:25:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 929648: <4FGL_J1249.3-0545_daily_bin820> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin820> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 06:10:50 2021
Job was executed on host(s) <bullet0204>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:10:51 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:10:51 2021
Terminated at Mon Sep  6 06:25:41 2021
Results reported at Mon Sep  6 06:25:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin820 192.326 -5.7621 451872001 452131201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.3-0545 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   753.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             278.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   890 sec.
    Turnaround time :                            891 sec.

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

