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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin909
RA = 192.326, Dec = -5.7621
tmin = 474940801, tmax = 475200001
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='930944', job_status='RUN', time_executed='2021-09-06 06:15:42.724531', time_epoch_executed='1630934142.72' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='909'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/930944

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/930944/ft1_4FGL_J1249.3-0545_daily_bin909.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/930944/ft2_4FGL_J1249.3-0545_daily_bin909.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/930944/ft1_4FGL_J1249.3-0545_daily_bin909.fits outfile=/scratch/kocevski/930944/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin909.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=474940801.0 tmax=475200001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 5.05
user 3.32
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/930944/ft2_4FGL_J1249.3-0545_daily_bin909.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/930944/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin909.fits evtable="EVENTS" outfile="/scratch/kocevski/930944/ft1_filtered_4FGL_J1249.3-0545_daily_bin909.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.71
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/930944/ft1_filtered_4FGL_J1249.3-0545_daily_bin909.fits" evtable="EVENTS" scfile=/scratch/kocevski/930944/ft2_4FGL_J1249.3-0545_daily_bin909.fits sctable="SC_DATA" outfile=/scratch/kocevski/930944/ltcube_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.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/930944/ft2_4FGL_J1249.3-0545_daily_bin909.fits
.....................!
real 12.09
user 11.71
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/930944/ft1_filtered_4FGL_J1249.3-0545_daily_bin909.fits evtable="EVENTS" scfile=/scratch/kocevski/930944/ft2_4FGL_J1249.3-0545_daily_bin909.fits sctable="SC_DATA" expcube=/scratch/kocevski/930944/ltcube_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.fits outfile=/scratch/kocevski/930944/expmap_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.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/930944/ltcube_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.fits
.....................!
real 191.15
user 185.52
sys 5.24

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/930944/ft1_filtered_4FGL_J1249.3-0545_daily_bin909.fits scfile=/scratch/kocevski/930944/ft2_4FGL_J1249.3-0545_daily_bin909.fits outfile=/scratch/kocevski/930944/cmap_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.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/930944/ft1_filtered_4FGL_J1249.3-0545_daily_bin909.fits scfile=/scratch/kocevski/930944/ft2_4FGL_J1249.3-0545_daily_bin909.fits outfile=/scratch/kocevski/930944/cmap_HighResolution_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10505E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.3812       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.123       1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.4431       1.0000         .10000E-03   10000.    
     5 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .13399E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .44330E-01   1.0000         .10000E-03   10000.    
     8 'norm      '    7.0377       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.5764       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    37.154       1.0000         .10000E-03   10000.    
    12 'norm      '    1.8096       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3011       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11843E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    42.620       1.0000         .10000E-03   10000.    
    16 'norm      '    .11292E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.4679       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11264E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.7098       1.0000         .10000E-03   10000.    
    20 'norm      '    .10325E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.4874       1.0000         .10000E-03   10000.    
    24 'norm      '    .77594       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4867       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76554       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=   7978.090     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3155 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.5778        .12905E-06** at limit **
   2  Prefactor     1.3049        93.145       -.36713E-04   -.47195E-04
   3  Prefactor     18.121        16.818       -.29522E-06   -.10656E-05
   4  Prefactor     5.4477        8.6480        .11467E-05   -.12683E-03
   5  norm          .10000E-03    1.1483        .17590E-07** at limit **
   6  norm          .10000E-03    197.30        .52110E-04** at limit **
   7  Prefactor     .10152E-03    4.7545       -.59372E-06** at limit **
   8  norm          7.0347        .99088       -.37485E-07   -.20312E-02
   9  Prefactor     8.5819        2.8830       -.53671E-07    .55823E-03
  10  Prefactor     .10000E-03    27.628        .60001E-06** at limit **
  11  Prefactor     37.158        14.308        .29225E-05    .68242E-04
  12  norm          1.8093        1.6234       -.58589E-07   -.60160E-03
  13  Prefactor     5.3012        5.4069       -.84130E-07    .96758E-05
  14  Prefactor     .10000E-03    75.399        .29521E-05** at limit **
  15  Prefactor     42.639        63.141        .76632E-05   -.97083E-05
  16  norm          .10000E-03    12.030        .47259E-07** at limit **
  17  norm          3.4680        .45697       -.75341E-07    .11176E-02
  18  Prefactor     .10000E-03    17.573        .97381E-07** at limit **
  19  norm          7.7115        8.3963        .59416E-06   -.59016E-04
  20  norm          .10000E-03    6.4840        .14283E-06** at limit **
  21  Prefactor     .10000E-03    7.4227        .23476E-06** at limit **
  22  Prefactor     .10000E-03    7.6859       -.38107E-06** at limit **
  23  Prefactor     1.4859        16.341       -.29324E-05   -.36697E-03
  24  norm          .77615        1.3981       -.21681E-06   -.14467E-02
  25  Normalizat    1.4865        .24819       -.28111E-06    .41991E-04
  26  Prefactor     .76564        .15402       -.57839E-07    .25449E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.30486
  Prefactor  = 18.1213
  Prefactor  = 5.44772
  norm       = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000101518
  norm       = 7.03474
  Prefactor  = 8.58191
  Prefactor  = 0.0001
  Prefactor  = 37.1576
  norm       = 1.80928
  Prefactor  = 5.30115
  Prefactor  = 0.0001
  Prefactor  = 42.6395
  norm       = 0.0001
  norm       = 3.46799
  Prefactor  = 0.0001
  norm       = 7.71146
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.48592
  norm       = 0.77615
  Normalizat = 1.48653
  Prefactor  = 0.765639
 **********
 **   18 **HESSE 
 **********

 FCN=   7978.090     FROM HESSE     STATUS=OK           470 CALLS     3625 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.5999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3049        98.095        .37032E-03   -1.5480    
   3  Prefactor     18.121        16.819        .94083E-04   -1.4856    
   4  Prefactor     5.4477        8.5874        .17223E-03   -1.5241    
   5  norm          .10000E-03    1.1569        .93056E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    196.19        .20557E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10152E-03    6.1580        .54247E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          7.0347        .99835        .31091E-04   -1.5177    
   9  Prefactor     8.5819        2.9101        .81071E-04   -1.5122    
  10  Prefactor     .10000E-03    28.702        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     37.158        14.225        .65751E-04   -1.4488    
  12  norm          1.8093        1.6159        .10316E-03   -1.5439    
  13  Prefactor     5.3012        5.4068        .17456E-03   -1.5247    
  14  Prefactor     .10000E-03    76.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     42.639        63.471        .61406E-04   -1.4401    
  16  norm          .10000E-03    12.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.4680        .46358        .19624E-04   -1.5335    
  18  Prefactor     .10000E-03    17.576        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.7115        8.3921        .14442E-03   -1.5153    
  20  norm          .10000E-03    6.5713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    7.5067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.7049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.4859        16.901        .35165E-03   -1.5464    
  24  norm          .77615        1.3163        .13458E-02   -1.5532    
  25  Normalizat    1.4865        .29870        .33256E-03   -.78158    
  26  Prefactor     .76564        .18480        .29121E-03   -1.0101    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.60368e-09
Minuit parameter uncertainties:
  1  3.92399e-05
  2  22.6652
  3  16.8229
  4  8.5893
  5  5.9811e-06
  6  0.00128081
  7  0.00611454
  8  0.998352
  9  2.91013
  10  2.74551e-05
  11  14.2266
  12  1.61596
  13  5.40732
  14  7.28539e-06
  15  63.572
  16  6.89959e-07
  17  0.46358
  18  2.75415e-07
  19  8.39333
  20  5.14317e-06
  21  1.7916e-05
  22  2.49514e-06
  23  10.0259
  24  1.31639
  25  0.299056
  26  0.184949
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  4.264e+01  6.357e+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:  7.656e-01  1.849e-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.487e+00  2.991e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/930944/likelihoodResults_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.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) = 7977.773102
delta logL = 0.316740898678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7977.76977904
delta logL = 0.320063854479

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2271       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2928       1.0000          .0000       10.000    
     3 'Normalizat'    1.4185       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79847       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7977.770     FROM MIGRAD    STATUS=FAILED        96 CALLS      370 TOTAL
                     EDM=   .18E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2271        180.47        .82514E-03   -.66529E-03
   2  Index         3.2928        3.9422        .48297E-02    .11855E-02
   3  Normalizat    1.4185        .21576        .33832E-03   -.70568E-06
   4  Prefactor     .79847        .14025        .28569E-03    .13928E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7977.770     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      454 TOTAL
                     EDM=   .18E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2271        180.47        .39954E-03   -.66529E-03
   2  Index         3.2928        3.9422        .12897E-02    .11855E-02
   3  Normalizat    1.4185        .21576        .23850E-03   -.70568E-06
   4  Prefactor     .79847        .14025        .13329E-03    .13928E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7977.770     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      485 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2290        185.52        .33006E-04   -.25834E-03
   2  Index         3.2927        6.5911        .96594E-03   -.69723E-04
   3  Normalizat    1.4185        .29497        .13533E-04    .24195E-04
   4  Prefactor     .79847        .19264        .11428E-04    .11102E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.22898
  Index      = 3.29268
  Normalizat = 1.41853
  Prefactor  = 0.798468
 **********
 **   18 **HESSE 
 **********

 FCN=   7977.770     FROM HESSE     STATUS=OK            23 CALLS      508 TOTAL
                     EDM=   .55E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2290        36.122        .13202E-05   -1.5297    
   2  Index         3.2927        2.0239        .38637E-04   -.34847    
   3  Normalizat    1.4185        .28870        .27065E-05   -.80094    
   4  Prefactor     .79847        .18652        .22855E-05   -.99785    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52062e-11
Minuit parameter uncertainties:
  1  24.7392
  2  2.09234
  3  0.289029
  4  0.186672
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/930944': 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) = 7977.769779
delta logL = 0.320063897031

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  7.985e-01  1.867e-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.419e+00  2.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.32
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 3.29 +/- 2.09
Photon Flux (Free Index): 1.02e-07 +/- 1.02e-07
Energy Flux (Free Index): 1.81e-05 +/- 1.92e-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/930944/cmap_HighResolution_474940801_475200001_4FGL_J1249.3-0545_daily_bin909.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.13e-02', comment='SUCCESS', energy_flux2='1.81e-05', dlogl='3.20e-01', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-06 06:31:54.994583', photon_index_error2='2.09', photon_index2='3.29', ts='0.58', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.92e-05', EG='1.49', time_epoch_completed='1630935114.99', return_code='0', job_id='930944', GAL2='0.80', EG2='1.42', return_code2='0', photon_flux_error2='1.02e-07', ts2='1.32', photon_index='2.06' WHERE bin_id='909' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:31:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0167>
Subject: Job 930944: <4FGL_J1249.3-0545_daily_bin909> in cluster <slac> Done

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

Your job looked like:

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

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

