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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin1134
RA = 192.46, Dec = 37.1306
tmin = 533260801, tmax = 533520001
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='940489', job_status='RUN', time_executed='2021-09-06 06:45:54.477063', time_epoch_executed='1630935954.48' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='1134'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/940489

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/940489/ft1_4FGL_J1249.8+3707_daily_bin1134.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/940489/ft2_4FGL_J1249.8+3707_daily_bin1134.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/940489/ft1_4FGL_J1249.8+3707_daily_bin1134.fits outfile=/scratch/kocevski/940489/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin1134.fits ra=192.46 dec=37.1306 rad=12.0 tmin=533260801.0 tmax=533520001.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.88
user 4.19
sys 0.23

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/940489/ft1_filtered_4FGL_J1249.8+3707_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/940489/ft2_4FGL_J1249.8+3707_daily_bin1134.fits sctable="SC_DATA" expcube=/scratch/kocevski/940489/ltcube_533260801_533520001_4FGL_J1249.8+3707_daily_bin1134.fits outfile=/scratch/kocevski/940489/expmap_533260801_533520001_4FGL_J1249.8+3707_daily_bin1134.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/940489/ltcube_533260801_533520001_4FGL_J1249.8+3707_daily_bin1134.fits
.....................!
real 190.86
user 185.34
sys 4.87

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/940489/ft1_filtered_4FGL_J1249.8+3707_daily_bin1134.fits scfile=/scratch/kocevski/940489/ft2_4FGL_J1249.8+3707_daily_bin1134.fits outfile=/scratch/kocevski/940489/cmap_533260801_533520001_4FGL_J1249.8+3707_daily_bin1134.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/940489/ft1_filtered_4FGL_J1249.8+3707_daily_bin1134.fits scfile=/scratch/kocevski/940489/ft2_4FGL_J1249.8+3707_daily_bin1134.fits outfile=/scratch/kocevski/940489/cmap_HighResolution_533260801_533520001_4FGL_J1249.8+3707_daily_bin1134.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/940489/ft1_filtered_4FGL_J1249.8+3707_daily_bin1134.fits evtable="EVENTS" scfile=/scratch/kocevski/940489/ft2_4FGL_J1249.8+3707_daily_bin1134.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/940489/Model_4FGL_J1249.8+3707_daily_bin1134.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/940489/ft1_filtered_4FGL_J1249.8+3707_daily_bin1134.fits.....................!
real 56.29
user 54.62
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.20       1.0000         .10000E-03   10000.    
     2 'Prefactor '    48.824       1.0000         .10000E-03   10000.    
     3 'norm      '    17.461       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    4.6164       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .81958       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    6.4245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    31.039       1.0000         .10000E-03   10000.    
    10 'Prefactor '    146.96       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .64304E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    58.412       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.758       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.588       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1564       1.0000         .10000E-03   10000.    
    17 'norm      '    5.2427       1.0000         .10000E-03   10000.    
    18 'norm      '    .80161E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    40.985       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2957       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .55918       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=   7010.939     FROM MIGRAD    STATUS=CONVERGED    660 CALLS     3221 TOTAL
                     EDM=   .55E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.19        60.993       -.19428E-06   -.10681E-04
   2  Prefactor     48.773        36.867        .12166E-05    .12223E-03
   3  norm          17.461        4.7702       -.29753E-07   -.68461E-05
   4  Prefactor     .10000E-03    2.2751        .10533E-06** at limit **
   5  Prefactor     4.6164        2.7610        .16155E-07   -.56320E-05
   6  Prefactor     .81954        .98939       -.18687E-07   -.18743E-04
   7  Prefactor     .10000E-03    2.4803       -.36519E-07** at limit **
   8  Prefactor     6.4232        12.930        .23323E-06    .15624E-04
   9  Prefactor     31.038        21.420        .17505E-06    .30939E-04
  10  Prefactor     146.94        80.250       -.61964E-06   -.17166E-03
  11  Prefactor     .10000E-03    3.0888        .28535E-07** at limit **
  12  norm          .30711E-01    2.9193        .82418E-07   -.85702E-03
  13  Prefactor     58.385        52.633       -.97685E-06   -.24831E-04
  14  Prefactor     18.746        23.056        .34802E-05    .83816E-04
  15  Prefactor     13.585        12.787        .98883E-08    .30767E-04
  16  norm          4.1560        3.8073       -.46259E-07    .33420E-04
  17  norm          5.2436        9.2293        .24835E-05   -.57888E-04
  18  norm          .10000E-03    1.4994       -.45748E-06** at limit **
  19  norm          .10000E-03    2.6814        .16302E-07** at limit **
  20  Prefactor     .10000E-03    .99623        .15703E-07** at limit **
  21  Prefactor     .10000E-03    6.2319        .27400E-07** at limit **
  22  Prefactor     40.963        42.560        .37670E-06    .35626E-04
  23  Prefactor     .10000E-03    5.7575       -.38331E-08** at limit **
  24  Prefactor     .10000E-03    15.962       -.12960E-07** at limit **
  25  Normalizat    1.2967        .16807        .20129E-06    .12516E-03
  26  Prefactor     .55806        .20163        .50139E-07    .41135E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.188
  Prefactor  = 48.7733
  norm       = 17.4612
  Prefactor  = 0.0001
  Prefactor  = 4.61635
  Prefactor  = 0.819541
  Prefactor  = 0.0001
  Prefactor  = 6.42317
  Prefactor  = 31.038
  Prefactor  = 146.943
  Prefactor  = 0.0001
  norm       = 0.0307108
  Prefactor  = 58.3852
  Prefactor  = 18.7456
  Prefactor  = 13.5846
  norm       = 4.15597
  norm       = 5.24362
  norm       = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.9632
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.29671
  Prefactor  = 0.558059
 **********
 **   18 **HESSE 
 **********

 FCN=   7010.939     FROM HESSE     STATUS=OK           462 CALLS     3683 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.19        60.993        .35557E-04   -1.3439    
   2  Prefactor     48.773        37.028        .57389E-04   -1.4310    
   3  norm          17.461        4.7734        .84951E-04   -1.4872    
   4  Prefactor     .10000E-03    2.2817        .12329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     4.6164        2.7647        .96567E-04   -1.5278    
   6  Prefactor     .81954        .96561        .88834E-04   -1.5527    
   7  Prefactor     .10000E-03    2.4839        .12878E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     6.4232        12.917        .15835E-03   -1.5201    
   9  Prefactor     31.038        21.403        .71919E-04   -1.4593    
  10  Prefactor     146.94        84.005        .16621E-03   -1.3278    
  11  Prefactor     .10000E-03    3.1077        .14356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .30711E-01    8.8998        .40728E-01   -1.5673    
  13  Prefactor     58.385        52.752        .52492E-04   -1.4178    
  14  Prefactor     18.746        26.223        .92476E-04   -1.4842    
  15  Prefactor     13.585        12.786        .10866E-03   -1.4971    
  16  norm          4.1560        3.8054        .14888E-03   -1.5300    
  17  norm          5.2436        9.0285        .87776E-03   -1.5250    
  18  norm          .10000E-03    20.080        .18967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.7098        .13371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.0038        .81511E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.2826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     40.963        42.576        .62614E-04   -1.4427    
  23  Prefactor     .10000E-03    5.7733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    15.969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2967        .19505        .21479E-03   -.83665    
  26  Prefactor     .55806        .22964        .38334E-03   -1.0938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22829e-09
Minuit parameter uncertainties:
  1  61.0231
  2  37.0456
  3  4.77347
  4  2.83789e-06
  5  2.76482
  6  0.965633
  7  3.84786e-07
  8  12.9231
  9  21.4079
  10  84.073
  11  8.19837e-06
  12  1.04406
  13  52.7947
  14  26.2393
  15  12.7887
  16  3.80557
  17  9.03084
  18  0.00046861
  19  4.03249e-06
  20  3.62435e-06
  21  8.76228e-06
  22  42.6077
  23  1.5798e-06
  24  3.75966e-06
  25  0.195158
  26  0.230027
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
625    Prefactor:  5.581e-01  2.300e-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.297e+00  1.952e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.02
Ra Dec: 192.460 37.131
Photon Index (Fixed Index): 1.78 +/- 0.00
Photon Flux (Fixed Index): 2.83e-08 +/- 1.95e-08
Energy Flux (Fixed Index): 3.60e-05 +/- 2.48e-05

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) = 7009.99153435
delta logL = 0.94711007101

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7009.98688756
delta logL = 0.951756861252

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.8236       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6253       1.0000          .0000       10.000    
     3 'Normalizat'    1.2399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60194       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7009.987     FROM MIGRAD    STATUS=FAILED        90 CALLS      296 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8214        97.766        .11344E-03   -.80873E-04
   2  Index         2.6254        2.6923        .30934E-02    .88354E-03
   3  Normalizat    1.2399        .26408        .21875E-03    .86153E-03
   4  Prefactor     .60194        .29039        .37004E-03    .22520E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7009.987     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      385 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8214        97.766        .21867E-03   -.80873E-04
   2  Index         2.6254        2.6923        .73919E-03    .88354E-03
   3  Normalizat    1.2399        .26408        .17274E-03    .86153E-03
   4  Prefactor     .60194        .29039        .20564E-03    .22520E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7009.987     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      414 TOTAL
                     EDM=   .93E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.8212        14.845        .45378E-05   -.22298E-03
   2  Index         2.6255        .82655        .61868E-03    .15068E-04
   3  Normalizat    1.2399        .19848        .43750E-04    .76735E-03
   4  Prefactor     .60194        .23639        .14802E-04    .19632E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.82118
  Index      = 2.62546
  Normalizat = 1.23985
  Prefactor  = 0.601945
 **********
 **   18 **HESSE 
 **********

 FCN=   7009.987     FROM HESSE     STATUS=OK            23 CALLS      437 TOTAL
                     EDM=   .92E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.8212        13.253        .90755E-06   -1.5186    
   2  Index         2.6255        .73860        .24747E-04   -.49486    
   3  Normalizat    1.2399        .19693        .87500E-05   -.85380    
   4  Prefactor     .60194        .23516        .29603E-05   -1.0750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.17969e-10
Minuit parameter uncertainties:
  1  13.2589
  2  0.742115
  3  0.197045
  4  0.235546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/940489': 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) = 7009.98688755
delta logL = 0.951756878032

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  6.821e+00  1.326e+01  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  2.625e+00  7.421e-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:  6.019e-01  2.355e-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.240e+00  1.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.90
Ra Dec: 192.460 37.131
Photon Index (Free Index): 2.63 +/- 0.74
Photon Flux (Free Index): 6.80e-08 +/- 4.66e-08
Energy Flux (Free Index): 1.74e-05 +/- 1.04e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/940489/cmap_HighResolution_533260801_533520001_4FGL_J1249.8+3707_daily_bin1134.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.83e-08', energy_flux2='1.74e-05', photon_flux_error='1.95e-08', dlogl='9.52e-01', energy_flux='3.60e-05', photon_flux2='6.80e-08', job_status='DONE', time_completed='2021-09-06 06:58:59.342826', photon_index_error2='0.74', photon_index2='2.63', ts='4.02', fit_tolerance='1e-08', GAL='0.56', photon_index_error='0.00', energy_flux_error2='1.04e-05', EG='1.30', time_epoch_completed='1630936739.34', return_code='0', job_id='940489', GAL2='0.60', EG2='1.24', return_code2='0', energy_flux_error='2.48e-05', photon_flux_error2='4.66e-08', ts2='5.90', photon_index='1.78' WHERE bin_id='1134' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:58:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0073>
Subject: Job 940489: <4FGL_J1249.8+3707_daily_bin1134> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin1134> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Mon Sep  6 06:45:39 2021
Job was executed on host(s) <bullet0073>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:45:41 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:45:41 2021
Terminated at Mon Sep  6 06:58:59 2021
Results reported at Mon Sep  6 06:58:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin1134 192.46 37.1306 533260801 533520001 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 :                                   773.03 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             340.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   798 sec.
    Turnaround time :                            800 sec.

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

