/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 69 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_bin1105
RA = 192.326, Dec = -5.7621
tmin = 525744001, tmax = 526003201
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='932367', job_status='RUN', time_executed='2021-09-06 06:21:53.225065', time_epoch_executed='1630934513.23' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='1105'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/932367

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/932367/ft1_4FGL_J1249.3-0545_daily_bin1105.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/932367/ft1_4FGL_J1249.3-0545_daily_bin1105.fits outfile=/scratch/kocevski/932367/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin1105.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=525744001.0 tmax=526003201.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.42
user 4.12
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/932367/ft1_filtered_4FGL_J1249.3-0545_daily_bin1105.fits" evtable="EVENTS" scfile=/scratch/kocevski/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits sctable="SC_DATA" outfile=/scratch/kocevski/932367/ltcube_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.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/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits
.....................!
real 12.03
user 11.46
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/932367/ft1_filtered_4FGL_J1249.3-0545_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits sctable="SC_DATA" expcube=/scratch/kocevski/932367/ltcube_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.fits outfile=/scratch/kocevski/932367/expmap_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.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/932367/ltcube_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.fits
.....................!
real 190.25
user 185.10
sys 4.56

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/932367/ft1_filtered_4FGL_J1249.3-0545_daily_bin1105.fits scfile=/scratch/kocevski/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits outfile=/scratch/kocevski/932367/cmap_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/932367/ft1_filtered_4FGL_J1249.3-0545_daily_bin1105.fits scfile=/scratch/kocevski/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits outfile=/scratch/kocevski/932367/cmap_HighResolution_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/932367/ft1_filtered_4FGL_J1249.3-0545_daily_bin1105.fits evtable="EVENTS" scfile=/scratch/kocevski/932367/ft2_4FGL_J1249.3-0545_daily_bin1105.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/932367/Model_4FGL_J1249.3-0545_daily_bin1105.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/932367/ft1_filtered_4FGL_J1249.3-0545_daily_bin1105.fits.....................!
real 59.81
user 57.74
sys 1.38

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.9990       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    21.172       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5269       1.0000         .10000E-03   10000.    
     6 'norm      '    70.918       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .13104       1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.9513       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.5415       1.0000         .10000E-03   10000.    
    12 'norm      '    .64006       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    74.086       1.0000         .10000E-03   10000.    
    16 'norm      '    8.3267       1.0000         .10000E-03   10000.    
    17 'norm      '    1.9046       1.0000         .10000E-03   10000.    
    18 'Prefactor '    110.29       1.0000         .10000E-03   10000.    
    19 'norm      '    24.994       1.0000         .10000E-03   10000.    
    20 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6071       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.612       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .52097       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    2.2142       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .52639       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=   7120.126     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3111 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.9978        39.008        .69382E-05   -.76816E-05
   2  Prefactor     .10000E-03    22.279        .56289E-06** at limit **
   3  Prefactor     21.136        30.535        .42657E-05   -.73577E-06
   4  Prefactor     .10000E-03    36.525       -.21786E-05** at limit **
   5  norm          2.5223        2.4203       -.11015E-06    .50352E-04
   6  norm          70.911        48.821        .78144E-06    .48060E-05
   7  Prefactor     .10000E-03    2.7249        .21167E-08** at limit **
   8  norm          .13105        .36108       -.14498E-07   -.24324E-03
   9  Prefactor     2.9511        1.9404        .21915E-07   -.16750E-05
  10  Prefactor     .10000E-03    10.727        .71251E-07** at limit **
  11  Prefactor     9.5420        10.804        .89327E-07   -.51687E-07
  12  norm          .64028        1.7428        .21404E-06    .94110E-05
  13  Prefactor     .10000E-03    2.9314        .28174E-08** at limit **
  14  Prefactor     .10000E-03    12.861       -.20215E-06** at limit **
  15  Prefactor     74.087        56.577       -.30598E-07    .32684E-05
  16  norm          8.3265        19.885        .15744E-06    .79162E-06
  17  norm          1.9047        .40067        .76176E-08   -.30988E-04
  18  Prefactor     110.30        84.143       -.77158E-06    .37448E-05
  19  norm          24.996        14.417        .12287E-06    .22677E-05
  20  norm          .10000E-03    7.1424       -.18019E-07** at limit **
  21  Prefactor     9.6080        8.6576        .27335E-07    .19109E-05
  22  Prefactor     19.615        18.647        .17822E-08    .14077E-05
  23  Prefactor     .51149        6.5003       -.12386E-06    .30852E-04
  24  norm          .10000E-03    .50186        .21394E-08** at limit **
  25  Normalizat    2.2138        .26729        .76068E-07    .54914E-04
  26  Prefactor     .52660        .16283       -.76509E-06    .15203E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.99776
  Prefactor  = 0.0001
  Prefactor  = 21.1356
  Prefactor  = 0.000100001
  norm       = 2.5223
  norm       = 70.9105
  Prefactor  = 0.0001
  norm       = 0.131052
  Prefactor  = 2.95105
  Prefactor  = 0.0001
  Prefactor  = 9.54203
  norm       = 0.640276
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 74.0868
  norm       = 8.32653
  norm       = 1.90467
  Prefactor  = 110.303
  norm       = 24.9963
  norm       = 0.0001
  Prefactor  = 9.60802
  Prefactor  = 19.6149
  Prefactor  = 0.511487
  norm       = 0.0001
  Normalizat = 2.21376
  Prefactor  = 0.526603
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.126     FROM HESSE     STATUS=OK           466 CALLS     3577 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.9978        39.279        .14647E-02   -1.5425    
   2  Prefactor     .10000E-03    22.293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     21.136        30.554        .87049E-04   -1.4788    
   4  Prefactor     .10000E-03    38.334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5223        2.4036        .12307E-03   -1.5390    
   6  norm          70.911        48.723        .23835E-03   -1.4022    
   7  Prefactor     .10000E-03    2.7382        .13597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .13105        .44284        .76915E-03   -1.5636    
   9  Prefactor     2.9511        1.9406        .92186E-04   -1.5364    
  10  Prefactor     .10000E-03    10.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.5420        10.799        .12974E-03   -1.5090    
  12  norm          .64028        1.7337        .17242E-03   -1.5548    
  13  Prefactor     .10000E-03    2.9361        .14108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.870        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     74.087        56.934        .46646E-04   -1.3984    
  16  norm          8.3265        19.876        .13893E-03   -1.5131    
  17  norm          1.9047        .40455        .22069E-04   -1.5432    
  18  Prefactor     110.30        84.234        .38300E-04   -1.3604    
  19  norm          24.996        14.415        .80126E-04   -1.4708    
  20  norm          .10000E-03    7.2192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.6080        8.6491        .12929E-03   -1.5088    
  22  Prefactor     19.615        18.672        .90442E-04   -1.4822    
  23  Prefactor     .51149        28.956        .40817E-02   -1.5565    
  24  norm          .10000E-03    .51397        .58352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    2.2138        .31053        .28850E-03   -.59295    
  26  Prefactor     .52660        .18671        .33783E-03   -1.1077    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38164e-08
Minuit parameter uncertainties:
  1  17.7296
  2  7.00603e-06
  3  30.5767
  4  0.000308917
  5  2.40373
  6  48.7508
  7  3.57726e-07
  8  0.442846
  9  1.94067
  10  4.478e-06
  11  10.8008
  12  1.7338
  13  1.4215e-07
  14  2.26782e-06
  15  56.9759
  16  19.8916
  17  0.404549
  18  84.3259
  19  14.4175
  20  1.65267e-06
  21  8.65021
  22  18.6776
  23  7.70007
  24  2.40332e-07
  25  0.310821
  26  0.186926
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  7.409e+01  5.698e+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:  5.266e-01  1.869e-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:  2.214e+00  3.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.75
Ra Dec: 192.326 -5.762
Photon Index (Fixed Index): 2.06 +/- 0.00
Photon Flux (Fixed Index): 6.46e-08 +/- 4.96e-08
Energy Flux (Fixed Index): 3.89e-05 +/- 2.99e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7120.12226463
delta logL = 0.00383691163916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7120.11992266
delta logL = 0.00617887870612

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    78.585       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9946       1.0000          .0000       10.000    
     3 'Normalizat'    2.2179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .52608       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=   7120.120     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      282 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     78.685        72.849        .22651E-03    .90846E-05
   2  Index         1.9971        .57206        .59427E-02    .22061E-04
   3  Normalizat    2.2175        .29394        .28837E-03   -.52435E-04
   4  Prefactor     .52552        .18378        .33819E-03    .46794E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 78.6853
  Index      = 1.99705
  Normalizat = 2.21751
  Prefactor  = 0.525518
 **********
 **   18 **HESSE 
 **********

 FCN=   7120.120     FROM HESSE     STATUS=OK            25 CALLS      307 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     78.685        70.331        .90603E-05   -1.3932    
   2  Index         1.9971        .55207        .23771E-03   -.64424    
   3  Normalizat    2.2175        .29392        .11535E-04   -.59204    
   4  Prefactor     .52552        .18386        .13528E-04   -1.1082    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.555e-11
Minuit parameter uncertainties:
  1  70.4055
  2  0.553837
  3  0.294169
  4  0.184073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/932367': 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) = 7120.11987452
delta logL = 0.00622702010605

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  7.869e+01  7.041e+01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  1.997e+00  5.538e-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:  5.255e-01  1.841e-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:  2.218e+00  2.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.83
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 2.00 +/- 0.55
Photon Flux (Free Index): 5.94e-08 +/- 6.42e-08
Energy Flux (Free Index): 4.13e-05 +/- 3.90e-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/932367/cmap_HighResolution_525744001_526003201_4FGL_J1249.3-0545_daily_bin1105.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.46e-08', energy_flux2='4.13e-05', photon_flux_error='4.96e-08', dlogl='6.23e-03', energy_flux='3.89e-05', photon_flux2='5.94e-08', job_status='DONE', time_completed='2021-09-06 06:34:35.177106', photon_index_error2='0.55', photon_index2='2.00', ts='4.75', fit_tolerance='1e-08', GAL='0.53', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='2.21', time_epoch_completed='1630935275.18', return_code='0', job_id='932367', GAL2='0.53', EG2='2.22', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='6.42e-08', ts2='4.83', photon_index='2.06' WHERE bin_id='1105' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:34:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0264>
Subject: Job 932367: <4FGL_J1249.3-0545_daily_bin1105> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin1105> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:20:20 2021
Job was executed on host(s) <bullet0264>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:20:22 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:20:22 2021
Terminated at Mon Sep  6 06:34:35 2021
Results reported at Mon Sep  6 06:34:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin1105 192.326 -5.7621 525744001 526003201 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 :                                   753.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             304.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

