/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 6 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 = 7427
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J2249.4-1300_daily_bin296
RA = 342.356, Dec = -13.0006
tmin = 316051201, tmax = 316310401
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='486456', job_status='RUN', time_executed='2021-09-28 21:20:35.518771', time_epoch_executed='1632889235.52' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='296'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/486456

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/486456/ft1_4FGL_J2249.4-1300_daily_bin296.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/486456/ft1_4FGL_J2249.4-1300_daily_bin296.fits outfile=/scratch/kocevski/486456/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin296.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=316051201.0 tmax=316310401.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.48
user 3.25
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.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/486456/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin296.fits evtable="EVENTS" outfile="/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits" evtable="EVENTS" scfile=/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits sctable="SC_DATA" outfile=/scratch/kocevski/486456/ltcube_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.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/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits
.....................!
real 12.40
user 12.02
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits sctable="SC_DATA" expcube=/scratch/kocevski/486456/ltcube_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.fits outfile=/scratch/kocevski/486456/expmap_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.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/486456/ltcube_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.fits
.....................!
real 191.42
user 185.53
sys 5.43

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

Setting source of interest to:
4FGL J2249.4-1300 @ 342.356 -13.0006

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits scfile=/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits outfile=/scratch/kocevski/486456/cmap_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.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=342.356 yref=-13.0006 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits scfile=/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits outfile=/scratch/kocevski/486456/cmap_HighResolution_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.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=342.356 yref=-13.0006 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits evtable="EVENTS" scfile=/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/486456/Model_4FGL_J2249.4-1300_daily_bin296.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/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits.....................!
real 46.97
user 45.66
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits', '/scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits', expMap='/scratch/kocevski/486456/expmap_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.fits', expCube='/scratch/kocevski/486456/ltcube_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/486456/Model_4FGL_J2249.4-1300_daily_bin296.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J2249.4-1300'

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.757e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.408e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/486456/ft1_filtered_4FGL_J2249.4-1300_daily_bin296.fits
Spacecraft file(s): /scratch/kocevski/486456/ft2_4FGL_J2249.4-1300_daily_bin296.fits
Exposure map: /scratch/kocevski/486456/expmap_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.fits
Exposure cube: /scratch/kocevski/486456/ltcube_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/486456/Model_4FGL_J2249.4-1300_daily_bin296.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) = 4921.23986169

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8564       1.0000         .10000E-03   10000.    
     2 'Prefactor '    51.252       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.2602       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    4.1400       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    35.219       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3824       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.018       1.0000         .10000E-03   10000.    
    11 'norm      '    .10698E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.430       1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.293       1.0000         .10000E-03   10000.    
    14 'Prefactor '    34.656       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3192       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.1764       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .81577       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4921.224     FROM MIGRAD    STATUS=CONVERGED    499 CALLS     2162 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8557        4.5297        .19294E-05   -.13437E-02
   2  Prefactor     51.251        24.157       -.11307E-06   -.44793E-04
   3  Prefactor     .10000E-03    41.510        .12820E-04** at limit **
   4  Prefactor     7.2598        5.2514       -.29183E-05   -.37860E-03
   5  Prefactor     .10000E-03    21.981       -.62278E-05** at limit **
   6  norm          4.1397        4.2195        .79511E-06    .39092E-04
   7  Prefactor     .10000E-03    51.200       -.40322E-05** at limit **
   8  Prefactor     35.219        22.692        .22136E-06    .10359E-04
   9  norm          1.3825        .83622       -.15492E-07    .39612E-04
  10  Prefactor     11.027        10.968       -.55157E-06    .82839E-04
  11  norm          .10000E-03    .54743       -.18794E-06** at limit **
  12  Prefactor     24.443        22.446        .37667E-05    .17094E-03
  13  Prefactor     12.293        10.304       -.17154E-06    .17868E-04
  14  Prefactor     34.658        17.444       -.17010E-06    .24866E-04
  15  norm          .10000E-03    9.3273       -.35500E-06** at limit **
  16  Prefactor     .10000E-03    52.689       -.91568E-05** at limit **
  17  Prefactor     .10000E-03    17.328        .40398E-05** at limit **
  18  Prefactor     .10000E-03    7.0067        .25371E-06** at limit **
  19  norm          1.3157        6.2663       -.78192E-06   -.15268E-03
  20  Prefactor     .10000E-03    32.112        .24274E-05** at limit **
  21  Prefactor     .10000E-03    19.789       -.14695E-05** at limit **
  22  Normalizat    1.1764        .22797       -.23760E-06    .66702E-04
  23  Prefactor     .81579        .16857        .21898E-06    .35835E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.85575
  Prefactor  = 51.2513
  Prefactor  = 0.000100001
  Prefactor  = 7.25983
  Prefactor  = 0.0001
  norm       = 4.13969
  Prefactor  = 0.0001
  Prefactor  = 35.2193
  norm       = 1.38246
  Prefactor  = 11.0273
  norm       = 0.0001
  Prefactor  = 24.4428
  Prefactor  = 12.2932
  Prefactor  = 34.6576
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3157
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.17639
  Prefactor  = 0.815791
 **********
 **   18 **HESSE 
 **********

 FCN=   4921.224     FROM HESSE     STATUS=OK           370 CALLS     2532 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8557        13.365        .15295E-02   -1.5436    
   2  Prefactor     51.251        24.147        .56020E-04   -1.4275    
   3  Prefactor     .10000E-03    41.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.2598        5.2556        .12782E-03   -1.5169    
   5  Prefactor     .10000E-03    21.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          4.1397        4.2109        .13793E-03   -1.5301    
   7  Prefactor     .10000E-03    51.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     35.219        22.853        .67528E-04   -1.4520    
   9  norm          1.3825        .83135        .48299E-04   -1.5473    
  10  Prefactor     11.027        10.541        .60349E-03   -1.5044    
  11  norm          .10000E-03    .69528        .94494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     24.443        22.222        .81045E-04   -1.4719    
  13  Prefactor     12.293        10.304        .11425E-03   -1.5007    
  14  Prefactor     34.658        17.460        .68072E-04   -1.4530    
  15  norm          .10000E-03    9.3488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.0262        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3157        6.2913        .33814E-03   -1.5479    
  20  Prefactor     .10000E-03    32.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.1764        .27119        .26955E-03   -.87335    
  23  Prefactor     .81579        .19981        .23840E-03   -.99149    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.00705e-08
Minuit parameter uncertainties:
  1  9.96313
  2  24.1516
  3  0.00035048
  4  5.2559
  5  0.00013079
  6  4.21117
  7  9.34743e-05
  8  22.8586
  9  0.831354
  10  10.5426
  11  2.12438e-05
  12  22.2293
  13  10.3055
  14  17.4627
  15  2.6078e-06
  16  0.00025483
  17  6.57745e-05
  18  1.99863e-05
  19  5.75486
  20  5.95164e-05
  21  3.00159e-05
  22  0.271518
  23  0.199987
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.103e+01  1.054e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.408e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  8.158e-01  2.000e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.176e+00  2.715e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.88
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.86e-08
Energy Flux (Fixed Index): 1.31e-05 +/- 1.25e-05

TS (Fixed Index): 2.88
Ra Dec: 342.356 -13.001
Photon Flux Upper Limit: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/486456/likelihoodResults_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.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) = 4919.61106943
delta logL = 1.61335023567

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4919.60664154
delta logL = 1.61777812183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.369       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4036       1.0000          .0000       10.000    
     3 'Normalizat'    1.1987       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80638       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4940E+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=   4919.607     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      309 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.367        40.913        .59525E-04    .40257E-03
   2  Index         1.4036        .52363        .89028E-02    .20722E-03
   3  Normalizat    1.1987        .26153        .26744E-03   -.65252E-04
   4  Prefactor     .80638        .19763        .23960E-03   -.68516E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.3673
  Index      = 1.40362
  Normalizat = 1.19871
  Prefactor  = 0.806377
 **********
 **   18 **HESSE 
 **********

 FCN=   4919.607     FROM HESSE     STATUS=OK            23 CALLS      332 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.367        40.981        .11905E-04   -1.4360    
   2  Index         1.4036        .52459        .35611E-03   -.80276    
   3  Normalizat    1.1987        .26182        .10698E-04   -.86643    
   4  Prefactor     .80638        .19786        .95840E-05   -.99494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.68359e-09
Minuit parameter uncertainties:
  1  41.006
  2  0.526605
  3  0.262103
  4  0.198031
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/486456': 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) = 4919.60664153
delta logL = 1.61777813654

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  4.537e+01  4.101e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  1.404e+00  5.266e-01  0.000e+00  1.000e+01 (-1.000e+00)
266        Scale:  3.479e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  8.064e-01  1.980e-01  0.000e+00  1.000e+01 ( 1.000e+00)
492        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
493        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
490   Normalization:  1.199e+00  2.621e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.13
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 1.40 +/- 0.53
Photon Flux (Free Index): 1.54e-08 +/- 1.92e-08
Energy Flux (Free Index): 6.71e-05 +/- 8.48e-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/486456/cmap_HighResolution_316051201_316310401_4FGL_J2249.4-1300_daily_bin296.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='6.71e-05', photon_flux_error='3.86e-08', dlogl='1.62e+00', energy_flux='1.31e-05', photon_flux2='1.54e-08', job_status='DONE', time_completed='2021-09-28 21:29:29.602564', photon_index_error2='0.53', photon_index2='1.40', ts='2.88', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.38e-07', energy_flux_error2='8.48e-05', EG='1.18', time_epoch_completed='1632889769.6', return_code='0', job_id='486456', GAL2='0.81', EG2='1.20', return_code2='0', energy_flux_error='1.25e-05', photon_flux_error2='1.92e-08', ts2='6.13', photon_index='2.41' WHERE bin_id='296' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:29:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 486456: <4FGL_J2249.4-1300_daily_bin296> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin296> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 28 21:20:19 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:20:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 28 21:20:20 2021
Terminated at Tue Sep 28 21:29:30 2021
Results reported at Tue Sep 28 21:29:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin296 342.356 -13.0006 316051201 316310401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J2249.4-1300 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   529.18 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             338.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   549 sec.
    Turnaround time :                            551 sec.

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

