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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin554
RA = 192.326, Dec = -5.7621
tmin = 382924801, tmax = 383184001
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='927980', job_status='RUN', time_executed='2021-09-06 06:07:31.667261', time_epoch_executed='1630933651.67' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='554'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927980

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927980/ft1_4FGL_J1249.3-0545_daily_bin554.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927980/ft1_4FGL_J1249.3-0545_daily_bin554.fits outfile=/scratch/kocevski/927980/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin554.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=382924801.0 tmax=383184001.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.46
user 4.22
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927980/ft1_filtered_4FGL_J1249.3-0545_daily_bin554.fits" evtable="EVENTS" scfile=/scratch/kocevski/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits sctable="SC_DATA" outfile=/scratch/kocevski/927980/ltcube_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.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/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits
.....................!
real 12.85
user 12.40
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927980/ft1_filtered_4FGL_J1249.3-0545_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits sctable="SC_DATA" expcube=/scratch/kocevski/927980/ltcube_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.fits outfile=/scratch/kocevski/927980/expmap_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.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/927980/ltcube_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.fits
.....................!
real 193.11
user 188.12
sys 4.47

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/927980/ft1_filtered_4FGL_J1249.3-0545_daily_bin554.fits scfile=/scratch/kocevski/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits outfile=/scratch/kocevski/927980/cmap_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927980/ft1_filtered_4FGL_J1249.3-0545_daily_bin554.fits scfile=/scratch/kocevski/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits outfile=/scratch/kocevski/927980/cmap_HighResolution_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927980/ft1_filtered_4FGL_J1249.3-0545_daily_bin554.fits evtable="EVENTS" scfile=/scratch/kocevski/927980/ft2_4FGL_J1249.3-0545_daily_bin554.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927980/Model_4FGL_J1249.3-0545_daily_bin554.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/927980/ft1_filtered_4FGL_J1249.3-0545_daily_bin554.fits.....................!
real 52.50
user 50.22
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.689       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.584       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9051       1.0000         .10000E-03   10000.    
     6 'norm      '    .10252E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.0186       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5797       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.6274       1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.493       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.302       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9694       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10847E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    26.606       1.0000         .10000E-03   10000.    
    17 'norm      '    .54408       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    15.623       1.0000         .10000E-03   10000.    
    20 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.164       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.182       1.0000         .10000E-03   10000.    
    24 'norm      '    .79091E-01   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2620       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .91868       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=   5968.063     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3124 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.686        16.243       -.14994E-06   -.29430E-05
   2  Prefactor     19.585        34.981       -.56667E-07   -.58104E-06
   3  Prefactor     .10000E-03    13.902        .37919E-06** at limit **
   4  Prefactor     .10000E-03    14.177       -.39727E-06** at limit **
   5  norm          1.9051        2.3317       -.41809E-08   -.20879E-04
   6  norm          .10000E-03    46.792       -.18906E-04** at limit **
   7  Prefactor     2.0164        4.1699        .51302E-06   -.11181E-02
   8  norm          1.5796        .67667       -.53291E-08    .35166E-03
   9  Prefactor     3.6274        2.0846       -.25886E-07    .31104E-05
  10  Prefactor     17.491        13.270        .10447E-05    .12760E-04
  11  Prefactor     .10000E-03    4.9421       -.35349E-07** at limit **
  12  norm          24.302        3.8328       -.28435E-08    .25710E-04
  13  Prefactor     2.9710        10.068       -.20324E-06   -.50687E-03
  14  Prefactor     .10000E-03    69.615        .53833E-05** at limit **
  15  Prefactor     .10000E-03    232.82       -.79783E-05** at limit **
  16  norm          26.599        26.753        .20351E-05    .45062E-05
  17  norm          .54428        .27168       -.15347E-07   -.52277E-05
  18  Prefactor     .10000E-03    45.243        .15414E-04** at limit **
  19  norm          15.622        10.206        .22765E-05    .61644E-05
  20  norm          .10000E-03    9.7704        .53540E-07** at limit **
  21  Prefactor     .10000E-03    2.8001        .21159E-07** at limit **
  22  Prefactor     16.159        21.705        .16809E-05   -.40878E-05
  23  Prefactor     20.183        11.578       -.22359E-05   -.41923E-04
  24  norm          .77227E-01    .75683        .10728E-07   -.83011E-04
  25  Normalizat    1.2621        .26243       -.25755E-06   -.93038E-06
  26  Prefactor     .91872        .16399       -.20982E-06    .56940E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.6858
  Prefactor  = 19.5846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.90514
  norm       = 0.0001
  Prefactor  = 2.01642
  norm       = 1.5796
  Prefactor  = 3.62744
  Prefactor  = 17.4908
  Prefactor  = 0.0001
  norm       = 24.3017
  Prefactor  = 2.97101
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 26.599
  norm       = 0.54428
  Prefactor  = 0.0001
  norm       = 15.6219
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.159
  Prefactor  = 20.1825
  norm       = 0.0772267
  Normalizat = 1.26211
  Prefactor  = 0.918716
 **********
 **   18 **HESSE 
 **********

 FCN=   5968.063     FROM HESSE     STATUS=OK           466 CALLS     3590 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.686        16.263        .11717E-03   -1.5024    
   2  Prefactor     19.585        34.989        .90505E-04   -1.4823    
   3  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    14.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9051        2.3099        .12596E-03   -1.5432    
   6  norm          .10000E-03    46.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.0164        8.4264        .14565E-02   -1.5424    
   8  norm          1.5796        .67302        .39167E-04   -1.5457    
   9  Prefactor     3.6274        2.1225        .81630E-04   -1.5327    
  10  Prefactor     17.491        13.261        .95760E-04   -1.4871    
  11  Prefactor     .10000E-03    4.9514        .16770E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.302        3.8422        .57057E-04   -1.4722    
  13  Prefactor     2.9710        11.240        .11782E-02   -1.5363    
  14  Prefactor     .10000E-03    70.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    235.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          26.599        26.784        .77665E-04   -1.4676    
  17  norm          .54428        .27042        .26616E-04   -1.5560    
  18  Prefactor     .10000E-03    45.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          15.622        10.200        .10133E-03   -1.4917    
  20  norm          .10000E-03    9.8661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.8048        .12625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.159        21.843        .99619E-04   -1.4904    
  23  Prefactor     20.183        11.640        .89157E-04   -1.4809    
  24  norm          .77227E-01    1.8241        .13021E-02   -1.5652    
  25  Normalizat    1.2621        .31409        .32456E-03   -.84705    
  26  Prefactor     .91872        .19297        .24760E-03   -.95490    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.32325e-08
Minuit parameter uncertainties:
  1  16.2692
  2  35.0258
  3  2.41867e-06
  4  4.90395e-07
  5  2.31002
  6  6.57744e-05
  7  8.24586
  8  0.673025
  9  2.12259
  10  13.2629
  11  1.36161e-06
  12  3.84225
  13  11.2484
  14  4.30302e-05
  15  4.29307e-05
  16  26.7961
  17  0.270417
  18  1.5506e-05
  19  10.201
  20  1.11577e-05
  21  3.33026e-06
  22  21.8538
  23  11.6409
  24  0.750194
  25  0.314562
  26  0.193117
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  4.293e-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.187e-01  1.931e-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.262e+00  3.146e-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: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.83e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/927980/likelihoodResults_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.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) = 5968.06321541
delta logL = -2.00973454412e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5968.0632154
delta logL = -2.00957465495e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96364E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0584       1.0000          .0000       10.000    
     3 'Normalizat'    1.2621       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91872       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=   5966.214     FROM MIGRAD    STATUS=CONVERGED    115 CALLS      260 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .60454E-01    .48010        .23287E-02   -.96023E-02
   2  Index         4.9222        1.5746        .59993E-01   -.18204E-03
   3  Normalizat    1.0395        .73918E-01    .79518E-01   -.14283E-03
   4  Prefactor     1.0104        .49002E-01    .45243E-01    .51941E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0604536
  Index      = 4.92216
  Normalizat = 1.03947
  Prefactor  = 1.01039
 **********
 **   18 **HESSE 
 **********

 FCN=   5966.214     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      293 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .60454E-01    .94070        .10457E-04   -1.5659    
   2  Index         4.9222        2.4498        .24164E-02   -.15568E-01
   3  Normalizat    1.0395        .26264        .35206E-03   -.91720    
   4  Prefactor     1.0104        .17037        .23720E-03   -.92384    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.96303e-09
Minuit parameter uncertainties:
  1  0.476558
  2  2.5602
  3  0.26297
  4  0.170458
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927980': 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) = 5966.21356049
delta logL = 1.84963481543

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  6.045e-02  4.766e-01  1.000e-04  1.000e+04 ( 1.000e-14)
332        Index:  4.922e+00  2.560e+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:  1.010e+00  1.705e-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.039e+00  2.630e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.19
Ra Dec: 192.326 -5.762
Photon Index (Free Index): 4.92 +/- 2.56
Photon Flux (Free Index): 1.91e-07 +/- 1.09e-07
Energy Flux (Free Index): 2.56e-05 +/- 1.60e-05

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/927980/cmap_HighResolution_382924801_383184001_4FGL_J1249.3-0545_daily_bin554.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.83e-03', comment='SUCCESS', energy_flux2='2.56e-05', dlogl='1.85e+00', photon_flux2='1.91e-07', job_status='DONE', time_completed='2021-09-06 06:20:42.056381', photon_index_error2='2.56', photon_index2='4.92', ts='-0.00', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.60e-05', EG='1.26', time_epoch_completed='1630934442.06', return_code='0', job_id='927980', GAL2='1.01', EG2='1.04', return_code2='102', photon_flux_error2='1.09e-07', ts2='4.19', photon_index='2.06' WHERE bin_id='554' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:20:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 927980: <4FGL_J1249.3-0545_daily_bin554> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin554 192.326 -5.7621 382924801 383184001 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 :                                   785.26 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             290.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            914 sec.

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

