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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin920
RA = 192.46, Dec = 37.1306
tmin = 477792001, tmax = 478051201
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='938905', job_status='RUN', time_executed='2021-09-06 06:43:17.600046', time_epoch_executed='1630935797.6' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='920'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938905

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938905/ft1_4FGL_J1249.8+3707_daily_bin920.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938905/ft2_4FGL_J1249.8+3707_daily_bin920.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938905/ft1_4FGL_J1249.8+3707_daily_bin920.fits outfile=/scratch/kocevski/938905/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin920.fits ra=192.46 dec=37.1306 rad=12.0 tmin=477792001.0 tmax=478051201.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.64
user 3.42
sys 0.18

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938905/ft1_filtered_4FGL_J1249.8+3707_daily_bin920.fits evtable="EVENTS" scfile=/scratch/kocevski/938905/ft2_4FGL_J1249.8+3707_daily_bin920.fits sctable="SC_DATA" expcube=/scratch/kocevski/938905/ltcube_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.fits outfile=/scratch/kocevski/938905/expmap_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.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/938905/ltcube_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.fits
.....................!
real 191.08
user 185.16
sys 5.03

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/938905/ft1_filtered_4FGL_J1249.8+3707_daily_bin920.fits scfile=/scratch/kocevski/938905/ft2_4FGL_J1249.8+3707_daily_bin920.fits outfile=/scratch/kocevski/938905/cmap_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938905/ft1_filtered_4FGL_J1249.8+3707_daily_bin920.fits scfile=/scratch/kocevski/938905/ft2_4FGL_J1249.8+3707_daily_bin920.fits outfile=/scratch/kocevski/938905/cmap_HighResolution_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.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.52
user 0.39
sys 0.12

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/938905/ft1_filtered_4FGL_J1249.8+3707_daily_bin920.fits', '/scratch/kocevski/938905/ft2_4FGL_J1249.8+3707_daily_bin920.fits', expMap='/scratch/kocevski/938905/expmap_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.fits', expCube='/scratch/kocevski/938905/ltcube_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/938905/Model_4FGL_J1249.8+3707_daily_bin920.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/938905/ft1_filtered_4FGL_J1249.8+3707_daily_bin920.fits
Spacecraft file(s): /scratch/kocevski/938905/ft2_4FGL_J1249.8+3707_daily_bin920.fits
Exposure map: /scratch/kocevski/938905/expmap_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.fits
Exposure cube: /scratch/kocevski/938905/ltcube_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/938905/Model_4FGL_J1249.8+3707_daily_bin920.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5350.09997848

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10267E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    9.1887       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.9940       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5359       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.347       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.7861       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7661       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .55661       1.0000         .10000E-03   10000.    
    16 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    14.278       1.0000         .10000E-03   10000.    
    18 'norm      '    1.0256       1.0000         .10000E-03   10000.    
    19 'norm      '    1.8924       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.4563       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10524E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .32818E-02   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2982       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .55465       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=   5350.007     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     2662 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    30.216       -.16042E-06** at limit **
   2  Prefactor     .10000E-03    37.966        .50998E-06** at limit **
   3  norm          9.1901        3.8429        .61254E-07   -.10044E-03
   4  Prefactor     .10000E-03    3.5084        .65811E-07** at limit **
   5  Prefactor     1.9943        2.0945        .41313E-07   -.29978E-04
   6  Prefactor     3.5365        2.5208        .80380E-07   -.71272E-04
   7  Prefactor     23.353        11.985        .13208E-06   -.40069E-04
   8  Prefactor     7.8014        19.835        .86565E-06    .77411E-06
   9  Prefactor     3.7638        19.328        .62261E-06   -.82802E-04
  10  Prefactor     .10000E-03    21.567        .21428E-06** at limit **
  11  Prefactor     .10000E-03    6.2666       -.11918E-06** at limit **
  12  norm          .10000E-03    2.3685       -.95782E-08** at limit **
  13  Prefactor     .10000E-03    26.081       -.12466E-06** at limit **
  14  Prefactor     .10000E-03    9.2636        .35273E-07** at limit **
  15  Prefactor     .66514        14.138        .23208E-05   -.41491E-03
  16  norm          .10000E-03    1.7810       -.84618E-08** at limit **
  17  norm          14.279        11.882        .39636E-07    .16452E-05
  18  norm          1.0175        3.0320        .16748E-05    .85156E-03
  19  norm          1.9063        4.6015        .20014E-05   -.14449E-03
  20  Prefactor     .10000E-03    3.5562       -.42363E-07** at limit **
  21  Prefactor     7.4419        13.272       -.77240E-08   -.22709E-03
  22  Prefactor     .10000E-03    72.814        .25843E-06** at limit **
  23  Prefactor     .10000E-03    9.9159       -.92397E-08** at limit **
  24  Prefactor     .10000E-03    554.66       -.19644E-04** at limit **
  25  Normalizat    1.2977        .18276       -.24919E-05    .64101E-04
  26  Prefactor     .55491        .21145        .11311E-05   -.87585E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.1901
  Prefactor  = 0.0001
  Prefactor  = 1.99425
  Prefactor  = 3.53646
  Prefactor  = 23.3527
  Prefactor  = 7.80138
  Prefactor  = 3.76382
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.665143
  norm       = 0.0001
  norm       = 14.2789
  norm       = 1.01755
  norm       = 1.9063
  Prefactor  = 0.0001
  Prefactor  = 7.44192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Normalizat = 1.29766
  Prefactor  = 0.554907
 **********
 **   18 **HESSE 
 **********

 FCN=   5350.007     FROM HESSE     STATUS=OK           458 CALLS     3120 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.273        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    38.208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          9.1901        3.8355        .86039E-04   -1.5102    
   4  Prefactor     .10000E-03    3.5261        .13379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.9943        2.0885        .10196E-03   -1.5426    
   6  Prefactor     3.5365        2.5171        .92459E-04   -1.5332    
   7  Prefactor     23.353        11.976        .82900E-04   -1.4741    
   8  Prefactor     7.8014        19.867        .14371E-03   -1.5149    
   9  Prefactor     3.7638        19.247        .20803E-03   -1.5320    
  10  Prefactor     .10000E-03    21.577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.3230        .17821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4061        .10986E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    26.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.2717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .66514        131.61        .49158E-02   -1.5545    
  16  norm          .10000E-03    1.7828        .95273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          14.279        11.882        .10600E-03   -1.4952    
  18  norm          1.0175        9.5753        .18036E-02   -1.5506    
  19  norm          1.9063        11.768        .92778E-03   -1.5432    
  20  Prefactor     .10000E-03    3.6462        .26705E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.4419        13.218        .14687E-03   -1.5162    
  22  Prefactor     .10000E-03    72.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.9427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    558.56        .39458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2977        .20757        .19735E-03   -.83636    
  26  Prefactor     .55491        .23801        .34989E-03   -1.0952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38453e-08
Minuit parameter uncertainties:
  1  8.95123e-05
  2  0.000179187
  3  3.83563
  4  5.15069e-06
  5  2.08857
  6  2.51715
  7  11.9776
  8  19.8841
  9  17.0312
  10  8.06694e-05
  11  1.53445e-05
  12  1.53533e-05
  13  8.05416e-05
  14  1.59437e-05
  15  18.7532
  16  4.64828e-06
  17  11.8841
  18  6.24387
  19  9.47509
  20  2.51319e-05
  21  13.2227
  22  0.000342951
  23  1.31456e-05
  24  0.00335754
  25  0.207702
  26  0.238436
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.764e+00  1.703e+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:  5.549e-01  2.384e-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.298e+00  2.077e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/938905/likelihoodResults_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.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) = 5349.58147433
delta logL = 0.42558950842

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5349.56343692
delta logL = 0.443626922987

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6328       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8606       1.0000          .0000       10.000    
     3 'Normalizat'    1.2669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .56898       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=   5349.563     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      254 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6225        50.444        .82721E-02    .58372E-03
   2  Index         2.8625        2.8024        .81547E-01    .18691E-03
   3  Normalizat    1.2666        .48110E-01    .33427E-01   -.87135E-06
   4  Prefactor     .56927        .55878E-01    .78023E-01    .27933E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.62252
  Index      = 2.86252
  Normalizat = 1.2666
  Prefactor  = 0.569269
 **********
 **   18 **HESSE 
 **********

 FCN=   5349.563     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      287 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6225        108.26        .10460E-03   -1.5453    
   2  Index         2.8625        6.4157        .49128E-02   -.44172    
   3  Normalizat    1.2666        .21070        .19936E-03   -.84569    
   4  Prefactor     .56927        .24296        .34551E-03   -1.0890    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33852e-09
Minuit parameter uncertainties:
  1  26.5561
  2  5.6077
  3  0.210843
  4  0.243406
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938905': 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) = 5349.56343398
delta logL = 0.443629858506

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.623e+00  2.656e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.863e+00  5.608e+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:  5.693e-01  2.434e-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.267e+00  2.108e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.86 +/- 5.61
Photon Flux (Free Index): 3.39e-08 +/- 6.09e-08
Energy Flux (Free Index): 7.29e-06 +/- 1.70e-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/938905/cmap_HighResolution_477792001_478051201_4FGL_J1249.8+3707_daily_bin920.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.81e-03', comment='SUCCESS', energy_flux2='7.29e-06', dlogl='4.44e-01', photon_flux2='3.39e-08', job_status='DONE', time_completed='2021-09-06 06:54:47.000813', photon_index_error2='5.61', photon_index2='2.86', ts='0.06', fit_tolerance='1e-08', GAL='0.55', photon_index_error='0.00', photon_flux_upper_limit='5.17e-08', energy_flux_error2='1.70e-05', EG='1.30', time_epoch_completed='1630936487.0', return_code='0', job_id='938905', GAL2='0.57', EG2='1.27', return_code2='102', photon_flux_error2='6.09e-08', ts2='1.01', photon_index='1.78' WHERE bin_id='920' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:54:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0204>
Subject: Job 938905: <4FGL_J1249.8+3707_daily_bin920> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin920 192.46 37.1306 477792001 478051201 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 :                                   681.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   843 sec.
    Turnaround time :                            845 sec.

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

