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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1603
RA = 192.326, Dec = -5.7621
tmin = 654825601, tmax = 655084801
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='913859', job_status='RUN', time_executed='2021-10-05 00:06:34.997614', time_epoch_executed='1633417595.0' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1603'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913859

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913859/ft1_4FGL_J1249.3-0545_daily_bin1603.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913859/ft1_4FGL_J1249.3-0545_daily_bin1603.fits outfile=/scratch/kocevski/913859/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1603.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=654825601.0 tmax=655084801.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.97
user 2.76
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913859/ft1_filtered_4FGL_J1249.3-0545_daily_bin1603.fits" evtable="EVENTS" scfile=/scratch/kocevski/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits sctable="SC_DATA" outfile=/scratch/kocevski/913859/ltcube_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.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/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits
.....................!
real 12.22
user 11.88
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913859/ft1_filtered_4FGL_J1249.3-0545_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits sctable="SC_DATA" expcube=/scratch/kocevski/913859/ltcube_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.fits outfile=/scratch/kocevski/913859/expmap_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.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/913859/ltcube_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.fits
.....................!
real 191.11
user 185.08
sys 5.38

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/913859/ft1_filtered_4FGL_J1249.3-0545_daily_bin1603.fits scfile=/scratch/kocevski/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits outfile=/scratch/kocevski/913859/cmap_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913859/ft1_filtered_4FGL_J1249.3-0545_daily_bin1603.fits scfile=/scratch/kocevski/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits outfile=/scratch/kocevski/913859/cmap_HighResolution_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913859/ft1_filtered_4FGL_J1249.3-0545_daily_bin1603.fits evtable="EVENTS" scfile=/scratch/kocevski/913859/ft2_4FGL_J1249.3-0545_daily_bin1603.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913859/Model_4FGL_J1249.3-0545_daily_bin1603.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/913859/ft1_filtered_4FGL_J1249.3-0545_daily_bin1603.fits.....................!
real 22.87
user 21.65
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10479E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    96.837       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10527E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    7.0941       1.0000         .10000E-03   10000.    
     6 'norm      '    52.245       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .12607E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    38.195       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.6437       1.0000         .10000E-03   10000.    
    12 'norm      '    2.0473       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    543.71       1.0000         .10000E-03   10000.    
    16 'norm      '    179.04       1.0000         .10000E-03   10000.    
    17 'norm      '    .10412E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    724.63       1.0000         .10000E-03   10000.    
    19 'norm      '    82.041       1.0000         .10000E-03   10000.    
    20 'norm      '    .10178E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .69058E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    66.733       1.0000         .10000E-03   10000.    
    24 'norm      '    .85959E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .72967       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.2795       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=   1344.698     FROM MIGRAD    STATUS=CONVERGED    671 CALLS     3176 TOTAL
                     EDM=   .88E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.157       -.54662E-06** at limit **
   2  Prefactor     .10000E-03    59.474       -.61800E-06** at limit **
   3  Prefactor     96.919        86.098        .40619E-06   -.12409E-04
   4  Prefactor     .10000E-03    24.299       -.98915E-06** at limit **
   5  norm          7.0986        6.7552       -.27128E-06   -.26402E-04
   6  norm          52.416        102.89        .80596E-05   -.48118E-04
   7  Prefactor     .10000E-03    137.56       -.38951E-07** at limit **
   8  norm          .10000E-03    1.6664       -.21801E-05** at limit **
   9  Prefactor     .10000E-03    470.20        .65479E-05** at limit **
  10  Prefactor     38.262        43.587       -.45311E-07   -.15790E-04
  11  Prefactor    10000.0        5012.4        .20244E-03** at limit **
  12  norm          2.0499        2.5080       -.22754E-06   -.94877E-04
  13  Prefactor     .10000E-03    30.951       -.18606E-05** at limit **
  14  Prefactor     .10000E-03    39.402       -.19901E-06** at limit **
  15  Prefactor     543.69        520.10        .12258E-04    .22889E-04
  16  norm          179.21        149.36        .11510E-05    .22979E-04
  17  norm          .10000E-03    1.5788       -.93164E-06** at limit **
  18  Prefactor     725.23        595.80        .91998E-05    .28107E-04
  19  norm          81.980        104.12        .14636E-05    .39506E-04
  20  norm          .10000E-03    68.811        .11384E-06** at limit **
  21  Prefactor     .10000E-03    441.38        .43594E-05** at limit **
  22  Prefactor     .10000E-03    103.71       -.45468E-06** at limit **
  23  Prefactor     66.638        114.51        .54863E-05   -.78771E-05
  24  norm          .11144        61.868        .66251E-05    .17798E-04
  25  Normalizat    .73091        .69105       -.35265E-05   -.30984E-05
  26  Prefactor     1.2780        .52449        .39369E-05   -.14517E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 96.9186
  Prefactor  = 0.0001
  norm       = 7.09856
  norm       = 52.4163
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 38.2615
  Prefactor  = 10000
  norm       = 2.04993
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 543.69
  norm       = 179.209
  norm       = 0.0001
  Prefactor  = 725.234
  norm       = 81.9802
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 66.6384
  norm       = 0.111436
  Normalizat = 0.730907
  Prefactor  = 1.27796
 **********
 **   18 **HESSE 
 **********

 FCN=   1344.698     FROM HESSE     STATUS=OK           456 CALLS     3632 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.323        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    61.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     96.919        86.537        .20423E-03   -1.3736    
   4  Prefactor     .10000E-03    24.558        .17740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          7.0986        6.7596        .87499E-04   -1.5175    
   6  norm          52.416        102.45        .27744E-03   -1.4259    
   7  Prefactor     .10000E-03    145.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.6664        .70712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    511.05        .20602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     38.262        43.840        .64853E-04   -1.4470    
  11  Prefactor    10000.0        5001.2        .93382E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.0499        2.4949        .60536E-04   -1.5422    
  13  Prefactor     .10000E-03    31.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     543.69        528.56        .88204E-04   -1.1001    
  16  norm          179.21        151.43        .15083E-03   -1.3023    
  17  norm          .10000E-03    1.6626        .80305E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     725.23        605.95        .77145E-04   -1.0255    
  19  norm          81.980        105.51        .44345E-04   -1.3895    
  20  norm          .10000E-03    70.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    502.63        .20987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    108.84        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     66.638        115.44        .24565E-03   -1.4073    
  24  norm          .11144        55.759        .15847E-02   -1.5641    
  25  Normalizat    .73091        .77237        .47744E-03   -1.0269    
  26  Prefactor     1.2780        .59747        .27609E-03   -.83965    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62663e-10
Minuit parameter uncertainties:
  1  3.78304e-05
  2  2.48554e-05
  3  86.6496
  4  5.86074e-05
  5  6.76034
  6  102.801
  7  2.31104e-06
  8  1.25099e-05
  9  0.00280308
  10  43.8769
  11  0.811222
  12  2.49502
  13  3.84382e-05
  14  1.04695e-05
  15  533.463
  16  151.766
  17  9.45673e-06
  18  611.599
  19  105.754
  20  0.000196642
  21  0.00212925
  22  0.000170014
  23  115.836
  24  4.98784
  25  0.784345
  26  0.600703
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  5.437e+02  5.335e+02  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.278e+00  6.007e-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:  7.309e-01  7.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.02
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 4.74e-07 +/- 4.65e-07
Energy Flux (Fixed Index): 2.85e-04 +/- 2.80e-04

TS (Fixed Index): 2.02
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.67e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.26e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913859/likelihoodResults_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.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) = 1344.69697117
delta logL = 0.000530932046104

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1344.69629163
delta logL = 0.00121046905019

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    572.92       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0221       1.0000          .0000       10.000    
     3 'Normalizat'    .73184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2776       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=   1344.696     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      256 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     572.98        827.57        .86059E-04   -.70576E-04
   2  Index         2.0220        .76451        .40397E-02   -.15821E-03
   3  Normalizat    .73262        .74038        .47691E-03    .28713E-04
   4  Prefactor     1.2770        .56151        .27626E-03    .73177E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 572.982
  Index      = 2.02202
  Normalizat = 0.732625
  Prefactor  = 1.27699
 **********
 **   18 **HESSE 
 **********

 FCN=   1344.696     FROM HESSE     STATUS=OK            23 CALLS      279 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     572.98        794.49        .17212E-04   -1.0874    
   2  Index         2.0220        .73301        .16159E-03   -.63801    
   3  Normalizat    .73262        .74069        .19077E-04   -1.0262    
   4  Prefactor     1.2770        .56178        .55252E-04   -.83994    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.82534e-10
Minuit parameter uncertainties:
  1  810.837
  2  0.737145
  3  0.7512
  4  0.564468
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913859': 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) = 1344.69629093
delta logL = 0.00121116888295

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  5.730e+02  8.108e+02  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.022e+00  7.371e-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.277e+00  5.645e-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:  7.326e-01  7.512e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.06
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.02 +/- 0.74
Photon Flux (Free Index): 4.58e-07 +/- 5.41e-07
Energy Flux (Free Index): 3.00e-04 +/- 4.33e-04

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/913859/cmap_HighResolution_654825601_655084801_4FGL_J1249.3-0545_daily_bin1603.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.26e-01', comment='SUCCESS', photon_flux='4.74e-07', energy_flux2='3.00e-04', photon_flux_error='4.65e-07', dlogl='1.21e-03', energy_flux='2.85e-04', photon_flux2='4.58e-07', job_status='DONE', time_completed='2021-10-05 00:13:22.314275', photon_index_error2='0.74', photon_index2='2.02', ts='2.02', fit_tolerance='1e-08', GAL='1.28', photon_index_error='0.00', photon_flux_upper_limit='1.67e-06', energy_flux_error2='4.33e-04', EG='0.73', time_epoch_completed='1633418002.31', return_code='0', job_id='913859', GAL2='1.28', EG2='0.73', return_code2='0', energy_flux_error='2.80e-04', photon_flux_error2='5.41e-07', ts2='2.06', photon_index='2.06' WHERE bin_id='1603' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Oct  5 00:13:22 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0261>
Subject: Job 913859: <4FGL_J1249.3-0545_daily_bin1603> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1603> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Oct  5 00:02:29 2021
Job was executed on host(s) <bullet0261>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Oct  5 00:02:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Oct  5 00:02:30 2021
Terminated at Tue Oct  5 00:13:23 2021
Results reported at Tue Oct  5 00:13:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1603 192.326 -5.7621 654825601 655084801 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 :                                   408.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             230.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   652 sec.
    Turnaround time :                            654 sec.

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

