/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 66 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 = 7468
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.3-0545_daily_bin286
RA = 192.326, Dec = -5.7621
tmin = 313459201, tmax = 313718401
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='926459', job_status='RUN', time_executed='2021-09-06 06:02:18.919278', time_epoch_executed='1630933338.92' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/926459

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/926459/ft1_4FGL_J1249.3-0545_daily_bin286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/926459/ft1_4FGL_J1249.3-0545_daily_bin286.fits outfile=/scratch/kocevski/926459/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin286.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=313459201.0 tmax=313718401.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.63
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits" evtable="EVENTS" scfile=/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits sctable="SC_DATA" outfile=/scratch/kocevski/926459/ltcube_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.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/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits
.....................!
real 11.97
user 11.48
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits sctable="SC_DATA" expcube=/scratch/kocevski/926459/ltcube_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.fits outfile=/scratch/kocevski/926459/expmap_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.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/926459/ltcube_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.fits
.....................!
real 193.13
user 186.87
sys 5.21

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/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits scfile=/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits outfile=/scratch/kocevski/926459/cmap_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.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.87
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits scfile=/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits outfile=/scratch/kocevski/926459/cmap_HighResolution_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.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.95
user 0.37
sys 0.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits evtable="EVENTS" scfile=/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/926459/Model_4FGL_J1249.3-0545_daily_bin286.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/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits.....................!
real 57.61
user 51.35
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits', '/scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits', expMap='/scratch/kocevski/926459/expmap_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.fits', expCube='/scratch/kocevski/926459/ltcube_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/926459/Model_4FGL_J1249.3-0545_daily_bin286.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/926459/ft1_filtered_4FGL_J1249.3-0545_daily_bin286.fits
Spacecraft file(s): /scratch/kocevski/926459/ft2_4FGL_J1249.3-0545_daily_bin286.fits
Exposure map: /scratch/kocevski/926459/expmap_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.fits
Exposure cube: /scratch/kocevski/926459/ltcube_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/926459/Model_4FGL_J1249.3-0545_daily_bin286.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) = 6345.54205891

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.309       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    18.151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.303       1.0000         .10000E-03   10000.    
     8 'norm      '    2.3371       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7160       1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.998       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3814       1.0000         .10000E-03   10000.    
    12 'norm      '    .39990       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.272       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    154.46       1.0000         .10000E-03   10000.    
    17 'norm      '    2.1749       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.3747       1.0000         .10000E-03   10000.    
    19 'norm      '    7.9312       1.0000         .10000E-03   10000.    
    20 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.0052       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.775       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.9728       1.0000         .10000E-03   10000.    
    24 'norm      '    8.1216       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .99108       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0645       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=   6345.537     FROM MIGRAD    STATUS=CONVERGED    595 CALLS     3073 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.6901       -.28777E-07** at limit **
   2  Prefactor     .10000E-03    19.511        .10541E-05** at limit **
   3  Prefactor     13.302        20.979        .12981E-05   -.45499E-06
   4  Prefactor     .10000E-03    5.7126       -.19468E-06** at limit **
   5  norm          .10000E-03    1.0931       -.18028E-06** at limit **
   6  norm          18.162        52.273       -.27614E-05    .12833E-04
   7  Prefactor     12.303        7.7313       -.10466E-07    .14515E-04
   8  norm          2.3370        .75412        .87436E-07    .13511E-03
   9  Prefactor     4.7159        2.3612       -.25000E-07    .19901E-05
  10  Prefactor     10.999        8.6509        .85216E-07    .21605E-04
  11  Prefactor     6.3789        10.576        .13918E-05    .53212E-05
  12  norm          .39982        1.3683        .26091E-06   -.28078E-04
  13  Prefactor     .10000E-03    2.6591       -.48684E-07** at limit **
  14  Prefactor     53.280        51.928       -.24868E-07    .28541E-04
  15  Prefactor     .10000E-03    25.186       -.10455E-05** at limit **
  16  norm          154.45        47.807        .10121E-05    .18439E-04
  17  norm          2.1749        .39805        .62885E-07    .42558E-03
  18  Prefactor     4.4323        249.56       -.30718E-04    .77930E-09
  19  norm          7.9312        7.8621        .34054E-06    .74266E-04
  20  norm          .10000E-03    14.806       -.12329E-06** at limit **
  21  Prefactor     3.0054        8.5264        .32755E-05   -.94481E-05
  22  Prefactor     23.794        22.551       -.11404E-05    .77709E-04
  23  Prefactor     1.9729        14.638        .11489E-04   -.11951E-04
  24  norm          8.1218        2.3593       -.24116E-07    .10663E-03
  25  Normalizat    .99076        .28226       -.41557E-05    .38308E-04
  26  Prefactor     1.0647        .17235        .17920E-05    .19532E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.3017
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.1623
  Prefactor  = 12.3026
  norm       = 2.33697
  Prefactor  = 4.71592
  Prefactor  = 10.9989
  Prefactor  = 6.37887
  norm       = 0.399818
  Prefactor  = 0.0001
  Prefactor  = 53.28
  Prefactor  = 0.0001
  norm       = 154.449
  norm       = 2.17495
  Prefactor  = 4.43229
  norm       = 7.9312
  norm       = 0.0001
  Prefactor  = 3.00536
  Prefactor  = 23.7939
  Prefactor  = 1.97291
  norm       = 8.12183
  Normalizat = 0.990763
  Prefactor  = 1.06467
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.537     FROM HESSE     STATUS=OK           460 CALLS     3533 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.6917        .16849E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    19.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     13.302        20.986        .10980E-03   -1.4978    
   4  Prefactor     .10000E-03    5.7315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.1011        .81318E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          18.162        52.512        .94010E-04   -1.4855    
   7  Prefactor     12.303        7.7302        .11421E-03   -1.5006    
   8  norm          2.3370        .75851        .35454E-04   -1.5402    
   9  Prefactor     4.7159        2.3624        .83186E-04   -1.5274    
  10  Prefactor     10.999        8.6509        .12081E-03   -1.5045    
  11  Prefactor     6.3789        10.580        .79444E-03   -1.5203    
  12  norm          .39982        1.3608        .16350E-03   -1.5582    
  13  Prefactor     .10000E-03    2.6621        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     53.280        51.917        .54953E-04   -1.4247    
  15  Prefactor     .10000E-03    25.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          154.45        47.821        .16218E-03   -1.3216    
  17  norm          2.1749        .39943        .20095E-04   -1.5413    
  18  Prefactor     4.4323        250.44        .19257E-03   -1.5287    
  19  norm          7.9312        7.8636        .14238E-03   -1.5145    
  20  norm          .10000E-03    15.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.0054        8.4699        .11707E-02   -1.5361    
  22  Prefactor     23.794        22.553        .82150E-04   -1.4732    
  23  Prefactor     1.9729        14.659        .14760E-02   -1.5427    
  24  norm          8.1218        2.3609        .63358E-04   -1.5138    
  25  Normalizat    .99076        .31876        .37279E-03   -.93341    
  26  Prefactor     1.0647        .19750        .24318E-03   -.90604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.40023e-10
Minuit parameter uncertainties:
  1  6.07994e-06
  2  3.62295e-05
  3  20.9972
  4  2.25146e-05
  5  5.86343e-06
  6  52.6456
  7  7.73079
  8  0.758512
  9  2.36242
  10  8.65186
  11  10.583
  12  1.36088
  13  3.7207e-06
  14  51.9612
  15  4.07368e-06
  16  47.8335
  17  0.399433
  18  66.9299
  19  7.86458
  20  2.5142e-05
  21  8.47327
  22  22.5612
  23  10.7592
  24  2.36095
  25  0.31937
  26  0.197634
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.074e-06  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:  1.065e+00  1.976e-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:  9.908e-01  3.194e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/926459/likelihoodResults_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.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) = 6345.53767216
delta logL = -0.000188861114111

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6345.53748339
delta logL = -9.77579475148e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1380       1.0000          .0000       10.000    
     3 'Normalizat'    .99076       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0647       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=   6345.537     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      232 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    948.99        .90712E-02** at limit **
   2  Index         2.1230        5.2092        .50000        .50730E-05
   3  Normalizat    .99076        .42506E-01    .84207E-01    .19969E-04
   4  Prefactor     1.0647        .28788E-01    .39118E-01    .10635E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.12297
  Normalizat = 0.990764
  Prefactor  = 1.06467
 **********
 **   18 **HESSE 
 **********

 FCN=   6345.537     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      265 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6703.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1230        5.2811        .50000       -.61310    
   3  Normalizat    .99076        .10744        .37280E-03   -.93340    
   4  Prefactor     1.0647        .72922E-01    .24317E-03   -.90604    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.17025e-09
Minuit parameter uncertainties:
  1  0.000360771
  2  51.9827
  3  0.107462
  4  0.0729285
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/926459': 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) = 6345.53748337
delta logL = -7.759899745e-08

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  3.608e-04  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.123e+00  5.198e+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:  1.065e+00  7.293e-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:  9.908e-01  1.075e-01  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/926459/cmap_HighResolution_313459201_313718401_4FGL_J1249.3-0545_daily_bin286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.36e-03', job_status='DONE', photon_flux_upper_limit='8.44e-08', time_completed='2021-09-06 06:15:35.919671', job_id='926459', GAL2='1.06', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630934135.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='-7.76e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='286' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:15:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0117>
Subject: Job 926459: <4FGL_J1249.3-0545_daily_bin286> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin286> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Mon Sep  6 06:00:54 2021
Job was executed on host(s) <bullet0117>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:00:55 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:00:55 2021
Terminated at Mon Sep  6 06:15:36 2021
Results reported at Mon Sep  6 06:15:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin286 192.326 -5.7621 313459201 313718401 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 :                                   783.19 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             326.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            882 sec.

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

