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


Performing analysis on: 4FGL_J1249.8+3707_daily_bin750
RA = 192.46, Dec = 37.1306
tmin = 433728001, tmax = 433987201
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='938659', job_status='RUN', time_executed='2021-09-06 06:44:03.000083', time_epoch_executed='1630935843.0' WHERE source_name='4FGL J1249.8+3707' and cadence='daily' and bin_id='750'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/938659

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/938659/ft1_4FGL_J1249.8+3707_daily_bin750.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/938659/ft2_4FGL_J1249.8+3707_daily_bin750.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/938659/ft1_4FGL_J1249.8+3707_daily_bin750.fits outfile=/scratch/kocevski/938659/ft1_filteredMKT_4FGL_J1249.8+3707_daily_bin750.fits ra=192.46 dec=37.1306 rad=12.0 tmin=433728001.0 tmax=433987201.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 6.10
user 5.80
sys 0.26

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/938659/ft1_filtered_4FGL_J1249.8+3707_daily_bin750.fits evtable="EVENTS" scfile=/scratch/kocevski/938659/ft2_4FGL_J1249.8+3707_daily_bin750.fits sctable="SC_DATA" expcube=/scratch/kocevski/938659/ltcube_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.fits outfile=/scratch/kocevski/938659/expmap_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.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/938659/ltcube_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.fits
.....................!
real 190.45
user 184.86
sys 5.18

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/938659/ft1_filtered_4FGL_J1249.8+3707_daily_bin750.fits scfile=/scratch/kocevski/938659/ft2_4FGL_J1249.8+3707_daily_bin750.fits outfile=/scratch/kocevski/938659/cmap_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.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.95
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/938659/ft1_filtered_4FGL_J1249.8+3707_daily_bin750.fits scfile=/scratch/kocevski/938659/ft2_4FGL_J1249.8+3707_daily_bin750.fits outfile=/scratch/kocevski/938659/cmap_HighResolution_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.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.96
user 0.38
sys 0.18

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.063       1.0000         .10000E-03   10000.    
     3 'norm      '    6.8877       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.2454       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8654       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6549       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.611       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .29426E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.016       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11866E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    5.4412       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    26.924       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.987       1.0000         .10000E-03   10000.    
    24 'Prefactor '    55.759       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0942       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99840       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=   5055.397     FROM MIGRAD    STATUS=CONVERGED    614 CALLS     3056 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.677       -.85180E-07** at limit **
   2  Prefactor     28.037        52.326        .65675E-06   -.62380E-05
   3  norm          6.8877        3.4610        .34303E-07   -.56382E-04
   4  Prefactor     .10000E-03    2.8371        .58454E-07** at limit **
   5  Prefactor     1.2455        1.4979        .39138E-07    .64060E-05
   6  Prefactor     1.8654        2.0212        .38983E-07    .18322E-04
   7  Prefactor     7.6544        9.0335        .10055E-06   -.12053E-04
   8  Prefactor     .10000E-03    17.194       -.82891E-07** at limit **
   9  Prefactor     .10000E-03    9.1256        .42881E-07** at limit **
  10  Prefactor     17.476        62.938       -.42773E-05    .24126E-04
  11  Prefactor     .10000E-03    1.9904        .32897E-07** at limit **
  12  norm          .10001E-03    8.1442       -.41259E-05** at limit **
  13  Prefactor     33.046        94.286        .13484E-05   -.15245E-04
  14  Prefactor     .10000E-03    14.012        .23981E-06** at limit **
  15  Prefactor     .10000E-03    7.2973        .96173E-07** at limit **
  16  norm          .10000E-03    1.2621        .36378E-07** at limit **
  17  norm          .10000E-03    11.376       -.35270E-06** at limit **
  18  norm          .10000E-03    3.6075        .27868E-05** at limit **
  19  norm          5.4455        5.0622       -.89194E-07   -.82537E-03
  20  Prefactor     .10000E-03    1.1975        .21512E-06** at limit **
  21  Prefactor     .10000E-03    9.8697        .27879E-06** at limit **
  22  Prefactor     26.893        35.411        .23307E-06   -.33204E-04
  23  Prefactor     13.995        17.537        .87988E-07   -.84773E-04
  24  Prefactor     55.668        82.721        .11286E-05   -.11311E-04
  25  Normalizat    1.0935        .20796        .67099E-06   -.10930E-03
  26  Prefactor     .99938        .23351       -.28075E-05   -.35745E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 28.0371
  norm       = 6.88773
  Prefactor  = 0.0001
  Prefactor  = 1.24549
  Prefactor  = 1.8654
  Prefactor  = 7.65442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.4765
  Prefactor  = 0.0001
  norm       = 0.000100008
  Prefactor  = 33.046
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 5.44552
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.8928
  Prefactor  = 13.9949
  Prefactor  = 55.6683
  Normalizat = 1.09349
  Prefactor  = 0.99938
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.397     FROM HESSE     STATUS=OK           452 CALLS     3508 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.037        52.354        .75626E-04   -1.4648    
   3  norm          6.8877        3.4581        .89948E-04   -1.5183    
   4  Prefactor     .10000E-03    2.8396        .11697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.2455        1.4880        .92247E-04   -1.5485    
   6  Prefactor     1.8654        2.0134        .10124E-03   -1.5435    
   7  Prefactor     7.6544        9.0255        .14494E-03   -1.5155    
   8  Prefactor     .10000E-03    17.196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.1287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.476        62.627        .95438E-04   -1.4872    
  11  Prefactor     .10000E-03    1.9925        .97963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10001E-03    11.625        .20865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.046        94.463        .69737E-04   -1.4558    
  14  Prefactor     .10000E-03    14.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.3084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.2634        .78013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    11.418        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.0614        .19237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          5.4455        4.6854        .13835E-03   -1.5241    
  20  Prefactor     .10000E-03    1.2108        .75975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.9989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     26.893        35.354        .77207E-04   -1.4670    
  23  Prefactor     13.995        17.554        .10710E-03   -1.4960    
  24  Prefactor     55.668        82.819        .26860E-03   -1.4214    
  25  Normalizat    1.0935        .23578        .23430E-03   -.89961    
  26  Prefactor     .99938        .27437        .29652E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90037e-09
Minuit parameter uncertainties:
  1  4.05313e-05
  2  52.44
  3  3.45821
  4  3.49539e-06
  5  1.48806
  6  2.0135
  7  9.0271
  8  4.36681e-05
  9  2.59298e-05
  10  62.8643
  11  8.33803e-06
  12  0.000618659
  13  94.8943
  14  4.88395e-05
  15  3.46862e-05
  16  3.45792e-06
  17  6.29857e-05
  18  0.000195357
  19  4.68574
  20  4.60086e-06
  21  3.83083e-05
  22  35.382
  23  17.5601
  24  82.9905
  25  0.236011
  26  0.274753
Done.

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

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  2.593e-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:  9.994e-01  2.748e-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.093e+00  2.360e-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.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.25e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/938659/likelihoodResults_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.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) = 5055.39727624
delta logL = -0.000518432088938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5055.39675779
delta logL = 2.49756340054e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.7613       1.0000          .0000       10.000    
     3 'Normalizat'    1.0936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99930       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=   5055.397     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    285.41        .90712E-02** at limit **
   2  Index         1.7428        6.6804        .50000        .14284E-04
   3  Normalizat    1.0935        .26874E-01    .38269E-01    .22453E-04
   4  Prefactor     .99939        .32826E-01    .67040E-01    .22935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.74277
  Normalizat = 1.09348
  Prefactor  = 0.999386
 **********
 **   18 **HESSE 
 **********

 FCN=   5055.397     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      233 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    914.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7428        9.0579        .50000       -.70949    
   3  Normalizat    1.0935        .53963E-01    .23429E-03   -.89961    
   4  Prefactor     .99939        .65841E-01    .29652E-03   -.92750    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.27816e-08
Minuit parameter uncertainties:
  1  0.00118928
  2  38.1158
  3  0.0539662
  4  0.0658464
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/938659': 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) = 5055.39675766
delta logL = 1.47290847963e-07

Extracting fit parameters...

4FGL J1249.8+3707
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  1.189e-03  1.000e-04  1.000e+04 ( 1.000e-14)
314        Index:  1.743e+00  3.812e+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:  9.994e-01  6.585e-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:  1.093e+00  5.397e-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/938659/cmap_HighResolution_433728001_433987201_4FGL_J1249.8+3707_daily_bin750.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.25e-03', job_status='DONE', photon_flux_upper_limit='4.42e-08', time_completed='2021-09-06 06:55:20.227241', job_id='938659', GAL2='1.00', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630936520.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.47e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.78' WHERE bin_id='750' AND source_name='4FGL J1249.8+3707' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep  6 06:55:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 938659: <4FGL_J1249.8+3707_daily_bin750> in cluster <slac> Done

Job <4FGL_J1249.8+3707_daily_bin750> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Sep  6 06:40:26 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep  6 06:40:28 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:40:28 2021
Terminated at Mon Sep  6 06:55:20 2021
Results reported at Mon Sep  6 06:55:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1249.8+3707_daily_bin750 192.46 37.1306 433728001 433987201 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 :                                   672.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   892 sec.
    Turnaround time :                            894 sec.

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

