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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin764
RA = 192.326, Dec = -5.7621
tmin = 437356801, tmax = 437616001
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='929569', job_status='RUN', time_executed='2021-09-06 06:10:56.375847', time_epoch_executed='1630933856.38' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='764'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929569

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929569/ft1_4FGL_J1249.3-0545_daily_bin764.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929569/ft1_4FGL_J1249.3-0545_daily_bin764.fits outfile=/scratch/kocevski/929569/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin764.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=437356801.0 tmax=437616001.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.68
user 5.39
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929569/ft1_filtered_4FGL_J1249.3-0545_daily_bin764.fits" evtable="EVENTS" scfile=/scratch/kocevski/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits sctable="SC_DATA" outfile=/scratch/kocevski/929569/ltcube_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.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/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits
.....................!
real 12.00
user 11.64
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929569/ft1_filtered_4FGL_J1249.3-0545_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits sctable="SC_DATA" expcube=/scratch/kocevski/929569/ltcube_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.fits outfile=/scratch/kocevski/929569/expmap_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.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/929569/ltcube_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.fits
.....................!
real 190.13
user 185.05
sys 4.69

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/929569/ft1_filtered_4FGL_J1249.3-0545_daily_bin764.fits scfile=/scratch/kocevski/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits outfile=/scratch/kocevski/929569/cmap_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.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.56
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929569/ft1_filtered_4FGL_J1249.3-0545_daily_bin764.fits scfile=/scratch/kocevski/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits outfile=/scratch/kocevski/929569/cmap_HighResolution_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929569/ft1_filtered_4FGL_J1249.3-0545_daily_bin764.fits evtable="EVENTS" scfile=/scratch/kocevski/929569/ft2_4FGL_J1249.3-0545_daily_bin764.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929569/Model_4FGL_J1249.3-0545_daily_bin764.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/929569/ft1_filtered_4FGL_J1249.3-0545_daily_bin764.fits.....................!
real 63.41
user 61.71
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.725       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11404E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.8343       1.0000         .10000E-03   10000.    
     5 'norm      '    .14354E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    26.775       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.4517       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4507       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8348       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.9192       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.2368       1.0000         .10000E-03   10000.    
    12 'norm      '    9.0714       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10210E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    45.042       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.9216       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.8314       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    11.893       1.0000         .10000E-03   10000.    
    20 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.3281       1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.218       1.0000         .10000E-03   10000.    
    23 'Prefactor '    79.449       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0819       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .91979       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1992       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=   7537.458     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3142 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.728        26.785        .20474E-06    .20970E-04
   2  Prefactor     .10000E-03    126.74        .30665E-06** at limit **
   3  Prefactor     .10000E-03    12.317       -.45960E-05** at limit **
   4  Prefactor     8.8538        13.793        .12263E-05    .23322E-03
   5  norm          .10000E-03    1.9978       -.30399E-06** at limit **
   6  norm          26.756        51.716       -.16029E-04   -.12509E-03
   7  Prefactor     3.4508        4.9269       -.16180E-06   -.77287E-04
   8  norm          1.4510        .71374        .17830E-06   -.59135E-04
   9  Prefactor     3.8345        2.1229       -.39172E-07   -.49955E-06
  10  Prefactor     5.9154        11.591       -.11381E-05   -.60230E-04
  11  Prefactor     2.2328        6.1869        .26430E-05   -.11596E-02
  12  norm          9.0720        3.1615        .18877E-07   -.41396E-04
  13  Prefactor     .10000E-03    11.340        .15686E-05** at limit **
  14  Prefactor     45.048        49.086        .35317E-05    .47658E-04
  15  Prefactor     7.9181        63.172       -.46554E-05   -.18527E-04
  16  norm          .10000E-03    12.901        .31819E-05** at limit **
  17  norm          3.8315        .50708        .10728E-07   -.43378E-03
  18  Prefactor     .10000E-03    44.716        .74943E-06** at limit **
  19  norm          11.894        9.9659        .28515E-06    .18820E-04
  20  norm          .10000E-03    8.7502       -.33300E-07** at limit **
  21  Prefactor     8.3279        7.4521       -.57139E-07   -.86715E-05
  22  Prefactor     15.206        27.207       -.12847E-05   -.28854E-04
  23  Prefactor     79.449        16.920       -.95572E-07   -.28007E-04
  24  norm          2.0824        1.6705        .37196E-07   -.13076E-03
  25  Normalizat    .91935        .29760       -.57614E-06    .15462E-04
  26  Prefactor     1.1994        .17645        .20923E-06    .91859E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.7281
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.85379
  norm       = 0.0001
  norm       = 26.7563
  Prefactor  = 3.45082
  norm       = 1.45096
  Prefactor  = 3.83452
  Prefactor  = 5.9154
  Prefactor  = 2.23281
  norm       = 9.07197
  Prefactor  = 0.0001
  Prefactor  = 45.0481
  Prefactor  = 7.91812
  norm       = 0.0001
  norm       = 3.83149
  Prefactor  = 0.0001
  norm       = 11.8943
  norm       = 0.0001
  Prefactor  = 8.32787
  Prefactor  = 15.2061
  Prefactor  = 79.4485
  norm       = 2.08242
  Normalizat = 0.91935
  Prefactor  = 1.19943
 **********
 **   18 **HESSE 
 **********

 FCN=   7537.458     FROM HESSE     STATUS=OK           464 CALLS     3606 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.728        26.838        .68005E-04   -1.4529    
   2  Prefactor     .10000E-03    128.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.8538        12.008        .13485E-03   -1.5113    
   5  norm          .10000E-03    6.9172        .20526E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          26.756        52.004        .77420E-04   -1.4673    
   7  Prefactor     3.4508        4.9161        .21769E-03   -1.5336    
   8  norm          1.4510        .70916        .47699E-04   -1.5467    
   9  Prefactor     3.8345        2.1270        .90677E-04   -1.5316    
  10  Prefactor     5.9154        11.592        .16505E-03   -1.5221    
  11  Prefactor     2.2328        16.469        .13742E-02   -1.5409    
  12  norm          9.0720        3.1664        .86004E-04   -1.5105    
  13  Prefactor     .10000E-03    11.449        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     45.048        49.050        .59739E-04   -1.4365    
  15  Prefactor     7.9181        63.583        .14246E-03   -1.5145    
  16  norm          .10000E-03    12.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.8315        .51098        .20522E-04   -1.5316    
  18  Prefactor     .10000E-03    44.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          11.894        9.9627        .11616E-03   -1.5018    
  20  norm          .10000E-03    8.8140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.3279        7.4524        .13892E-03   -1.5131    
  22  Prefactor     15.206        27.497        .10267E-03   -1.4928    
  23  Prefactor     79.449        16.952        .45057E-04   -1.3923    
  24  norm          2.0824        1.6616        .95388E-04   -1.5419    
  25  Normalizat    .91935        .34539        .44521E-03   -.95784    
  26  Prefactor     1.1994        .20510        .25938E-03   -.86349    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22588e-09
Minuit parameter uncertainties:
  1  26.8468
  2  2.64972e-05
  3  0.00013323
  4  12.0117
  5  0.000113692
  6  52.0921
  7  4.91672
  8  0.70916
  9  2.12706
  10  11.596
  11  12.1325
  12  3.16646
  13  3.52718e-05
  14  49.0939
  15  44.941
  16  8.85239e-05
  17  0.510976
  18  3.79061e-05
  19  9.96409
  20  1.6402e-06
  21  7.45322
  22  27.5201
  23  16.9533
  24  1.66166
  25  0.34623
  26  0.205233
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  7.918e+00  4.494e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.058e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
333        Scale:  2.757e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.199e+00  2.052e-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:  9.193e-01  3.462e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/929569/likelihoodResults_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.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): 102
logL (Free Index) = 7535.94551603
delta logL = 1.51204568502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7535.91531711
delta logL = 1.5422446026

Fit tolerance = 1e-08

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

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

 FCN=   7535.915     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      252 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .28154        1.9003        .59471E-02    .14115E-02
   2  Index         4.4995        1.3820        .74040E-01    .23165E-03
   3  Normalizat    .72688        .65374E-01    .11117        .16538E-04
   4  Prefactor     1.2773        .42977E-01    .56991E-01   -.25028E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.281537
  Index      = 4.49947
  Normalizat = 0.726878
  Prefactor  = 1.27728
 **********
 **   18 **HESSE 
 **********

 FCN=   7535.915     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      283 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .28154        4.8458        .26708E-04   -1.5602    
   2  Index         4.4995        2.6390        .27257E-02   -.10027    
   3  Normalizat    .72688        .27547        .49297E-03   -1.0284    
   4  Prefactor     1.2773        .17736        .25198E-03   -.83985    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.48777e-07
Minuit parameter uncertainties:
  1  2.33585
  2  2.78165
  3  0.275999
  4  0.177444
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929569': 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): 102
logL (Free Index) = 7535.91531544
delta logL = 1.54224627272

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.815e-01  2.336e+00  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  4.499e+00  2.782e+00  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  1.774e-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.269e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.48
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 4.50 +/- 2.78
Photon Flux (Free Index): 2.45e-07 +/- 1.52e-07
Energy Flux (Free Index): 3.42e-05 +/- 2.13e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/929569/cmap_HighResolution_437356801_437616001_4FGL_J1249.3-0545_daily_bin764.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.38e-03', comment='SUCCESS', energy_flux2='3.42e-05', dlogl='1.54e+00', photon_flux2='2.45e-07', job_status='DONE', time_completed='2021-09-06 06:25:46.532489', photon_index_error2='2.78', photon_index2='4.50', ts='0.04', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='2.13e-05', EG='0.92', time_epoch_completed='1630934746.53', return_code='0', job_id='929569', GAL2='1.28', EG2='0.73', return_code2='102', photon_flux_error2='1.52e-07', ts2='3.48', photon_index='2.06' WHERE bin_id='764' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:25:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 929569: <4FGL_J1249.3-0545_daily_bin764> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin764> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 06:10:45 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:10:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep  6 06:10:46 2021
Terminated at Mon Sep  6 06:25:47 2021
Results reported at Mon Sep  6 06:25:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin764 192.326 -5.7621 437356801 437616001 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 :                                   885.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             297.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

