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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin907
RA = 192.46, Dec = 37.1306
tmin = 474422401, tmax = 474681601
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='938881', job_status='RUN', time_executed='2021-09-06 06:44:41.014182', time_epoch_executed='1630935881.01' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='907'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938881

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938881/ft1_4FGL_J1249.8+3707_daily_bin907.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938881/ft2_4FGL_J1249.8+3707_daily_bin907.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938881/ft1_4FGL_J1249.8+3707_daily_bin907.fits outfile=/scratch/kocevski/938881/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin907.fits ra=192.46 dec=37.1306 rad=12.0 tmin=474422401.0 tmax=474681601.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.43
user 3.22
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/938881/ft1_filtered_4FGL_J1249.8+3707_daily_bin907.fits" evtable="EVENTS" scfile=/scratch/kocevski/938881/ft2_4FGL_J1249.8+3707_daily_bin907.fits sctable="SC_DATA" outfile=/scratch/kocevski/938881/ltcube_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.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/938881/ft2_4FGL_J1249.8+3707_daily_bin907.fits
.....................!
real 11.77
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938881/ft1_filtered_4FGL_J1249.8+3707_daily_bin907.fits evtable="EVENTS" scfile=/scratch/kocevski/938881/ft2_4FGL_J1249.8+3707_daily_bin907.fits sctable="SC_DATA" expcube=/scratch/kocevski/938881/ltcube_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.fits outfile=/scratch/kocevski/938881/expmap_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.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/938881/ltcube_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.fits
.....................!
real 190.29
user 185.26
sys 4.66

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/938881/ft1_filtered_4FGL_J1249.8+3707_daily_bin907.fits scfile=/scratch/kocevski/938881/ft2_4FGL_J1249.8+3707_daily_bin907.fits outfile=/scratch/kocevski/938881/cmap_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.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.60
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938881/ft1_filtered_4FGL_J1249.8+3707_daily_bin907.fits scfile=/scratch/kocevski/938881/ft2_4FGL_J1249.8+3707_daily_bin907.fits outfile=/scratch/kocevski/938881/cmap_HighResolution_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.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.55
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.562       1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.333       1.0000         .10000E-03   10000.    
     3 'norm      '    11.880       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .79071       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.6419       1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.5170       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    15.103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.6533       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.9270       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1153       1.0000         .10000E-03   10000.    
    17 'norm      '    8.2539       1.0000         .10000E-03   10000.    
    18 'norm      '    3.9310       1.0000         .10000E-03   10000.    
    19 'norm      '    22.306       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.3280       1.0000         .10000E-03   10000.    
    21 'Prefactor '    23.505       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.5296       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .90121       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88982       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=   5598.855     FROM MIGRAD    STATUS=CONVERGED    610 CALLS     3084 TOTAL
                     EDM=   .99E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.534        61.003       -.50272E-04   -.15203E-04
   2  Prefactor     12.331        26.717       -.20156E-05    .41669E-05
   3  norm          11.880        3.9503        .36500E-06    .57782E-04
   4  Prefactor     .78991        1.2411        .60761E-06   -.29960E-02
   5  Prefactor     1.6419        1.7014       -.14169E-06   -.95787E-05
   6  Prefactor     9.5170        3.1748       -.27399E-06    .54033E-04
   7  Prefactor     .10000E-03    15.634       -.61172E-06** at limit **
   8  Prefactor     15.103        19.493       -.65016E-06    .40389E-05
   9  Prefactor     .10000E-03    13.754       -.17107E-05** at limit **
  10  Prefactor     .10000E-03    97.014        .24255E-05** at limit **
  11  Prefactor     .10000E-03    1.5737       -.11936E-07** at limit **
  12  norm          4.6532        3.9552       -.46090E-06   -.63601E-04
  13  Prefactor     .10000E-03    12.641        .18502E-06** at limit **
  14  Prefactor     .10000E-03    14.523        .19531E-05** at limit **
  15  Prefactor     6.9267        7.4019        .48821E-07   -.24537E-06
  16  norm          4.1153        4.8084       -.35283E-06   -.57501E-04
  17  norm          8.2538        8.4746       -.12827E-06    .10498E-03
  18  norm          3.9309        5.3801        .26597E-06   -.84491E-04
  19  norm          22.305        12.368       -.13996E-06   -.18833E-04
  20  Prefactor     1.3275        2.9619        .16246E-05    .39767E-03
  21  Prefactor     23.504        16.070        .11700E-05   -.17633E-04
  22  Prefactor     8.5021        83.410       -.60024E-04   -.26632E-04
  23  Prefactor     .10000E-03    13.902       -.82734E-07** at limit **
  24  Prefactor     .10000E-03    46.793       -.45333E-06** at limit **
  25  Normalizat    .90128        .16272        .12487E-05    .51604E-04
  26  Prefactor     .88975        .20139        .26375E-05    .88346E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5341
  Prefactor  = 12.3311
  norm       = 11.8797
  Prefactor  = 0.789912
  Prefactor  = 1.64192
  Prefactor  = 9.51702
  Prefactor  = 0.0001
  Prefactor  = 15.1028
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.65317
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.9267
  norm       = 4.11529
  norm       = 8.25381
  norm       = 3.93095
  norm       = 22.3047
  Prefactor  = 1.32746
  Prefactor  = 23.5041
  Prefactor  = 8.50205
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.901279
  Prefactor  = 0.889745
 **********
 **   18 **HESSE 
 **********

 FCN=   5598.855     FROM HESSE     STATUS=OK           464 CALLS     3548 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.534        60.949        .10877E-03   -1.4972    
   2  Prefactor     12.331        26.773        .11406E-03   -1.5006    
   3  norm          11.880        3.9448        .79865E-04   -1.5018    
   4  Prefactor     .78991        5.9632        .17672E-02   -1.5530    
   5  Prefactor     1.6419        1.7063        .94190E-04   -1.5452    
   6  Prefactor     9.5170        3.1713        .72735E-04   -1.5091    
   7  Prefactor     .10000E-03    16.102        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     15.103        19.495        .10306E-03   -1.4931    
   9  Prefactor     .10000E-03    13.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    97.282        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    1.5777        .91663E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.6532        3.9520        .13183E-03   -1.5277    
  13  Prefactor     .10000E-03    12.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.9267        7.4020        .15243E-03   -1.5182    
  16  norm          4.1153        4.7841        .16816E-03   -1.5302    
  17  norm          8.2538        8.4776        .69772E-03   -1.5133    
  18  norm          3.9309        5.3863        .14841E-03   -1.5311    
  19  norm          22.305        12.440        .84810E-04   -1.4763    
  20  Prefactor     1.3275        2.8672        .16853E-03   -1.5478    
  21  Prefactor     23.504        15.904        .82620E-04   -1.4738    
  22  Prefactor     8.5021        83.488        .13726E-03   -1.5125    
  23  Prefactor     .10000E-03    14.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    46.897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .90128        .19186        .23070E-03   -.96415    
  26  Prefactor     .88975        .23752        .29080E-03   -.96500    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09677e-08
Minuit parameter uncertainties:
  1  57.5394
  2  26.7991
  3  3.94493
  4  4.34102
  5  1.70635
  6  3.17136
  7  5.01608e-05
  8  19.5034
  9  2.77609e-05
  10  0.000162341
  11  1.86504e-06
  12  3.95223
  13  6.62662e-06
  14  2.05569e-05
  15  7.40295
  16  4.78453
  17  8.47887
  18  5.38692
  19  12.4418
  20  2.86747
  21  15.9073
  22  53.3818
  23  3.37652e-05
  24  5.52314e-07
  25  0.192006
  26  0.2378
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  8.897e-01  2.378e-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.013e-01  1.920e-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.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938881/likelihoodResults_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.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) = 5598.85569784
delta logL = -0.000341989615663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5598.85535595
delta logL = -1.00215402199e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7705       1.0000          .0000       10.000    
     3 'Normalizat'    .90133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88969       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=   5598.855     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      208 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.306        .90712E-02** at limit **
   2  Index         1.7618        6.1024        .50000        .44178E-05
   3  Normalizat    .90128        .89955E-02    .44919E-01    .15818E-04
   4  Prefactor     .88975        .11333E-01    .65743E-01    .18495E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76176
  Normalizat = 0.901278
  Prefactor  = 0.889746
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6346.9        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7618        5.6629        .50000       -.70449    
   3  Normalizat    .90128        .10175        .23070E-03   -.96415    
   4  Prefactor     .88975        .12809        .29080E-03   -.96500    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81223e-09
Minuit parameter uncertainties:
  1  7.89659e-05
  2  55.6635
  3  0.101771
  4  0.128132
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938881': 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) = 5598.85535582
delta logL = 2.25900294026e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  7.897e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.762e+00  5.566e+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:  8.897e-01  1.281e-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.013e-01  1.018e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/938881/cmap_HighResolution_474422401_474681601_4FGL_J1249.8+3707_daily_bin907.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.35e-03', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-09-06 06:56:45.817666', job_id='938881', GAL2='0.89', fit_tolerance='1e-08', EG2='0.90', EG='0.90', time_epoch_completed='1630936605.82', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.26e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='907' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:56:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0124>
Subject: Job 938881: <4FGL_J1249.8+3707_daily_bin907> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin907 192.46 37.1306 474422401 474681601 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 :                                   723.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             275.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   964 sec.
    Turnaround time :                            965 sec.

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

