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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin164
RA = 192.46, Dec = 37.1306
tmin = 281836801, tmax = 282096001
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='934491', job_status='RUN', time_executed='2021-09-06 06:28:22.967151', time_epoch_executed='1630934902.97' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='164'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934491/ft1_4FGL_J1249.8+3707_daily_bin164.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934491/ft1_4FGL_J1249.8+3707_daily_bin164.fits outfile=/scratch/kocevski/934491/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin164.fits ra=192.46 dec=37.1306 rad=12.0 tmin=281836801.0 tmax=282096001.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.10
user 3.82
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934491/ft1_filtered_4FGL_J1249.8+3707_daily_bin164.fits" evtable="EVENTS" scfile=/scratch/kocevski/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits sctable="SC_DATA" outfile=/scratch/kocevski/934491/ltcube_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.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/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits
.....................!
real 12.04
user 11.60
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934491/ft1_filtered_4FGL_J1249.8+3707_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits sctable="SC_DATA" expcube=/scratch/kocevski/934491/ltcube_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.fits outfile=/scratch/kocevski/934491/expmap_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.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/934491/ltcube_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.fits
.....................!
real 191.94
user 185.99
sys 4.96

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/934491/ft1_filtered_4FGL_J1249.8+3707_daily_bin164.fits scfile=/scratch/kocevski/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits outfile=/scratch/kocevski/934491/cmap_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934491/ft1_filtered_4FGL_J1249.8+3707_daily_bin164.fits scfile=/scratch/kocevski/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits outfile=/scratch/kocevski/934491/cmap_HighResolution_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.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/934491/ft1_filtered_4FGL_J1249.8+3707_daily_bin164.fits evtable="EVENTS" scfile=/scratch/kocevski/934491/ft2_4FGL_J1249.8+3707_daily_bin164.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934491/Model_4FGL_J1249.8+3707_daily_bin164.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/934491/ft1_filtered_4FGL_J1249.8+3707_daily_bin164.fits.....................!
real 47.48
user 46.11
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.969       1.0000         .10000E-03   10000.    
     2 'Prefactor '    15.663       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    6.1459       1.0000         .10000E-03   10000.    
     7 'Prefactor '   10.0000       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7131       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.808       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.9686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8451       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10481E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .27084E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    4.9429       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2269       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81614       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=   5602.923     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     2662 TOTAL
                     EDM=   .49E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.976        46.548        .74527E-07    .10159E-04
   2  Prefactor     15.664        16.913        .19153E-07   -.51369E-05
   3  norm          .10000E-03    1.0916        .43888E-07** at limit **
   4  Prefactor     .10000E-03    2.8640        .11159E-06** at limit **
   5  Prefactor     .10000E-03    1.5381        .16563E-06** at limit **
   6  Prefactor     6.1457        3.0060       -.12366E-06   -.11817E-03
   7  Prefactor     9.9994        11.451        .16708E-05   -.23582E-04
   8  Prefactor     .10000E-03    8.2335       -.17609E-06** at limit **
   9  Prefactor     7.7090        12.195        .76987E-07    .67442E-05
  10  Prefactor     .10000E-03    19.823       -.81573E-08** at limit **
  11  Prefactor     18.810        7.5484       -.37982E-07    .39421E-05
  12  norm          4.1493        5.2822       -.20997E-06    .20320E-04
  13  Prefactor     4.8966        182.21       -.17036E-05   -.90090E-05
  14  Prefactor     1.8654        91.272        .30806E-05    .21869E-04
  15  Prefactor     .10000E-03    6.9203        .54760E-07** at limit **
  16  norm          .10000E-03    3.0775        .55859E-07** at limit **
  17  norm          .10000E-03    15.618       -.28940E-05** at limit **
  18  norm          .10000E-03    2.4635       -.25428E-06** at limit **
  19  norm          4.9374        5.8452       -.94130E-07    .13533E-03
  20  Prefactor     .10000E-03    1.2315        .63449E-07** at limit **
  21  Prefactor     .10000E-03    4.6998        .79534E-07** at limit **
  22  Prefactor     .10000E-03    20.623        .15128E-06** at limit **
  23  Prefactor     .10000E-03    8.8697        .23886E-06** at limit **
  24  Prefactor     .10000E-03    133.69        .94241E-06** at limit **
  25  Normalizat    1.2268        .18425        .75438E-06   -.38439E-04
  26  Prefactor     .81622        .22991       -.20858E-05    .40960E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.9758
  Prefactor  = 15.6642
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.14571
  Prefactor  = 9.99943
  Prefactor  = 0.0001
  Prefactor  = 7.70898
  Prefactor  = 0.0001
  Prefactor  = 18.8095
  norm       = 4.14926
  Prefactor  = 4.89662
  Prefactor  = 1.86536
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 4.93738
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22682
  Prefactor  = 0.816219
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.923     FROM HESSE     STATUS=OK           456 CALLS     3118 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.976        46.548        .44911E-04   -1.3917    
   2  Prefactor     15.664        16.911        .10120E-03   -1.4916    
   3  norm          .10000E-03    1.1000        .76245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8742        .12372E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    3.2328        .17678E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     6.1457        2.9712        .84754E-04   -1.5212    
   7  Prefactor     9.9994        11.512        .63357E-03   -1.5075    
   8  Prefactor     .10000E-03    8.2432        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7090        12.188        .14439E-03   -1.5153    
  10  Prefactor     .10000E-03    19.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     18.810        7.5413        .92352E-04   -1.4840    
  12  norm          4.1493        5.1395        .16617E-03   -1.5301    
  13  Prefactor     4.8966        184.40        .18042E-03   -1.5265    
  14  Prefactor     1.8654        82.511        .30702E-03   -1.5435    
  15  Prefactor     .10000E-03    6.9606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.1281        .12818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    15.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    10.025        .19730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          4.9374        5.4548        .17583E-03   -1.5264    
  20  Prefactor     .10000E-03    1.2402        .81030E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.7072        .15845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    20.636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.8978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    134.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2268        .20980        .21369E-03   -.85778    
  26  Prefactor     .81622        .25893        .32206E-03   -.99133    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90107e-10
Minuit parameter uncertainties:
  1  46.5694
  2  16.9165
  3  5.18841e-07
  4  8.80496e-07
  5  4.01391e-05
  6  2.9713
  7  11.5142
  8  1.72565e-05
  9  12.1924
  10  1.33885e-05
  11  7.54163
  12  5.14005
  13  60.299
  14  24.8482
  15  5.37508e-06
  16  1.5774e-06
  17  2.62471e-05
  18  0.000274672
  19  5.4553
  20  2.6065e-07
  21  5.04337e-07
  22  2.17688e-05
  23  2.05178e-05
  24  4.3014e-05
  25  0.209945
  26  0.259313
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  7.709e+00  1.219e+01  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.162e-01  2.593e-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.227e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.71
Ra Dec: 192.460 37.131
Photon Flux Upper Limit: 4.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934491/likelihoodResults_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.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): 0
logL (Free Index) = 5602.50443951
delta logL = 0.418518543375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5602.5020464
delta logL = 0.420911649357

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.309       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1808       1.0000          .0000       10.000    
     3 'Normalizat'    1.2301       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81168       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=   5602.502     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      296 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.310        21.144        .96267E-04   -.51752E-03
   2  Index         1.1808        .58107        .11384E-01   -.18418E-03
   3  Normalizat    1.2302        .20457        .21339E-03    .52893E-04
   4  Prefactor     .81160        .25769        .32272E-03    .39278E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.3102
  Index      = 1.18082
  Normalizat = 1.23018
  Prefactor  = 0.8116
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.502     FROM HESSE     STATUS=OK            23 CALLS      319 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.310        21.129        .19253E-04   -1.4876    
   2  Index         1.1808        .58086        .45537E-03   -.86924    
   3  Normalizat    1.2302        .20476        .42678E-04   -.85675    
   4  Prefactor     .81160        .25793        .12909E-04   -.99302    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85244e-09
Minuit parameter uncertainties:
  1  21.1379
  2  0.584039
  3  0.204897
  4  0.258318
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934491': 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) = 5602.50204635
delta logL = 0.420911706046

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.731e+01  2.114e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.181e+00  5.840e-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.116e-01  2.583e-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.230e+00  2.049e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.56
Ra Dec: 192.460 37.131
Photon Index (Free Index): 1.18 +/- 0.58
Photon Flux (Free Index): 5.34e-09 +/- 7.15e-09
Energy Flux (Free Index): 4.72e-05 +/- 8.01e-05

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/934491/cmap_HighResolution_281836801_282096001_4FGL_J1249.8+3707_daily_bin164.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.35e-03', comment='SUCCESS', energy_flux2='4.72e-05', dlogl='4.21e-01', photon_flux2='5.34e-09', job_status='DONE', time_completed='2021-09-06 06:40:16.013493', photon_index_error2='0.58', photon_index2='1.18', ts='0.71', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='4.55e-08', energy_flux_error2='8.01e-05', EG='1.23', time_epoch_completed='1630935616.01', return_code='0', job_id='934491', GAL2='0.81', EG2='1.23', return_code2='0', photon_flux_error2='7.15e-09', ts2='1.56', photon_index='1.78' WHERE bin_id='164' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:40:16 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin164 192.46 37.1306 281836801 282096001 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.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   853 sec.
    Turnaround time :                            855 sec.

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

