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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1286
RA = 342.356, Dec = -13.0006
tmin = 572659201, tmax = 572918401
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='490714', job_status='RUN', time_executed='2021-09-28 21:36:52.472099', time_epoch_executed='1632890212.47' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1286'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/490714

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/490714/ft1_4FGL_J2249.4-1300_daily_bin1286.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/490714/ft1_4FGL_J2249.4-1300_daily_bin1286.fits outfile=/scratch/kocevski/490714/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1286.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=572659201.0 tmax=572918401.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.83
user 3.40
sys 0.41

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.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/490714/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1286.fits evtable="EVENTS" outfile="/scratch/kocevski/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.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.50
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits" evtable="EVENTS" scfile=/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits sctable="SC_DATA" outfile=/scratch/kocevski/490714/ltcube_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.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/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits
.....................!
real 12.18
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits sctable="SC_DATA" expcube=/scratch/kocevski/490714/ltcube_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.fits outfile=/scratch/kocevski/490714/expmap_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.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/490714/ltcube_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.fits
.....................!
real 190.53
user 185.29
sys 4.84

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/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits scfile=/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits outfile=/scratch/kocevski/490714/cmap_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits scfile=/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits outfile=/scratch/kocevski/490714/cmap_HighResolution_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits evtable="EVENTS" scfile=/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/490714/Model_4FGL_J2249.4-1300_daily_bin1286.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/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits.....................!
real 54.81
user 53.44
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits', '/scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits', expMap='/scratch/kocevski/490714/expmap_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.fits', expCube='/scratch/kocevski/490714/ltcube_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/490714/Model_4FGL_J2249.4-1300_daily_bin1286.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/490714/ft1_filtered_4FGL_J2249.4-1300_daily_bin1286.fits
Spacecraft file(s): /scratch/kocevski/490714/ft2_4FGL_J2249.4-1300_daily_bin1286.fits
Exposure map: /scratch/kocevski/490714/expmap_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.fits
Exposure cube: /scratch/kocevski/490714/ltcube_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/490714/Model_4FGL_J2249.4-1300_daily_bin1286.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) = 5622.45229821

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46630E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    24.103       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.0065       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    30.499       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.9787       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    50.080       1.0000         .10000E-03   10000.    
    11 'norm      '    .10131E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .84746E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    26.686       1.0000         .10000E-03   10000.    
    16 'Prefactor '    41.068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    26.360       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2157       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0833       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=   5622.347     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2605 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    11.668       -.11231E-05** at limit **
   2  Prefactor     24.102        20.032       -.34538E-06    .15502E-05
   3  Prefactor     .10000E-03    26.723       -.87153E-06** at limit **
   4  Prefactor     7.0067        5.9414        .42953E-07   -.18441E-03
   5  Prefactor     .10000E-03    71.069        .72138E-06** at limit **
   6  norm          30.501        8.2645       -.10699E-05   -.66395E-04
   7  Prefactor     .10000E-03    163.30        .11529E-05** at limit **
   8  Prefactor     3.9757        17.976       -.35331E-05   -.67188E-04
   9  norm          .10000E-03    .40258       -.78960E-07** at limit **
  10  Prefactor     50.115        23.210       -.26010E-05   -.87449E-03
  11  norm          .10000E-03    .95595        .71007E-06** at limit **
  12  Prefactor     .10000E-03    41.212       -.11128E-05** at limit **
  13  Prefactor     .10000E-03    3.9469        .46981E-06** at limit **
  14  Prefactor     .10023E-03    8.3931        .16107E-05** at limit **
  15  norm          26.682        21.445       -.24092E-06    .18995E-05
  16  Prefactor     41.040        78.187       -.30366E-04   -.13617E-04
  17  Prefactor     26.372        28.780       -.69248E-07   -.84873E-05
  18  Prefactor     .10000E-03    12.786        .15061E-05** at limit **
  19  norm          .10000E-03    4.3636        .25309E-06** at limit **
  20  Prefactor     .10000E-03    20.503        .21752E-06** at limit **
  21  Prefactor     .10000E-03    5.7804        .27573E-06** at limit **
  22  Normalizat    1.2161        .26040        .59177E-05   -.30993E-03
  23  Prefactor     1.0831        .18498       -.11117E-06   -.22225E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100034
  Prefactor  = 24.1023
  Prefactor  = 0.0001
  Prefactor  = 7.00667
  Prefactor  = 0.0001
  norm       = 30.501
  Prefactor  = 0.0001
  Prefactor  = 3.97567
  norm       = 0.0001
  Prefactor  = 50.1154
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100225
  norm       = 26.6822
  Prefactor  = 41.0399
  Prefactor  = 26.3724
  Prefactor  = 0.000100005
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.2161
  Prefactor  = 1.08305
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.347     FROM HESSE     STATUS=OK           368 CALLS     2973 TOTAL
                     EDM=   .71E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    99.417        .48476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     24.102        20.011        .81591E-04   -1.4726    
   3  Prefactor     .10000E-03    26.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.0067        5.9369        .15156E-03   -1.5179    
   5  Prefactor     .10000E-03    71.212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          30.501        8.2400        .72550E-04   -1.4603    
   7  Prefactor     .10000E-03    163.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9757        18.156        .20221E-03   -1.5309    
   9  norm          .10000E-03    .41024        .46392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     50.115        20.421        .56668E-04   -1.4291    
  11  norm          .10000E-03    4.2639        .12136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    41.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.9489        .14548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10023E-03    42.714        .41442E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          26.682        21.424        .77548E-04   -1.4674    
  16  Prefactor     41.040        77.334        .62551E-04   -1.4426    
  17  Prefactor     26.372        28.776        .78025E-04   -1.4680    
  18  Prefactor     .10000E-03    13.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.3942        .15301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    20.509        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.7822        .17607E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.2161        .30698        .31162E-03   -.86107    
  23  Prefactor     1.0831        .22297        .24907E-03   -.90010    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.13314e-09
Minuit parameter uncertainties:
  1  0.00368049
  2  20.0165
  3  1.92035e-06
  4  5.9374
  5  0.000135983
  6  8.24032
  7  0.000105685
  8  17.0003
  9  1.13999e-06
  10  20.4243
  11  7.04438e-05
  12  0.000160181
  13  1.20205e-06
  14  0.00621133
  15  21.4303
  16  77.5238
  17  28.7914
  18  0.000504429
  19  7.32243e-05
  20  1.22228e-05
  21  3.15742e-06
  22  0.307437
  23  0.223164
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  5.012e+01  2.042e+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:  1.083e+00  2.232e-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.216e+00  3.074e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.86
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.83e-07 +/- 7.47e-08
Energy Flux (Fixed Index): 5.95e-05 +/- 2.42e-05

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) = 5622.10784499
delta logL = 0.239360058914

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5622.09790623
delta logL = 0.249298821604

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    82.425       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1055       1.0000          .0000       10.000    
     3 'Normalizat'    1.2707       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0610       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=   5622.098     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      289 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     82.433        65.295        .44242E-04    .12036E-03
   2  Index         2.1054        .46833        .35279E-02    .10889E-03
   3  Normalizat    1.2706        .29631        .30616E-03    .27572E-03
   4  Prefactor     1.0609        .21865        .25151E-03    .51330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 82.4332
  Index      = 2.10539
  Normalizat = 1.27063
  Prefactor  = 1.06091
 **********
 **   18 **HESSE 
 **********

 FCN=   5622.098     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     82.433        60.069        .88484E-05   -1.3890    
   2  Index         2.1054        .43011        .14112E-03   -.61741    
   3  Normalizat    1.2706        .29474        .61231E-04   -.84447    
   4  Prefactor     1.0609        .21846        .50302E-04   -.90726    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.7866e-10
Minuit parameter uncertainties:
  1  60.1131
  2  0.430908
  3  0.295126
  4  0.21864
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/490714': 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) = 5622.09790564
delta logL = 0.249299409862

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  8.243e+01  6.011e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  2.105e+00  4.309e-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:  1.061e+00  2.186e-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.271e+00  2.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.24
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 2.11 +/- 0.43
Photon Flux (Free Index): 1.31e-07 +/- 9.37e-08
Energy Flux (Free Index): 7.12e-05 +/- 4.06e-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/490714/cmap_HighResolution_572659201_572918401_4FGL_J2249.4-1300_daily_bin1286.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.83e-07', energy_flux2='7.12e-05', photon_flux_error='7.47e-08', dlogl='2.49e-01', energy_flux='5.95e-05', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-28 21:45:56.358187', photon_index_error2='0.43', photon_index2='2.11', ts='17.86', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='4.06e-05', EG='1.22', time_epoch_completed='1632890756.36', return_code='0', job_id='490714', GAL2='1.06', EG2='1.27', return_code2='0', energy_flux_error='2.42e-05', photon_flux_error2='9.37e-08', ts2='18.24', photon_index='2.41' WHERE bin_id='1286' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:45:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0222>
Subject: Job 490714: <4FGL_J2249.4-1300_daily_bin1286> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1286> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:35:15 2021
Job was executed on host(s) <bullet0222>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:35:17 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:35:17 2021
Terminated at Tue Sep 28 21:45:56 2021
Results reported at Tue Sep 28 21:45:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1286 342.356 -13.0006 572659201 572918401 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 :                                   539.24 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             330.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   639 sec.
    Turnaround time :                            641 sec.

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

