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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin981
RA = 192.326, Dec = -5.7621
tmin = 493603201, tmax = 493862401
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='931073', job_status='RUN', time_executed='2021-09-06 06:15:58.848019', time_epoch_executed='1630934158.85' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='981'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/931073

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/931073/ft1_4FGL_J1249.3-0545_daily_bin981.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/931073/ft1_4FGL_J1249.3-0545_daily_bin981.fits outfile=/scratch/kocevski/931073/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin981.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=493603201.0 tmax=493862401.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.53
user 3.26
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/931073/ft1_filtered_4FGL_J1249.3-0545_daily_bin981.fits" evtable="EVENTS" scfile=/scratch/kocevski/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits sctable="SC_DATA" outfile=/scratch/kocevski/931073/ltcube_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.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/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits
.....................!
real 11.62
user 11.23
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/931073/ft1_filtered_4FGL_J1249.3-0545_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits sctable="SC_DATA" expcube=/scratch/kocevski/931073/ltcube_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.fits outfile=/scratch/kocevski/931073/expmap_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.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/931073/ltcube_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.fits
.....................!
real 191.04
user 186.11
sys 4.54

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/931073/ft1_filtered_4FGL_J1249.3-0545_daily_bin981.fits scfile=/scratch/kocevski/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits outfile=/scratch/kocevski/931073/cmap_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.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/931073/ft1_filtered_4FGL_J1249.3-0545_daily_bin981.fits scfile=/scratch/kocevski/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits outfile=/scratch/kocevski/931073/cmap_HighResolution_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/931073/ft1_filtered_4FGL_J1249.3-0545_daily_bin981.fits evtable="EVENTS" scfile=/scratch/kocevski/931073/ft2_4FGL_J1249.3-0545_daily_bin981.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/931073/Model_4FGL_J1249.3-0545_daily_bin981.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/931073/ft1_filtered_4FGL_J1249.3-0545_daily_bin981.fits.....................!
real 49.28
user 47.93
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2688       1.0000         .10000E-03   10000.    
     5 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .87656       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3693       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.0026       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.4589       1.0000         .10000E-03   10000.    
    12 'norm      '    3.1390       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .15255E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    51.878       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .72846       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7531       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.0496       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.230       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.4904       1.0000         .10000E-03   10000.    
    24 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .74234       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.3635       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=   6040.521     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3116 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.2406        .58024E-07** at limit **
   2  Prefactor     .10000E-03    26.683        .69792E-06** at limit **
   3  Prefactor     .10000E-03    6.4428        .11128E-08** at limit **
   4  Prefactor     9.2682        9.1818       -.34430E-06   -.19327E-04
   5  norm          .10000E-03    1.0561        .21781E-06** at limit **
   6  norm          .10000E-03    128.62       -.61542E-05** at limit **
   7  Prefactor     .10000E-03    7.9192        .37921E-06** at limit **
   8  norm          .87594        .63035        .11947E-06    .22104E-02
   9  Prefactor     5.3697        2.6830       -.65696E-07   -.21934E-03
  10  Prefactor     5.0042        6.6464       -.81522E-06   -.25755E-04
  11  Prefactor     4.4581        12.818       -.57397E-06    .19917E-05
  12  norm          3.1385        2.2668       -.13777E-06    .14224E-03
  13  Prefactor     .10000E-03    58.461        .21751E-04** at limit **
  14  Prefactor     51.887        53.904        .45314E-06   -.14598E-04
  15  Prefactor     .10000E-03    46.261       -.69177E-05** at limit **
  16  norm          .10000E-03    9.0426       -.11696E-06** at limit **
  17  norm          .72850        .27870        .55840E-07    .30658E-02
  18  Prefactor     2.7498        108.35       -.17010E-05    .28010E-05
  19  norm          .10000E-03    5.6186        .22056E-06** at limit **
  20  norm          .10000E-03    2.8749        .67833E-10** at limit **
  21  Prefactor     6.0482        11.719        .66544E-06   -.67305E-05
  22  Prefactor     14.225        23.569       -.50848E-06   -.27144E-04
  23  Prefactor     4.4900        12.047       -.62205E-05    .29737E-04
  24  norm          .10000E-03    .93682        .28881E-06** at limit **
  25  Normalizat    .74242        .27451        .31552E-05   -.49830E-05
  26  Prefactor     1.3635        .17250       -.66031E-06   -.26118E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.26825
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.875944
  Prefactor  = 5.36971
  Prefactor  = 5.00418
  Prefactor  = 4.45815
  norm       = 3.1385
  Prefactor  = 0.0001
  Prefactor  = 51.8866
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.728497
  Prefactor  = 2.74983
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 6.0482
  Prefactor  = 14.2252
  Prefactor  = 4.49001
  norm       = 0.0001
  Normalizat = 0.742423
  Prefactor  = 1.36353
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.521     FROM HESSE     STATUS=OK           464 CALLS     3580 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.2431        .17377E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    26.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.4453        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2682        9.1614        .13164E-03   -1.5099    
   5  norm          .10000E-03    1.0639        .77896E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    129.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.0652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .87594        .61219        .47934E-03   -1.5521    
   9  Prefactor     5.3697        2.6829        .86566E-04   -1.5244    
  10  Prefactor     5.0042        6.5968        .89897E-03   -1.5261    
  11  Prefactor     4.4581        12.773        .19069E-03   -1.5286    
  12  norm          3.1385        2.2525        .92030E-04   -1.5354    
  13  Prefactor     .10000E-03    57.358        .38801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     51.887        53.593        .55682E-04   -1.4266    
  15  Prefactor     .10000E-03    46.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.0439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .72850        .27755        .23814E-04   -1.5537    
  18  Prefactor     2.7498        108.47        .24533E-03   -1.5376    
  19  norm          .10000E-03    5.6409        .17990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    2.8752        .12870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.0482        11.702        .16324E-03   -1.5216    
  22  Prefactor     14.225        23.557        .10618E-03   -1.4953    
  23  Prefactor     4.4900        12.074        .95002E-03   -1.5284    
  24  norm          .10000E-03    1.9679        .14504E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .74242        .30647        .39342E-03   -1.0224    
  26  Prefactor     1.3635        .19915        .20925E-03   -.81437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96197e-10
Minuit parameter uncertainties:
  1  5.65865e-06
  2  3.04782e-05
  3  5.61776e-06
  4  9.16281
  5  9.48471e-06
  6  0.000390347
  7  2.87825e-05
  8  0.61219
  9  2.68298
  10  6.59777
  11  12.7807
  12  2.2526
  13  0.000219646
  14  53.6431
  15  6.07068e-05
  16  3.45063e-07
  17  0.277551
  18  34.6076
  19  1.85302e-05
  20  1.62772e-06
  21  11.7062
  22  23.5727
  23  12.0806
  24  1.09651e-07
  25  0.307185
  26  0.199263
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  6.071e-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:  1.364e+00  1.993e-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:  7.424e-01  3.072e-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: 9.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/931073/likelihoodResults_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.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) = 6040.52068796
delta logL = -0.000103104733171

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6040.52058489
delta logL = -4.09490894526e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12066E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1202       1.0000          .0000       10.000    
     3 'Normalizat'    .74242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3635       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=   6040.521     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      247 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    814.40        .90712E-02** at limit **
   2  Index         2.1909        8.5084        .50000       -.13202E-04
   3  Normalizat    .74242        .21633E-01    .88819E-01    .15597E-03
   4  Prefactor     1.3635        .15178E-01    .47339E-01    .24193E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 2.19094
  Normalizat = 0.742423
  Prefactor  = 1.36353
 **********
 **   18 **HESSE 
 **********

 FCN=   6040.521     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      278 TOTAL
                     EDM=   .78E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    7033.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1909        5.4658        .50000       -.59657    
   3  Normalizat    .74242        .55335E-01    .39342E-03   -1.0224    
   4  Prefactor     1.3635        .38925E-01    .20925E-03   -.81437    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.79909e-08
Minuit parameter uncertainties:
  1  0.0231346
  2  34.9241
  3  0.0553392
  4  0.0389254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/931073': 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) = 6040.5205845
delta logL = 3.55716110789e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.364e+00  3.893e-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:  7.424e-01  5.534e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/931073/cmap_HighResolution_493603201_493862401_4FGL_J1249.3-0545_daily_bin981.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-03', job_status='DONE', photon_flux_upper_limit='9.83e-08', time_completed='2021-09-06 06:28:25.286786', job_id='931073', GAL2='1.36', fit_tolerance='1e-08', EG2='0.74', EG='0.74', time_epoch_completed='1630934905.29', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='3.56e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='981' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:28:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 931073: <4FGL_J1249.3-0545_daily_bin981> in cluster <slac> Done

Job <4FGL_J1249.3-0545_daily_bin981> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Sep  6 06:15:35 2021
Job was executed on host(s) <bullet0296>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:15:36 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:36 2021
Terminated at Mon Sep  6 06:28:26 2021
Results reported at Mon Sep  6 06:28:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin981 192.326 -5.7621 493603201 493862401 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 :                                   744.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             332.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            771 sec.

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

