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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin261
RA = 192.46, Dec = 37.1306
tmin = 306979201, tmax = 307238401
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='935711', job_status='RUN', time_executed='2021-09-06 06:33:39.373333', time_epoch_executed='1630935219.37' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='261'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935711

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935711/ft1_4FGL_J1249.8+3707_daily_bin261.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935711/ft2_4FGL_J1249.8+3707_daily_bin261.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935711/ft1_4FGL_J1249.8+3707_daily_bin261.fits outfile=/scratch/kocevski/935711/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin261.fits ra=192.46 dec=37.1306 rad=12.0 tmin=306979201.0 tmax=307238401.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 14.01
user 13.54
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935711/ft2_4FGL_J1249.8+3707_daily_bin261.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/935711/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin261.fits evtable="EVENTS" outfile="/scratch/kocevski/935711/ft1_filtered_4FGL_J1249.8+3707_daily_bin261.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935711/ft1_filtered_4FGL_J1249.8+3707_daily_bin261.fits evtable="EVENTS" scfile=/scratch/kocevski/935711/ft2_4FGL_J1249.8+3707_daily_bin261.fits sctable="SC_DATA" expcube=/scratch/kocevski/935711/ltcube_306979201_307238401_4FGL_J1249.8+3707_daily_bin261.fits outfile=/scratch/kocevski/935711/expmap_306979201_307238401_4FGL_J1249.8+3707_daily_bin261.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/935711/ltcube_306979201_307238401_4FGL_J1249.8+3707_daily_bin261.fits
.....................!
real 191.18
user 186.22
sys 4.44

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935711/ft1_filtered_4FGL_J1249.8+3707_daily_bin261.fits scfile=/scratch/kocevski/935711/ft2_4FGL_J1249.8+3707_daily_bin261.fits outfile=/scratch/kocevski/935711/cmap_HighResolution_306979201_307238401_4FGL_J1249.8+3707_daily_bin261.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    27.876       1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.676       1.0000         .10000E-03   10000.    
     3 'norm      '    11.897       1.0000         .10000E-03   10000.    
     4 'Prefactor '    13.995       1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.0212       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.5411       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .18086E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.8426       1.0000         .10000E-03   10000.    
    10 'Prefactor '    87.939       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17142E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10648E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    7.2609       1.0000         .10000E-03   10000.    
    18 'norm      '    17.499       1.0000         .10000E-03   10000.    
    19 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    18.781       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    39.798       1.0000         .10000E-03   10000.    
    24 'Prefactor '    68.124       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .56928       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1343       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=   3352.772     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     3092 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.826        62.862        .40265E-06   -.22733E-04
   2  Prefactor     54.631        55.613       -.58276E-07   -.42862E-04
   3  norm          11.896        6.6234       -.15879E-07   -.20945E-03
   4  Prefactor     13.995        10.402       -.36369E-07   -.56356E-04
   5  Prefactor     4.0209        3.9219        .35294E-08   -.16207E-03
   6  Prefactor     5.5368        5.0865       -.90142E-07   -.36620E-03
   7  Prefactor     .10129E-03    24.571        .21936E-05** at limit **
   8  Prefactor     .10000E-03    6.9325        .10239E-06** at limit **
   9  Prefactor     9.8945        21.910       -.40157E-05   -.25458E-03
  10  Prefactor     87.892        117.87       -.85715E-06   -.51016E-04
  11  Prefactor     .10003E-03    12.666        .34431E-05** at limit **
  12  norm          .10000E-03    3.0515       -.72053E-07** at limit **
  13  Prefactor     .10000E-03    14.108        .80895E-07** at limit **
  14  Prefactor     .10000E-03    117.89        .14492E-05** at limit **
  15  Prefactor     .10000E-03    13.292        .18785E-06** at limit **
  16  norm          .10000E-03    8.9695        .40254E-06** at limit **
  17  norm          7.2607        8.8712       -.12081E-07   -.10636E-04
  18  norm          17.500        7.9009       -.14372E-06   -.26905E-03
  19  norm          .10000E-03    6.1296        .27195E-06** at limit **
  20  Prefactor     .10000E-03    3.1229        .55074E-07** at limit **
  21  Prefactor     18.781        22.001       -.11855E-06   -.59465E-04
  22  Prefactor     .10000E-03    30.421       -.18749E-06** at limit **
  23  Prefactor     39.793        36.197        .15490E-06   -.18176E-04
  24  Prefactor     67.998        105.45       -.99422E-06   -.53506E-04
  25  Normalizat    .56937        .23264        .28754E-05   -.39985E-03
  26  Prefactor     1.1343        .28163       -.41085E-05   -.25973E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8265
  Prefactor  = 54.6314
  norm       = 11.8956
  Prefactor  = 13.9949
  Prefactor  = 4.02094
  Prefactor  = 5.53677
  Prefactor  = 0.000101287
  Prefactor  = 0.0001
  Prefactor  = 9.89449
  Prefactor  = 87.8925
  Prefactor  = 0.000100027
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 7.26066
  norm       = 17.4997
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7806
  Prefactor  = 0.0001
  Prefactor  = 39.7933
  Prefactor  = 67.9982
  Normalizat = 0.569372
  Prefactor  = 1.1343
 **********
 **   18 **HESSE 
 **********

 FCN=   3352.772     FROM HESSE     STATUS=OK           462 CALLS     3554 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.826        62.925        .75880E-04   -1.4652    
   2  Prefactor     54.631        55.637        .54246E-04   -1.4228    
   3  norm          11.896        6.6533        .97207E-04   -1.5018    
   4  Prefactor     13.995        10.401        .10707E-03   -1.4960    
   5  Prefactor     4.0209        3.9339        .10147E-03   -1.5307    
   6  Prefactor     5.5368        5.0755        .11303E-03   -1.5237    
   7  Prefactor     .10129E-03    30.656        .75776E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.9337        .14891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.8945        22.670        .12773E-03   -1.5079    
  10  Prefactor     87.892        117.86        .21422E-03   -1.3830    
  11  Prefactor     .10003E-03    35.654        .35428E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    3.0541        .98710E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    14.109        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    118.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    9.1301        .16922E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          7.2607        8.8702        .14885E-03   -1.5169    
  18  norm          17.500        7.8879        .95745E-04   -1.4871    
  19  norm          .10000E-03    6.1395        .13983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.1417        .99693E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     18.781        21.971        .92419E-04   -1.4841    
  22  Prefactor     .10000E-03    30.421        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     39.793        36.197        .63537E-04   -1.4445    
  24  Prefactor     67.998        105.50        .24315E-03   -1.4057    
  25  Normalizat    .56937        .26231        .28116E-03   -1.0930    
  26  Prefactor     1.1343        .31385        .25635E-03   -.88378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73931e-09
Minuit parameter uncertainties:
  1  63.0755
  2  55.6899
  3  6.6537
  4  10.4028
  5  3.93416
  6  5.07585
  7  0.0125709
  8  2.79675e-08
  9  22.6901
  10  118.174
  11  0.00195099
  12  2.0683e-06
  13  1.10069e-06
  14  6.8845e-05
  15  4.42726e-06
  16  3.80334e-07
  17  8.87183
  18  7.8884
  19  6.05688e-06
  20  2.22806e-06
  21  21.98
  22  9.23569e-06
  23  36.2173
  24  105.788
  25  0.26288
  26  0.31436
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  9.894e+00  2.269e+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:  1.134e+00  3.144e-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:  5.694e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935711/likelihoodResults_306979201_307238401_4FGL_J1249.8+3707_daily_bin261.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) = 3352.59034507
delta logL = 0.181760455335

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3352.58631351
delta logL = 0.185792017205

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.4961       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4921       1.0000          .0000       10.000    
     3 'Normalizat'    .55454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1416       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=   3352.586     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      296 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.4930        47.118        .16314E-03   -.38460E-03
   2  Index         2.4926        2.5267        .59724E-02   -.77772E-04
   3  Normalizat    .55459        .25385        .28471E-03    .25552E-03
   4  Prefactor     1.1415        .31570        .25557E-03    .17147E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.49301
  Index      = 2.49265
  Normalizat = 0.554585
  Prefactor  = 1.14146
 **********
 **   18 **HESSE 
 **********

 FCN=   3352.586     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.4930        12.423        .65256E-05   -1.5334    
   2  Index         2.4926        1.2853        .23890E-03   -.52530    
   3  Normalizat    .55459        .24894        .11388E-04   -1.0995    
   4  Prefactor     1.1415        .31130        .51113E-04   -.88152    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68242e-10
Minuit parameter uncertainties:
  1  12.4321
  2  1.30496
  3  0.249445
  4  0.311804
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935711': 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) = 3352.58631328
delta logL = 0.185792239987

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  3.493e+00  1.243e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.493e+00  1.305e+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:  1.141e+00  3.118e-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:  5.546e-01  2.494e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
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/935711/cmap_HighResolution_306979201_307238401_4FGL_J1249.8+3707_daily_bin261.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.52e-03', job_status='DONE', photon_flux_upper_limit='7.51e-08', time_completed='2021-09-06 06:43:55.757967', job_id='935711', GAL2='1.14', fit_tolerance='1e-08', EG2='0.55', EG='0.57', time_epoch_completed='1630935835.76', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.86e-01', ts2='0.63', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='261' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:43:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 935711: <4FGL_J1249.8+3707_daily_bin261> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin261 192.46 37.1306 306979201 307238401 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 :                                   608.34 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             210.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            790 sec.

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

