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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin608
RA = 192.326, Dec = -5.7621
tmin = 396921601, tmax = 397180801
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='928071', job_status='RUN', time_executed='2021-09-06 06:08:32.117787', time_epoch_executed='1630933712.12' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='608'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/928071

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/928071/ft1_4FGL_J1249.3-0545_daily_bin608.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/928071/ft2_4FGL_J1249.3-0545_daily_bin608.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/928071/ft1_4FGL_J1249.3-0545_daily_bin608.fits outfile=/scratch/kocevski/928071/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin608.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=396921601.0 tmax=397180801.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 4.53
user 4.29
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/928071/ft2_4FGL_J1249.3-0545_daily_bin608.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/928071/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin608.fits evtable="EVENTS" outfile="/scratch/kocevski/928071/ft1_filtered_4FGL_J1249.3-0545_daily_bin608.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/928071/ft1_filtered_4FGL_J1249.3-0545_daily_bin608.fits" evtable="EVENTS" scfile=/scratch/kocevski/928071/ft2_4FGL_J1249.3-0545_daily_bin608.fits sctable="SC_DATA" outfile=/scratch/kocevski/928071/ltcube_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.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/928071/ft2_4FGL_J1249.3-0545_daily_bin608.fits
.....................!
real 12.56
user 12.16
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/928071/ft1_filtered_4FGL_J1249.3-0545_daily_bin608.fits evtable="EVENTS" scfile=/scratch/kocevski/928071/ft2_4FGL_J1249.3-0545_daily_bin608.fits sctable="SC_DATA" expcube=/scratch/kocevski/928071/ltcube_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.fits outfile=/scratch/kocevski/928071/expmap_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.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/928071/ltcube_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.fits
.....................!
real 190.48
user 185.33
sys 4.03

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/928071/ft1_filtered_4FGL_J1249.3-0545_daily_bin608.fits scfile=/scratch/kocevski/928071/ft2_4FGL_J1249.3-0545_daily_bin608.fits outfile=/scratch/kocevski/928071/cmap_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.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.58
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    44.975       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.3304       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .84198       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8758       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.9309       1.0000         .10000E-03   10000.    
    11 'Prefactor '    32.284       1.0000         .10000E-03   10000.    
    12 'norm      '    2.1739       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.4395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    27.498       1.0000         .10000E-03   10000.    
    16 'norm      '    .15677E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.5146       1.0000         .10000E-03   10000.    
    18 'Prefactor '    27.846       1.0000         .10000E-03   10000.    
    19 'norm      '    15.136       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    31.546       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.6481       1.0000         .10000E-03   10000.    
    24 'norm      '    6.8487       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0496       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0801       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=   5990.240     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3167 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.3937        .42761E-07** at limit **
   2  Prefactor     .10000E-03    22.258        .22841E-05** at limit **
   3  Prefactor     44.976        41.511        .13900E-05   -.29716E-04
   4  Prefactor     .10000E-03    16.500        .22999E-05** at limit **
   5  norm          4.3307        3.4920        .10516E-07   -.17964E-03
   6  norm          .10000E-03    17.995        .13648E-05** at limit **
   7  Prefactor     .10000E-03    5.2316        .53722E-07** at limit **
   8  norm          .84203        .58329       -.98711E-07   -.15460E-02
   9  Prefactor     7.8759        3.2169        .64495E-07    .48640E-05
  10  Prefactor     8.9309        8.2764       -.17595E-06    .14347E-04
  11  Prefactor     32.286        16.061        .11233E-06   -.14203E-04
  12  norm          2.1741        1.6273       -.17888E-06   -.47499E-03
  13  Prefactor     .10000E-03    15.260       -.21859E-05** at limit **
  14  Prefactor     8.4607        61.816        .39034E-04   -.10936E-05
  15  Prefactor     27.491        54.113       -.78696E-05    .54090E-05
  16  norm          .10000E-03    149.79        .10983E-05** at limit **
  17  norm          2.5146        .47427        .70631E-07   -.74363E-03
  18  Prefactor     27.850        87.982        .51618E-05   -.36658E-06
  19  norm          15.137        15.715       -.73245E-06   -.26733E-04
  20  norm          .10000E-03    4.5332        .11087E-07** at limit **
  21  Prefactor     .10000E-03    19.800       -.36458E-05** at limit **
  22  Prefactor     31.551        30.983        .16939E-05   -.18828E-04
  23  Prefactor     7.6489        11.964        .34727E-06   -.59146E-04
  24  norm          6.8490        2.4582        .71435E-07   -.85139E-04
  25  Normalizat    1.0494        .29640       -.36887E-05    .24059E-04
  26  Prefactor     1.0802        .17996       -.20709E-07   -.41884E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.9755
  Prefactor  = 0.0001
  norm       = 4.33069
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.842033
  Prefactor  = 7.87588
  Prefactor  = 8.93094
  Prefactor  = 32.2858
  norm       = 2.17411
  Prefactor  = 0.0001
  Prefactor  = 8.46069
  Prefactor  = 27.4909
  norm       = 0.000100001
  norm       = 2.51457
  Prefactor  = 27.8496
  norm       = 15.1368
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5509
  Prefactor  = 7.64889
  norm       = 6.84901
  Normalizat = 1.04936
  Prefactor  = 1.08019
 **********
 **   18 **HESSE 
 **********

 FCN=   5990.240     FROM HESSE     STATUS=OK           464 CALLS     3631 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.4241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    22.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     44.976        41.464        .59784E-04   -1.4366    
   4  Prefactor     .10000E-03    16.604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.3307        3.4839        .11955E-03   -1.5292    
   6  norm          .10000E-03    18.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.3880        .34545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .84203        .57046        .45881E-03   -1.5524    
   9  Prefactor     7.8759        3.2199        .85492E-04   -1.5147    
  10  Prefactor     8.9309        8.2765        .13412E-03   -1.5110    
  11  Prefactor     32.286        16.068        .70521E-04   -1.4571    
  12  norm          2.1741        1.6207        .81787E-04   -1.5413    
  13  Prefactor     .10000E-03    15.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.4607        61.630        .13799E-03   -1.5126    
  15  Prefactor     27.491        54.429        .76398E-04   -1.4659    
  16  norm          .10000E-03    155.82        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.5146        .48029        .20485E-04   -1.5391    
  18  Prefactor     27.850        88.148        .75919E-04   -1.4652    
  19  norm          15.137        15.707        .10295E-03   -1.4930    
  20  norm          .10000E-03    4.5356        .16094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    20.592        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     31.551        31.133        .71339E-04   -1.4584    
  23  Prefactor     7.6489        11.979        .14501E-03   -1.5155    
  24  norm          6.8490        2.4591        .69482E-04   -1.5184    
  25  Normalizat    1.0494        .34926        .37385E-03   -.91395    
  26  Prefactor     1.0802        .21242        .24925E-03   -.90102    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34365e-10
Minuit parameter uncertainties:
  1  8.925e-06
  2  9.79165e-06
  3  41.4904
  4  1.15022e-05
  5  3.48409
  6  6.81398e-06
  7  1.16148e-05
  8  0.570466
  9  3.21993
  10  8.2776
  11  16.0704
  12  1.62076
  13  0.000100545
  14  45.7362
  15  54.5273
  16  0.00091515
  17  0.480288
  18  88.5647
  19  15.7108
  20  2.18357e-06
  21  0.000147603
  22  31.1487
  23  11.9827
  24  2.45918
  25  0.350032
  26  0.212584
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  2.749e+01  5.453e+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.080e+00  2.126e-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:  1.049e+00  3.500e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.34
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.05e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/928071/likelihoodResults_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.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) = 5989.68560822
delta logL = 0.554853115316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5989.09502468
delta logL = 1.14543665001

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.9448       1.0000          .0000       10.000    
     3 'Normalizat'    .89679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1555       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6510E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5989.095     FROM MIGRAD    STATUS=CONVERGED    189 CALLS      563 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .31394E-02   -.21749E-06** at limit **
   2  Index         6.9447        .22557        .18428E-04    .13754E-03
   3  Normalizat    .89720        .31471       -.93983E-05    .24700E-03
   4  Prefactor     1.1553        .21133        .17063E-04    .54724E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.94472
  Normalizat = 0.897202
  Prefactor  = 1.15528
 **********
 **   18 **HESSE 
 **********

 FCN=   5989.095     FROM HESSE     STATUS=OK            45 CALLS      608 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .24538E-03    .33404E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.9447        .55578        .76372E-01   -3.5411    
   3  Normalizat    .89720        .27906        .90158E-01   -.96559    
   4  Prefactor     1.1553        .18363        .54766E-01   -.87719    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19532e-10
Minuit parameter uncertainties:
  1  8.94484e-08
  2  0.55714
  3  0.279508
  4  0.183734
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/928071': 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) = 5989.09499759
delta logL = 1.14546374365

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.155e+00  1.837e-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:  8.972e-01  2.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 6.94 +/- 0.56
Photon Flux (Free Index): 1.72e-07 +/- 2.98e-07
Energy Flux (Free Index): 2.06e-05 +/- 3.54e-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/928071/cmap_HighResolution_396921601_397180801_4FGL_J1249.3-0545_daily_bin608.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.05e-02', comment='SUCCESS', energy_flux2='2.06e-05', dlogl='1.15e+00', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-09-06 06:21:58.135767', photon_index_error2='0.56', photon_index2='6.94', ts='0.34', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='3.54e-05', EG='1.05', time_epoch_completed='1630934518.14', return_code='0', job_id='928071', GAL2='1.16', EG2='0.90', return_code2='0', photon_flux_error2='2.98e-07', ts2='2.88', photon_index='2.06' WHERE bin_id='608' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:21:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 928071: <4FGL_J1249.3-0545_daily_bin608> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin608> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:05:32 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:05:33 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:05:33 2021
Terminated at Mon Sep  6 06:21:58 2021
Results reported at Mon Sep  6 06:21:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin608 192.326 -5.7621 396921601 397180801 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 :                                   801.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   985 sec.
    Turnaround time :                            986 sec.

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

