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


Performing analysis on: 4FGL_J2249.4-1300_daily_bin1542
RA = 342.356, Dec = -13.0006
tmin = 639014401, tmax = 639273601
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='491094', job_status='RUN', time_executed='2021-09-28 21:38:35.537765', time_epoch_executed='1632890315.54' WHERE source_name='4FGL J2249.4-1300' and cadence='daily' and bin_id='1542'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/491094

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/491094/ft1_4FGL_J2249.4-1300_daily_bin1542.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/491094/ft1_4FGL_J2249.4-1300_daily_bin1542.fits outfile=/scratch/kocevski/491094/ft1_filteredMKT_4FGL_J2249.4-1300_daily_bin1542.fits ra=342.356 dec=-13.0006 rad=12.0 tmin=639014401.0 tmax=639273601.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 5.42
user 5.10
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/491094/ft1_filtered_4FGL_J2249.4-1300_daily_bin1542.fits" evtable="EVENTS" scfile=/scratch/kocevski/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits sctable="SC_DATA" outfile=/scratch/kocevski/491094/ltcube_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.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/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits
.....................!
real 11.61
user 11.28
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/491094/ft1_filtered_4FGL_J2249.4-1300_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits sctable="SC_DATA" expcube=/scratch/kocevski/491094/ltcube_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.fits outfile=/scratch/kocevski/491094/expmap_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.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/491094/ltcube_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.fits
.....................!
real 190.97
user 185.87
sys 4.73

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/491094/ft1_filtered_4FGL_J2249.4-1300_daily_bin1542.fits scfile=/scratch/kocevski/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits outfile=/scratch/kocevski/491094/cmap_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/491094/ft1_filtered_4FGL_J2249.4-1300_daily_bin1542.fits scfile=/scratch/kocevski/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits outfile=/scratch/kocevski/491094/cmap_HighResolution_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/491094/ft1_filtered_4FGL_J2249.4-1300_daily_bin1542.fits evtable="EVENTS" scfile=/scratch/kocevski/491094/ft2_4FGL_J2249.4-1300_daily_bin1542.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/491094/Model_4FGL_J2249.4-1300_daily_bin1542.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/491094/ft1_filtered_4FGL_J2249.4-1300_daily_bin1542.fits.....................!
real 57.92
user 56.57
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3057       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.830       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12837E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.021       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.634       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .40455       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.844       1.0000         .10000E-03   10000.    
    11 'norm      '    .11561E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0229       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    30.684       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11374E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .96670       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83616       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=   6720.105     FROM MIGRAD    STATUS=CONVERGED    505 CALLS     2523 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3062        5.6318        .16219E-05    .50110E-04
   2  Prefactor     .10000E-03    7.2271       -.29371E-06** at limit **
   3  Prefactor     21.840        69.451       -.22565E-05    .34880E-05
   4  Prefactor     .10000E-03    2.0265       -.10749E-06** at limit **
   5  Prefactor     .10000E-03    11.997       -.22526E-06** at limit **
   6  norm          14.020        4.6612        .20431E-06   -.14414E-03
   7  Prefactor     30.672        100.98       -.80682E-05   -.60310E-05
   8  Prefactor     .10000E-03    3.0807       -.21075E-06** at limit **
   9  norm          .40445        .35144        .36203E-08   -.43249E-04
  10  Prefactor     15.825        10.321        .27026E-06   -.16362E-04
  11  norm          .10001E-03    .49867        .12205E-06** at limit **
  12  Prefactor     .10000E-03    25.957       -.13989E-05** at limit **
  13  Prefactor     .10000E-03    2.9974        .98314E-07** at limit **
  14  Prefactor     6.0229        8.4163        .10192E-05    .28344E-04
  15  norm          .10000E-03    4.8875        .14032E-06** at limit **
  16  Prefactor     30.683        34.484        .26976E-06    .42210E-05
  17  Prefactor     .10000E-03    6.0764       -.81251E-08** at limit **
  18  Prefactor     .10000E-03    3.7035       -.10632E-06** at limit **
  19  norm          .10000E-03    1.8181       -.31124E-07** at limit **
  20  Prefactor     .10000E-03    28.594        .12005E-05** at limit **
  21  Prefactor     .10000E-03    3.3511        .17203E-06** at limit **
  22  Normalizat    .96674        .15814        .39574E-06   -.44947E-04
  23  Prefactor     .83608        .12682       -.57307E-06   -.10384E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.30617
  Prefactor  = 0.0001
  Prefactor  = 21.8404
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 14.02
  Prefactor  = 30.6722
  Prefactor  = 0.0001
  norm       = 0.404453
  Prefactor  = 15.8255
  norm       = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.02288
  norm       = 0.0001
  Prefactor  = 30.6827
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.96674
  Prefactor  = 0.836076
 **********
 **   18 **HESSE 
 **********

 FCN=   6720.105     FROM HESSE     STATUS=OK           370 CALLS     2893 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3062        5.6406        .11133E-02   -1.5344    
   2  Prefactor     .10000E-03    7.2515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.840        69.263        .85729E-04   -1.4773    
   4  Prefactor     .10000E-03    9.8700        .21763E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.020        4.6323        .45573E-03   -1.4959    
   7  Prefactor     30.672        101.08        .72390E-04   -1.4600    
   8  Prefactor     .10000E-03    3.0928        .14050E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .40445        .38045        .43972E-03   -1.5581    
  10  Prefactor     15.825        8.9584        .10062E-03   -1.4912    
  11  norm          .10001E-03    4.2711        .93891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    26.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.0010        .13859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.0229        8.4251        .81804E-03   -1.5217    
  15  norm          .10000E-03    4.8982        .17697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     30.683        34.445        .72332E-04   -1.4600    
  17  Prefactor     .10000E-03    6.0791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7244        .15375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.8339        .10792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    28.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.3517        .14651E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .96674        .18400        .24375E-03   -.94153    
  23  Prefactor     .83608        .14651        .20633E-03   -.98412    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5526e-09
Minuit parameter uncertainties:
  1  5.64149
  2  9.39734e-06
  3  69.5201
  4  0.000333199
  5  3.48907e-06
  6  4.63243
  7  101.649
  8  8.35355e-07
  9  0.380449
  10  8.95921
  11  0.000303726
  12  7.49858e-06
  13  2.30319e-06
  14  8.42676
  15  3.92256e-06
  16  34.4671
  17  1.88975e-06
  18  4.05783e-06
  19  1.35485e-06
  20  7.24007e-05
  21  4.04085e-06
  22  0.184121
  23  0.146577
Done.

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

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  1.583e+01  8.959e+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

GAL_V02
   Spectrum: PowerLaw
491    Prefactor:  8.361e-01  1.466e-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:  9.667e-01  1.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.16
Ra Dec: 342.356 -13.001
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 5.79e-08 +/- 3.28e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 1.06e-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) = 6719.33867932
delta logL = 0.765969900292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6719.33511013
delta logL = 0.76953909197

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.106       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7203       1.0000          .0000       10.000    
     3 'Normalizat'    1.0006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82480       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=   6719.335     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      316 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.124        29.300        .32048E-03    .81733E-04
   2  Index         1.7208        .56022        .79978E-02    .33336E-03
   3  Normalizat    1.0006        .18141        .24025E-03   -.42588E-04
   4  Prefactor     .82478        .14391        .20776E-03   -.41588E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.1235
  Index      = 1.72083
  Normalizat = 1.00058
  Prefactor  = 0.824776
 **********
 **   18 **HESSE 
 **********

 FCN=   6719.335     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.124        28.698        .12819E-04   -1.4456    
   2  Index         1.7208        .54857        .15996E-02   -.71529    
   3  Normalizat    1.0006        .18147        .96100E-05   -.93011    
   4  Prefactor     .82478        .14403        .83103E-05   -.98821    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16552e-11
Minuit parameter uncertainties:
  1  28.7082
  2  0.550524
  3  0.181586
  4  0.144098
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/491094': 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) = 6719.33510887
delta logL = 0.76954034498

Extracting fit parameters...

4FGL J2249.4-1300
   Spectrum: PowerLaw
264    Prefactor:  3.912e+01  2.871e+01  1.000e-04  1.000e+04 ( 1.000e-14)
265        Index:  1.721e+00  5.505e-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.248e-01  1.441e-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.001e+00  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.70
Ra Dec: 342.356 -13.001
Photon Index (Free Index): 1.72 +/- 0.55
Photon Flux (Free Index): 2.42e-08 +/- 2.74e-08
Energy Flux (Free Index): 3.70e-05 +/- 3.94e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/491094/cmap_HighResolution_639014401_639273601_4FGL_J2249.4-1300_daily_bin1542.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.79e-08', energy_flux2='3.70e-05', photon_flux_error='3.28e-08', dlogl='7.70e-01', energy_flux='1.88e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-09-28 21:48:36.457057', photon_index_error2='0.55', photon_index2='1.72', ts='9.16', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='3.94e-05', EG='0.97', time_epoch_completed='1632890916.46', return_code='0', job_id='491094', GAL2='0.82', EG2='1.00', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='2.74e-08', ts2='10.70', photon_index='2.41' WHERE bin_id='1542' AND source_name='4FGL J2249.4-1300' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 28 21:48:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 491094: <4FGL_J2249.4-1300_daily_bin1542> in cluster <slac> Done

Job <4FGL_J2249.4-1300_daily_bin1542> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 28 21:35:44 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 28 21:35:46 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:46 2021
Terminated at Tue Sep 28 21:48:36 2021
Results reported at Tue Sep 28 21:48:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J2249.4-1300_daily_bin1542 342.356 -13.0006 639014401 639273601 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 :                                   589.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             227.72 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   771 sec.
    Turnaround time :                            772 sec.

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

