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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin356
RA = 192.46, Dec = 37.1306
tmin = 331603201, tmax = 331862401
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='935833', job_status='RUN', time_executed='2021-09-06 06:33:24.854739', time_epoch_executed='1630935204.85' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='356'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935833

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935833/ft1_4FGL_J1249.8+3707_daily_bin356.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935833/ft2_4FGL_J1249.8+3707_daily_bin356.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935833/ft1_4FGL_J1249.8+3707_daily_bin356.fits outfile=/scratch/kocevski/935833/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin356.fits ra=192.46 dec=37.1306 rad=12.0 tmin=331603201.0 tmax=331862401.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.26
user 3.04
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935833/ft1_filtered_4FGL_J1249.8+3707_daily_bin356.fits" evtable="EVENTS" scfile=/scratch/kocevski/935833/ft2_4FGL_J1249.8+3707_daily_bin356.fits sctable="SC_DATA" outfile=/scratch/kocevski/935833/ltcube_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.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/935833/ft2_4FGL_J1249.8+3707_daily_bin356.fits
.....................!
real 11.90
user 11.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935833/ft1_filtered_4FGL_J1249.8+3707_daily_bin356.fits evtable="EVENTS" scfile=/scratch/kocevski/935833/ft2_4FGL_J1249.8+3707_daily_bin356.fits sctable="SC_DATA" expcube=/scratch/kocevski/935833/ltcube_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.fits outfile=/scratch/kocevski/935833/expmap_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.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/935833/ltcube_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.fits
.....................!
real 191.62
user 185.55
sys 5.63

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/935833/ft1_filtered_4FGL_J1249.8+3707_daily_bin356.fits scfile=/scratch/kocevski/935833/ft2_4FGL_J1249.8+3707_daily_bin356.fits outfile=/scratch/kocevski/935833/cmap_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.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.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.513       1.0000         .10000E-03   10000.    
     2 'Prefactor '    39.018       1.0000         .10000E-03   10000.    
     3 'norm      '    4.6254       1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.727       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.3890       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.9237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.0584       1.0000         .10000E-03   10000.    
    12 'norm      '    1.7958       1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.014       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.500       1.0000         .10000E-03   10000.    
    18 'norm      '    3.6395       1.0000         .10000E-03   10000.    
    19 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4001       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .62786       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.464       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.997       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0034       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82745       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=   6021.327     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     3037 TOTAL
                     EDM=   .82E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.482        50.594       -.46557E-04   -.20809E-04
   2  Prefactor     39.019        26.422        .68033E-06    .11664E-04
   3  norm          4.6254        2.8577       -.74211E-07    .17941E-04
   4  Prefactor     10.727        8.6612       -.49193E-06   -.65815E-04
   5  Prefactor     .10000E-03    .88280       -.32654E-07** at limit **
   6  Prefactor     9.3893        3.1002       -.84490E-07    .53680E-04
   7  Prefactor     2.9225        9.5841       -.99985E-06   -.26194E-04
   8  Prefactor     .10000E-03    4.7885        .11310E-06** at limit **
   9  Prefactor     .10000E-03    5.9274       -.37556E-06** at limit **
  10  Prefactor     .10000E-03    18.745        .17036E-06** at limit **
  11  Prefactor     8.0584        5.1028       -.20719E-06    .76445E-04
  12  norm          1.7958        3.4147        .23922E-05    .86593E-04
  13  Prefactor     17.008        38.980       -.10150E-04    .12057E-05
  14  Prefactor     .10000E-03    31.513        .24373E-07** at limit **
  15  Prefactor     .10000E-03    4.7484       -.51585E-06** at limit **
  16  norm          .10000E-03    3.9228       -.44946E-06** at limit **
  17  norm          13.500        11.272        .21435E-06    .35057E-04
  18  norm          3.6399        3.2902       -.15997E-05   -.16311E-03
  19  norm          .10000E-03    2.9804        .21425E-06** at limit **
  20  Prefactor     3.4004        2.8142        .72019E-07    .86888E-04
  21  Prefactor     .62913        1.5498        .79686E-06   -.19684E-02
  22  Prefactor     21.463        29.148       -.16854E-05    .50083E-05
  23  Prefactor     .10000E-03    4.8370        .10036E-05** at limit **
  24  Prefactor     23.984        50.059       -.21492E-04   -.36056E-05
  25  Normalizat    1.0033        .15828        .20706E-05   -.10688E-04
  26  Prefactor     .82761        .19576        .23776E-05    .63856E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.4816
  Prefactor  = 39.0193
  norm       = 4.6254
  Prefactor  = 10.7267
  Prefactor  = 0.0001
  Prefactor  = 9.38926
  Prefactor  = 2.92254
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.05842
  norm       = 1.79579
  Prefactor  = 17.0083
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 13.4998
  norm       = 3.63986
  norm       = 0.0001
  Prefactor  = 3.40045
  Prefactor  = 0.629135
  Prefactor  = 21.4631
  Prefactor  = 0.0001
  Prefactor  = 23.9837
  Normalizat = 1.00326
  Prefactor  = 0.827612
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.327     FROM HESSE     STATUS=OK           464 CALLS     3501 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.482        50.595        .73749E-04   -1.4621    
   2  Prefactor     39.019        26.434        .64167E-04   -1.4458    
   3  norm          4.6254        2.8533        .98353E-04   -1.5278    
   4  Prefactor     10.727        8.6657        .61166E-03   -1.5053    
   5  Prefactor     .10000E-03    .88596        .71096E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.3893        3.0923        .73406E-04   -1.5095    
   7  Prefactor     2.9225        9.5536        .23758E-03   -1.5366    
   8  Prefactor     .10000E-03    4.7897        .16584E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.9311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    18.747        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.0584        5.1028        .67624E-03   -1.5140    
  12  norm          1.7958        3.3807        .18871E-03   -1.5440    
  13  Prefactor     17.008        38.986        .97100E-04   -1.4883    
  14  Prefactor     .10000E-03    31.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.7536        .16513E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9768        .14988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.500        11.271        .54508E-03   -1.4973    
  18  norm          3.6399        3.2730        .12536E-03   -1.5326    
  19  norm          .10000E-03    2.9861        .13049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4004        2.8619        .11138E-03   -1.5339    
  21  Prefactor     .62913        14.630        .23564E-02   -1.5549    
  22  Prefactor     21.463        29.142        .86454E-04   -1.4781    
  23  Prefactor     .10000E-03    4.8438        .16667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     23.984        50.195        .81771E-04   -1.4728    
  25  Normalizat    1.0033        .18686        .21938E-03   -.92921    
  26  Prefactor     .82761        .23017        .30042E-03   -.98718    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.18835e-08
Minuit parameter uncertainties:
  1  50.6683
  2  26.442
  3  2.8534
  4  8.66675
  5  2.21626e-06
  6  3.0924
  7  9.55855
  8  2.17378e-06
  9  6.45566e-06
  10  2.90607e-05
  11  5.10304
  12  3.38103
  13  39.0448
  14  0.00018964
  15  6.48445e-06
  16  1.24445e-05
  17  11.2726
  18  3.27318
  19  2.72382e-05
  20  2.86206
  21  6.06891
  22  29.1608
  23  3.10988e-06
  24  50.2833
  25  0.186981
  26  0.230442
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  6.456e-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:  8.276e-01  2.304e-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.003e+00  1.870e-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: 2.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.11e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935833/likelihoodResults_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.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) = 6021.3282957
delta logL = -0.000798904725343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6021.32749705
delta logL = -2.54397491517e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10513E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7505       1.0000          .0000       10.000    
     3 'Normalizat'    1.0032       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82772       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=   6021.327     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      250 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10066E-03    30.637        .18142E-02** at limit **
   2  Index         1.7090        5.1617        .50000        .29642E-04
   3  Normalizat    1.0033        .84983E-02    .21938E-03   -.24357E-05
   4  Prefactor     .82761        .10715E-01    .30041E-03   -.15894E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100661
  Index      = 1.70898
  Normalizat = 1.00326
  Prefactor  = 0.827611
 **********
 **   18 **HESSE 
 **********

 FCN=   6021.327     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      279 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     .10066E-03    140.98        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7090        8.9225        .50000       -.71843    
   3  Normalizat    1.0033        .18606E-01    .87751E-05   -.92921    
   4  Prefactor     .82761        .23458E-01    .12017E-04   -.98718    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.21627e-08
Minuit parameter uncertainties:
  1  0.0193541
  2  202.641
  3  0.0186063
  4  0.0234583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935833': 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) = 6021.32749623
delta logL = 5.6759108702e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.007e-04  1.935e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.709e+00  2.026e+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:  8.276e-01  2.346e-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.003e+00  1.861e-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/935833/cmap_HighResolution_331603201_331862401_4FGL_J1249.8+3707_daily_bin356.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.11e-03', job_status='DONE', photon_flux_upper_limit='2.87e-08', time_completed='2021-09-06 06:46:00.799103', job_id='935833', GAL2='0.83', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630935960.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='5.68e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='356' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 935833: <4FGL_J1249.8+3707_daily_bin356> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin356 192.46 37.1306 331603201 331862401 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             283.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            905 sec.

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

