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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin670
RA = 192.326, Dec = -5.7621
tmin = 412992001, tmax = 413251201
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='929430', job_status='RUN', time_executed='2021-09-06 06:12:31.441206', time_epoch_executed='1630933951.44' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='670'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/929430

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/929430/ft1_4FGL_J1249.3-0545_daily_bin670.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/929430/ft1_4FGL_J1249.3-0545_daily_bin670.fits outfile=/scratch/kocevski/929430/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin670.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=412992001.0 tmax=413251201.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.57
user 3.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits" evtable="EVENTS" scfile=/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits sctable="SC_DATA" outfile=/scratch/kocevski/929430/ltcube_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.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/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits
.....................!
real 11.46
user 11.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits sctable="SC_DATA" expcube=/scratch/kocevski/929430/ltcube_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.fits outfile=/scratch/kocevski/929430/expmap_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.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/929430/ltcube_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.fits
.....................!
real 189.89
user 185.44
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/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits scfile=/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits outfile=/scratch/kocevski/929430/cmap_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits scfile=/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits outfile=/scratch/kocevski/929430/cmap_HighResolution_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits evtable="EVENTS" scfile=/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/929430/Model_4FGL_J1249.3-0545_daily_bin670.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/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits.................!
real 15.80
user 13.78
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits', '/scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits', expMap='/scratch/kocevski/929430/expmap_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.fits', expCube='/scratch/kocevski/929430/ltcube_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/929430/Model_4FGL_J1249.3-0545_daily_bin670.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/929430/ft1_filtered_4FGL_J1249.3-0545_daily_bin670.fits
Spacecraft file(s): /scratch/kocevski/929430/ft2_4FGL_J1249.3-0545_daily_bin670.fits
Exposure map: /scratch/kocevski/929430/expmap_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.fits
Exposure cube: /scratch/kocevski/929430/ltcube_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/929430/Model_4FGL_J1249.3-0545_daily_bin670.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 224.79789014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 221.681350392

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3550       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.3280       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .80013E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .29616E-02   1.0000         .10000E-03   10000.    
     5 'norm      '    .10098E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .91770       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1637       1.0000         .10000E-03   10000.    
     8 'norm      '    1.9228       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.7742       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .32069E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3857       1.0000         .10000E-03   10000.    
    12 'norm      '    16.775       1.0000         .10000E-03   10000.    
    13 'Prefactor '    110.87       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91057E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.3143       1.0000         .10000E-03   10000.    
    16 'norm      '    23.958       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .43170E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .14534       1.0000         .10000E-03   10000.    
    20 'norm      '    .45723E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.9408       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .24604E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2756       1.0000         .10000E-03   10000.    
    24 'norm      '    .10129E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    26 'Prefactor '    .25945       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=   221.6621     FROM MIGRAD    STATUS=CONVERGED    213 CALLS      412 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3550        1.0116         .0000         .0000    
   2  Prefactor     9.3280        1.0014         .0000         .0000    
   3  Prefactor     .10000E-03    126.50       -.21436E-04** at limit **
   4  Prefactor     .10000E-03    38.050        .46219E-05** at limit **
   5  norm          .10000E-03    9.1639       -.93966E-06** at limit **
   6  norm          .10000E-03    93.711        .10840E-04** at limit **
   7  Prefactor     1.1637        1.1503         .0000         .0000    
   8  norm          1.9419        2.2923        .10224E-05   -.86477E-04
   9  Prefactor     6.7742        1.0027         .0000         .0000    
  10  Prefactor     .10000E-03    41.809        .24117E-05** at limit **
  11  Prefactor     4.3857        1.0066         .0000         .0000    
  12  norm          16.806        7.5020        .87892E-06   -.62079E-04
  13  Prefactor     101.54        119.63       -.12411E-04   -.27425E-03
  14  Prefactor     .10000E-03    94.458        .15596E-04** at limit **
  15  Prefactor     .10027E-03    881.44       -.77714E-04** at limit **
  16  norm          46.376        239.16       -.71218E-04   -.26206E-04
  17  norm          .10000E-03    1.6396        .44458E-06** at limit **
  18  Prefactor     .10000E-03    206.26        .15990E-04** at limit **
  19  norm          .10000E-03    38.805       -.18393E-05** at limit **
  20  norm          .10000E-03    192.91       -.57073E-05** at limit **
  21  Prefactor     1.9408        1.0378         .0000         .0000    
  22  Prefactor     .10000E-03    116.33        .52118E-04** at limit **
  23  Prefactor     .10006E-03    685.68       -.12462E-03** at limit **
  24  norm          .10000E-03    5.7955       -.29733E-05** at limit **
  25  Normalizat    .10000E-01    .96728       -.19394E-03** at limit **
  26  Prefactor     .25835        .22270       -.66822E-05    .19157E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.35499
  Prefactor  = 9.32801
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.1637
  norm       = 1.94188
  Prefactor  = 6.77416
  Prefactor  = 0.0001
  Prefactor  = 4.38571
  norm       = 16.806
  Prefactor  = 101.54
  Prefactor  = 0.000100001
  Prefactor  = 0.000100269
  norm       = 46.3756
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 1.94084
  Prefactor  = 0.000100005
  Prefactor  = 0.000100064
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.258353
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   221.6621     FROM HESSE     STATUS=FAILED         9 CALLS      421 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     549.80        546.37         .0000       -1.5342    
   2  Prefactor     9.3280        1.0014         .0000       -1.5097    
   3  Prefactor     .10000E-03    .22163       -.21436E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    .24607        .46219E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .20571       -.93966E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .41419        .10840E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1637        1.1503         .0000       -1.5492    
   8  norm          1.9419        1.0437        .10224E-05   -1.5429    
   9  Prefactor     6.7742        1.0027         .0000       -1.5187    
  10  Prefactor     .10000E-03    .21078        .24117E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.3857        1.0066         .0000       -1.5289    
  12  norm          16.806        1.0014        .87892E-06   -1.4888    
  13  Prefactor     101.54        .95747       -.12411E-04   -1.3689    
  14  Prefactor     .10000E-03    .22413        .15596E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10027E-03    .47493E-01   -.77714E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          46.376        1.3900       -.71218E-04   -1.4345    
  17  norm          .10000E-03    .20571        .44458E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    .21329        .15990E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .23645       -.18393E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .21387       -.57073E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.9408        1.0378         .0000       -1.5429    
  22  Prefactor     .10000E-03    .20909        .52118E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10006E-03    .78215E-01   -.12462E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    .20571       -.29733E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .10000E-01    .25737       -.19394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .25835        .56156       -.66822E-05   -1.2479    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.52542e-10
Minuit parameter uncertainties:
  1  1.01156
  2  1.00144
  3  2.71507e-05
  4  6.38846e-06
  5  1.21488e-06
  6  1.82689e-05
  7  1.15036
  8  1.04374
  9  1.00275
  10  3.36614e-06
  11  1.00665
  12  1.00135
  13  0.957471
  14  2.24695e-05
  15  0.000226131
  16  1.39003
  17  5.95081e-07
  18  2.66513e-05
  19  2.47503e-06
  20  1.20765e-05
  21  1.03778
  22  6.45071e-05
  23  0.000140994
  24  3.87065e-06
  25  8.91102e-06
  26  0.574001
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 221.662085416

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.003e-04  2.261e-04  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:  2.584e-01  5.740e-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.000e-02  8.911e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 4.57e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.45e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/929430/likelihoodResults_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.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) = 221.662090958
delta logL = -5.5420915146e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 221.662094934
delta logL = -9.5175781496e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96203E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0584       1.0000          .0000       10.000    
     3 'Normalizat'    .10008E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .25844       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=   221.6621     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      213 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10153E-03    1077.5        .90728E-02** at limit **
   2  Index         2.0206        8.9855        .50000        .31882E-06
   3  Normalizat    .10000E-01    .15014E-02    .14760    ** at limit **
   4  Prefactor     .25835        .10338E-01    .36166E-01   -.81132E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101531
  Index      = 2.02062
  Normalizat = 0.01
  Prefactor  = 0.25835
 **********
 **   18 **HESSE 
 **********

 FCN=   221.6621     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      244 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10153E-03    7257.4        .18146E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0206        5.9807        .50000       -.63835    
   3  Normalizat    .10000E-01    .11335E-01    .74280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .25835        .22861E-01    .19742E-03   -1.2479    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.1253e-10
Minuit parameter uncertainties:
  1  0.182364
  2  1537.25
  3  2.56145e-06
  4  0.0228621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/929430': 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) = 221.662085414
delta logL = 2.29246666095e-09

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.015e-04  1.824e-01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.021e+00  1.537e+03  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:  2.583e-01  2.286e-02  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.000e-02  2.561e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.326 -5.762

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/929430/cmap_HighResolution_412992001_413251201_4FGL_J1249.3-0545_daily_bin670.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.45e-01', job_status='DONE', photon_flux_upper_limit='4.57e-06', time_completed='2021-09-06 06:17:59.038443', job_id='929430', GAL2='0.26', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630934279.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.26', dlogl='2.29e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='670' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:17:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 929430: <4FGL_J1249.3-0545_daily_bin670> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin670> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Sep  6 06:10:36 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:10:37 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:37 2021
Terminated at Mon Sep  6 06:17:59 2021
Results reported at Mon Sep  6 06:17:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin670 192.326 -5.7621 412992001 413251201 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 :                                   324.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             475.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   442 sec.
    Turnaround time :                            443 sec.

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

