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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin684
RA = 192.46, Dec = 37.1306
tmin = 416620801, tmax = 416880001
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='938565', job_status='RUN', time_executed='2021-09-06 06:42:59.134705', time_epoch_executed='1630935779.13' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='684'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938565

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938565/ft1_4FGL_J1249.8+3707_daily_bin684.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938565/ft2_4FGL_J1249.8+3707_daily_bin684.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938565/ft1_4FGL_J1249.8+3707_daily_bin684.fits outfile=/scratch/kocevski/938565/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin684.fits ra=192.46 dec=37.1306 rad=12.0 tmin=416620801.0 tmax=416880001.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 5.21
user 4.97
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938565/ft1_filtered_4FGL_J1249.8+3707_daily_bin684.fits evtable="EVENTS" scfile=/scratch/kocevski/938565/ft2_4FGL_J1249.8+3707_daily_bin684.fits sctable="SC_DATA" expcube=/scratch/kocevski/938565/ltcube_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.fits outfile=/scratch/kocevski/938565/expmap_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.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/938565/ltcube_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.fits
.....................!
real 190.97
user 186.56
sys 4.07

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/938565/ft1_filtered_4FGL_J1249.8+3707_daily_bin684.fits scfile=/scratch/kocevski/938565/ft2_4FGL_J1249.8+3707_daily_bin684.fits outfile=/scratch/kocevski/938565/cmap_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.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.52
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938565/ft1_filtered_4FGL_J1249.8+3707_daily_bin684.fits scfile=/scratch/kocevski/938565/ft2_4FGL_J1249.8+3707_daily_bin684.fits outfile=/scratch/kocevski/938565/cmap_HighResolution_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.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.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    14.986       1.0000         .10000E-03   10000.    
     3 'norm      '    .54044       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.0286       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.339       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5306       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.798       1.0000         .10000E-03   10000.    
    14 'Prefactor '    57.137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.584       1.0000         .10000E-03   10000.    
    17 'norm      '    8.9378       1.0000         .10000E-03   10000.    
    18 'norm      '    7.4931       1.0000         .10000E-03   10000.    
    19 'norm      '    15.519       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11175E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    61.949       1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.069       1.0000         .10000E-03   10000.    
    24 'Prefactor '    43.577       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1121       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80784       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=   5621.976     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3106 TOTAL
                     EDM=   .52E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    128.01        .77162E-07** at limit **
   2  Prefactor     14.998        33.419        .53562E-06    .12262E-05
   3  norm          .53925        5.0431        .37178E-05   -.13378E-03
   4  Prefactor     .10000E-03    10.609        .10850E-06** at limit **
   5  Prefactor     6.0292        3.8805       -.96027E-06   -.41378E-03
   6  Prefactor     .10000E-03    .91313       -.26786E-07** at limit **
   7  Prefactor     10.339        10.978       -.13201E-07   -.37441E-04
   8  Prefactor     .10000E-03    18.936       -.48152E-07** at limit **
   9  Prefactor     .10000E-03    8.2172        .10733E-06** at limit **
  10  Prefactor     5.5296        137.94        .18671E-06   -.19633E-05
  11  Prefactor     .10000E-03    1.6468        .15717E-07** at limit **
  12  norm          .10000E-03    2.2217        .16074E-06** at limit **
  13  Prefactor     49.807        42.218        .53911E-06    .14096E-04
  14  Prefactor     57.153        37.112        .58367E-06    .36527E-04
  15  Prefactor     .10000E-03    5.9867        .71475E-07** at limit **
  16  norm          10.584        7.2999        .16091E-06    .36213E-04
  17  norm          8.9381        8.8036       -.27732E-07    .49959E-05
  18  norm          7.4964        8.9523       -.13125E-06    .42926E-04
  19  norm          15.515        13.995        .42505E-06    .55215E-04
  20  Prefactor     .10000E-03    1.9897       -.67186E-06** at limit **
  21  Prefactor     .10000E-03    6.5560       -.54045E-06** at limit **
  22  Prefactor     61.895        68.610       -.34554E-05   -.42039E-04
  23  Prefactor     18.070        17.772        .11849E-06    .46475E-05
  24  Prefactor     43.603        67.652        .24690E-05    .23101E-04
  25  Normalizat    1.1113        .19602       -.35539E-06   -.12668E-04
  26  Prefactor     .80881        .22646       -.72539E-07   -.38521E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 14.9983
  norm       = 0.539246
  Prefactor  = 0.0001
  Prefactor  = 6.02916
  Prefactor  = 0.0001
  Prefactor  = 10.3394
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.52964
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 49.8065
  Prefactor  = 57.1534
  Prefactor  = 0.0001
  norm       = 10.5845
  norm       = 8.93813
  norm       = 7.49642
  norm       = 15.515
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 61.8947
  Prefactor  = 18.0704
  Prefactor  = 43.6026
  Normalizat = 1.11127
  Prefactor  = 0.808805
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.976     FROM HESSE     STATUS=OK           460 CALLS     3566 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    128.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.998        33.444        .10346E-03   -1.4933    
   3  norm          .53925        5.2063        .27916E-03   -1.5561    
   4  Prefactor     .10000E-03    10.738        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.0292        3.8958        .97972E-04   -1.5217    
   6  Prefactor     .10000E-03    .91673        .69938E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.339        10.972        .12461E-03   -1.5065    
   8  Prefactor     .10000E-03    18.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.5296        137.85        .17084E-03   -1.5238    
  11  Prefactor     .10000E-03    1.6482        .93963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.2284        .10896E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.807        42.253        .28414E-03   -1.4295    
  14  Prefactor     57.153        37.149        .53071E-04   -1.4195    
  15  Prefactor     .10000E-03    5.9921        .17915E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.584        7.2935        .12315E-03   -1.5057    
  17  norm          8.9381        8.8058        .13407E-03   -1.5110    
  18  norm          7.4964        9.1105        .14415E-03   -1.5160    
  19  norm          15.515        14.290        .10167E-03   -1.4920    
  20  Prefactor     .10000E-03    1.9769        .10240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.5515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     61.895        69.532        .25490E-03   -1.4133    
  23  Prefactor     18.070        17.770        .94222E-04   -1.4858    
  24  Prefactor     43.603        68.198        .60730E-04   -1.4386    
  25  Normalizat    1.1113        .23095        .23681E-03   -.89391    
  26  Prefactor     .80881        .26460        .32558E-03   -.99405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08253e-10
Minuit parameter uncertainties:
  1  9.19107e-06
  2  33.486
  3  3.35116
  4  1.07419e-05
  5  3.89597
  6  1.04649e-06
  7  10.9746
  8  2.82377e-06
  9  2.28119e-06
  10  55.3598
  11  4.12524e-07
  12  5.97337e-06
  13  42.2789
  14  37.1642
  15  1.59393e-06
  16  7.29414
  17  8.80704
  18  9.11215
  19  14.293
  20  2.22168e-05
  21  2.75846e-05
  22  69.6231
  23  17.7752
  24  68.3206
  25  0.231161
  26  0.265021
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.281e-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.088e-01  2.650e-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.111e+00  2.312e-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.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938565/likelihoodResults_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.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) = 5621.97648529
delta logL = -0.000575826058594

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5621.9759096
delta logL = -1.37231836561e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10455E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7539       1.0000          .0000       10.000    
     3 'Normalizat'    1.1113       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80874       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=   5621.976     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10060E-03    43.041        .18142E-02** at limit **
   2  Index         1.7164        7.7783        .50000        .20088E-04
   3  Normalizat    1.1113        .10073E-01    .23681E-03    .24676E-04
   4  Prefactor     .80881        .12048E-01    .32557E-03   -.38411E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100601
  Index      = 1.71639
  Normalizat = 1.11127
  Prefactor  = 0.808806
 **********
 **   18 **HESSE 
 **********

 FCN=   5621.976     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10060E-03    196.97        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7164        5.6059        .50000       -.71646    
   3  Normalizat    1.1113        .22019E-01    .94724E-05   -.89391    
   4  Prefactor     .80881        .26335E-01    .13023E-04   -.99405    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.65123e-09
Minuit parameter uncertainties:
  1  0.0218271
  2  244.451
  3  0.0220189
  4  0.0263356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938565': 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) = 5621.97590912
delta logL = 3.38253812515e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.006e-04  2.183e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.716e+00  2.445e+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.088e-01  2.634e-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.111e+00  2.202e-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/938565/cmap_HighResolution_416620801_416880001_4FGL_J1249.8+3707_daily_bin684.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', job_status='DONE', photon_flux_upper_limit='3.68e-08', time_completed='2021-09-06 06:55:03.119815', job_id='938565', GAL2='0.81', fit_tolerance='1e-08', EG2='1.11', EG='1.11', time_epoch_completed='1630936503.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='684' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 938565: <4FGL_J1249.8+3707_daily_bin684> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin684 192.46 37.1306 416620801 416880001 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 :                                   721.38 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             290.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            883 sec.

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

