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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1404
RA = 192.326, Dec = -5.7621
tmin = 603244801, tmax = 603504001
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='932847', job_status='RUN', time_executed='2021-09-06 06:24:17.419096', time_epoch_executed='1630934657.42' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1404'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932847/ft1_4FGL_J1249.3-0545_daily_bin1404.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932847/ft1_4FGL_J1249.3-0545_daily_bin1404.fits outfile=/scratch/kocevski/932847/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1404.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=603244801.0 tmax=603504001.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 2.90
user 2.68
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932847/ft1_filtered_4FGL_J1249.3-0545_daily_bin1404.fits" evtable="EVENTS" scfile=/scratch/kocevski/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits sctable="SC_DATA" outfile=/scratch/kocevski/932847/ltcube_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.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/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits
.....................!
real 12.99
user 12.61
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932847/ft1_filtered_4FGL_J1249.3-0545_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits sctable="SC_DATA" expcube=/scratch/kocevski/932847/ltcube_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.fits outfile=/scratch/kocevski/932847/expmap_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.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/932847/ltcube_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.fits
.....................!
real 192.36
user 186.70
sys 5.07

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/932847/ft1_filtered_4FGL_J1249.3-0545_daily_bin1404.fits scfile=/scratch/kocevski/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits outfile=/scratch/kocevski/932847/cmap_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.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.55
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932847/ft1_filtered_4FGL_J1249.3-0545_daily_bin1404.fits scfile=/scratch/kocevski/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits outfile=/scratch/kocevski/932847/cmap_HighResolution_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/932847/ft1_filtered_4FGL_J1249.3-0545_daily_bin1404.fits evtable="EVENTS" scfile=/scratch/kocevski/932847/ft2_4FGL_J1249.3-0545_daily_bin1404.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/932847/Model_4FGL_J1249.3-0545_daily_bin1404.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/932847/ft1_filtered_4FGL_J1249.3-0545_daily_bin1404.fits.....................!
real 51.34
user 49.90
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    46.377       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.8605       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    8.8935       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.790       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1446       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8596       1.0000         .10000E-03   10000.    
    12 'norm      '    .76961       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8383       1.0000         .10000E-03   10000.    
    14 'Prefactor '    32.531       1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.628       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.7445       1.0000         .10000E-03   10000.    
    18 'Prefactor '    62.254       1.0000         .10000E-03   10000.    
    19 'norm      '    3.8323       1.0000         .10000E-03   10000.    
    20 'norm      '    11.443       1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4702       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .63646       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.1393       1.0000         .10000E-03   10000.    
    24 'norm      '    2.6731       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4718       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .67747       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=   6252.016     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3109 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.098        .11177E-06** at limit **
   2  Prefactor     .10000E-03    50.249        .31714E-06** at limit **
   3  Prefactor     46.362        41.458        .22353E-06   -.16551E-03
   4  Prefactor     .10000E-03    7.5900       -.11183E-06** at limit **
   5  norm          1.8601        2.1049        .34749E-07   -.14530E-05
   6  norm          .10000E-03    20.962        .39059E-07** at limit **
   7  Prefactor     8.8861        10.284        .98509E-06   -.54437E-04
   8  norm          .10000E-03    .25656        .21499E-07** at limit **
   9  Prefactor     13.790        3.6884        .31569E-07   -.43914E-04
  10  Prefactor     7.1395        16.270        .17606E-05   -.86695E-05
  11  Prefactor     9.8432        13.016        .12330E-05    .48853E-04
  12  norm          .76852        2.0327        .12183E-05    .13241E-04
  13  Prefactor     7.8240        13.771        .64914E-06    .52152E-04
  14  Prefactor     32.508        42.169        .61216E-07   -.16502E-03
  15  Prefactor     41.438        71.554       -.98772E-05   -.44861E-03
  16  norm          .10000E-03    11.448       -.62339E-08** at limit **
  17  norm          1.7451        .43498        .34957E-06   -.35512E-02
  18  Prefactor     62.208        81.269       -.31458E-05   -.10730E-03
  19  norm          3.8329        6.0391        .91034E-07    .50621E-04
  20  norm          11.441        9.9257       -.81643E-06   -.12479E-03
  21  Prefactor     7.4665        8.3138       -.10293E-05   -.20854E-03
  22  Prefactor     .22579        18.739        .30505E-05   -.83885E-04
  23  Prefactor     3.1271        10.058        .18349E-04   -.37002E-03
  24  norm          2.6730        1.6455       -.20122E-06   -.85923E-03
  25  Normalizat    1.4730        .26595       -.44303E-05   -.33818E-03
  26  Prefactor     .67712        .15565       -.26155E-05   -.42134E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.3618
  Prefactor  = 0.0001
  norm       = 1.86008
  norm       = 0.0001
  Prefactor  = 8.88607
  norm       = 0.0001
  Prefactor  = 13.7904
  Prefactor  = 7.13954
  Prefactor  = 9.84323
  norm       = 0.768525
  Prefactor  = 7.82397
  Prefactor  = 32.5082
  Prefactor  = 41.4383
  norm       = 0.0001
  norm       = 1.74508
  Prefactor  = 62.2081
  norm       = 3.83291
  norm       = 11.4413
  Prefactor  = 7.46646
  Prefactor  = 0.225795
  Prefactor  = 3.12715
  norm       = 2.67301
  Normalizat = 1.47304
  Prefactor  = 0.677125
 **********
 **   18 **HESSE 
 **********

 FCN=   6252.016     FROM HESSE     STATUS=OK           470 CALLS     3579 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     46.362        41.520        .29439E-03   -1.4345    
   4  Prefactor     .10000E-03    7.5998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.8601        2.1041        .11835E-03   -1.5435    
   6  norm          .10000E-03    20.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     8.8861        10.280        .13440E-03   -1.5112    
   8  norm          .10000E-03    .26793        .77950E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.790        3.6937        .70495E-04   -1.4965    
  10  Prefactor     7.1395        16.170        .15007E-03   -1.5174    
  11  Prefactor     9.8432        13.060        .12762E-03   -1.5080    
  12  norm          .76852        2.0136        .17435E-03   -1.5533    
  13  Prefactor     7.8240        13.729        .14322E-03   -1.5148    
  14  Prefactor     32.508        42.193        .70254E-04   -1.4567    
  15  Prefactor     41.438        73.457        .31065E-03   -1.4420    
  16  norm          .10000E-03    11.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.7451        .44168        .21631E-04   -1.5444    
  18  Prefactor     62.208        81.708        .50857E-04   -1.4129    
  19  norm          3.8329        6.0244        .20616E-03   -1.5316    
  20  norm          11.441        9.9266        .11843E-03   -1.5031    
  21  Prefactor     7.4665        8.3133        .14674E-03   -1.5161    
  22  Prefactor     .22579        28.349        .92359E-01   -1.5613    
  23  Prefactor     3.1271        10.156        .11440E-02   -1.5354    
  24  norm          2.6730        1.6459        .75329E-04   -1.5381    
  25  Normalizat    1.4730        .32312        .30214E-03   -.78539    
  26  Prefactor     .67712        .18484        .27129E-03   -1.0443    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14411e-09
Minuit parameter uncertainties:
  1  1.91785e-05
  2  1.18139e-05
  3  41.5455
  4  1.3505e-05
  5  2.10416
  6  1.30503e-05
  7  10.282
  8  1.16093e-06
  9  3.69374
  10  16.1803
  11  13.0638
  12  2.01377
  13  13.7343
  14  42.2315
  15  73.6185
  16  1.56012e-06
  17  0.44168
  18  81.8554
  19  6.02533
  20  9.92803
  21  8.31459
  22  5.06142
  23  10.1617
  24  1.64597
  25  0.32357
  26  0.185009
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.144e+01  7.362e+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:  6.771e-01  1.850e-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.473e+00  3.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/932847/likelihoodResults_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.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) = 6251.25318717
delta logL = 0.76317044853

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6251.2285165
delta logL = 0.787841112651

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.434       1.0000         .10000E-03   10000.    
     2 'Index     '    3.0123       1.0000          .0000       10.000    
     3 'Normalizat'    1.3721       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71298       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6251.229     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      291 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.444        358.03        .10928E-03    .66060E-03
   2  Index         3.0127        3.4510        .37383E-02    .33320E-03
   3  Normalizat    1.3721        .34684        .31019E-03   -.29038E-03
   4  Prefactor     .71325        .21527        .26424E-03   -.20621E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.4445
  Index      = 3.01265
  Normalizat = 1.37207
  Prefactor  = 0.713252
 **********
 **   18 **HESSE 
 **********

 FCN=   6251.229     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.444        27.799        .43712E-05   -1.4974    
   2  Index         3.0127        .77226        .14953E-03   -.40876    
   3  Normalizat    1.3721        .29674        .62037E-04   -.81440    
   4  Prefactor     .71325        .18333        .10570E-04   -1.0301    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.69816e-10
Minuit parameter uncertainties:
  1  27.826
  2  0.775951
  3  0.297112
  4  0.183484
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932847': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6251.22850892
delta logL = 0.787848696338

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.344e+01  2.783e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  3.013e+00  7.760e-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:  7.133e-01  1.835e-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.372e+00  2.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.13
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 3.01 +/- 0.78
Photon Flux (Free Index): 1.46e-07 +/- 1.19e-07
Energy Flux (Free Index): 2.90e-05 +/- 2.25e-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/932847/cmap_HighResolution_603244801_603504001_4FGL_J1249.3-0545_daily_bin1404.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.24e-02', comment='SUCCESS', energy_flux2='2.90e-05', dlogl='7.88e-01', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-06 06:37:18.508534', photon_index_error2='0.78', photon_index2='3.01', ts='0.46', fit_tolerance='1e-08', GAL='0.68', photon_index_error='0.00', photon_flux_upper_limit='1.64e-07', energy_flux_error2='2.25e-05', EG='1.47', time_epoch_completed='1630935438.51', return_code='0', job_id='932847', GAL2='0.71', EG2='1.37', return_code2='0', photon_flux_error2='1.19e-07', ts2='2.13', photon_index='2.06' WHERE bin_id='1404' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:37:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 932847: <4FGL_J1249.3-0545_daily_bin1404> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1404> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:20:47 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:20:48 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:20:48 2021
Terminated at Mon Sep  6 06:37:19 2021
Results reported at Mon Sep  6 06:37:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1404 192.326 -5.7621 603244801 603504001 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 :                                   777.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             278.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

