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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1577
RA = 192.46, Dec = 37.1306
tmin = 648086401, tmax = 648345601
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='942862', job_status='RUN', time_executed='2021-09-06 06:51:02.177603', time_epoch_executed='1630936262.18' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1577'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/942862

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/942862/ft1_4FGL_J1249.8+3707_daily_bin1577.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/942862/ft2_4FGL_J1249.8+3707_daily_bin1577.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/942862/ft1_4FGL_J1249.8+3707_daily_bin1577.fits outfile=/scratch/kocevski/942862/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1577.fits ra=192.46 dec=37.1306 rad=12.0 tmin=648086401.0 tmax=648345601.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 4.38
user 4.10
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/942862/ft1_filtered_4FGL_J1249.8+3707_daily_bin1577.fits evtable="EVENTS" scfile=/scratch/kocevski/942862/ft2_4FGL_J1249.8+3707_daily_bin1577.fits sctable="SC_DATA" expcube=/scratch/kocevski/942862/ltcube_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.fits outfile=/scratch/kocevski/942862/expmap_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.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/942862/ltcube_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.fits
.....................!
real 195.13
user 187.37
sys 4.76

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/942862/ft1_filtered_4FGL_J1249.8+3707_daily_bin1577.fits scfile=/scratch/kocevski/942862/ft2_4FGL_J1249.8+3707_daily_bin1577.fits outfile=/scratch/kocevski/942862/cmap_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/942862/ft1_filtered_4FGL_J1249.8+3707_daily_bin1577.fits scfile=/scratch/kocevski/942862/ft2_4FGL_J1249.8+3707_daily_bin1577.fits outfile=/scratch/kocevski/942862/cmap_HighResolution_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.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.57
user 0.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    1.1652       1.0000         .10000E-03   10000.    
     3 'norm      '    16.710       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0506       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .37980       1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.8848       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.9656       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.246       1.0000         .10000E-03   10000.    
    12 'norm      '    8.8276       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.505       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .38407E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    1.2747       1.0000         .10000E-03   10000.    
    17 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    9.8419       1.0000         .10000E-03   10000.    
    19 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .58147       1.0000         .10000E-03   10000.    
    21 'Prefactor '    15.030       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .14670E-01   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10266E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .43117       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.4565       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=   5656.326     FROM MIGRAD    STATUS=CONVERGED    630 CALLS     2682 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.953        .37807E-06** at limit **
   2  Prefactor     1.1636        127.32        .23680E-04   -.10007E-03
   3  norm          16.711        5.3359       -.19471E-06   -.73818E-03
   4  Prefactor     4.0503        4.8119        .45769E-08   -.11478E-03
   5  Prefactor     .37715        2.8987       -.16700E-06   -.31152E-03
   6  Prefactor     6.8844        3.0029       -.53586E-07   -.49377E-03
   7  Prefactor     6.9662        9.5313       -.54228E-07   -.11263E-03
   8  Prefactor     .10000E-03    14.931        .16412E-06** at limit **
   9  Prefactor     .10000E-03    8.5762       -.10780E-07** at limit **
  10  Prefactor     .10000E-03    31.178        .20272E-06** at limit **
  11  Prefactor     12.252        8.0163       -.60796E-06   -.14062E-02
  12  norm          8.8264        5.9451        .45304E-06   -.25326E-03
  13  Prefactor     .10000E-03    17.901       -.41798E-06** at limit **
  14  Prefactor     10.538        33.465       -.40547E-05   -.21634E-03
  15  Prefactor     .10000E-03    15.838        .19541E-05** at limit **
  16  norm          1.2757        4.5318       -.81267E-07   -.37894E-03
  17  norm          .10000E-03    12.633       -.95948E-07** at limit **
  18  norm          9.8418        4.4293        .13176E-06   -.26878E-03
  19  norm          .10000E-03    3.1284       -.82989E-07** at limit **
  20  Prefactor     .57788        4.8136        .80039E-06   -.12250E-03
  21  Prefactor     15.043        16.706       -.10822E-06   -.13250E-03
  22  Prefactor     .10000E-03    21.768       -.23173E-06** at limit **
  23  Prefactor     .10000E-03    15.011        .12946E-05** at limit **
  24  Prefactor     .10000E-03    34.192       -.55199E-06** at limit **
  25  Normalizat    .43104        .16844       -.26607E-05   -.39851E-03
  26  Prefactor     1.4567        .21493        .12262E-05   -.32883E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.16364
  norm       = 16.7108
  Prefactor  = 4.0503
  Prefactor  = 0.37715
  Prefactor  = 6.88438
  Prefactor  = 6.96617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.2522
  norm       = 8.82641
  Prefactor  = 0.0001
  Prefactor  = 10.538
  Prefactor  = 0.000100002
  norm       = 1.27573
  norm       = 0.0001
  norm       = 9.8418
  norm       = 0.0001
  Prefactor  = 0.577879
  Prefactor  = 15.0429
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 0.431041
  Prefactor  = 1.45669
 **********
 **   18 **HESSE 
 **********

 FCN=   5656.326     FROM HESSE     STATUS=OK           464 CALLS     3146 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.1636        128.61        .21303E-02   -1.5492    
   3  norm          16.711        5.1916        .79339E-04   -1.4890    
   4  Prefactor     4.0503        4.8037        .17422E-03   -1.5305    
   5  Prefactor     .37715        4.7911        .20428E-02   -1.5585    
   6  Prefactor     6.8844        2.9814        .80005E-04   -1.5183    
   7  Prefactor     6.9662        9.4890        .15201E-03   -1.5180    
   8  Prefactor     .10000E-03    14.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.5835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    31.177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.252        7.7200        .11447E-03   -1.5008    
  12  norm          8.8264        5.9332        .12664E-03   -1.5114    
  13  Prefactor     .10000E-03    17.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     10.538        33.473        .12362E-03   -1.5059    
  15  Prefactor     .10000E-03    120.89        .51321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.2757        4.3243        .27216E-03   -1.5482    
  17  norm          .10000E-03    12.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          9.8418        4.4094        .94646E-04   -1.5080    
  19  norm          .10000E-03    3.1368        .12966E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .57788        3.9975        .24003E-03   -1.5556    
  21  Prefactor     15.043        15.324        .10331E-03   -1.4932    
  22  Prefactor     .10000E-03    21.775        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    103.05        .55348E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    34.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .43104        .19013        .31144E-03   -1.1573    
  26  Prefactor     1.4567        .24752        .23729E-03   -.78760    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20527e-08
Minuit parameter uncertainties:
  1  8.16552e-05
  2  24.5196
  3  5.19179
  4  4.80414
  5  2.68837
  6  2.98147
  7  9.49104
  8  6.4399e-05
  9  3.01432e-06
  10  7.58182e-05
  11  7.72064
  12  5.93363
  13  3.63695e-05
  14  33.5324
  15  0.0010198
  16  4.32539
  17  5.83961e-06
  18  4.40953
  19  9.47863e-06
  20  3.03982
  21  15.3278
  22  7.26206e-06
  23  0.00137923
  24  6.5874e-05
  25  0.190413
  26  0.24772
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  3.014e-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:  1.457e+00  2.477e-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:  4.310e-01  1.904e-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.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/942862/likelihoodResults_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.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) = 5656.32655318
delta logL = -0.000546230148757

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5656.32600694
delta logL = 8.89940565685e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7723       1.0000          .0000       10.000    
     3 'Normalizat'    .43105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4567       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=   5656.326     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    100.64        .90712E-02** at limit **
   2  Index         1.7645        8.7095        .50000        .66745E-05
   3  Normalizat    .43104        .13189E-01    .70347E-01    .35790E-04
   4  Prefactor     1.4567        .17668E-01    .53674E-01    .20410E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.76449
  Normalizat = 0.431044
  Prefactor  = 1.45669
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    753.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7645        8.3434        .50000       -.70378    
   3  Normalizat    .43104        .40445E-01    .31145E-03   -1.1573    
   4  Prefactor     1.4567        .54289E-01    .23729E-03   -.78760    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36248e-09
Minuit parameter uncertainties:
  1  0.000253857
  2  36.1488
  3  0.0404477
  4  0.0542912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/942862': 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) = 5656.32600692
delta logL = 2.81352185993e-08

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.539e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.764e+00  3.615e+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:  1.457e+00  5.429e-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:  4.310e-01  4.045e-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/942862/cmap_HighResolution_648086401_648345601_4FGL_J1249.8+3707_daily_bin1577.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-03', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2021-09-06 07:02:56.826208', job_id='942862', GAL2='1.46', fit_tolerance='1e-08', EG2='0.43', EG='0.43', time_epoch_completed='1630936976.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.46', dlogl='2.81e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='1577' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 07:02:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 942862: <4FGL_J1249.8+3707_daily_bin1577> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1577> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Mon Sep  6 06:50:41 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:50:43 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:50:43 2021
Terminated at Mon Sep  6 07:02:58 2021
Results reported at Mon Sep  6 07:02:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1577 192.46 37.1306 648086401 648345601 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 :                                   708.43 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             375.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            737 sec.

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

