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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin817
RA = 192.326, Dec = -5.7621
tmin = 451094401, tmax = 451353601
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='929644', job_status='RUN', time_executed='2021-09-06 06:14:07.622644', time_epoch_executed='1630934047.62' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='817'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929644

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929644/ft1_4FGL_J1249.3-0545_daily_bin817.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929644/ft1_4FGL_J1249.3-0545_daily_bin817.fits outfile=/scratch/kocevski/929644/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin817.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=451094401.0 tmax=451353601.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.42
user 3.18
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.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/929644/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin817.fits evtable="EVENTS" outfile="/scratch/kocevski/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.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.55
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.fits" evtable="EVENTS" scfile=/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits sctable="SC_DATA" outfile=/scratch/kocevski/929644/ltcube_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.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/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits
.....................!
real 12.38
user 11.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits sctable="SC_DATA" expcube=/scratch/kocevski/929644/ltcube_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.fits outfile=/scratch/kocevski/929644/expmap_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.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/929644/ltcube_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.fits
.....................!
real 190.48
user 185.90
sys 4.09

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/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.fits scfile=/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits outfile=/scratch/kocevski/929644/cmap_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.fits scfile=/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits outfile=/scratch/kocevski/929644/cmap_HighResolution_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.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.56
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.fits evtable="EVENTS" scfile=/scratch/kocevski/929644/ft2_4FGL_J1249.3-0545_daily_bin817.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929644/Model_4FGL_J1249.3-0545_daily_bin817.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/929644/ft1_filtered_4FGL_J1249.3-0545_daily_bin817.fits.....................!
real 49.98
user 48.58
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.636       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.670       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.7575       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.2603       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.4633       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .18862       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    49.032       1.0000         .10000E-03   10000.    
    16 'norm      '    21.563       1.0000         .10000E-03   10000.    
    17 'norm      '    .18229       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.4835       1.0000         .10000E-03   10000.    
    19 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10139E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2571       1.0000         .10000E-03   10000.    
    24 'norm      '    .96843       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5863       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81304       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=   5989.281     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3059 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.629        21.916       -.92592E-06   -.10308E-05
   2  Prefactor     .10000E-03    14.811       -.41978E-06** at limit **
   3  Prefactor     44.664        30.231       -.48258E-06   -.19018E-05
   4  Prefactor     .10000E-03    4.6554       -.39263E-07** at limit **
   5  norm          4.7572        3.0276       -.18555E-07    .46901E-04
   6  norm          .10000E-03    16.294        .17325E-06** at limit **
   7  Prefactor     .10000E-03    3.3090       -.37269E-07** at limit **
   8  norm          1.2600        .58964       -.51493E-07    .80702E-03
   9  Prefactor     7.4639        2.7206       -.22522E-07    .47315E-04
  10  Prefactor     .10000E-03    3.5324        .19518E-06** at limit **
  11  Prefactor     .10000E-03    4.8159        .25137E-06** at limit **
  12  norm          .18739        1.0065       -.26385E-06    .44259E-03
  13  Prefactor     11.483        8.8890        .19105E-06    .14920E-03
  14  Prefactor     .10000E-03    23.397        .16730E-06** at limit **
  15  Prefactor     49.011        63.440        .58187E-05    .68989E-04
  16  norm          21.556        29.394       -.24438E-07    .43015E-04
  17  norm          .18244        .26206       -.78772E-06   -.55645E-04
  18  Prefactor     2.4274        222.47       -.10124E-04    .54490E-05
  19  norm          .10000E-03    2.9883       -.32700E-06** at limit **
  20  norm          .10000E-03    15.701        .13972E-06** at limit **
  21  Prefactor     .10000E-03    4.4317       -.11030E-06** at limit **
  22  Prefactor     .10000E-03    9.5113       -.23202E-07** at limit **
  23  Prefactor     3.2513        11.840        .11598E-06    .82735E-05
  24  norm          .96779        1.9874        .14502E-06   -.11877E-03
  25  Normalizat    1.5868        .26510        .30860E-05    .12726E-03
  26  Prefactor     .81272        .16100       -.15106E-05    .40439E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.6286
  Prefactor  = 0.0001
  Prefactor  = 44.6642
  Prefactor  = 0.0001
  norm       = 4.75725
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26002
  Prefactor  = 7.4639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.18739
  Prefactor  = 11.483
  Prefactor  = 0.0001
  Prefactor  = 49.0107
  norm       = 21.5558
  norm       = 0.182443
  Prefactor  = 2.42735
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.25125
  norm       = 0.967788
  Normalizat = 1.58683
  Prefactor  = 0.812723
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.281     FROM HESSE     STATUS=OK           458 CALLS     3517 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.629        21.969        .10847E-03   -1.4969    
   2  Prefactor     .10000E-03    14.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.664        30.232        .59986E-04   -1.4370    
   4  Prefactor     .10000E-03    4.6607        .16300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.7572        3.0240        .10271E-03   -1.5272    
   6  norm          .10000E-03    16.299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.3294        .13746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.2600        .58506        .38097E-04   -1.5483    
   9  Prefactor     7.4639        2.7224        .74744E-04   -1.5161    
  10  Prefactor     .10000E-03    3.5366        .14203E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8262        .16581E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .18739        4.0770        .14436E-02   -1.5621    
  13  Prefactor     11.483        8.9045        .11822E-03   -1.5030    
  14  Prefactor     .10000E-03    23.444        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.011        64.032        .57268E-04   -1.4307    
  16  norm          21.556        29.377        .86257E-04   -1.4779    
  17  norm          .18244        .26392        .41425E-03   -1.5623    
  18  Prefactor     2.4274        225.59        .25941E-03   -1.5396    
  19  norm          .10000E-03    2.9864        .13055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    16.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4480        .15912E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    9.5377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2513        11.817        .22440E-03   -1.5347    
  24  norm          .96779        1.9792        .14392E-03   -1.5511    
  25  Normalizat    1.5868        .31073        .28626E-03   -.75367    
  26  Prefactor     .81272        .18829        .25329E-03   -.99261    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.3767e-09
Minuit parameter uncertainties:
  1  21.9819
  2  1.17259e-05
  3  30.2423
  4  1.22614e-06
  5  3.02414
  6  5.56605e-06
  7  8.86356e-06
  8  0.585068
  9  2.7224
  10  9.02744e-07
  11  3.89469e-06
  12  1.74779
  13  8.90554
  14  3.52206e-06
  15  64.1219
  16  29.3965
  17  0.263925
  18  46.9839
  19  1.84847e-05
  20  6.8628e-06
  21  8.10307e-06
  22  4.13404e-06
  23  11.8253
  24  1.97932
  25  0.311109
  26  0.188438
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.901e+01  6.412e+01  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:  8.127e-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.587e+00  3.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.99
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.49e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.13e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929644/likelihoodResults_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.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) = 5987.46165897
delta logL = 1.81930592273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5987.36392049
delta logL = 1.9170443959

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2504       1.0000         .10000E-03   10000.    
     2 'Index     '    3.4780       1.0000          .0000       10.000    
     3 'Normalizat'    1.4356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87340       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=   5987.364     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      286 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2616        37.441        .48860E-02   -.12181E-03
   2  Index         3.4772        1.8334        .64542E-01    .11502E-03
   3  Normalizat    1.4356        .95300E-01    .67243E-01   -.22720E-04
   4  Prefactor     .87335        .59838E-01    .44665E-01   -.11857E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.26158
  Index      = 3.47719
  Normalizat = 1.43563
  Prefactor  = 0.873354
 **********
 **   18 **HESSE 
 **********

 FCN=   5987.364     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      319 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2616        56.707        .80265E-04   -1.5295    
   2  Index         3.4772        2.4722        .25827E-02   -.30948    
   3  Normalizat    1.4356        .28070        .29747E-03   -.79603    
   4  Prefactor     .87335        .18305        .24504E-03   -.97078    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.54137e-10
Minuit parameter uncertainties:
  1  31.1267
  2  2.59933
  3  0.281001
  4  0.183182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929644': 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) = 5987.36391981
delta logL = 1.91704508333

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.262e+00  3.113e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  3.477e+00  2.599e+00  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:  8.734e-01  1.832e-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.436e+00  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.07
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 3.48 +/- 2.60
Photon Flux (Free Index): 1.76e-07 +/- 1.07e-07
Energy Flux (Free Index): 2.95e-05 +/- 2.01e-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/929644/cmap_HighResolution_451094401_451353601_4FGL_J1249.3-0545_daily_bin817.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='2.95e-05', dlogl='1.92e+00', photon_flux2='1.76e-07', job_status='DONE', time_completed='2021-09-06 06:26:40.184980', photon_index_error2='2.60', photon_index2='3.48', ts='0.99', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='2.01e-05', EG='1.59', time_epoch_completed='1630934800.19', return_code='0', job_id='929644', GAL2='0.87', EG2='1.44', return_code2='102', photon_flux_error2='1.07e-07', ts2='5.07', photon_index='2.06' WHERE bin_id='817' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:26:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 929644: <4FGL_J1249.3-0545_daily_bin817> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin817> 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) <bullet0295>, 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:26:40 2021
Results reported at Mon Sep  6 06:26:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin817 192.326 -5.7621 451094401 451353601 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 :                                   752.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   949 sec.
    Turnaround time :                            950 sec.

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

