/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 159 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 = 7475
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin318
RA = 192.46, Dec = 37.1306
tmin = 321753601, tmax = 322012801
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='935795', job_status='RUN', time_executed='2021-09-06 06:33:45.658702', time_epoch_executed='1630935225.66' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935795

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935795/ft1_4FGL_J1249.8+3707_daily_bin318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935795/ft1_4FGL_J1249.8+3707_daily_bin318.fits outfile=/scratch/kocevski/935795/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin318.fits ra=192.46 dec=37.1306 rad=12.0 tmin=321753601.0 tmax=322012801.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.35
user 3.17
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.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/935795/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin318.fits evtable="EVENTS" outfile="/scratch/kocevski/935795/ft1_filtered_4FGL_J1249.8+3707_daily_bin318.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.48
user 0.33
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935795/ft1_filtered_4FGL_J1249.8+3707_daily_bin318.fits evtable="EVENTS" scfile=/scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.fits sctable="SC_DATA" expcube=/scratch/kocevski/935795/ltcube_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.fits outfile=/scratch/kocevski/935795/expmap_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.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/935795/ltcube_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.fits
.....................!
real 190.22
user 184.76
sys 5.13

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/935795/ft1_filtered_4FGL_J1249.8+3707_daily_bin318.fits scfile=/scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.fits outfile=/scratch/kocevski/935795/cmap_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935795/ft1_filtered_4FGL_J1249.8+3707_daily_bin318.fits scfile=/scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.fits outfile=/scratch/kocevski/935795/cmap_HighResolution_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.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 0.53
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935795/ft1_filtered_4FGL_J1249.8+3707_daily_bin318.fits', '/scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.fits', expMap='/scratch/kocevski/935795/expmap_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.fits', expCube='/scratch/kocevski/935795/ltcube_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935795/Model_4FGL_J1249.8+3707_daily_bin318.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/935795/ft1_filtered_4FGL_J1249.8+3707_daily_bin318.fits
Spacecraft file(s): /scratch/kocevski/935795/ft2_4FGL_J1249.8+3707_daily_bin318.fits
Exposure map: /scratch/kocevski/935795/expmap_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.fits
Exposure cube: /scratch/kocevski/935795/ltcube_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935795/Model_4FGL_J1249.8+3707_daily_bin318.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) = 5711.17226007

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    17.839       1.0000         .10000E-03   10000.    
     3 'norm      '    4.0386       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .28474       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.6196       1.0000         .10000E-03   10000.    
     6 'Prefactor '    7.9774       1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.639       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33289E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.8112       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.119       1.0000         .10000E-03   10000.    
    16 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    47.080       1.0000         .10000E-03   10000.    
    18 'norm      '    9.2607       1.0000         .10000E-03   10000.    
    19 'norm      '    5.5644       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7360       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.800       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.508       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .95399       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76217       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=   5711.142     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3112 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    31.535        .48775E-05** at limit **
   2  Prefactor     17.835        21.048       -.12039E-06   -.46680E-05
   3  norm          4.0387        2.9308        .24907E-07    .23351E-04
   4  Prefactor     .28718        6.4186        .21717E-05    .10084E-03
   5  Prefactor     6.6195        3.2034        .42213E-07    .10096E-04
   6  Prefactor     7.9774        3.1648       -.20898E-06    .83678E-03
   7  Prefactor     17.639        11.581        .63280E-07    .48158E-05
   8  Prefactor     .10000E-03    27.511       -.59412E-07** at limit **
   9  Prefactor     .10000E-03    8.5785       -.83550E-07** at limit **
  10  Prefactor     .10000E-03    118.89        .24337E-05** at limit **
  11  Prefactor     .10000E-03    22.140       -.88176E-05** at limit **
  12  norm          3.8097        3.7242       -.47342E-07    .16612E-03
  13  Prefactor     .10000E-03    22.576       -.90191E-06** at limit **
  14  Prefactor     .10000E-03    12.764       -.18228E-06** at limit **
  15  Prefactor     16.110        17.158        .41481E-06    .36249E-03
  16  norm          .10000E-03    2.5699       -.45433E-07** at limit **
  17  norm          47.081        19.093       -.75573E-08    .28792E-04
  18  norm          9.2592        5.6061        .72173E-07    .30138E-03
  19  norm          5.5661        7.5611       -.19773E-06    .11963E-03
  20  Prefactor     1.7341        3.6271       -.67014E-06    .30789E-03
  21  Prefactor     15.808        20.211        .99108E-06    .17072E-03
  22  Prefactor     .10000E-03    25.623       -.20405E-05** at limit **
  23  Prefactor     17.508        18.573       -.10441E-06    .29781E-04
  24  Prefactor     .10000E-03    45.624       -.40476E-05** at limit **
  25  Normalizat    .95395        .16330        .17346E-06    .23830E-03
  26  Prefactor     .76224        .19621        .27616E-06    .15165E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 17.8349
  norm       = 4.03875
  Prefactor  = 0.287179
  Prefactor  = 6.61949
  Prefactor  = 7.97739
  Prefactor  = 17.6386
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.80971
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1104
  norm       = 0.000100001
  norm       = 47.0808
  norm       = 9.25923
  norm       = 5.56612
  Prefactor  = 1.73411
  Prefactor  = 15.8079
  Prefactor  = 0.0001
  Prefactor  = 17.5082
  Prefactor  = 0.0001
  Normalizat = 0.95395
  Prefactor  = 0.762236
 **********
 **   18 **HESSE 
 **********

 FCN=   5711.142     FROM HESSE     STATUS=OK           464 CALLS     3576 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     17.835        21.034        .94829E-04   -1.4863    
   3  norm          4.0387        2.9341        .10130E-03   -1.5306    
   4  Prefactor     .28718        22.156        .33343E-02   -1.5601    
   5  Prefactor     6.6195        3.2072        .85840E-04   -1.5193    
   6  Prefactor     7.9774        3.1971        .40101E-03   -1.5143    
   7  Prefactor     17.639        11.578        .95363E-04   -1.4868    
   8  Prefactor     .10000E-03    27.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    119.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    23.276        .27472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.8097        3.7153        .13864E-03   -1.5318    
  13  Prefactor     .10000E-03    22.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.110        15.946        .99758E-04   -1.4905    
  16  norm          .10000E-03    4.6669        .23094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          47.081        19.095        .58437E-04   -1.4335    
  18  norm          9.2592        5.6915        .10508E-03   -1.5099    
  19  norm          5.5661        7.6768        .17031E-03   -1.5236    
  20  Prefactor     1.7341        3.5421        .16737E-03   -1.5445    
  21  Prefactor     15.808        19.910        .10076E-03   -1.4913    
  22  Prefactor     .10000E-03    25.759        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.508        18.581        .95718E-04   -1.4871    
  24  Prefactor     .10000E-03    46.133        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .95395        .19400        .22257E-03   -.94590    
  26  Prefactor     .76224        .23156        .30408E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.1036e-10
Minuit parameter uncertainties:
  1  9.64415e-05
  2  21.0431
  3  2.93425
  4  5.04597
  5  3.20729
  6  3.19716
  7  11.5797
  8  3.7742e-05
  9  4.58805e-06
  10  2.77967e-05
  11  0.000180737
  12  3.71555
  13  2.81063e-05
  14  9.75646e-07
  15  15.9506
  16  0.000120179
  17  19.0978
  18  5.69179
  19  7.67819
  20  3.54251
  21  19.9179
  22  4.8544e-05
  23  18.5876
  24  0.000129335
  25  0.194139
  26  0.231857
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.588e-06  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:  7.622e-01  2.319e-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:  9.539e-01  1.941e-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: 3.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.54e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935795/likelihoodResults_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.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) = 5711.14288368
delta logL = -0.000553906128516

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5711.14232982
delta logL = -4.14283931605e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7718       1.0000          .0000       10.000    
     3 'Normalizat'    .95401       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76217       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=   5711.142     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      201 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    85.534        .90712E-02** at limit **
   2  Index         1.7636        8.2689        .50000        .69916E-05
   3  Normalizat    .95395        .12561E-01    .45588E-01    .13559E-04
   4  Prefactor     .76224        .15578E-01    .68724E-01    .21963E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76356
  Normalizat = 0.953949
  Prefactor  = 0.762236
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    570.20        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7636        5.4100        .50000       -.70402    
   3  Normalizat    .95395        .35072E-01    .22257E-03   -.94590    
   4  Prefactor     .76224        .43441E-01    .30408E-03   -1.0114    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.32675e-09
Minuit parameter uncertainties:
  1  4.04377e-06
  2  31.3143
  3  0.0350724
  4  0.0434432
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935795': 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) = 5711.14232975
delta logL = 3.11038093059e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.044e-06  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.764e+00  3.131e+01  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:  7.622e-01  4.344e-02  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:  9.539e-01  3.507e-02  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/935795/cmap_HighResolution_321753601_322012801_4FGL_J1249.8+3707_daily_bin318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.54e-03', job_status='DONE', photon_flux_upper_limit='3.45e-08', time_completed='2021-09-06 06:45:55.221791', job_id='935795', GAL2='0.76', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630935955.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.76', dlogl='3.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='318' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:45:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 935795: <4FGL_J1249.8+3707_daily_bin318> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin318 192.46 37.1306 321753601 322012801 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 :                                   727.42 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

