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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin863
RA = 192.46, Dec = 37.1306
tmin = 463017601, tmax = 463276801
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='938818', job_status='RUN', time_executed='2021-09-06 06:43:48.067897', time_epoch_executed='1630935828.07' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='863'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938818

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938818/ft1_4FGL_J1249.8+3707_daily_bin863.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938818/ft1_4FGL_J1249.8+3707_daily_bin863.fits outfile=/scratch/kocevski/938818/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin863.fits ra=192.46 dec=37.1306 rad=12.0 tmin=463017601.0 tmax=463276801.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.61
user 3.40
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.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/938818/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin863.fits evtable="EVENTS" outfile="/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.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.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits" evtable="EVENTS" scfile=/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits sctable="SC_DATA" outfile=/scratch/kocevski/938818/ltcube_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.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/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits
.....................!
real 11.83
user 11.49
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits sctable="SC_DATA" expcube=/scratch/kocevski/938818/ltcube_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.fits outfile=/scratch/kocevski/938818/expmap_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.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/938818/ltcube_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.fits
.....................!
real 189.41
user 184.93
sys 4.12

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 196 point sources and 0 extended sources

Setting source of interest to:
4FGL J1249.8+3707 @ 192.46 37.1306

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits scfile=/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits outfile=/scratch/kocevski/938818/cmap_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.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.46 yref=37.1306 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.88
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits scfile=/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits outfile=/scratch/kocevski/938818/cmap_HighResolution_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.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.46 yref=37.1306 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 1.03
user 0.38
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits evtable="EVENTS" scfile=/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/938818/Model_4FGL_J1249.8+3707_daily_bin863.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/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits.....................!
real 51.65
user 46.22
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits', '/scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits', expMap='/scratch/kocevski/938818/expmap_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.fits', expCube='/scratch/kocevski/938818/ltcube_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938818/Model_4FGL_J1249.8+3707_daily_bin863.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1249.8+3707'

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  2.229e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/938818/ft1_filtered_4FGL_J1249.8+3707_daily_bin863.fits
Spacecraft file(s): /scratch/kocevski/938818/ft2_4FGL_J1249.8+3707_daily_bin863.fits
Exposure map: /scratch/kocevski/938818/expmap_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.fits
Exposure cube: /scratch/kocevski/938818/ltcube_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938818/Model_4FGL_J1249.8+3707_daily_bin863.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) = 5737.5587919

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .61507E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .12936E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .63024       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .58309       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.1810       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.9855       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.402       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.650       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    104.90       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7953       1.0000         .10000E-03   10000.    
    16 'norm      '    8.0617       1.0000         .10000E-03   10000.    
    17 'norm      '    23.284       1.0000         .10000E-03   10000.    
    18 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.383       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.5915       1.0000         .10000E-03   10000.    
    22 'Prefactor '    135.18       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.490       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.595       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .84777       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5737.551     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3136 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    299.00        .66297E-04** at limit **
   2  Prefactor     .10000E-03    105.70       -.15841E-05** at limit **
   3  norm          .63014        1.8739       -.59281E-06   -.95717E-03
   4  Prefactor     .58398        5.6943       -.41301E-05    .34031E-03
   5  Prefactor     4.1815        2.2824        .10786E-06    .28851E-03
   6  Prefactor     3.9859        2.4673       -.32872E-07    .73795E-04
   7  Prefactor     .10000E-03    3.8502       -.18287E-07** at limit **
   8  Prefactor     .10000E-03    12.049        .40856E-07** at limit **
   9  Prefactor     .10000E-03    16.906       -.20532E-06** at limit **
  10  Prefactor     21.422        38.436       -.25726E-06    .98097E-05
  11  Prefactor     17.658        10.623       -.81415E-07    .37676E-03
  12  norm          .10000E-03    1.2560        .23804E-07** at limit **
  13  Prefactor     105.00        57.350        .35889E-04    .13519E-04
  14  Prefactor     .10000E-03    11.687        .84091E-07** at limit **
  15  Prefactor     1.7859        56.857       -.19414E-04   -.10222E-03
  16  norm          8.0647        6.6927        .16632E-05    .17141E-03
  17  norm          23.275        16.825       -.51918E-05    .56613E-05
  18  norm          .10000E-03    5.3259        .35659E-06** at limit **
  19  norm          13.377        7.1557       -.59625E-06   -.50447E-04
  20  Prefactor     .10000E-03    3.0583        .50251E-06** at limit **
  21  Prefactor     3.5981        15.383        .43696E-05   -.16264E-04
  22  Prefactor     135.13        78.438       -.22180E-04    .15402E-05
  23  Prefactor     10.494        13.747       -.26913E-05   -.10874E-04
  24  Prefactor     10.574        140.98       -.33369E-04    .35787E-05
  25  Normalizat    1.0415        .18078        .18326E-05    .23259E-03
  26  Prefactor     .84742        .21372       -.64013E-07    .19400E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  norm       = 0.63014
  Prefactor  = 0.583984
  Prefactor  = 4.18154
  Prefactor  = 3.9859
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.4219
  Prefactor  = 17.6581
  norm       = 0.0001
  Prefactor  = 105.002
  Prefactor  = 0.0001
  Prefactor  = 1.78585
  norm       = 8.06472
  norm       = 23.2749
  norm       = 0.0001
  norm       = 13.3771
  Prefactor  = 0.000100001
  Prefactor  = 3.59814
  Prefactor  = 135.133
  Prefactor  = 10.4938
  Prefactor  = 10.5742
  Normalizat = 1.04152
  Prefactor  = 0.847422
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.551     FROM HESSE     STATUS=OK           464 CALLS     3600 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    306.30        .37805E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    108.52        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .63014        1.8888        .16330E-03   -1.5549    
   4  Prefactor     .58398        13.141        .34427E-02   -1.5555    
   5  Prefactor     4.1815        2.2848        .77777E-04   -1.5299    
   6  Prefactor     3.9859        2.4495        .89067E-04   -1.5309    
   7  Prefactor     .10000E-03    3.8662        .14513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    12.082        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.422        38.431        .86580E-04   -1.4782    
  11  Prefactor     17.658        10.377        .95334E-04   -1.4867    
  12  norm          .10000E-03    1.2578        .82886E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     105.00        57.263        .19631E-03   -1.3655    
  14  Prefactor     .10000E-03    11.702        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.7859        53.838        .31209E-03   -1.5441    
  16  norm          8.0647        6.6280        .14121E-03   -1.5140    
  17  norm          23.275        16.831        .83012E-04   -1.4743    
  18  norm          .10000E-03    5.4441        .33692E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.377        7.0751        .10949E-03   -1.4976    
  20  Prefactor     .10000E-03    3.0989        .12871E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.5981        15.105        .21323E-03   -1.5329    
  22  Prefactor     135.13        78.191        .17320E-03   -1.3378    
  23  Prefactor     10.494        13.742        .12371E-03   -1.5060    
  24  Prefactor     10.574        141.55        .12309E-03   -1.5057    
  25  Normalizat    1.0415        .21272        .23444E-03   -.91652    
  26  Prefactor     .84742        .25147        .30946E-03   -.98003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.40187e-09
Minuit parameter uncertainties:
  1  0.00409083
  2  8.67103e-05
  3  1.88898
  4  5.54128
  5  2.28487
  6  2.44955
  7  7.29191e-07
  8  5.05773e-05
  9  2.94162e-05
  10  38.4754
  11  10.3777
  12  2.04351e-06
  13  57.2927
  14  3.04436e-05
  15  19.6298
  16  6.62862
  17  16.8348
  18  7.82795e-05
  19  7.07558
  20  9.10929e-05
  21  14.7509
  22  78.2507
  23  13.7464
  24  77.6013
  25  0.212893
  26  0.251817
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.942e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.474e-01  2.518e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.042e+00  2.129e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 5.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938818/likelihoodResults_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.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) = 5737.55155284
delta logL = -0.000281177867691

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5737.34418406
delta logL = 0.207087598847

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .47202       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2849       1.0000          .0000       10.000    
     3 'Normalizat'    1.0045       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5737.344     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      277 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46807        13.583        .11156E-01    .10719E-02
   2  Index         3.2872        2.2806        .86463E-01    .14444E-03
   3  Normalizat    1.0044        .31883E-01    .46224E-01   -.50020E-04
   4  Prefactor     .86900        .38576E-01    .69111E-01   -.22863E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.46807
  Index      = 3.28721
  Normalizat = 1.00442
  Prefactor  = 0.869003
 **********
 **   18 **HESSE 
 **********

 FCN=   5737.344     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      310 TOTAL
                     EDM=   .12E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46807        55.075        .78048E-04   -1.5571    
   2  Index         3.2872        6.5935        .53663E-02   -.34964    
   3  Normalizat    1.0044        .16711        .23805E-03   -.92882    
   4  Prefactor     .86900        .20017        .30576E-03   -.97233    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.22817e-06
Minuit parameter uncertainties:
  1  10.1631
  2  6.67873
  3  0.167202
  4  0.200342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938818': 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) = 5737.34418278
delta logL = 0.207088878085

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  4.681e-01  1.016e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  3.287e+00  6.679e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.690e-01  2.003e-01  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  1.004e+00  1.672e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

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/938818/cmap_HighResolution_463017601_463276801_4FGL_J1249.8+3707_daily_bin863.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.79e-03', job_status='DONE', photon_flux_upper_limit='5.15e-08', time_completed='2021-09-06 06:55:51.775397', job_id='938818', GAL2='0.87', fit_tolerance='1e-08', EG2='1.00', EG='1.04', time_epoch_completed='1630936551.78', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.07e-01', ts2='0.46', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='863' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 938818: <4FGL_J1249.8+3707_daily_bin863> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin863> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:37 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:39 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:40:39 2021
Terminated at Mon Sep  6 06:55:52 2021
Results reported at Mon Sep  6 06:55:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin863 192.46 37.1306 463017601 463276801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1249.8+3707 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   716.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             279.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

