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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin189
RA = 192.46, Dec = 37.1306
tmin = 288316801, tmax = 288576001
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='934539', job_status='RUN', time_executed='2021-09-06 06:28:44.841328', time_epoch_executed='1630934924.84' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934539

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934539/ft1_4FGL_J1249.8+3707_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934539/ft2_4FGL_J1249.8+3707_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934539/ft1_4FGL_J1249.8+3707_daily_bin189.fits outfile=/scratch/kocevski/934539/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin189.fits ra=192.46 dec=37.1306 rad=12.0 tmin=288316801.0 tmax=288576001.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.95
user 3.41
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934539/ft1_filtered_4FGL_J1249.8+3707_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/934539/ft2_4FGL_J1249.8+3707_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/934539/ltcube_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.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/934539/ft2_4FGL_J1249.8+3707_daily_bin189.fits
.....................!
real 12.11
user 11.31
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934539/ft1_filtered_4FGL_J1249.8+3707_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/934539/ft2_4FGL_J1249.8+3707_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/934539/ltcube_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.fits outfile=/scratch/kocevski/934539/expmap_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.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/934539/ltcube_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.fits
.....................!
real 192.59
user 186.90
sys 4.36

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/934539/ft1_filtered_4FGL_J1249.8+3707_daily_bin189.fits scfile=/scratch/kocevski/934539/ft2_4FGL_J1249.8+3707_daily_bin189.fits outfile=/scratch/kocevski/934539/cmap_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934539/ft1_filtered_4FGL_J1249.8+3707_daily_bin189.fits scfile=/scratch/kocevski/934539/ft2_4FGL_J1249.8+3707_daily_bin189.fits outfile=/scratch/kocevski/934539/cmap_HighResolution_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.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.54
user 0.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.370       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .83905E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    2.3880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.4590       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.6319       1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.716       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .13396E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10067E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    43.969       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .22889E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4986       1.0000         .10000E-03   10000.    
    16 'norm      '    .88690       1.0000         .10000E-03   10000.    
    17 'norm      '    12.497       1.0000         .10000E-03   10000.    
    18 'norm      '    9.6334       1.0000         .10000E-03   10000.    
    19 'norm      '    5.7843       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .17946E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.528       1.0000         .10000E-03   10000.    
    24 'Prefactor '    59.411       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3595       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .44314       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=   5369.172     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3577 TOTAL
                     EDM=   .68E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.340        38.716       -.53306E-05   -.12906E-03
   2  Prefactor     .10000E-03    34.914        .21709E-06** at limit **
   3  norm          2.3880        2.2020        .56351E-08    .61582E-04
   4  Prefactor     9.4607        8.3214        .78665E-08    .66310E-04
   5  Prefactor     .10000E-03    .77357       -.26398E-07** at limit **
   6  Prefactor     2.6325        2.4146        .41469E-07    .54284E-04
   7  Prefactor     14.714        11.411       -.11224E-06   -.49393E-05
   8  Prefactor     .10000E-03    20.150       -.32369E-06** at limit **
   9  Prefactor     .10000E-03    8.4301       -.72294E-07** at limit **
  10  Prefactor     .10000E-03    40.935       -.25168E-06** at limit **
  11  Prefactor     .10000E-03    2.6814        .26613E-07** at limit **
  12  norm          .10000E-03    2.2299       -.10840E-06** at limit **
  13  Prefactor     43.997        45.975        .17656E-05    .58230E-04
  14  Prefactor     .10000E-03    75.632       -.20926E-06** at limit **
  15  Prefactor     1.5030        12.463        .15620E-04   -.28450E-03
  16  norm          .89897        5.1456       -.27330E-05   -.42079E-04
  17  norm          12.493        16.591       -.39222E-06    .15934E-04
  18  norm          9.6296        6.2765       -.88970E-08   -.76469E-04
  19  norm          5.7855        7.6110        .44489E-07   -.37208E-04
  20  Prefactor     .10000E-03    1.5294        .10225E-06** at limit **
  21  Prefactor     .10000E-03    6.3642        .13770E-06** at limit **
  22  Prefactor     .10000E-03    19.810        .39865E-07** at limit **
  23  Prefactor     20.526        22.634       -.20886E-06   -.29511E-04
  24  Prefactor     59.544        83.168       -.11655E-04   -.17596E-03
  25  Normalizat    1.3596        .19544       -.32109E-05   -.84171E-04
  26  Prefactor     .44301        .21981        .70450E-05    .17081E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.3399
  Prefactor  = 0.000100003
  norm       = 2.38796
  Prefactor  = 9.46066
  Prefactor  = 0.0001
  Prefactor  = 2.63251
  Prefactor  = 14.7141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 43.9967
  Prefactor  = 0.0001
  Prefactor  = 1.50297
  norm       = 0.898968
  norm       = 12.4934
  norm       = 9.62955
  norm       = 5.78548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.5262
  Prefactor  = 59.5436
  Normalizat = 1.35965
  Prefactor  = 0.443008
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.172     FROM HESSE     STATUS=OK           466 CALLS     4043 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.340        38.765        .82859E-04   -1.4741    
   2  Prefactor     .10000E-03    37.586        .11959       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.3880        2.1992        .99709E-04   -1.5399    
   4  Prefactor     9.4607        8.3158        .13030E-03   -1.5093    
   5  Prefactor     .10000E-03    .77664        .62857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.6325        2.4024        .10238E-03   -1.5383    
   7  Prefactor     14.714        11.393        .10441E-03   -1.4941    
   8  Prefactor     .10000E-03    20.220        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.4372        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    40.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.6904        .11717E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2423        .10680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     43.997        46.012        .60460E-04   -1.4380    
  14  Prefactor     .10000E-03    77.457        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5030        12.899        .17494E-02   -1.5463    
  16  norm          .89897        9.1580        .29337E-02   -1.5518    
  17  norm          12.493        16.596        .11331E-03   -1.5001    
  18  norm          9.6296        6.3167        .11594E-03   -1.5087    
  19  norm          5.7855        7.6776        .16699E-03   -1.5227    
  20  Prefactor     .10000E-03    1.5385        .88307E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.3723        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    19.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     20.526        22.666        .88401E-04   -1.4802    
  24  Prefactor     59.544        83.799        .26026E-03   -1.4163    
  25  Normalizat    1.3596        .22183        .20423E-03   -.81803    
  26  Prefactor     .44301        .24615        .39209E-03   -1.1467    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.68682e-08
Minuit parameter uncertainties:
  1  38.8067
  2  0.000681686
  3  2.1993
  4  8.31681
  5  1.33896e-06
  6  2.40249
  7  11.3948
  8  8.84698e-05
  9  1.59864e-05
  10  7.33088e-05
  11  5.83076e-06
  12  8.38151e-06
  13  46.0491
  14  0.000210578
  15  8.80848
  16  5.73939
  17  16.6023
  18  6.31714
  19  7.67895
  20  7.83712e-06
  21  2.0905e-05
  22  2.86368e-05
  23  22.6759
  24  83.9656
  25  0.221983
  26  0.246742
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.599e-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:  4.430e-01  2.467e-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.360e+00  2.220e-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.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.78e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934539/likelihoodResults_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.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) = 5369.1724558
delta logL = -0.0005607048206

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5369.17189568
delta logL = -5.88440343563e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10860E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7619       1.0000          .0000       10.000    
     3 'Normalizat'    1.3595       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .44314       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5369.172     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      246 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10055E-03    57.271        .18142E-02** at limit **
   2  Index         1.7270        5.1644        .50000        .13589E-04
   3  Normalizat    1.3597        .11227E-01    .20423E-03    .20040E-04
   4  Prefactor     .44300        .12949E-01    .39209E-03    .91625E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100551
  Index      = 1.72695
  Normalizat = 1.35965
  Prefactor  = 0.443002
 **********
 **   18 **HESSE 
 **********

 FCN=   5369.172     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10055E-03    278.47        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7270        9.0574        .50000       -.71367    
   3  Normalizat    1.3597        .25569E-01    .81691E-05   -.81803    
   4  Prefactor     .44300        .29485E-01    .15683E-04   -1.1467    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.19663e-08
Minuit parameter uncertainties:
  1  0.0248882
  2  419.808
  3  0.0255689
  4  0.0294861
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934539': 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) = 5369.17189492
delta logL = 1.74254637386e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.006e-04  2.489e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.727e+00  4.198e+02  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:  4.430e-01  2.949e-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:  1.360e+00  2.557e-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/934539/cmap_HighResolution_288316801_288576001_4FGL_J1249.8+3707_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.78e-03', job_status='DONE', photon_flux_upper_limit='3.77e-08', time_completed='2021-09-06 06:40:56.226394', job_id='934539', GAL2='0.44', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630935656.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.44', dlogl='1.74e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='189' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:40:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 934539: <4FGL_J1249.8+3707_daily_bin189> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin189> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Sep  6 06:26:06 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:26:08 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:26:08 2021
Terminated at Mon Sep  6 06:40:57 2021
Results reported at Mon Sep  6 06:40:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin189 192.46 37.1306 288316801 288576001 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.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

