/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 170 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7393
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1249.8+3707_daily_bin152
RA = 192.46, Dec = 37.1306
tmin = 278726401, tmax = 278985601
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='934479', job_status='RUN', time_executed='2021-09-06 06:29:25.940908', time_epoch_executed='1630934965.94' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='152'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934479

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934479/ft1_4FGL_J1249.8+3707_daily_bin152.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934479/ft2_4FGL_J1249.8+3707_daily_bin152.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934479/ft1_4FGL_J1249.8+3707_daily_bin152.fits outfile=/scratch/kocevski/934479/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin152.fits ra=192.46 dec=37.1306 rad=12.0 tmin=278726401.0 tmax=278985601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.02
user 3.52
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934479/ft1_filtered_4FGL_J1249.8+3707_daily_bin152.fits evtable="EVENTS" scfile=/scratch/kocevski/934479/ft2_4FGL_J1249.8+3707_daily_bin152.fits sctable="SC_DATA" expcube=/scratch/kocevski/934479/ltcube_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.fits outfile=/scratch/kocevski/934479/expmap_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.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/934479/ltcube_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.fits
.....................!
real 190.90
user 185.44
sys 4.49

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/934479/ft1_filtered_4FGL_J1249.8+3707_daily_bin152.fits scfile=/scratch/kocevski/934479/ft2_4FGL_J1249.8+3707_daily_bin152.fits outfile=/scratch/kocevski/934479/cmap_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.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.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934479/ft1_filtered_4FGL_J1249.8+3707_daily_bin152.fits scfile=/scratch/kocevski/934479/ft2_4FGL_J1249.8+3707_daily_bin152.fits outfile=/scratch/kocevski/934479/cmap_HighResolution_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    29.783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10436E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .23764E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.4260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.583       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.882       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .77785       1.0000         .10000E-03   10000.    
    12 'norm      '    .16906E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.289       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.953       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.2218       1.0000         .10000E-03   10000.    
    18 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.2685       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0176       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.5406       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    71.374       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .65770       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.5946       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=   5788.585     FROM MIGRAD    STATUS=CONVERGED    621 CALLS     3095 TOTAL
                     EDM=   .71E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     29.797        31.028       -.11740E-05   -.52067E-04
   2  Prefactor     .10000E-03    59.695       -.12428E-05** at limit **
   3  norm          .10000E-03    1.0113       -.21578E-08** at limit **
   4  Prefactor     .10000E-03    4.9808       -.13256E-07** at limit **
   5  Prefactor     .10000E-03    1.2925       -.11126E-06** at limit **
   6  Prefactor     4.4271        2.6272        .15844E-07    .57618E-04
   7  Prefactor     34.581        15.029        .89159E-07    .85570E-05
   8  Prefactor     12.876        24.788        .37653E-06    .15992E-04
   9  Prefactor     .10000E-03    20.101        .43643E-06** at limit **
  10  Prefactor     .10000E-03    30.557        .11038E-05** at limit **
  11  Prefactor     .77666        13.086        .62275E-06    .15338E-04
  12  norm          .10005E-03    8.9656        .23293E-05** at limit **
  13  Prefactor     .10000E-03    34.692       -.88843E-06** at limit **
  14  Prefactor     13.329        27.442        .37954E-05   -.21415E-03
  15  Prefactor     17.953        20.528       -.33754E-07    .26015E-05
  16  norm          .10000E-03    2.0097       -.64961E-07** at limit **
  17  norm          1.2032        69.355        .10146E-04    .16530E-03
  18  norm          .10000E-03    3.4745       -.43744E-06** at limit **
  19  norm          8.2709        6.3013        .89931E-10   -.42868E-04
  20  Prefactor     2.0173        2.7324        .17466E-07   -.21825E-04
  21  Prefactor     6.5393        11.448        .41874E-07   -.34725E-05
  22  Prefactor     .10000E-03    15.519        .13064E-06** at limit **
  23  Prefactor     .10000E-03    6.8301       -.72097E-07** at limit **
  24  Prefactor     71.328        79.388        .53540E-05    .92019E-04
  25  Normalizat    .65763        .18525        .33015E-06    .31499E-04
  26  Prefactor     1.5948        .23290       -.40499E-06    .31761E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 29.797
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.42713
  Prefactor  = 34.5811
  Prefactor  = 12.8764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.776658
  norm       = 0.000100051
  Prefactor  = 0.0001
  Prefactor  = 13.3289
  Prefactor  = 17.9529
  norm       = 0.0001
  norm       = 1.20322
  norm       = 0.0001
  norm       = 8.2709
  Prefactor  = 2.01725
  Prefactor  = 6.53934
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 71.3282
  Normalizat = 0.657633
  Prefactor  = 1.5948
 **********
 **   18 **HESSE 
 **********

 FCN=   5788.585     FROM HESSE     STATUS=OK           458 CALLS     3553 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     29.797        31.054        .73415E-04   -1.4616    
   2  Prefactor     .10000E-03    60.192        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0190        .74634E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.0056        .16580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.8273        .16597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.4271        2.6063        .90445E-04   -1.5287    
   7  Prefactor     34.581        15.003        .68144E-04   -1.4531    
   8  Prefactor     12.876        24.789        .11160E-03   -1.4990    
   9  Prefactor     .10000E-03    20.150        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    30.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .77666        12.847        .48107E-03   -1.5532    
  12  norm          .10005E-03    17.741        .29373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    34.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.329        27.948        .10988E-03   -1.4978    
  15  Prefactor     17.953        19.992        .94525E-04   -1.4860    
  16  norm          .10000E-03    2.0152        .10531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.2032        81.347        .20395E-02   -1.5489    
  18  norm          .10000E-03    3.5480        .27435E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.2709        6.2301        .13942E-03   -1.5133    
  20  Prefactor     2.0173        2.7035        .13739E-03   -1.5424    
  21  Prefactor     6.5393        11.408        .15692E-03   -1.5196    
  22  Prefactor     .10000E-03    15.520        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.8439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     71.328        79.905        .23759E-03   -1.4017    
  25  Normalizat    .65763        .21981        .30058E-03   -1.0559    
  26  Prefactor     1.5948        .27676        .25850E-03   -.74918    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.91037e-09
Minuit parameter uncertainties:
  1  31.0707
  2  0.000168281
  3  4.00258e-07
  4  4.57494e-06
  5  2.65183e-05
  6  2.6064
  7  15.0043
  8  24.8093
  9  8.61101e-06
  10  7.35654e-05
  11  6.31866
  12  0.00189758
  13  8.70827e-05
  14  27.9756
  15  19.9993
  16  5.20734e-06
  17  19.814
  18  5.84491e-07
  19  6.23055
  20  2.70369
  21  11.4114
  22  4.09694e-06
  23  5.70424e-06
  24  80.0251
  25  0.220103
  26  0.277021
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  8.611e-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.595e+00  2.770e-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:  6.576e-01  2.201e-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: 5.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934479/likelihoodResults_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.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) = 5788.58508214
delta logL = -0.000236366447098

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5786.86934178
delta logL = 1.71550399053

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 'Index     '    6.1599       1.0000          .0000       10.000    
     3 'Normalizat'    .45927       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.7622       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=   5786.869     FROM MIGRAD    STATUS=CONVERGED    211 CALLS      572 TOTAL
                     EDM=   .46E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .65632E-04    .18142E-03** at limit **
   2  Index         6.1601        .17201        .52920E-01   -.62977E-03
   3  Normalizat    .45894        .23099        .30058E-02   -.48534E-04
   4  Prefactor     1.7625        .28519        .25850E-02   -.79813E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.16006
  Normalizat = 0.458938
  Prefactor  = 1.76247
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.869     FROM HESSE     STATUS=OK            33 CALLS      605 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .65875E-03    .93121E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.1601        .17389        .21090E-02   -3.3757    
   3  Normalizat    .45894        .23585        .12023E-03   -1.1436    
   4  Prefactor     1.7625        .28943        .10340E-03   -.70431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.42246e-10
Minuit parameter uncertainties:
  1  1.03451e-08
  2  0.173927
  3  0.236359
  4  0.289707
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934479': 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) = 5786.86933859
delta logL = 1.715507185

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.035e-08  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  6.160e+00  1.739e-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:  1.762e+00  2.897e-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:  4.589e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.21
Ra Dec: 192.460 37.131
Photon Index (Free Index): 6.16 +/- 0.17
Photon Flux (Free Index): 1.47e-07 +/- 8.87e-08
Energy Flux (Free Index): 1.82e-05 +/- 1.09e-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/934479/cmap_HighResolution_278726401_278985601_4FGL_J1249.8+3707_daily_bin152.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.04e-03', comment='SUCCESS', energy_flux2='1.82e-05', dlogl='1.72e+00', photon_flux2='1.47e-07', job_status='DONE', time_completed='2021-09-06 06:42:00.059669', photon_index_error2='0.17', photon_index2='6.16', ts='-0.00', fit_tolerance='1e-08', GAL='1.59', photon_index_error='0.00', photon_flux_upper_limit='5.49e-08', energy_flux_error2='1.09e-05', EG='0.66', time_epoch_completed='1630935720.06', return_code='0', job_id='934479', GAL2='1.76', EG2='0.46', return_code2='0', photon_flux_error2='8.87e-08', ts2='4.21', photon_index='1.78' WHERE bin_id='152' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:42:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0281>
Subject: Job 934479: <4FGL_J1249.8+3707_daily_bin152> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin152 192.46 37.1306 278726401 278985601 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.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             286.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            960 sec.

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

