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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin333
RA = 192.46, Dec = 37.1306
tmin = 325641601, tmax = 325900801
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='935810', job_status='RUN', time_executed='2021-09-06 06:31:08.136756', time_epoch_executed='1630935068.14' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='333'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935810

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935810/ft1_4FGL_J1249.8+3707_daily_bin333.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935810/ft2_4FGL_J1249.8+3707_daily_bin333.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935810/ft1_4FGL_J1249.8+3707_daily_bin333.fits outfile=/scratch/kocevski/935810/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin333.fits ra=192.46 dec=37.1306 rad=12.0 tmin=325641601.0 tmax=325900801.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 5.23
user 3.81
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935810/ft2_4FGL_J1249.8+3707_daily_bin333.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/935810/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin333.fits evtable="EVENTS" outfile="/scratch/kocevski/935810/ft1_filtered_4FGL_J1249.8+3707_daily_bin333.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.83
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935810/ft1_filtered_4FGL_J1249.8+3707_daily_bin333.fits" evtable="EVENTS" scfile=/scratch/kocevski/935810/ft2_4FGL_J1249.8+3707_daily_bin333.fits sctable="SC_DATA" outfile=/scratch/kocevski/935810/ltcube_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.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/935810/ft2_4FGL_J1249.8+3707_daily_bin333.fits
.....................!
real 12.85
user 11.75
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935810/ft1_filtered_4FGL_J1249.8+3707_daily_bin333.fits evtable="EVENTS" scfile=/scratch/kocevski/935810/ft2_4FGL_J1249.8+3707_daily_bin333.fits sctable="SC_DATA" expcube=/scratch/kocevski/935810/ltcube_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.fits outfile=/scratch/kocevski/935810/expmap_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.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/935810/ltcube_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.fits
.....................!
real 193.74
user 185.83
sys 5.04

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/935810/ft1_filtered_4FGL_J1249.8+3707_daily_bin333.fits scfile=/scratch/kocevski/935810/ft2_4FGL_J1249.8+3707_daily_bin333.fits outfile=/scratch/kocevski/935810/cmap_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.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/935810/ft1_filtered_4FGL_J1249.8+3707_daily_bin333.fits scfile=/scratch/kocevski/935810/ft2_4FGL_J1249.8+3707_daily_bin333.fits outfile=/scratch/kocevski/935810/cmap_HighResolution_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.579       1.0000         .10000E-03   10000.    
     3 'norm      '    5.5577       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.9407       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .92172E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.865       1.0000         .10000E-03   10000.    
     8 'Prefactor '    38.660       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    17.209       1.0000         .10000E-03   10000.    
    17 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .98825       1.0000         .10000E-03   10000.    
    19 'norm      '    .11638E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .72488       1.0000         .10000E-03   10000.    
    22 'Prefactor '    36.328       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.750       1.0000         .10000E-03   10000.    
    24 'Prefactor '    23.096       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.1004       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .78756       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=   5340.672     FROM MIGRAD    STATUS=CONVERGED    635 CALLS     3151 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    24.349        .17981E-05** at limit **
   2  Prefactor     28.583        29.822        .41386E-07   -.11818E-04
   3  norm          5.5545        3.5974       -.17287E-07   -.26794E-03
   4  Prefactor     3.9404        5.5299       -.31829E-06   -.10856E-03
   5  Prefactor     .11420E-01    1.7387        .46444E-06   -.34355E-03
   6  Prefactor     .10000E-03    1.3096        .82599E-08** at limit **
   7  Prefactor     15.864        11.269        .41843E-07   -.24274E-04
   8  Prefactor     38.659        24.739        .86028E-07    .47167E-05
   9  Prefactor     .10000E-03    15.633       -.21866E-06** at limit **
  10  Prefactor     .10000E-03    129.53        .12033E-05** at limit **
  11  Prefactor     .10000E-03    2.2366       -.37020E-07** at limit **
  12  norm          .10002E-03    10.569        .18021E-05** at limit **
  13  Prefactor     .10000E-03    78.676       -.12539E-07** at limit **
  14  Prefactor     .10000E-03    19.178       -.69969E-07** at limit **
  15  Prefactor     .10000E-03    7.6228        .15405E-07** at limit **
  16  norm          17.210        7.7451       -.31384E-06   -.71275E-03
  17  norm          .10000E-03    15.747        .14223E-05** at limit **
  18  norm          .98617        3.9053       -.44634E-06   -.67765E-03
  19  norm          .10006E-03    8.9434        .11165E-05** at limit **
  20  Prefactor     .10000E-03    1.7126        .15795E-05** at limit **
  21  Prefactor     .74631        60.976        .91745E-05   -.29742E-03
  22  Prefactor     36.288        71.137       -.60462E-05   -.12650E-03
  23  Prefactor     41.743        25.238       -.16675E-05   -.36397E-03
  24  Prefactor     23.099        66.749       -.14170E-05   -.37402E-04
  25  Normalizat    1.1006        .18411       -.68218E-06   -.39512E-03
  26  Prefactor     .78733        .21871        .61365E-06   -.27848E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 28.5825
  norm       = 5.55449
  Prefactor  = 3.94042
  Prefactor  = 0.0114204
  Prefactor  = 0.0001
  Prefactor  = 15.8645
  Prefactor  = 38.659
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 17.2095
  norm       = 0.000100002
  norm       = 0.986173
  norm       = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 0.746313
  Prefactor  = 36.2879
  Prefactor  = 41.7432
  Prefactor  = 23.0995
  Normalizat = 1.10061
  Prefactor  = 0.787326
 **********
 **   18 **HESSE 
 **********

 FCN=   5340.672     FROM HESSE     STATUS=OK           464 CALLS     3615 TOTAL
                     EDM=   .14E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    24.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.583        29.808        .74942E-04   -1.4638    
   3  norm          5.5545        3.9670        .95675E-04   -1.5237    
   4  Prefactor     3.9404        5.5174        .19710E-03   -1.5311    
   5  Prefactor     .11420E-01    4.8796        .28746E-01   -1.5687    
   6  Prefactor     .10000E-03    1.3363        .81495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     15.864        11.263        .10055E-03   -1.4911    
   8  Prefactor     38.659        24.768        .64463E-04   -1.4464    
   9  Prefactor     .10000E-03    15.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    129.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    2.2427        .10671E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10002E-03    22.146        .29870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    78.970        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.237        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.6358        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          17.210        7.7461        .96547E-04   -1.4878    
  17  norm          .10000E-03    79.119        .52498E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .98617        4.4512        .27459E-03   -1.5509    
  19  norm          .10006E-03    19.044        .33432E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7496        .93948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .74631        94.690        .42002E-02   -1.5535    
  22  Prefactor     36.288        73.725        .66492E-04   -1.4502    
  23  Prefactor     41.743        25.321        .62040E-04   -1.4415    
  24  Prefactor     23.099        66.891        .83347E-04   -1.4746    
  25  Normalizat    1.1006        .21475        .22355E-03   -.89732    
  26  Prefactor     .78733        .25258        .31195E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.38849e-07
Minuit parameter uncertainties:
  1  0.000296272
  2  29.8237
  3  3.96715
  4  5.51815
  5  0.4701
  6  3.53963e-07
  7  11.2642
  8  24.7746
  9  1.68787e-05
  10  0.000562421
  11  4.44177e-07
  12  0.00148291
  13  2.2813e-05
  14  4.48392e-07
  15  8.7453e-06
  16  7.74651
  17  0.000844341
  18  4.19062
  19  0.00210316
  20  4.18292e-05
  21  16.8391
  22  73.9113
  23  25.3272
  24  67.1097
  25  0.214917
  26  0.252949
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.688e-05  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:  7.873e-01  2.529e-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.101e+00  2.149e-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: 4.01e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/935810/likelihoodResults_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.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) = 5340.67261762
delta logL = -0.000302537393509

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5340.67232217
delta logL = -7.08386960468e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .29878E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.8688       1.0000          .0000       10.000    
     3 'Normalizat'    1.1006       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78732       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=   5340.672     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      231 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.7597        .10696E-01** at limit **
   2  Index         1.8682        8.6823        .50000        .14996E-04
   3  Normalizat    1.1006        .22302E-02    .37975E-01    .52502E-04
   4  Prefactor     .78733        .26903E-02    .70498E-01    .51246E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.86823
  Normalizat = 1.10062
  Prefactor  = 0.787327
 **********
 **   18 **HESSE 
 **********

 FCN=   5340.672     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      264 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    30.682        .21391E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8682        5.7316        .50000       -.67687    
   3  Normalizat    1.1006        .63426E-02    .22355E-03   -.89732    
   4  Prefactor     .78733        .76390E-02    .31195E-03   -1.0020    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.81104e-08
Minuit parameter uncertainties:
  1  1.63222e-05
  2  50.8845
  3  0.00634262
  4  0.00763903
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935810': 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) = 5340.67231534
delta logL = -2.5682948035e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.632e-05  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.868e+00  5.088e+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:  7.873e-01  7.639e-03  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.101e+00  6.343e-03  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/935810/cmap_HighResolution_325641601_325900801_4FGL_J1249.8+3707_daily_bin333.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.95e-03', job_status='DONE', photon_flux_upper_limit='4.01e-08', time_completed='2021-09-06 06:43:02.175918', job_id='935810', GAL2='0.79', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1630935782.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='-2.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='333' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:43:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 935810: <4FGL_J1249.8+3707_daily_bin333> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin333 192.46 37.1306 325641601 325900801 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 :                                   704.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             342.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   727 sec.
    Turnaround time :                            729 sec.

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

