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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin358
RA = 192.46, Dec = 37.1306
tmin = 332121601, tmax = 332380801
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='935835', job_status='RUN', time_executed='2021-09-06 06:34:13.432679', time_epoch_executed='1630935253.43' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='358'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935835

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935835/ft1_4FGL_J1249.8+3707_daily_bin358.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935835/ft2_4FGL_J1249.8+3707_daily_bin358.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935835/ft1_4FGL_J1249.8+3707_daily_bin358.fits outfile=/scratch/kocevski/935835/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin358.fits ra=192.46 dec=37.1306 rad=12.0 tmin=332121601.0 tmax=332380801.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.29
user 3.02
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935835/ft2_4FGL_J1249.8+3707_daily_bin358.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/935835/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin358.fits evtable="EVENTS" outfile="/scratch/kocevski/935835/ft1_filtered_4FGL_J1249.8+3707_daily_bin358.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.53
user 0.35
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935835/ft1_filtered_4FGL_J1249.8+3707_daily_bin358.fits evtable="EVENTS" scfile=/scratch/kocevski/935835/ft2_4FGL_J1249.8+3707_daily_bin358.fits sctable="SC_DATA" expcube=/scratch/kocevski/935835/ltcube_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.fits outfile=/scratch/kocevski/935835/expmap_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.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/935835/ltcube_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.fits
.....................!
real 190.03
user 185.00
sys 4.67

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/935835/ft1_filtered_4FGL_J1249.8+3707_daily_bin358.fits scfile=/scratch/kocevski/935835/ft2_4FGL_J1249.8+3707_daily_bin358.fits outfile=/scratch/kocevski/935835/cmap_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.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.54
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935835/ft1_filtered_4FGL_J1249.8+3707_daily_bin358.fits scfile=/scratch/kocevski/935835/ft2_4FGL_J1249.8+3707_daily_bin358.fits outfile=/scratch/kocevski/935835/cmap_HighResolution_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.2793       1.0000         .10000E-03   10000.    
     3 'norm      '    11.064       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.8022       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.7825       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12171E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5788       1.0000         .10000E-03   10000.    
    17 'norm      '    23.797       1.0000         .10000E-03   10000.    
    18 'norm      '    6.2434       1.0000         .10000E-03   10000.    
    19 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11797E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10192E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.2035       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12178E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1851       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .82108       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=   5668.132     FROM MIGRAD    STATUS=CONVERGED    626 CALLS     2679 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.288        .37377E-05** at limit **
   2  Prefactor     8.2464        25.130        .75430E-06    .10920E-06
   3  norm          11.064        3.5963        .41566E-07    .23216E-05
   4  Prefactor     .10000E-03    6.9900       -.21730E-06** at limit **
   5  Prefactor     1.8021        1.9390        .50353E-07    .13993E-04
   6  Prefactor     1.8700        1.6778        .68022E-07    .85120E-05
   7  Prefactor     .10000E-03    4.3538        .25453E-07** at limit **
   8  Prefactor     4.7825        28.788        .94412E-06   -.15646E-04
   9  Prefactor     .10000E-03    5.4363       -.20073E-06** at limit **
  10  Prefactor     .10000E-03    24.624       -.12876E-05** at limit **
  11  Prefactor     .10000E-03    3.2028        .82284E-07** at limit **
  12  norm          .10000E-03    1.4540        .28809E-07** at limit **
  13  Prefactor     .10000E-03    160.98        .21099E-04** at limit **
  14  Prefactor     .10000E-03    6.2546        .61884E-06** at limit **
  15  Prefactor     .10000E-03    8.4522        .60853E-06** at limit **
  16  norm          2.5741        5.1706        .47230E-05   -.28507E-03
  17  norm          23.797        15.808       -.24962E-06   -.16774E-03
  18  norm          6.2388        4.1030       -.39684E-06   -.50861E-03
  19  norm          .10000E-03    5.5079        .17919E-06** at limit **
  20  Prefactor     .10000E-03    2.4174       -.51567E-06** at limit **
  21  Prefactor     .10000E-03    34.398        .65653E-07** at limit **
  22  Prefactor     .10000E-03    37.271       -.24704E-05** at limit **
  23  Prefactor     3.2016        18.771        .53364E-05   -.13368E-04
  24  Prefactor     .10000E-03    115.03       -.14578E-04** at limit **
  25  Normalizat    1.1852        .17114       -.10199E-05   -.38094E-03
  26  Prefactor     .82092        .20981       -.12735E-05   -.26920E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.2464
  norm       = 11.0642
  Prefactor  = 0.0001
  Prefactor  = 1.80215
  Prefactor  = 1.86998
  Prefactor  = 0.0001
  Prefactor  = 4.78246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.5741
  norm       = 23.797
  norm       = 6.23877
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.20163
  Prefactor  = 0.0001
  Normalizat = 1.1852
  Prefactor  = 0.820918
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.132     FROM HESSE     STATUS=OK           452 CALLS     3131 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.2464        25.122        .13933E-03   -1.5134    
   3  norm          11.064        3.6089        .75821E-04   -1.5043    
   4  Prefactor     .10000E-03    7.1906        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.8021        1.9285        .10174E-03   -1.5439    
   6  Prefactor     1.8700        1.6787        .89026E-04   -1.5434    
   7  Prefactor     .10000E-03    4.3675        .15340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.7825        28.764        .18397E-03   -1.5271    
   9  Prefactor     .10000E-03    5.4371        .17144E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    24.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    7.5189        .26109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.4672        .88641E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    161.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.2607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.4895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5741        5.2033        .11682E-02   -1.5387    
  17  norm          23.797        15.817        .82113E-04   -1.4732    
  18  norm          6.2388        4.0374        .11548E-03   -1.5208    
  19  norm          .10000E-03    5.5434        .17176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.8353        .21987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    35.507        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    37.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.2016        18.744        .11318E-02   -1.5350    
  24  Prefactor     .10000E-03    115.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.1852        .19644        .21145E-03   -.87061    
  26  Prefactor     .82092        .24159        .31087E-03   -.98962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91125e-10
Minuit parameter uncertainties:
  1  0.00012854
  2  25.1539
  3  3.60898
  4  1.90761e-05
  5  1.92854
  6  1.67877
  7  3.63761e-06
  8  23.474
  9  1.48473e-06
  10  2.58041e-05
  11  0.000147606
  12  2.54461e-06
  13  0.000545696
  14  1.29259e-05
  15  1.12435e-05
  16  5.2042
  17  15.8194
  18  4.03755
  19  2.60048e-05
  20  7.35881e-05
  21  1.9447e-05
  22  7.51732e-05
  23  15.5005
  24  0.000440296
  25  0.19656
  26  0.241907
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.485e-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.209e-01  2.419e-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.185e+00  1.966e-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.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935835/likelihoodResults_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.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) = 5668.13240997
delta logL = -0.000837646593027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5668.13157225
delta logL = 7.18091541785e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7537       1.0000          .0000       10.000    
     3 'Normalizat'    1.1852       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82093       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=   5668.132     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      241 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    13.182        .17656E-02** at limit **
   2  Index         1.7259        5.3426        .50000        .34534E-04
   3  Normalizat    1.1852        .19123        .21145E-03   -.53766E-07
   4  Prefactor     .82092        .23912        .31087E-03    .14628E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.72587
  Normalizat = 1.1852
  Prefactor  = 0.820919
 **********
 **   18 **HESSE 
 **********

 FCN=   5668.132     FROM HESSE     STATUS=OK            29 CALLS      270 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    6.0616        .35312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7259        5.8271        .50000       -.71395    
   3  Normalizat    1.1852        .19140        .84579E-05   -.87061    
   4  Prefactor     .82092        .23933        .12435E-04   -.98962    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.08844e-09
Minuit parameter uncertainties:
  1  0.000410191
  2  3.87863
  3  0.191511
  4  0.239635
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935835': 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): 0
logL (Free Index) = 5668.13157179
delta logL = 5.25806171936e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.102e-04  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.726e+00  3.879e+00  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.209e-01  2.396e-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.185e+00  1.915e-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/935835/cmap_HighResolution_332121601_332380801_4FGL_J1249.8+3707_daily_bin358.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-03', job_status='DONE', photon_flux_upper_limit='2.83e-08', time_completed='2021-09-06 06:46:11.633050', job_id='935835', GAL2='0.82', fit_tolerance='1e-08', EG2='1.19', EG='1.19', time_epoch_completed='1630935971.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='5.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='358' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:46:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 935835: <4FGL_J1249.8+3707_daily_bin358> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin358> 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) <bullet0093>, 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:12 2021
Results reported at Mon Sep  6 06:46:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin358 192.46 37.1306 332121601 332380801 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 :                                   717.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             236.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            916 sec.

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

