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


Performing analysis on: 4FGL_J1249.3-0545_daily_bin505
RA = 192.326, Dec = -5.7621
tmin = 370224001, tmax = 370483201
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='927898', job_status='RUN', time_executed='2021-09-06 06:08:49.737844', time_epoch_executed='1630933729.74' WHERE source_name='4FGL J1249.3-0545' and cadence='daily' and bin_id='505'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/927898

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/927898/ft1_4FGL_J1249.3-0545_daily_bin505.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/927898/ft1_4FGL_J1249.3-0545_daily_bin505.fits outfile=/scratch/kocevski/927898/ft1_filteredMKT_4FGL_J1249.3-0545_daily_bin505.fits ra=192.326 dec=-5.7621 rad=12.0 tmin=370224001.0 tmax=370483201.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 16.18
user 15.68
sys 0.45

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/927898/ft1_filtered_4FGL_J1249.3-0545_daily_bin505.fits" evtable="EVENTS" scfile=/scratch/kocevski/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits sctable="SC_DATA" outfile=/scratch/kocevski/927898/ltcube_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.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/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits
.....................!
real 10.37
user 10.04
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/927898/ft1_filtered_4FGL_J1249.3-0545_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits sctable="SC_DATA" expcube=/scratch/kocevski/927898/ltcube_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.fits outfile=/scratch/kocevski/927898/expmap_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.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/927898/ltcube_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.fits
.....................!
real 190.27
user 185.62
sys 4.20

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/927898/ft1_filtered_4FGL_J1249.3-0545_daily_bin505.fits scfile=/scratch/kocevski/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits outfile=/scratch/kocevski/927898/cmap_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/927898/ft1_filtered_4FGL_J1249.3-0545_daily_bin505.fits scfile=/scratch/kocevski/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits outfile=/scratch/kocevski/927898/cmap_HighResolution_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/927898/ft1_filtered_4FGL_J1249.3-0545_daily_bin505.fits evtable="EVENTS" scfile=/scratch/kocevski/927898/ft2_4FGL_J1249.3-0545_daily_bin505.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/927898/Model_4FGL_J1249.3-0545_daily_bin505.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/927898/ft1_filtered_4FGL_J1249.3-0545_daily_bin505.fits.....................!
real 20.04
user 18.75
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    109.04       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11645E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    100.98       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    8.7275       1.0000         .10000E-03   10000.    
     6 'norm      '    255.07       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .75772E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.592       1.0000         .10000E-03   10000.    
    12 'norm      '    16.482       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.918       1.0000         .10000E-03   10000.    
    14 'Prefactor '    235.34       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .94948       1.0000         .10000E-03   10000.    
    18 'Prefactor '    321.70       1.0000         .10000E-03   10000.    
    19 'norm      '    114.40       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .60642E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .45059       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .11573E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65429       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4184       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   984.7554     FROM MIGRAD    STATUS=FAILED      1071 CALLS     4005 TOTAL
                     EDM=   .60E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.09        99.105        .19259E-03   -.43897E-04
   2  Prefactor     .10000E-03    299.27        .18142E-02** at limit **
   3  Prefactor     100.99        95.179        .40008E-04   -.13931E-04
   4  Prefactor     .10000E-03    37.944        .18142E-02** at limit **
   5  norm          8.7279        8.0848        .81458E-04   -.68352E-04
   6  norm          254.99        174.20        .12686E-03    .20987E-04
   7  Prefactor     .10000E-03    31.312        .17162E-02** at limit **
   8  norm          .12948E-01    87.643        .70361E-03   -.13238E-02
   9  Prefactor     .10000E-03    19.130        .13411E-02** at limit **
  10  Prefactor     .10000E-03    21.694        .14273E-02** at limit **
  11  Prefactor     15.642        364.93        .10143E-03   -.19480E-04
  12  norm          16.482        7.2470        .51205E-04   -.16818E-04
  13  Prefactor     22.921        29.827        .83671E-04   -.26207E-04
  14  Prefactor     235.37        177.54        .13193E-03   -.13731E-04
  15  Prefactor     .10000E-03    92.576        .18142E-02** at limit **
  16  norm          .10000E-03    49.650        .18142E-02** at limit **
  17  norm          .94953        .96036        .29664E-04   -.21289E-03
  18  Prefactor     321.52        377.16        .11335E-03   -.22725E-04
  19  norm          114.41        94.324        .18807E-03   -.38046E-04
  20  norm          .10000E-03    106.42        .18142E-02** at limit **
  21  Prefactor     .10000E-03    594.13        .21058E-02** at limit **
  22  Prefactor     .52247        316.95        .12771        .65083E-04
  23  Prefactor     .10000E-03    197.65        .18142E-02** at limit **
  24  norm          .10000E-03    7.7191        .85175E-03** at limit **
  25  Normalizat    .65370        1.1064        .62865E-03   -.43940E-04
  26  Prefactor     1.4185        .72091        .31195E-03    .65354E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   984.7554     FROM SIMPLEX   STATUS=PROGRESS    1367 CALLS     5372 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.09        99.105        .69979E-06   -1.3615    
   2  Prefactor     .10000E-03    299.27        .25045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     100.99        95.179        .67737E-06   -1.3695    
   4  Prefactor     .10000E-03    37.944        .70431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7279        8.0848        .74854E-06   -1.5117    
   6  norm          254.99        174.20        .62023E-06   -1.2501    
   7  Prefactor     .10000E-03    31.312        .62179E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .12948E-01    87.643        .82009E-06   -1.5685    
   9  Prefactor     .10000E-03    19.130        .50898E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.694        .33917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.642        364.93        .74214E-06   -1.4917    
  12  norm          16.482        7.2470        .73908E-06   -1.4896    
  13  Prefactor     22.921        29.827        .73439E-06   -1.4750    
  14  Prefactor     235.37        177.54        .63172E-06   -1.2627    
  15  Prefactor     .10000E-03    92.576        .15953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    49.650        .20162E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .94953        .96036        .76892E-06   -1.5513    
  18  Prefactor     321.52        377.16        .60021E-06   -1.2102    
  19  norm          114.41        94.324        .67227E-06   -1.3565    
  20  norm          .10000E-03    106.42        .37171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    594.13        .25851E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .52247        316.95        .78172E-06   -1.5563    
  23  Prefactor     .10000E-03    197.65        .20113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.7191        .14871E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .65370        1.1064        .52437E-06   -1.0575    
  26  Prefactor     1.4185        .72091        .39571E-06   -.79850    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   984.7554     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     5818 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     109.09        98.971        .77035E-05   -.18115E-04
   2  Prefactor     .10000E-03    299.28        .36285E-03** at limit **
   3  Prefactor     100.99        95.162        .80016E-05   -.40670E-04
   4  Prefactor     .10000E-03    37.944        .36285E-03** at limit **
   5  norm          8.7280        8.0845        .32583E-05   -.12221E-03
   6  norm          254.97        168.89        .25371E-04   -.16848E-03
   7  Prefactor     .10000E-03    31.312        .34323E-03** at limit **
   8  norm          .13395E-01    73.598        .28144E-04   -.99168E-04
   9  Prefactor     .10000E-03    19.130        .26822E-03** at limit **
  10  Prefactor     .10000E-03    21.694        .28546E-03** at limit **
  11  Prefactor     15.646        363.99        .20286E-04   -.34746E-05
  12  norm          16.482        7.2402        .20482E-05   -.51093E-03
  13  Prefactor     22.921        29.823        .33468E-05   -.49849E-04
  14  Prefactor     235.37        177.51        .26386E-04   -.54848E-04
  15  Prefactor     .10000E-03    92.576        .36285E-03** at limit **
  16  norm          .10000E-03    49.650        .36285E-03** at limit **
  17  norm          .94954        .96023        .11866E-05   -.11281E-03
  18  Prefactor     321.52        377.02        .22669E-04   -.13841E-04
  19  norm          114.41        94.277        .37613E-04   -.34827E-04
  20  norm          .10000E-03    106.42        .36285E-03** at limit **
  21  Prefactor     .10000E-03    594.13        .42117E-03** at limit **
  22  Prefactor     .52278        300.01        .13127        .47572E-04
  23  Prefactor     .10000E-03    197.65        .36285E-03** at limit **
  24  norm          .10000E-03    7.7191        .17035E-03** at limit **
  25  Normalizat    .65367        1.0915        .25146E-04   -.10506E-03
  26  Prefactor     1.4184        .72089        .62390E-04   -.15049E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 109.091
  Prefactor  = 0.0001
  Prefactor  = 100.991
  Prefactor  = 0.0001
  norm       = 8.72796
  norm       = 254.97
  Prefactor  = 0.0001
  norm       = 0.0133947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.6458
  norm       = 16.4816
  Prefactor  = 22.9214
  Prefactor  = 235.366
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.949539
  Prefactor  = 321.521
  norm       = 114.41
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.522777
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.653667
  Prefactor  = 1.41843
 **********
 **   18 **HESSE 
 **********

 FCN=   984.7554     FROM HESSE     STATUS=OK           440 CALLS     6258 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     109.09        98.944        .15407E-05   -1.3615    
   2  Prefactor     .10000E-03    299.28        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     100.99        95.181        .16003E-05   -1.3695    
   4  Prefactor     .10000E-03    37.945        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          8.7280        8.0857        .65167E-06   -1.5117    
   6  norm          254.97        168.69        .50742E-05   -1.2501    
   7  Prefactor     .10000E-03    31.312        .68647E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .13395E-01    73.277        .11258E-05   -1.5685    
   9  Prefactor     .10000E-03    19.130        .53643E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    21.694        .57092E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     15.646        363.80        .40572E-05   -1.4917    
  12  norm          16.482        7.2391        .40964E-06   -1.4896    
  13  Prefactor     22.921        29.849        .66937E-06   -1.4750    
  14  Prefactor     235.37        177.52        .52773E-05   -1.2627    
  15  Prefactor     .10000E-03    92.576        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    49.650        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .94954        .96020        .36986E-06   -1.5513    
  18  Prefactor     321.52        377.02        .45339E-05   -1.2102    
  19  norm          114.41        94.287        .75227E-05   -1.3565    
  20  norm          .10000E-03    106.42        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    594.13        .84233E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .52278        304.96        .13001       -1.5563    
  23  Prefactor     .10000E-03    197.65        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .10000E-03    7.7191        .34070E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .65367        1.0925        .50292E-05   -1.0575    
  26  Prefactor     1.4184        .72164        .12478E-04   -.79850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24948e-09
Minuit parameter uncertainties:
  1  99.094
  2  0.000146481
  3  95.3249
  4  6.96598e-05
  5  8.08671
  6  169.014
  7  3.539e-06
  8  1.97644
  9  1.87541e-06
  10  1.09018e-06
  11  151.942
  12  7.23953
  13  29.8687
  14  177.926
  15  6.48987e-06
  16  6.69433e-06
  17  0.960219
  18  379.949
  19  94.4112
  20  4.62947e-05
  21  9.11531e-05
  22  25.3811
  23  8.67243e-05
  24  5.85074e-07
  25  1.13225
  26  0.726885
Done.

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

Extracting fit parameters...

4FGL J1249.3-0545
   Spectrum: PowerLaw
331    Prefactor:  1.000e-04  6.490e-06  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.418e+00  7.269e-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:  6.537e-01  1.132e+00  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/927898/likelihoodResults_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.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) = 984.755410695
delta logL = -5.05579860146e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 984.755361167
delta logL = -1.0300645954e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20721E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2780       1.0000          .0000       10.000    
     3 'Normalizat'    .65373       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4184       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=   984.7554     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      280 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10290E-03    36.941        .18142E-01** at limit **
   2  Index         2.2003        6.0236        .50000        .45230E-05
   3  Normalizat    .65368        .15721E-01    .62877E-03    .15461E-04
   4  Prefactor     1.4184        .11142E-01    .31195E-03    .34328E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102902
  Index      = 2.20027
  Normalizat = 0.653683
  Prefactor  = 1.41843
 **********
 **   18 **HESSE 
 **********

 FCN=   984.7554     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      309 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10290E-03    292.37        .26535E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2003        7.1585        .50000       -.59432    
   3  Normalizat    .65368        .44570E-01    .25151E-04   -1.0575    
   4  Prefactor     1.4184        .31590E-01    .62390E-04   -.79851    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.2895e-10
Minuit parameter uncertainties:
  1  0.0585469
  2  376.236
  3  0.0445728
  4  0.0315902
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/927898': 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) = 984.755360284
delta logL = -1.47919877236e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
648    Prefactor:  1.418e+00  3.159e-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:  6.537e-01  4.457e-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/927898/cmap_HighResolution_370224001_370483201_4FGL_J1249.3-0545_daily_bin505.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.53e-02', job_status='DONE', photon_flux_upper_limit='4.69e-07', time_completed='2021-09-06 06:16:55.999497', job_id='927898', GAL2='1.42', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1630934216.0', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.42', dlogl='-1.48e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.06' WHERE bin_id='505' AND source_name='4FGL J1249.3-0545' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:16:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 927898: <4FGL_J1249.3-0545_daily_bin505> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.3-0545_daily_bin505 192.326 -5.7621 370224001 370483201 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 :                                   481.34 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             220.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   692 sec.
    Turnaround time :                            692 sec.

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

