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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin1015
RA = 192.326, Dec = -5.7621
tmin = 502416001, tmax = 502675201
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='931130', job_status='RUN', time_executed='2021-09-06 06:17:05.013146', time_epoch_executed='1630934225.01' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931130

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931130/ft1_4FGL_J1249.3-0545_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931130/ft1_4FGL_J1249.3-0545_daily_bin1015.fits outfile=/scratch/kocevski/931130/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1015.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=502416001.0 tmax=502675201.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.51
user 3.31
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.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/931130/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1015.fits evtable="EVENTS" outfile="/scratch/kocevski/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/931130/ltcube_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.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/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits
.....................!
real 11.70
user 11.37
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/931130/ltcube_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.fits outfile=/scratch/kocevski/931130/expmap_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.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/931130/ltcube_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.fits
.....................!
real 191.36
user 186.28
sys 4.72

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/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits scfile=/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits outfile=/scratch/kocevski/931130/cmap_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.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.60
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits scfile=/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits outfile=/scratch/kocevski/931130/cmap_HighResolution_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.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.56
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/931130/ft2_4FGL_J1249.3-0545_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931130/Model_4FGL_J1249.3-0545_daily_bin1015.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/931130/ft1_filtered_4FGL_J1249.3-0545_daily_bin1015.fits.....................!
real 56.86
user 55.25
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.216       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.7500       1.0000         .10000E-03   10000.    
     8 'norm      '    .32170       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.8023       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.7894       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3020       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6581       1.0000         .10000E-03   10000.    
    18 'Prefactor '    10.176       1.0000         .10000E-03   10000.    
    19 'norm      '    32.992       1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.171       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4171       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99222       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=   6998.571     FROM MIGRAD    STATUS=CONVERGED    590 CALLS     3077 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.656        17.994       -.52523E-06    .16970E-04
   2  Prefactor     .10000E-03    19.213       -.14120E-04** at limit **
   3  Prefactor     .10000E-03    10.913        .47830E-05** at limit **
   4  Prefactor     16.219        13.459       -.97421E-06    .98181E-05
   5  norm          .10000E-03    1.0417        .32988E-07** at limit **
   6  norm          .10000E-03    52.309       -.52304E-04** at limit **
   7  Prefactor     3.7498        6.1901       -.64084E-06   -.30742E-03
   8  norm          .32174        .44641       -.17335E-06   -.13997E-02
   9  Prefactor     3.8020        2.3414       -.13796E-08   -.56103E-04
  10  Prefactor     .10000E-03    11.714        .49815E-05** at limit **
  11  Prefactor     9.7892        13.720       -.90747E-06   -.39197E-04
  12  norm          1.3021        1.3161       -.14372E-06   -.13879E-03
  13  Prefactor     .10000E-03    5.6517       -.57403E-06** at limit **
  14  Prefactor     .10000E-03    9.8593       -.63195E-05** at limit **
  15  Prefactor     .10000E-03    22.169        .42855E-05** at limit **
  16  norm          .10000E-03    44.130        .14971E-04** at limit **
  17  norm          1.6581        .33814        .22174E-06   -.70374E-03
  18  Prefactor     10.129        87.373       -.12558E-03   -.13749E-04
  19  norm          32.993        15.549        .35455E-05   -.68002E-04
  20  norm          .10000E-03    6.2541        .91237E-06** at limit **
  21  Prefactor     .10000E-03    4.7530        .24305E-07** at limit **
  22  Prefactor     .10000E-03    40.606        .35150E-04** at limit **
  23  Prefactor     11.171        10.383       -.21499E-05   -.16713E-02
  24  norm          .10000E-03    .62531       -.39859E-07** at limit **
  25  Normalizat    1.4168        .25278        .54468E-05   -.28603E-03
  26  Prefactor     .99240        .16173       -.12317E-05    .86317E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.2191
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 3.74979
  norm       = 0.321738
  Prefactor  = 3.80203
  Prefactor  = 0.0001
  Prefactor  = 9.78915
  norm       = 1.30208
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.65813
  Prefactor  = 10.1287
  norm       = 32.993
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.1706
  norm       = 0.0001
  Normalizat = 1.41684
  Prefactor  = 0.992396
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.571     FROM HESSE     STATUS=OK           456 CALLS     3533 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.656        18.011        .12275E-03   -1.5055    
   2  Prefactor     .10000E-03    19.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.219        13.406        .99459E-04   -1.4902    
   5  norm          .10000E-03    1.0439        .83117E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    52.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.7498        6.1652        .20850E-03   -1.5321    
   8  norm          .32174        .41461        .60975E-03   -1.5595    
   9  Prefactor     3.8020        2.3398        .95076E-04   -1.5318    
  10  Prefactor     .10000E-03    12.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.7892        13.700        .12808E-03   -1.5082    
  12  norm          1.3021        1.3061        .92640E-04   -1.5480    
  13  Prefactor     .10000E-03    5.7121        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.8642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    22.183        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    44.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6581        .33891        .20637E-04   -1.5450    
  18  Prefactor     10.129        87.843        .12561E-03   -1.5071    
  19  norm          32.993        15.545        .69763E-04   -1.4559    
  20  norm          .10000E-03    6.3147        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7661        .17810E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    41.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     11.171        10.480        .59933E-03   -1.5039    
  24  norm          .10000E-03    .63920        .64554E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4168        .30039        .31629E-03   -.80143    
  26  Prefactor     .99240        .19213        .24950E-03   -.92983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34409e-09
Minuit parameter uncertainties:
  1  18.0203
  2  5.23001e-06
  3  5.58965e-06
  4  13.4087
  5  1.06291e-06
  6  0.000387627
  7  6.1662
  8  0.414617
  9  2.33982
  10  8.57126e-05
  11  13.7046
  12  1.30614
  13  6.20126e-06
  14  2.18353e-06
  15  2.22236e-05
  16  6.58598e-05
  17  0.338908
  18  59.7748
  19  15.5465
  20  5.87872e-06
  21  7.82765e-07
  22  0.000354687
  23  10.4814
  24  2.99662e-06
  25  0.300768
  26  0.192267
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  2.222e-05  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:  9.924e-01  1.923e-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.417e+00  3.008e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.326 -5.762
Photon Flux Upper Limit: 7.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931130/likelihoodResults_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.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) = 6998.57148371
delta logL = -0.000214635384509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6998.5712697
delta logL = -6.19467755314e-07

Fit tolerance = 1e-08

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

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

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6998.571     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      269 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10108E-03    86.577        .18142E-02** at limit **
   2  Index         2.2636        5.8982        .50000        .11900E-04
   3  Normalizat    1.4169        .13015E-01    .31629E-03   -.26084E-03
   4  Prefactor     .99239        .88398E-02    .24950E-03   -.65293E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101084
  Index      = 2.26362
  Normalizat = 1.41686
  Prefactor  = 0.992387
 **********
 **   18 **HESSE 
 **********

 FCN=   6998.571     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      298 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10108E-03    426.91        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2636        6.1178        .50000       -.57911    
   3  Normalizat    1.4169        .29657E-01    .63258E-04   -.80142    
   4  Prefactor     .99239        .20141E-01    .49900E-04   -.92984    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.00731e-09
Minuit parameter uncertainties:
  1  0.0433281
  2  424.406
  3  0.0296571
  4  0.020141
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931130': 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) = 6998.57126954
delta logL = -4.58078829979e-07

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.011e-04  4.333e-02  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  2.264e+00  4.244e+02  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:  9.924e-01  2.014e-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.417e+00  2.966e-02  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/931130/cmap_HighResolution_502416001_502675201_4FGL_J1249.3-0545_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.84e-03', job_status='DONE', photon_flux_upper_limit='7.75e-08', time_completed='2021-09-06 06:30:50.974423', job_id='931130', GAL2='0.99', fit_tolerance='1e-08', EG2='1.42', EG='1.42', time_epoch_completed='1630935050.97', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='-4.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='1015' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:30:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 931130: <4FGL_J1249.3-0545_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1015> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:15:38 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:15:39 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:15:39 2021
Terminated at Mon Sep  6 06:30:54 2021
Results reported at Mon Sep  6 06:30:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1015 192.326 -5.7621 502416001 502675201 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 :                                   822.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   912 sec.
    Turnaround time :                            916 sec.

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

