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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin181
RA = 192.46, Dec = 37.1306
tmin = 286243201, tmax = 286502401
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='934527', job_status='RUN', time_executed='2021-09-06 06:26:23.607486', time_epoch_executed='1630934783.61' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='181'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934527

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934527/ft1_4FGL_J1249.8+3707_daily_bin181.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934527/ft2_4FGL_J1249.8+3707_daily_bin181.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934527/ft1_4FGL_J1249.8+3707_daily_bin181.fits outfile=/scratch/kocevski/934527/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin181.fits ra=192.46 dec=37.1306 rad=12.0 tmin=286243201.0 tmax=286502401.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.45
user 3.20
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934527/ft1_filtered_4FGL_J1249.8+3707_daily_bin181.fits" evtable="EVENTS" scfile=/scratch/kocevski/934527/ft2_4FGL_J1249.8+3707_daily_bin181.fits sctable="SC_DATA" outfile=/scratch/kocevski/934527/ltcube_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.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/934527/ft2_4FGL_J1249.8+3707_daily_bin181.fits
.....................!
real 11.77
user 11.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934527/ft1_filtered_4FGL_J1249.8+3707_daily_bin181.fits evtable="EVENTS" scfile=/scratch/kocevski/934527/ft2_4FGL_J1249.8+3707_daily_bin181.fits sctable="SC_DATA" expcube=/scratch/kocevski/934527/ltcube_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.fits outfile=/scratch/kocevski/934527/expmap_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.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/934527/ltcube_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.fits
.....................!
real 191.69
user 185.58
sys 5.50

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934527/ft1_filtered_4FGL_J1249.8+3707_daily_bin181.fits scfile=/scratch/kocevski/934527/ft2_4FGL_J1249.8+3707_daily_bin181.fits outfile=/scratch/kocevski/934527/cmap_HighResolution_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.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.54
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10225E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    4.4705       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.8978       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.8783       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.396       1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.3563       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7188       1.0000         .10000E-03   10000.    
    12 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10653E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.686       1.0000         .10000E-03   10000.    
    16 'norm      '    .10547E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    13.107       1.0000         .10000E-03   10000.    
    18 'norm      '    .10860E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.1034       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10291E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9093       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .83117       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1608       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=   5413.878     FROM MIGRAD    STATUS=CONVERGED   1098 CALLS     3565 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.887        .18142E-02** at limit **
   2  Prefactor     .10002E-03    38.646        .11246    ** at limit **
   3  norm          4.4699        3.3489        .10461E-03    .17389E-05
   4  Prefactor     .10000E-03    2.7410        .11884E-02** at limit **
   5  Prefactor     4.8976        2.8018        .84049E-04    .12715E-04
   6  Prefactor     2.8789        2.3146        .95154E-04    .38233E-05
   7  Prefactor     21.392        12.079        .86593E-04    .22319E-05
   8  Prefactor     7.3554        13.845        .73939E-03   -.18251E-04
   9  Prefactor     .10000E-03    6.7339        .18142E-02** at limit **
  10  Prefactor     .10000E-03    28.455        .18142E-02** at limit **
  11  Prefactor     5.7178        5.4061        .15494E-03    .11007E-05
  12  norm          .10000E-03    2.8302        .11944E-02** at limit **
  13  Prefactor     .10000E-03    93.410        .18142E-02** at limit **
  14  Prefactor     .10000E-03    38.267        .18142E-02** at limit **
  15  Prefactor     20.679        17.725        .88064E-04    .25819E-05
  16  norm          .10000E-03    4.2193        .14623E-02** at limit **
  17  norm          13.106        13.930        .55319E-03   -.89192E-05
  18  norm          .10002E-03    8.8396        .18475E-02** at limit **
  19  norm          5.0958        5.5433        .17305E-03    .38701E-03
  20  Prefactor     .10000E-03    1.1146        .75414E-03** at limit **
  21  Prefactor     3.9039        12.481        .10203E-02    .13048E-04
  22  Prefactor     .10000E-03    14.014        .18142E-02** at limit **
  23  Prefactor     .10000E-03    12.358        .18142E-02** at limit **
  24  Prefactor     .10000E-03    33.972        .18142E-02** at limit **
  25  Normalizat    .83117        .19657        .23872E-03    .86200E-04
  26  Prefactor     1.1608        .25004        .26548E-03    .72928E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100018
  norm       = 4.46989
  Prefactor  = 0.0001
  Prefactor  = 4.89759
  Prefactor  = 2.87892
  Prefactor  = 21.3922
  Prefactor  = 7.35544
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6788
  norm       = 0.0001
  norm       = 13.1061
  norm       = 0.000100018
  norm       = 5.09581
  Prefactor  = 0.0001
  Prefactor  = 3.90389
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.831167
  Prefactor  = 1.16081
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.878     FROM HESSE     STATUS=OK           442 CALLS     4007 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.888        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    36.387        .11701       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.4699        3.3490        .41842E-05   -1.5285    
   4  Prefactor     .10000E-03    2.7411        .23768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.8976        2.8019        .33620E-05   -1.5265    
   6  Prefactor     2.8789        2.3145        .38061E-05   -1.5369    
   7  Prefactor     21.392        12.079        .34637E-05   -1.4783    
   8  Prefactor     7.3554        13.845        .29575E-04   -1.5165    
   9  Prefactor     .10000E-03    6.7340        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.456        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.7178        5.4057        .61974E-05   -1.5230    
  12  norm          .10000E-03    2.8313        .23887E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    93.425        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.288        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.679        17.723        .35226E-05   -1.4798    
  16  norm          .10000E-03    4.2205        .29247E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          13.106        13.930        .22128E-04   -1.4984    
  18  norm          .10002E-03    8.8476        .36949E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.0958        5.5253        .69221E-05   -1.5256    
  20  Prefactor     .10000E-03    1.1146        .15083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     3.9039        12.472        .40811E-04   -1.5313    
  22  Prefactor     .10000E-03    14.015        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    12.362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    33.974        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .83117        .19675        .95486E-05   -.98923    
  26  Prefactor     1.1608        .25030        .10619E-04   -.87546    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13773e-09
Minuit parameter uncertainties:
  1  1.48564e-05
  2  0.00160139
  3  3.34917
  4  8.17899e-07
  5  2.80198
  6  2.31457
  7  12.0806
  8  13.8506
  9  2.2266e-06
  10  9.51844e-05
  11  5.40616
  12  1.37612e-06
  13  3.62672e-05
  14  0.00013097
  15  17.728
  16  2.08346e-06
  17  13.9334
  18  0.00079968
  19  5.52587
  20  2.27849e-06
  21  12.4802
  22  6.65274e-05
  23  2.61837e-05
  24  9.82827e-06
  25  0.196917
  26  0.250552
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.227e-06  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.780e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  4.011e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  1.161e+00  2.506e-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:  8.312e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/934527/likelihoodResults_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.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) = 5413.87903168
delta logL = -0.000701595748069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5413.87833029
delta logL = -2.03072886507e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10578E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7526       1.0000          .0000       10.000    
     3 'Normalizat'    .83119       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1608       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=   5413.878     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      240 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10128E-03    48.065        .18142E-02** at limit **
   2  Index         1.6966        7.1953        .50000        .24846E-04
   3  Normalizat    .83117        .10489E-01    .23872E-03    .47148E-05
   4  Prefactor     1.1608        .13614E-01    .26548E-03    .10449E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101279
  Index      = 1.69665
  Normalizat = 0.831166
  Prefactor  = 1.16081
 **********
 **   18 **HESSE 
 **********

 FCN=   5413.878     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      269 TOTAL
                     EDM=   .52E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10128E-03    229.49        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.6966        5.0859        .50000       -.72171    
   3  Normalizat    .83117        .23636E-01    .95487E-05   -.98923    
   4  Prefactor     1.1608        .30675E-01    .10619E-04   -.87546    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.15885e-08
Minuit parameter uncertainties:
  1  0.0344028
  2  383.529
  3  0.0236366
  4  0.030675
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934527': 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) = 5413.87832955
delta logL = 5.29931639903e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.013e-04  3.440e-02  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.697e+00  3.835e+02  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.161e+00  3.067e-02  0.000e+00  1.000e+01 ( 1.000e+00)
626        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
627        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
624   Normalization:  8.312e-01  2.364e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 192.460 37.131

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/934527/cmap_HighResolution_286243201_286502401_4FGL_J1249.8+3707_daily_bin181.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.37e-03', job_status='DONE', photon_flux_upper_limit='3.22e-08', time_completed='2021-09-06 06:38:52.917566', job_id='934527', GAL2='1.16', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630935532.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='5.30e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='181' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 934527: <4FGL_J1249.8+3707_daily_bin181> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin181 192.46 37.1306 286243201 286502401 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 :                                   746.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             375.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   766 sec.
    Turnaround time :                            767 sec.

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

